@univerjs-pro/sheets-shape 0.15.4 → 0.15.5-insiders.20260212-022614a
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';function _0x4fd7(){const _0x4f2541=['registerCommand','dispose','RemoveSheetsShapeMutation','clear','registerPluginResource','from','addShape','isConnectorShape','Plugin','_commandService','UpdateSheetsShapeTypeMutation','delete','merge','Disposable','UniverInstanceType','getBasicShapeRelation','getShapeDataById','4278PyFAjX','28vqxfYm','DependentOn','pluginName','pushUndoRedo','stringify','4010gkMopy','shapeData','toJSON','getShapeData','232twtzXA','SHEET_SHAPE_PLUGIN','get','insertShape','_config','getShapeModel','_groupIds','getShapeType','setShapeType','fromJSON','every','UpdateSheetsShapeDataMutation','sheet.mutation.insert-shape','touchDependencies','13763043RurGRX','syncExecuteCommand','symbol','_serializeShapeForUnit','CommandType','set','_resourcesManagerService','type','UniverLicensePlugin','IResourceManagerService','getBasicShapeType','Inject','getShapeTypeById','shapeId','keys','83970096ucEoDz','UniverSheetsShapePlugin','has','hasShape','_ensureShapeModelManager','push','forEach','setConfig','_shapes','removeShape','length','SheetsShapeServices','15449DmIGuG','MUTATION','getShapeRelation','_deserializeShapeForUnit','_initSnapshot','sheet.command.update-shape-type','params','_initCommands','_injector','ShapeModel','onStarting','ICommandService','567348IqNnrT','_linesIds','1ywAosO','add','getLineShapeRelation','defineProperty','Injector','10GbEZkB','14263227MybXvV','_shapeModelManagerMap','2794042zGeRsx','Module','toStringTag','sheet.mutation.remove-shape','sheet.mutation.update-shape-type','UNIVER_SHEET'];_0x4fd7=function(){return _0x4f2541;};return _0x4fd7();}const _0x4f289a=_0xc58a;(function(_0x5022f8,_0x295261){const _0x3710fc=_0xc58a,_0x5dfc0d=_0x5022f8();while(!![]){try{const _0x3ce6dd=parseInt(_0x3710fc(0x167))/0x1*(-parseInt(_0x3710fc(0x16f))/0x2)+parseInt(_0x3710fc(0x165))/0x3*(-parseInt(_0x3710fc(0x127))/0x4)+parseInt(_0x3710fc(0x12c))/0x5*(-parseInt(_0x3710fc(0x126))/0x6)+-parseInt(_0x3710fc(0x159))/0x7*(parseInt(_0x3710fc(0x130))/0x8)+parseInt(_0x3710fc(0x13e))/0x9*(-parseInt(_0x3710fc(0x16c))/0xa)+-parseInt(_0x3710fc(0x16d))/0xb+parseInt(_0x3710fc(0x14d))/0xc;if(_0x3ce6dd===_0x295261)break;else _0x5dfc0d['push'](_0x5dfc0d['shift']());}catch(_0x235051){_0x5dfc0d['push'](_0x5dfc0d['shift']());}}}(_0x4fd7,0xc6f72));var D=Object['defineProperty'],C=(_0x202f78,_0x2ecc19,_0x579452)=>_0x2ecc19 in _0x202f78?D(_0x202f78,_0x2ecc19,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x579452}):_0x202f78[_0x2ecc19]=_0x579452,S=(_0x1b2194,_0x289db2,_0x32993c)=>C(_0x1b2194,typeof _0x289db2!=_0x4f289a(0x140)?_0x289db2+'':_0x289db2,_0x32993c);Object['defineProperty'](exports,Symbol[_0x4f289a(0x171)],{'value':_0x4f289a(0x170)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');class f extends p['Disposable']{constructor(){const _0x5c1828=_0x4f289a;super(),S(this,_0x5c1828(0x155),new Map()),S(this,_0x5c1828(0x166),new Set()),S(this,_0x5c1828(0x136),new Set());}[_0x4f289a(0x17b)](_0x129535,_0x5a91ba,_0x53a1a9){const _0x559a99=_0x4f289a,_0x3bd5ec=new l[(_0x559a99(0x162))](_0x129535,_0x5a91ba,_0x53a1a9);return this[_0x559a99(0x155)][_0x559a99(0x143)](_0x5a91ba,_0x3bd5ec),l['isConnectorShape'](_0x129535)&&this[_0x559a99(0x166)][_0x559a99(0x168)](_0x5a91ba),_0x3bd5ec;}[_0x4f289a(0x124)](_0x4260e0){const _0x35807d=_0x4f289a;var _0x582f69,_0x348a63;const _0x286f97=[];for(const _0x402ffe of this[_0x35807d(0x166)]){const _0x1da58a=this[_0x35807d(0x155)]['get'](_0x402ffe);if(_0x1da58a){const _0x359df0=_0x1da58a[_0x35807d(0x15b)]();_0x359df0&&(((_0x582f69=_0x359df0[_0x35807d(0x17a)])==null?void 0x0:_0x582f69[_0x35807d(0x14b)])===_0x4260e0&&_0x286f97[_0x35807d(0x152)]({..._0x359df0['from'],'lineShapeId':_0x402ffe,'isFrom':!0x0}),((_0x348a63=_0x359df0['to'])==null?void 0x0:_0x348a63[_0x35807d(0x14b)])===_0x4260e0&&_0x286f97[_0x35807d(0x152)]({..._0x359df0['to'],'lineShapeId':_0x402ffe,'isFrom':!0x1}));}}return _0x286f97;}[_0x4f289a(0x169)](_0x4d323f){const _0x307fc5=_0x4f289a,_0x2b0a02=this[_0x307fc5(0x155)]['get'](_0x4d323f);if(_0x2b0a02)return _0x2b0a02[_0x307fc5(0x15b)]();}['getShapeType'](_0x19de19){const _0x4a1e62=_0x4f289a,_0x22165a=this[_0x4a1e62(0x155)][_0x4a1e62(0x132)](_0x19de19);if(_0x22165a)return _0x22165a[_0x4a1e62(0x137)]();}['hasShape'](_0x243911){const _0x5e4c1b=_0x4f289a;return this[_0x5e4c1b(0x155)][_0x5e4c1b(0x14f)](_0x243911);}['removeShape'](_0x38a3f4){const _0x1ba422=_0x4f289a,_0x2c93b9=this[_0x1ba422(0x155)][_0x1ba422(0x132)](_0x38a3f4);_0x2c93b9&&(l[_0x1ba422(0x17c)](_0x2c93b9['getShapeType']())&&this['_linesIds'][_0x1ba422(0x180)](_0x38a3f4),this[_0x1ba422(0x155)][_0x1ba422(0x180)](_0x38a3f4));}[_0x4f289a(0x12e)](){const _0xb82e31=_0x4f289a,_0x5733df=[];return this[_0xb82e31(0x155)][_0xb82e31(0x153)](_0x595f82=>{const _0x338e62=_0xb82e31;_0x5733df[_0x338e62(0x152)](_0x595f82[_0x338e62(0x12e)]());}),_0x5733df;}[_0x4f289a(0x139)](_0x48ad06){const _0x63211=_0x4f289a;for(const _0x5266e1 of _0x48ad06){const {id:_0x4d6cd4,shapeType:_0x2740ac}=_0x5266e1,_0x30ab46=this[_0x63211(0x17b)](_0x2740ac,_0x4d6cd4,_0x5266e1[_0x63211(0x12d)]);_0x30ab46&&_0x30ab46['isLineShape']()&&this[_0x63211(0x166)][_0x63211(0x168)](_0x4d6cd4);}}['dispose'](){const _0x2d0d06=_0x4f289a;this['_disposed']||(this[_0x2d0d06(0x155)]['forEach'](_0xaab679=>{const _0x41147b=_0x2d0d06;_0xaab679[_0x41147b(0x176)]();}),this['_shapes'][_0x2d0d06(0x178)](),this[_0x2d0d06(0x166)]['clear'](),this[_0x2d0d06(0x136)][_0x2d0d06(0x178)](),super[_0x2d0d06(0x176)]());}}var R=Object['getOwnPropertyDescriptor'],J=(_0xe8fea4,_0x197473,_0x9c34f5,_0x14eeb6)=>{for(var _0x37b39f=_0x14eeb6>0x1?void 0x0:_0x14eeb6?R(_0x197473,_0x9c34f5):_0x197473,_0x5e4b5a=_0xe8fea4['length']-0x1,_0x22f76f;_0x5e4b5a>=0x0;_0x5e4b5a--)(_0x22f76f=_0xe8fea4[_0x5e4b5a])&&(_0x37b39f=_0x22f76f(_0x37b39f)||_0x37b39f);return _0x37b39f;},j=(_0x42649c,_0x14d69a)=>(_0x10c440,_0x3ec2f2)=>_0x14d69a(_0x10c440,_0x3ec2f2,_0x42649c);const w='SHEET_SHAPE_PLUGIN';function _0xc58a(_0x16430a,_0xd27482){_0x16430a=_0x16430a-0x121;const _0x4fd73d=_0x4fd7();let _0xc58aa9=_0x4fd73d[_0x16430a];return _0xc58aa9;}exports[_0x4f289a(0x158)]=class extends p[_0x4f289a(0x122)]{constructor(_0x2fe12d){const _0x585b4f=_0x4f289a;super(),S(this,_0x585b4f(0x16e),new Map()),(this[_0x585b4f(0x144)]=_0x2fe12d,this[_0x585b4f(0x15d)]());}['_ensureShapeModelManager'](_0x4a3f31,_0x1d965a){const _0x13fbaf=_0x4f289a;let _0x3f62de=this[_0x13fbaf(0x16e)][_0x13fbaf(0x132)](_0x4a3f31);_0x3f62de||(_0x3f62de=new Map(),this[_0x13fbaf(0x16e)][_0x13fbaf(0x143)](_0x4a3f31,_0x3f62de));let _0x4b8e2f=_0x3f62de[_0x13fbaf(0x132)](_0x1d965a);return _0x4b8e2f||(_0x4b8e2f=new f(),_0x3f62de[_0x13fbaf(0x143)](_0x1d965a,_0x4b8e2f)),_0x4b8e2f;}['insertShape'](_0x1cd994,_0x3b1d41,_0x3ab2af,_0x3013ae,_0x278719){const _0x40d617=_0x4f289a;this[_0x40d617(0x151)](_0x1cd994,_0x3b1d41)[_0x40d617(0x17b)](_0x3ab2af,_0x3013ae,_0x278719);}[_0x4f289a(0x156)](_0x2c9541,_0x16079e,_0x3b1fa8){const _0x37950c=_0x4f289a;this[_0x37950c(0x151)](_0x2c9541,_0x16079e)[_0x37950c(0x156)](_0x3b1fa8);}[_0x4f289a(0x148)](_0xb7c69c,_0x35b27,_0x919482){const _0x42caed=_0x4f289a;return this[_0x42caed(0x151)](_0xb7c69c,_0x35b27)[_0x42caed(0x137)](_0x919482);}['getShapeType'](_0x31195a,_0x26f68a,_0x899145){const _0x5470c7=_0x4f289a;return this[_0x5470c7(0x151)](_0x31195a,_0x26f68a)[_0x5470c7(0x137)](_0x899145);}[_0x4f289a(0x150)](_0x5b73fb,_0x12b05c,_0x2ec2ec){const _0x2020fa=_0x4f289a;return this[_0x2020fa(0x151)](_0x5b73fb,_0x12b05c)[_0x2020fa(0x150)](_0x2ec2ec);}[_0x4f289a(0x14a)](_0x241d49,_0x24b42a,_0x2c55c8){const _0x50c8a9=_0x4f289a;return this['_ensureShapeModelManager'](_0x241d49,_0x24b42a)[_0x50c8a9(0x137)](_0x2c55c8);}[_0x4f289a(0x125)](_0x4981bb,_0x27cb58,_0x7bbafa){const _0x4e8a4a=_0x4f289a,_0x1c9fae=this['_ensureShapeModelManager'](_0x4981bb,_0x27cb58);if(!_0x1c9fae[_0x4e8a4a(0x137)](_0x7bbafa))return;const _0x1e6599=_0x1c9fae['_shapes'][_0x4e8a4a(0x132)](_0x7bbafa);if(_0x1e6599)return _0x1e6599[_0x4e8a4a(0x12f)]();}[_0x4f289a(0x135)](_0x39465c,_0x1cff8b,_0x350197){const _0x48526c=_0x4f289a;return this[_0x48526c(0x151)](_0x39465c,_0x1cff8b)[_0x48526c(0x155)][_0x48526c(0x132)](_0x350197);}[_0x4f289a(0x124)](_0x456fd8,_0xea8cf5,_0xfcfab4){const _0x5cc953=_0x4f289a;return this['_ensureShapeModelManager'](_0x456fd8,_0xea8cf5)[_0x5cc953(0x124)](_0xfcfab4);}[_0x4f289a(0x169)](_0x4e412e,_0x2c1a3c,_0x1da5bf){const _0x363315=_0x4f289a,_0x5cc648=this[_0x363315(0x151)](_0x4e412e,_0x2c1a3c)[_0x363315(0x155)]['get'](_0x1da5bf);if(_0x5cc648)return _0x5cc648[_0x363315(0x15b)]();}[_0x4f289a(0x138)](){}[_0x4f289a(0x141)](_0x1972c8){const _0x4f1077=_0x4f289a,_0x1fbee5={},_0x494aab=this[_0x4f1077(0x16e)][_0x4f1077(0x132)](_0x1972c8);return _0x494aab&&_0x494aab[_0x4f1077(0x153)]((_0x1388ad,_0xbd1496)=>{const _0x5f1477=_0x4f1077;_0x1fbee5[_0xbd1496]=_0x1388ad[_0x5f1477(0x12e)]();}),JSON[_0x4f1077(0x12b)](_0x1fbee5);}[_0x4f289a(0x15c)](_0x221e88,_0x4a4804){const _0x61a07a=_0x4f289a;Object[_0x61a07a(0x14c)](_0x4a4804)[_0x61a07a(0x153)](_0x321b36=>{const _0x19a7c3=_0x61a07a;this[_0x19a7c3(0x151)](_0x221e88,_0x321b36)[_0x19a7c3(0x139)](_0x4a4804[_0x321b36]);});}[_0x4f289a(0x12e)](){const _0x4a01a4=_0x4f289a,_0x30eb0b={};return this[_0x4a01a4(0x16e)][_0x4a01a4(0x153)]((_0x533301,_0x4e4164)=>{_0x30eb0b[_0x4e4164]={},_0x533301['forEach']((_0x53b5a3,_0x54b29a)=>{const _0x58e59a=_0xc58a;_0x30eb0b[_0x4e4164][_0x54b29a]=_0x53b5a3[_0x58e59a(0x12e)]();});}),_0x30eb0b;}['fromJSON'](_0x35c8da){const _0x948680=_0x4f289a;Object['keys'](_0x35c8da)[_0x948680(0x153)](_0x360347=>{const _0x1b6475=_0x948680,_0x3f5990=_0x35c8da[_0x360347];Object[_0x1b6475(0x14c)](_0x3f5990)[_0x1b6475(0x153)](_0x31050e=>{const _0x16a131=_0x1b6475;this[_0x16a131(0x151)](_0x360347,_0x31050e)[_0x16a131(0x139)](_0x3f5990[_0x31050e]);});});}[_0x4f289a(0x15d)](){const _0x400488=_0x4f289a;this[_0x400488(0x144)][_0x400488(0x179)]({'pluginName':w,'businesses':[p[_0x400488(0x123)][_0x400488(0x174)]],'toJson':_0x3bdf61=>this[_0x400488(0x141)](_0x3bdf61),'parseJson':_0x4a7ade=>JSON['parse'](_0x4a7ade),'onLoad':(_0xa66ccb,_0x63fc66)=>{const _0x56ed2e=_0x400488;this[_0x56ed2e(0x15c)](_0xa66ccb,_0x63fc66);},'onUnLoad':_0x365939=>{const _0x25dcbd=_0x400488,_0x157071=this['_shapeModelManagerMap']['get'](_0x365939);_0x157071&&(_0x157071[_0x25dcbd(0x153)](_0x4d8d31=>{_0x4d8d31['dispose']();}),this['_shapeModelManagerMap'][_0x25dcbd(0x180)](_0x365939));}});}[_0x4f289a(0x176)](){const _0x427930=_0x4f289a;this[_0x427930(0x16e)][_0x427930(0x153)](_0x5295c2=>{const _0x346e5a=_0x427930;_0x5295c2[_0x346e5a(0x153)](_0x3edf73=>{const _0x396477=_0x346e5a;_0x3edf73[_0x396477(0x176)]();});});}},exports[_0x4f289a(0x158)]=J([j(0x0,p[_0x4f289a(0x147)])],exports[_0x4f289a(0x158)]);const d={'id':_0x4f289a(0x173),'type':p[_0x4f289a(0x142)][_0x4f289a(0x15a)],'handler':(_0x4c93b2,_0x49cb36)=>{const _0x222e4f=_0x4f289a,{unitId:_0x1189ad,subUnitId:_0x433fe1,shapeType:_0x9f435d,shapeId:_0x11c044,shapeData:_0x2bca14}=_0x49cb36,_0x318167=_0x4c93b2[_0x222e4f(0x132)](exports[_0x222e4f(0x158)])[_0x222e4f(0x135)](_0x1189ad,_0x433fe1,_0x11c044);return _0x318167&&(_0x318167[_0x222e4f(0x138)](_0x9f435d),_0x2bca14&&(_0x318167==null||_0x318167['setShapeData'](_0x2bca14))),!0x0;}},H={'id':_0x4f289a(0x15e),'type':p[_0x4f289a(0x142)]['COMMAND'],'handler':(_0x1bfb89,_0x5b842e)=>{const _0x52cf57=_0x4f289a;if(!_0x5b842e)return!0x1;const _0x4445c1=_0x1bfb89['get'](p[_0x52cf57(0x164)]),_0x5eb4a1=_0x1bfb89[_0x52cf57(0x132)](exports[_0x52cf57(0x158)]),_0x21b9d8=_0x1bfb89[_0x52cf57(0x132)](p['IUndoRedoService']),_0x3bebf9=[],_0x512591=[],{unitId:_0x572e87,subUnitId:_0x4c4fe3,shapeId:_0x8c621,shapeType:_0x5dca4d,shapeData:_0x40f89c}=_0x5b842e,_0x231198=_0x5eb4a1[_0x52cf57(0x135)](_0x572e87,_0x4c4fe3,_0x8c621);if(_0x231198){const _0x3b5076=_0x231198[_0x52cf57(0x137)](),_0x1c933b=Object['assign']({},_0x231198['getShapeData']()),_0x38c1db={'unitId':_0x572e87,'subUnitId':_0x4c4fe3,'shapeId':_0x8c621,'shapeType':_0x5dca4d,'shapeData':_0x40f89c},_0x4e1a9f={'unitId':_0x572e87,'subUnitId':_0x4c4fe3,'shapeId':_0x8c621,'shapeType':_0x3b5076,'shapeData':_0x1c933b};return _0x3bebf9[_0x52cf57(0x152)]({'id':d['id'],'params':_0x38c1db}),_0x512591[_0x52cf57(0x152)]({'id':d['id'],'params':_0x4e1a9f}),_0x3bebf9[_0x52cf57(0x13a)](_0x48bcc8=>_0x4445c1[_0x52cf57(0x13f)](_0x48bcc8['id'],_0x48bcc8[_0x52cf57(0x15f)]))&&_0x21b9d8[_0x52cf57(0x12a)]({'unitID':_0x572e87,'redoMutations':[..._0x3bebf9],'undoMutations':[..._0x512591]}),!0x0;}return!0x1;}},m={'id':_0x4f289a(0x13c),'type':p['CommandType'][_0x4f289a(0x15a)],'handler':(_0x42be49,_0x212101)=>{const _0x16413c=_0x4f289a,{unitId:_0x47b75a,subUnitId:_0xa757f0,shapeType:_0x2aa4c9,shapeId:_0x54442d,shapeData:_0x329d9e}=_0x212101;return _0x42be49[_0x16413c(0x132)](exports['SheetsShapeServices'])[_0x16413c(0x133)](_0x47b75a,_0xa757f0,_0x2aa4c9,_0x54442d,_0x329d9e),!0x0;}},v={'id':_0x4f289a(0x172),'type':p[_0x4f289a(0x142)][_0x4f289a(0x15a)],'handler':(_0x22b021,_0x575fc9)=>{const _0x73c00f=_0x4f289a,{unitId:_0x4e7b75,subUnitId:_0x54c459,shapeId:_0x58a7de}=_0x575fc9;return _0x22b021[_0x73c00f(0x132)](exports[_0x73c00f(0x158)])['removeShape'](_0x4e7b75,_0x54c459,_0x58a7de),!0x0;}},y={'id':'sheet.mutation.update-shape-data','type':p[_0x4f289a(0x142)][_0x4f289a(0x15a)],'handler':(_0x50cebb,_0x134d6f)=>{const _0x59360a=_0x4f289a,{unitId:_0x19f386,subUnitId:_0x11307d,shapeType:_0x18e518,shapeId:_0x342590,shapeData:_0x3556e1}=_0x134d6f,_0x15d368=_0x50cebb['get'](exports[_0x59360a(0x158)])['getShapeModel'](_0x19f386,_0x11307d,_0x342590);return _0x15d368&&(_0x18e518!==void 0x0&&_0x15d368[_0x59360a(0x138)](_0x18e518),_0x3556e1&&(_0x15d368==null||_0x15d368['setShapeData'](_0x3556e1,!0x0))),!0x0;}},A='sheets-shape.config',_={};var L=Object[_0x4f289a(0x16a)],F=Object['getOwnPropertyDescriptor'],B=(_0xf6d7f6,_0x1d96be,_0x42f9ba)=>_0x1d96be in _0xf6d7f6?L(_0xf6d7f6,_0x1d96be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42f9ba}):_0xf6d7f6[_0x1d96be]=_0x42f9ba,G=(_0x5ad64e,_0x182bcc,_0x536f49,_0x9d0977)=>{const _0x36d8dd=_0x4f289a;for(var _0x5e0ca1=_0x9d0977>0x1?void 0x0:_0x9d0977?F(_0x182bcc,_0x536f49):_0x182bcc,_0x5dc8e8=_0x5ad64e[_0x36d8dd(0x157)]-0x1,_0x23a4a3;_0x5dc8e8>=0x0;_0x5dc8e8--)(_0x23a4a3=_0x5ad64e[_0x5dc8e8])&&(_0x5e0ca1=_0x23a4a3(_0x5e0ca1)||_0x5e0ca1);return _0x5e0ca1;},g=(_0x4bae3c,_0x4c62f9)=>(_0x2740d6,_0x2abd33)=>_0x4c62f9(_0x2740d6,_0x2abd33,_0x4bae3c),T=(_0x30f32d,_0x12d0d4,_0x43f467)=>B(_0x30f32d,typeof _0x12d0d4!='symbol'?_0x12d0d4+'':_0x12d0d4,_0x43f467);const x=_0x4f289a(0x131);exports[_0x4f289a(0x14e)]=class extends p[_0x4f289a(0x17d)]{constructor(_0x35616f=_,_0x2526ee,_0x3c719b,_0x19d7a0){const _0x4a4f99=_0x4f289a;super(),this[_0x4a4f99(0x134)]=_0x35616f,this[_0x4a4f99(0x161)]=_0x2526ee,this[_0x4a4f99(0x17e)]=_0x3c719b,this['_configService']=_0x19d7a0;const {..._0x1af4b2}=p[_0x4a4f99(0x121)]({},_,this[_0x4a4f99(0x134)]);this['_configService'][_0x4a4f99(0x154)](A,_0x1af4b2),this[_0x4a4f99(0x160)]();}['onRendered'](){const _0x329204=_0x4f289a;p[_0x329204(0x13d)](this[_0x329204(0x161)],[]);}[_0x4f289a(0x163)](){const _0x13275a=_0x4f289a,_0x28d460=this[_0x13275a(0x161)];[[f],[exports[_0x13275a(0x158)]]][_0x13275a(0x153)](_0x38c12=>_0x28d460[_0x13275a(0x168)](_0x38c12));}[_0x4f289a(0x160)](){const _0x63e8c2=_0x4f289a;[m,v,d,y][_0x63e8c2(0x153)](_0x153bad=>this['disposeWithMe'](this[_0x63e8c2(0x17e)][_0x63e8c2(0x175)](_0x153bad)));}},T(exports[_0x4f289a(0x14e)],_0x4f289a(0x145),p[_0x4f289a(0x123)][_0x4f289a(0x174)]),T(exports[_0x4f289a(0x14e)],_0x4f289a(0x129),x),exports[_0x4f289a(0x14e)]=G([p[_0x4f289a(0x128)](b[_0x4f289a(0x146)]),g(0x1,p[_0x4f289a(0x149)](p[_0x4f289a(0x16b)])),g(0x2,p[_0x4f289a(0x164)]),g(0x3,p['IConfigService'])],exports[_0x4f289a(0x14e)]),exports['InsertSheetsShapeMutation']=m,exports[_0x4f289a(0x177)]=v,exports[_0x4f289a(0x13b)]=y,exports['UpdateSheetsShapeTypeCommand']=H,exports[_0x4f289a(0x17f)]=d;
|
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 _0x3188f1=_0x1702;(function(_0x54eb78,_0x4ab870){const _0x2d7a22=_0x1702,_0x2f3f84=_0x54eb78();while(!![]){try{const _0x25fb07=-parseInt(_0x2d7a22(0x10a))/0x1+-parseInt(_0x2d7a22(0x107))/0x2+-parseInt(_0x2d7a22(0x126))/0x3+-parseInt(_0x2d7a22(0xf9))/0x4*(-parseInt(_0x2d7a22(0x129))/0x5)+parseInt(_0x2d7a22(0x12d))/0x6*(parseInt(_0x2d7a22(0x10b))/0x7)+parseInt(_0x2d7a22(0xf8))/0x8*(-parseInt(_0x2d7a22(0x130))/0x9)+-parseInt(_0x2d7a22(0x113))/0xa*(-parseInt(_0x2d7a22(0x131))/0xb);if(_0x25fb07===_0x4ab870)break;else _0x2f3f84['push'](_0x2f3f84['shift']());}catch(_0xc4eb29){_0x2f3f84['push'](_0x2f3f84['shift']());}}}(_0x1e6c,0x64ffb));var R=Object[_0x3188f1(0x128)],C=(_0x22519f,_0x39febb,_0x3b1af1)=>_0x39febb in _0x22519f?R(_0x22519f,_0x39febb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b1af1}):_0x22519f[_0x39febb]=_0x3b1af1,d=(_0x2aa354,_0x6a218f,_0x2636ea)=>C(_0x2aa354,typeof _0x6a218f!=_0x3188f1(0xe3)?_0x6a218f+'':_0x6a218f,_0x2636ea);import{Disposable as _0x27076a,UniverInstanceType as _0x455757,IResourceManagerService as _0x21e69a,CommandType as _0x2d4ce4,ICommandService as _0x59ad7b,IUndoRedoService as _0x304727,DependentOn as _0x16ad9e,Inject as _0xf53028,Injector as _0x274ce4,Plugin as _0x2cc40e,merge as _0x10a4ae,touchDependencies as _0xb129c1,IConfigService as _0x23f57d}from'@univerjs/core';import{ShapeModel as _0x3190fc,isConnectorShape as _0x5b4547}from'@univerjs-pro/engine-shape';function _0x1702(_0x83720e,_0x244ef8){_0x83720e=_0x83720e-0xe3;const _0x1e6c45=_0x1e6c();let _0x17024c=_0x1e6c45[_0x83720e];return _0x17024c;}import{UniverLicensePlugin as _0x1d23e7}from'@univerjs-pro/license';class T extends _0x27076a{constructor(){const _0x23a377=_0x3188f1;super(),d(this,_0x23a377(0x11f),new Map()),d(this,_0x23a377(0xf5),new Set()),d(this,_0x23a377(0x109),new Set());}[_0x3188f1(0xfd)](_0x5e3a57,_0x1e7c12,_0x2e9223){const _0x55aa2f=_0x3188f1,_0x39bf63=new _0x3190fc(_0x5e3a57,_0x1e7c12,_0x2e9223);return this[_0x55aa2f(0x11f)][_0x55aa2f(0x12a)](_0x1e7c12,_0x39bf63),_0x5b4547(_0x5e3a57)&&this[_0x55aa2f(0xf5)][_0x55aa2f(0x110)](_0x1e7c12),_0x39bf63;}[_0x3188f1(0xf1)](_0x36bf44){const _0x3b4209=_0x3188f1;var _0x4d6e9c,_0x2f3725;const _0x28cd5e=[];for(const _0x1b97bf of this[_0x3b4209(0xf5)]){const _0x50a98a=this['_shapes'][_0x3b4209(0x12c)](_0x1b97bf);if(_0x50a98a){const _0x101188=_0x50a98a[_0x3b4209(0x123)]();_0x101188&&(((_0x4d6e9c=_0x101188[_0x3b4209(0x102)])==null?void 0x0:_0x4d6e9c['shapeId'])===_0x36bf44&&_0x28cd5e[_0x3b4209(0x121)]({..._0x101188[_0x3b4209(0x102)],'lineShapeId':_0x1b97bf,'isFrom':!0x0}),((_0x2f3725=_0x101188['to'])==null?void 0x0:_0x2f3725[_0x3b4209(0x103)])===_0x36bf44&&_0x28cd5e['push']({..._0x101188['to'],'lineShapeId':_0x1b97bf,'isFrom':!0x1}));}}return _0x28cd5e;}[_0x3188f1(0x11b)](_0x48a4df){const _0x2deb68=_0x3188f1,_0x5ce261=this[_0x2deb68(0x11f)][_0x2deb68(0x12c)](_0x48a4df);if(_0x5ce261)return _0x5ce261[_0x2deb68(0x123)]();}[_0x3188f1(0xf4)](_0x399a23){const _0x1335b2=_0x3188f1,_0x12657b=this[_0x1335b2(0x11f)][_0x1335b2(0x12c)](_0x399a23);if(_0x12657b)return _0x12657b[_0x1335b2(0xf4)]();}[_0x3188f1(0xfc)](_0x37ba1e){const _0x1b405b=_0x3188f1;return this[_0x1b405b(0x11f)][_0x1b405b(0xfb)](_0x37ba1e);}['removeShape'](_0x573cdc){const _0x22df07=_0x3188f1,_0xd5cc1=this[_0x22df07(0x11f)][_0x22df07(0x12c)](_0x573cdc);_0xd5cc1&&(_0x5b4547(_0xd5cc1[_0x22df07(0xf4)]())&&this['_linesIds'][_0x22df07(0xe7)](_0x573cdc),this[_0x22df07(0x11f)]['delete'](_0x573cdc));}[_0x3188f1(0x12b)](){const _0x5c2e0b=_0x3188f1,_0x3e2043=[];return this[_0x5c2e0b(0x11f)][_0x5c2e0b(0xfe)](_0x5b6674=>{const _0x1253ce=_0x5c2e0b;_0x3e2043['push'](_0x5b6674[_0x1253ce(0x12b)]());}),_0x3e2043;}[_0x3188f1(0x132)](_0x770c9e){const _0x4a35a7=_0x3188f1;for(const _0x3c6763 of _0x770c9e){const {id:_0x12f50e,shapeType:_0x16eeb5}=_0x3c6763,_0x2b0bf7=this[_0x4a35a7(0xfd)](_0x16eeb5,_0x12f50e,_0x3c6763[_0x4a35a7(0xf7)]);_0x2b0bf7&&_0x2b0bf7['isLineShape']()&&this[_0x4a35a7(0xf5)][_0x4a35a7(0x110)](_0x12f50e);}}['dispose'](){const _0x3ba0c5=_0x3188f1;this[_0x3ba0c5(0x10f)]||(this[_0x3ba0c5(0x11f)][_0x3ba0c5(0xfe)](_0x12de40=>{const _0x38a74d=_0x3ba0c5;_0x12de40[_0x38a74d(0xe9)]();}),this[_0x3ba0c5(0x11f)][_0x3ba0c5(0x116)](),this[_0x3ba0c5(0xf5)][_0x3ba0c5(0x116)](),this[_0x3ba0c5(0x109)][_0x3ba0c5(0x116)](),super['dispose']());}}var $=Object[_0x3188f1(0xf3)],V=(_0x2db078,_0x178d5d,_0x5703dc,_0x3f2d49)=>{for(var _0x2de788=_0x3f2d49>0x1?void 0x0:_0x3f2d49?$(_0x178d5d,_0x5703dc):_0x178d5d,_0x1f7c83=_0x2db078['length']-0x1,_0x51e19e;_0x1f7c83>=0x0;_0x1f7c83--)(_0x51e19e=_0x2db078[_0x1f7c83])&&(_0x2de788=_0x51e19e(_0x2de788)||_0x2de788);return _0x2de788;},K=(_0x2a89a5,_0xf5d2ee)=>(_0x487592,_0x4dddc0)=>_0xf5d2ee(_0x487592,_0x4dddc0,_0x2a89a5);const W=_0x3188f1(0x127);let i=class extends _0x27076a{constructor(_0x28825a){const _0x1596da=_0x3188f1;super(),d(this,_0x1596da(0xff),new Map()),(this[_0x1596da(0xed)]=_0x28825a,this[_0x1596da(0x120)]());}[_0x3188f1(0xe5)](_0x1463f8,_0x55db4f){const _0x251ddd=_0x3188f1;let _0x48eb57=this[_0x251ddd(0xff)][_0x251ddd(0x12c)](_0x1463f8);_0x48eb57||(_0x48eb57=new Map(),this[_0x251ddd(0xff)][_0x251ddd(0x12a)](_0x1463f8,_0x48eb57));let _0x13db78=_0x48eb57['get'](_0x55db4f);return _0x13db78||(_0x13db78=new T(),_0x48eb57[_0x251ddd(0x12a)](_0x55db4f,_0x13db78)),_0x13db78;}[_0x3188f1(0xe6)](_0x3446a1,_0x14a932,_0x271bde,_0xc96b27,_0x398363){const _0x292783=_0x3188f1;this[_0x292783(0xe5)](_0x3446a1,_0x14a932)['addShape'](_0x271bde,_0xc96b27,_0x398363);}[_0x3188f1(0x115)](_0x4717cb,_0x2898f4,_0x304cf0){const _0x2a6631=_0x3188f1;this[_0x2a6631(0xe5)](_0x4717cb,_0x2898f4)[_0x2a6631(0x115)](_0x304cf0);}['getBasicShapeType'](_0x268428,_0x5589ad,_0xeca733){const _0x164ed1=_0x3188f1;return this['_ensureShapeModelManager'](_0x268428,_0x5589ad)[_0x164ed1(0xf4)](_0xeca733);}[_0x3188f1(0xf4)](_0x9f7266,_0x557460,_0x292f90){const _0x4ff4e1=_0x3188f1;return this[_0x4ff4e1(0xe5)](_0x9f7266,_0x557460)[_0x4ff4e1(0xf4)](_0x292f90);}[_0x3188f1(0xfc)](_0x597934,_0x12334d,_0x5e4cbe){const _0x4a2a5b=_0x3188f1;return this[_0x4a2a5b(0xe5)](_0x597934,_0x12334d)[_0x4a2a5b(0xfc)](_0x5e4cbe);}[_0x3188f1(0xec)](_0x326521,_0x410ff6,_0x560f20){const _0xf9bb0e=_0x3188f1;return this[_0xf9bb0e(0xe5)](_0x326521,_0x410ff6)[_0xf9bb0e(0xf4)](_0x560f20);}[_0x3188f1(0x101)](_0x3d60f9,_0x5a487d,_0x3f15cb){const _0x1c24e8=_0x3188f1,_0x4a6fda=this[_0x1c24e8(0xe5)](_0x3d60f9,_0x5a487d);if(!_0x4a6fda[_0x1c24e8(0xf4)](_0x3f15cb))return;const _0x4fc7b6=_0x4a6fda['_shapes'][_0x1c24e8(0x12c)](_0x3f15cb);if(_0x4fc7b6)return _0x4fc7b6[_0x1c24e8(0x100)]();}[_0x3188f1(0xfa)](_0x17d0cd,_0x12c81b,_0x48d520){const _0x22cab4=_0x3188f1;return this[_0x22cab4(0xe5)](_0x17d0cd,_0x12c81b)[_0x22cab4(0x11f)][_0x22cab4(0x12c)](_0x48d520);}[_0x3188f1(0xf1)](_0x3885b6,_0x48a313,_0x49094c){const _0x193e54=_0x3188f1;return this[_0x193e54(0xe5)](_0x3885b6,_0x48a313)[_0x193e54(0xf1)](_0x49094c);}[_0x3188f1(0x11b)](_0x33e918,_0xac95ab,_0x213d9d){const _0x123370=_0x3188f1,_0x2f1a57=this[_0x123370(0xe5)](_0x33e918,_0xac95ab)[_0x123370(0x11f)][_0x123370(0x12c)](_0x213d9d);if(_0x2f1a57)return _0x2f1a57[_0x123370(0x123)]();}[_0x3188f1(0x104)](){}[_0x3188f1(0x11d)](_0x11d1ce){const _0x1a26d3=_0x3188f1,_0x45f2e2={},_0x535c68=this[_0x1a26d3(0xff)]['get'](_0x11d1ce);return _0x535c68&&_0x535c68[_0x1a26d3(0xfe)]((_0x46e8e9,_0x516c95)=>{const _0x3c353b=_0x1a26d3;_0x45f2e2[_0x516c95]=_0x46e8e9[_0x3c353b(0x12b)]();}),JSON[_0x1a26d3(0x124)](_0x45f2e2);}[_0x3188f1(0x125)](_0x43062a,_0x5d094d){const _0x3ab075=_0x3188f1;Object[_0x3ab075(0x10c)](_0x5d094d)[_0x3ab075(0xfe)](_0x3be145=>{const _0x13f309=_0x3ab075;this['_ensureShapeModelManager'](_0x43062a,_0x3be145)[_0x13f309(0x132)](_0x5d094d[_0x3be145]);});}[_0x3188f1(0x12b)](){const _0x16832a=_0x3188f1,_0x55fe81={};return this[_0x16832a(0xff)]['forEach']((_0xac5ab4,_0x446c89)=>{const _0x4ff8eb=_0x16832a;_0x55fe81[_0x446c89]={},_0xac5ab4[_0x4ff8eb(0xfe)]((_0x10708b,_0x2417ff)=>{const _0x4b96ba=_0x4ff8eb;_0x55fe81[_0x446c89][_0x2417ff]=_0x10708b[_0x4b96ba(0x12b)]();});}),_0x55fe81;}['fromJSON'](_0x1c56d4){const _0x4e80c9=_0x3188f1;Object[_0x4e80c9(0x10c)](_0x1c56d4)[_0x4e80c9(0xfe)](_0x5bc534=>{const _0x8ce338=_0x4e80c9,_0x281974=_0x1c56d4[_0x5bc534];Object[_0x8ce338(0x10c)](_0x281974)['forEach'](_0x454361=>{const _0x29962f=_0x8ce338;this[_0x29962f(0xe5)](_0x5bc534,_0x454361)[_0x29962f(0x132)](_0x281974[_0x454361]);});});}[_0x3188f1(0x120)](){const _0x11378d=_0x3188f1;this[_0x11378d(0xed)][_0x11378d(0xee)]({'pluginName':W,'businesses':[_0x455757['UNIVER_SHEET']],'toJson':_0x3903de=>this[_0x11378d(0x11d)](_0x3903de),'parseJson':_0x38e78a=>JSON[_0x11378d(0x122)](_0x38e78a),'onLoad':(_0x4fb094,_0x176c96)=>{const _0x47b0bf=_0x11378d;this[_0x47b0bf(0x125)](_0x4fb094,_0x176c96);},'onUnLoad':_0x239bb2=>{const _0x12773e=_0x11378d,_0x5f0bae=this[_0x12773e(0xff)][_0x12773e(0x12c)](_0x239bb2);_0x5f0bae&&(_0x5f0bae[_0x12773e(0xfe)](_0x3e78a1=>{const _0x40da7a=_0x12773e;_0x3e78a1[_0x40da7a(0xe9)]();}),this[_0x12773e(0xff)][_0x12773e(0xe7)](_0x239bb2));}});}[_0x3188f1(0xe9)](){const _0x184fce=_0x3188f1;this[_0x184fce(0xff)]['forEach'](_0x1af67c=>{const _0x1a9149=_0x184fce;_0x1af67c[_0x1a9149(0xfe)](_0x5ecee5=>{const _0x561345=_0x1a9149;_0x5ecee5[_0x561345(0xe9)]();});});}};i=V([K(0x0,_0x21e69a)],i);const u={'id':_0x3188f1(0xf2),'type':_0x2d4ce4[_0x3188f1(0xea)],'handler':(_0xf435b3,_0x360373)=>{const _0x5afba9=_0x3188f1,{unitId:_0x1748d2,subUnitId:_0x44b8f0,shapeType:_0x42f054,shapeId:_0x77d974,shapeData:_0x435cdd}=_0x360373,_0x1878be=_0xf435b3[_0x5afba9(0x12c)](i)[_0x5afba9(0xfa)](_0x1748d2,_0x44b8f0,_0x77d974);return _0x1878be&&(_0x1878be[_0x5afba9(0x104)](_0x42f054),_0x435cdd&&(_0x1878be==null||_0x1878be[_0x5afba9(0xf0)](_0x435cdd))),!0x0;}},pe={'id':_0x3188f1(0x105),'type':_0x2d4ce4['COMMAND'],'handler':(_0x1ee09e,_0xfcd230)=>{const _0x292ba2=_0x3188f1;if(!_0xfcd230)return!0x1;const _0x55a3bf=_0x1ee09e['get'](_0x59ad7b),_0x35c2a5=_0x1ee09e[_0x292ba2(0x12c)](i),_0x52f551=_0x1ee09e[_0x292ba2(0x12c)](_0x304727),_0x3d2592=[],_0xde04fe=[],{unitId:_0x18b62c,subUnitId:_0x10e30b,shapeId:_0x59f18f,shapeType:_0x28b839,shapeData:_0x297fa3}=_0xfcd230,_0xf8eb2a=_0x35c2a5[_0x292ba2(0xfa)](_0x18b62c,_0x10e30b,_0x59f18f);if(_0xf8eb2a){const _0x18cf9e=_0xf8eb2a['getShapeType'](),_0xa10593=Object[_0x292ba2(0x118)]({},_0xf8eb2a[_0x292ba2(0x100)]()),_0x161363={'unitId':_0x18b62c,'subUnitId':_0x10e30b,'shapeId':_0x59f18f,'shapeType':_0x28b839,'shapeData':_0x297fa3},_0x4c74d9={'unitId':_0x18b62c,'subUnitId':_0x10e30b,'shapeId':_0x59f18f,'shapeType':_0x18cf9e,'shapeData':_0xa10593};return _0x3d2592[_0x292ba2(0x121)]({'id':u['id'],'params':_0x161363}),_0xde04fe[_0x292ba2(0x121)]({'id':u['id'],'params':_0x4c74d9}),_0x3d2592[_0x292ba2(0x11e)](_0x1b92e5=>_0x55a3bf[_0x292ba2(0x106)](_0x1b92e5['id'],_0x1b92e5[_0x292ba2(0xe8)]))&&_0x52f551['pushUndoRedo']({'unitID':_0x18b62c,'redoMutations':[..._0x3d2592],'undoMutations':[..._0xde04fe]}),!0x0;}return!0x1;}},Y={'id':_0x3188f1(0x11a),'type':_0x2d4ce4[_0x3188f1(0xea)],'handler':(_0x349cef,_0x4c1e69)=>{const _0x244693=_0x3188f1,{unitId:_0x4869f0,subUnitId:_0x353729,shapeType:_0x2d3057,shapeId:_0x214241,shapeData:_0x1fcc73}=_0x4c1e69;return _0x349cef[_0x244693(0x12c)](i)['insertShape'](_0x4869f0,_0x353729,_0x2d3057,_0x214241,_0x1fcc73),!0x0;}},q={'id':_0x3188f1(0x112),'type':_0x2d4ce4['MUTATION'],'handler':(_0x10e6a4,_0x229597)=>{const _0x2b1b1b=_0x3188f1,{unitId:_0x582b61,subUnitId:_0x471d39,shapeId:_0x2cf3de}=_0x229597;return _0x10e6a4[_0x2b1b1b(0x12c)](i)[_0x2b1b1b(0x115)](_0x582b61,_0x471d39,_0x2cf3de),!0x0;}},Q={'id':_0x3188f1(0x119),'type':_0x2d4ce4[_0x3188f1(0xea)],'handler':(_0x5a9960,_0x5293de)=>{const _0x2d6b07=_0x3188f1,{unitId:_0x59f6be,subUnitId:_0x44920e,shapeType:_0x589c75,shapeId:_0x4f2a0e,shapeData:_0x34ddc6}=_0x5293de,_0x5b2c6e=_0x5a9960[_0x2d6b07(0x12c)](i)[_0x2d6b07(0xfa)](_0x59f6be,_0x44920e,_0x4f2a0e);return _0x5b2c6e&&(_0x589c75!==void 0x0&&_0x5b2c6e[_0x2d6b07(0x104)](_0x589c75),_0x34ddc6&&(_0x5b2c6e==null||_0x5b2c6e[_0x2d6b07(0xf0)](_0x34ddc6,!0x0))),!0x0;}},X=_0x3188f1(0xf6),m={};function _0x1e6c(){const _0x81095e=['from','shapeId','setShapeType','sheet.command.update-shape-type','syncExecuteCommand','711712KGXEgg','setConfig','_groupIds','753736tSGJIU','3066qzMUSs','keys','_commandService','registerCommand','_disposed','add','_injector','sheet.mutation.remove-shape','30DBTdtC','UNIVER_SHEET','removeShape','clear','_configService','assign','sheet.mutation.update-shape-data','sheet.mutation.insert-shape','getLineShapeRelation','_config','_serializeShapeForUnit','every','_shapes','_initSnapshot','push','parse','getShapeRelation','stringify','_deserializeShapeForUnit','2156658UMNPRk','SHEET_SHAPE_PLUGIN','defineProperty','2729815gCPUzf','set','toJSON','get','1266BqkMYK','onRendered','type','41985irbTLj','6239761LiWWiD','fromJSON','symbol','_initCommands','_ensureShapeModelManager','insertShape','delete','params','dispose','MUTATION','length','getShapeTypeById','_resourcesManagerService','registerPluginResource','onStarting','setShapeData','getBasicShapeRelation','sheet.mutation.update-shape-type','getOwnPropertyDescriptor','getShapeType','_linesIds','sheets-shape.config','shapeData','168NHnkvS','4WBQLqJ','getShapeModel','has','hasShape','addShape','forEach','_shapeModelManagerMap','getShapeData','getShapeDataById'];_0x1e6c=function(){return _0x81095e;};return _0x1e6c();}var Z=Object[_0x3188f1(0x128)],k=Object[_0x3188f1(0xf3)],ee=(_0x3c9970,_0xf2254,_0x492f7b)=>_0xf2254 in _0x3c9970?Z(_0x3c9970,_0xf2254,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x492f7b}):_0x3c9970[_0xf2254]=_0x492f7b,ae=(_0x4d66a4,_0x215aed,_0x2bb676,_0x2cbb8d)=>{const _0x4605f0=_0x3188f1;for(var _0x4b0a64=_0x2cbb8d>0x1?void 0x0:_0x2cbb8d?k(_0x215aed,_0x2bb676):_0x215aed,_0x4a3991=_0x4d66a4[_0x4605f0(0xeb)]-0x1,_0x463615;_0x4a3991>=0x0;_0x4a3991--)(_0x463615=_0x4d66a4[_0x4a3991])&&(_0x4b0a64=_0x463615(_0x4b0a64)||_0x4b0a64);return _0x4b0a64;},g=(_0x252edd,_0x233fab)=>(_0xebf134,_0x455cbd)=>_0x233fab(_0xebf134,_0x455cbd,_0x252edd),E=(_0x1f4c53,_0x33e64d,_0x200066)=>ee(_0x1f4c53,typeof _0x33e64d!='symbol'?_0x33e64d+'':_0x33e64d,_0x200066);const se=_0x3188f1(0x127);let S=class extends _0x2cc40e{constructor(_0x261185=m,_0xb49f2c,_0x5bbd08,_0x5a1047){const _0x32b1b3=_0x3188f1;super(),this[_0x32b1b3(0x11c)]=_0x261185,this[_0x32b1b3(0x111)]=_0xb49f2c,this[_0x32b1b3(0x10d)]=_0x5bbd08,this[_0x32b1b3(0x117)]=_0x5a1047;const {..._0xfb3749}=_0x10a4ae({},m,this[_0x32b1b3(0x11c)]);this[_0x32b1b3(0x117)][_0x32b1b3(0x108)](X,_0xfb3749),this[_0x32b1b3(0xe4)]();}[_0x3188f1(0x12e)](){const _0x39b814=_0x3188f1;_0xb129c1(this[_0x39b814(0x111)],[]);}[_0x3188f1(0xef)](){const _0x1e2831=_0x3188f1,_0x30fca4=this['_injector'];[[T],[i]][_0x1e2831(0xfe)](_0x2051af=>_0x30fca4[_0x1e2831(0x110)](_0x2051af));}[_0x3188f1(0xe4)](){const _0xed509c=_0x3188f1;[Y,q,u,Q]['forEach'](_0xbe0cbd=>this['disposeWithMe'](this[_0xed509c(0x10d)][_0xed509c(0x10e)](_0xbe0cbd)));}};E(S,_0x3188f1(0x12f),_0x455757[_0x3188f1(0x114)]),E(S,'pluginName',se),S=ae([_0x16ad9e(_0x1d23e7),g(0x1,_0xf53028(_0x274ce4)),g(0x2,_0x59ad7b),g(0x3,_0x23f57d)],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 _0x3188f1=_0x1702;(function(_0x54eb78,_0x4ab870){const _0x2d7a22=_0x1702,_0x2f3f84=_0x54eb78();while(!![]){try{const _0x25fb07=-parseInt(_0x2d7a22(0x10a))/0x1+-parseInt(_0x2d7a22(0x107))/0x2+-parseInt(_0x2d7a22(0x126))/0x3+-parseInt(_0x2d7a22(0xf9))/0x4*(-parseInt(_0x2d7a22(0x129))/0x5)+parseInt(_0x2d7a22(0x12d))/0x6*(parseInt(_0x2d7a22(0x10b))/0x7)+parseInt(_0x2d7a22(0xf8))/0x8*(-parseInt(_0x2d7a22(0x130))/0x9)+-parseInt(_0x2d7a22(0x113))/0xa*(-parseInt(_0x2d7a22(0x131))/0xb);if(_0x25fb07===_0x4ab870)break;else _0x2f3f84['push'](_0x2f3f84['shift']());}catch(_0xc4eb29){_0x2f3f84['push'](_0x2f3f84['shift']());}}}(_0x1e6c,0x64ffb));var R=Object[_0x3188f1(0x128)],C=(_0x22519f,_0x39febb,_0x3b1af1)=>_0x39febb in _0x22519f?R(_0x22519f,_0x39febb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b1af1}):_0x22519f[_0x39febb]=_0x3b1af1,d=(_0x2aa354,_0x6a218f,_0x2636ea)=>C(_0x2aa354,typeof _0x6a218f!=_0x3188f1(0xe3)?_0x6a218f+'':_0x6a218f,_0x2636ea);import{Disposable as _0x27076a,UniverInstanceType as _0x455757,IResourceManagerService as _0x21e69a,CommandType as _0x2d4ce4,ICommandService as _0x59ad7b,IUndoRedoService as _0x304727,DependentOn as _0x16ad9e,Inject as _0xf53028,Injector as _0x274ce4,Plugin as _0x2cc40e,merge as _0x10a4ae,touchDependencies as _0xb129c1,IConfigService as _0x23f57d}from'@univerjs/core';import{ShapeModel as _0x3190fc,isConnectorShape as _0x5b4547}from'@univerjs-pro/engine-shape';function _0x1702(_0x83720e,_0x244ef8){_0x83720e=_0x83720e-0xe3;const _0x1e6c45=_0x1e6c();let _0x17024c=_0x1e6c45[_0x83720e];return _0x17024c;}import{UniverLicensePlugin as _0x1d23e7}from'@univerjs-pro/license';class T extends _0x27076a{constructor(){const _0x23a377=_0x3188f1;super(),d(this,_0x23a377(0x11f),new Map()),d(this,_0x23a377(0xf5),new Set()),d(this,_0x23a377(0x109),new Set());}[_0x3188f1(0xfd)](_0x5e3a57,_0x1e7c12,_0x2e9223){const _0x55aa2f=_0x3188f1,_0x39bf63=new _0x3190fc(_0x5e3a57,_0x1e7c12,_0x2e9223);return this[_0x55aa2f(0x11f)][_0x55aa2f(0x12a)](_0x1e7c12,_0x39bf63),_0x5b4547(_0x5e3a57)&&this[_0x55aa2f(0xf5)][_0x55aa2f(0x110)](_0x1e7c12),_0x39bf63;}[_0x3188f1(0xf1)](_0x36bf44){const _0x3b4209=_0x3188f1;var _0x4d6e9c,_0x2f3725;const _0x28cd5e=[];for(const _0x1b97bf of this[_0x3b4209(0xf5)]){const _0x50a98a=this['_shapes'][_0x3b4209(0x12c)](_0x1b97bf);if(_0x50a98a){const _0x101188=_0x50a98a[_0x3b4209(0x123)]();_0x101188&&(((_0x4d6e9c=_0x101188[_0x3b4209(0x102)])==null?void 0x0:_0x4d6e9c['shapeId'])===_0x36bf44&&_0x28cd5e[_0x3b4209(0x121)]({..._0x101188[_0x3b4209(0x102)],'lineShapeId':_0x1b97bf,'isFrom':!0x0}),((_0x2f3725=_0x101188['to'])==null?void 0x0:_0x2f3725[_0x3b4209(0x103)])===_0x36bf44&&_0x28cd5e['push']({..._0x101188['to'],'lineShapeId':_0x1b97bf,'isFrom':!0x1}));}}return _0x28cd5e;}[_0x3188f1(0x11b)](_0x48a4df){const _0x2deb68=_0x3188f1,_0x5ce261=this[_0x2deb68(0x11f)][_0x2deb68(0x12c)](_0x48a4df);if(_0x5ce261)return _0x5ce261[_0x2deb68(0x123)]();}[_0x3188f1(0xf4)](_0x399a23){const _0x1335b2=_0x3188f1,_0x12657b=this[_0x1335b2(0x11f)][_0x1335b2(0x12c)](_0x399a23);if(_0x12657b)return _0x12657b[_0x1335b2(0xf4)]();}[_0x3188f1(0xfc)](_0x37ba1e){const _0x1b405b=_0x3188f1;return this[_0x1b405b(0x11f)][_0x1b405b(0xfb)](_0x37ba1e);}['removeShape'](_0x573cdc){const _0x22df07=_0x3188f1,_0xd5cc1=this[_0x22df07(0x11f)][_0x22df07(0x12c)](_0x573cdc);_0xd5cc1&&(_0x5b4547(_0xd5cc1[_0x22df07(0xf4)]())&&this['_linesIds'][_0x22df07(0xe7)](_0x573cdc),this[_0x22df07(0x11f)]['delete'](_0x573cdc));}[_0x3188f1(0x12b)](){const _0x5c2e0b=_0x3188f1,_0x3e2043=[];return this[_0x5c2e0b(0x11f)][_0x5c2e0b(0xfe)](_0x5b6674=>{const _0x1253ce=_0x5c2e0b;_0x3e2043['push'](_0x5b6674[_0x1253ce(0x12b)]());}),_0x3e2043;}[_0x3188f1(0x132)](_0x770c9e){const _0x4a35a7=_0x3188f1;for(const _0x3c6763 of _0x770c9e){const {id:_0x12f50e,shapeType:_0x16eeb5}=_0x3c6763,_0x2b0bf7=this[_0x4a35a7(0xfd)](_0x16eeb5,_0x12f50e,_0x3c6763[_0x4a35a7(0xf7)]);_0x2b0bf7&&_0x2b0bf7['isLineShape']()&&this[_0x4a35a7(0xf5)][_0x4a35a7(0x110)](_0x12f50e);}}['dispose'](){const _0x3ba0c5=_0x3188f1;this[_0x3ba0c5(0x10f)]||(this[_0x3ba0c5(0x11f)][_0x3ba0c5(0xfe)](_0x12de40=>{const _0x38a74d=_0x3ba0c5;_0x12de40[_0x38a74d(0xe9)]();}),this[_0x3ba0c5(0x11f)][_0x3ba0c5(0x116)](),this[_0x3ba0c5(0xf5)][_0x3ba0c5(0x116)](),this[_0x3ba0c5(0x109)][_0x3ba0c5(0x116)](),super['dispose']());}}var $=Object[_0x3188f1(0xf3)],V=(_0x2db078,_0x178d5d,_0x5703dc,_0x3f2d49)=>{for(var _0x2de788=_0x3f2d49>0x1?void 0x0:_0x3f2d49?$(_0x178d5d,_0x5703dc):_0x178d5d,_0x1f7c83=_0x2db078['length']-0x1,_0x51e19e;_0x1f7c83>=0x0;_0x1f7c83--)(_0x51e19e=_0x2db078[_0x1f7c83])&&(_0x2de788=_0x51e19e(_0x2de788)||_0x2de788);return _0x2de788;},K=(_0x2a89a5,_0xf5d2ee)=>(_0x487592,_0x4dddc0)=>_0xf5d2ee(_0x487592,_0x4dddc0,_0x2a89a5);const W=_0x3188f1(0x127);let i=class extends _0x27076a{constructor(_0x28825a){const _0x1596da=_0x3188f1;super(),d(this,_0x1596da(0xff),new Map()),(this[_0x1596da(0xed)]=_0x28825a,this[_0x1596da(0x120)]());}[_0x3188f1(0xe5)](_0x1463f8,_0x55db4f){const _0x251ddd=_0x3188f1;let _0x48eb57=this[_0x251ddd(0xff)][_0x251ddd(0x12c)](_0x1463f8);_0x48eb57||(_0x48eb57=new Map(),this[_0x251ddd(0xff)][_0x251ddd(0x12a)](_0x1463f8,_0x48eb57));let _0x13db78=_0x48eb57['get'](_0x55db4f);return _0x13db78||(_0x13db78=new T(),_0x48eb57[_0x251ddd(0x12a)](_0x55db4f,_0x13db78)),_0x13db78;}[_0x3188f1(0xe6)](_0x3446a1,_0x14a932,_0x271bde,_0xc96b27,_0x398363){const _0x292783=_0x3188f1;this[_0x292783(0xe5)](_0x3446a1,_0x14a932)['addShape'](_0x271bde,_0xc96b27,_0x398363);}[_0x3188f1(0x115)](_0x4717cb,_0x2898f4,_0x304cf0){const _0x2a6631=_0x3188f1;this[_0x2a6631(0xe5)](_0x4717cb,_0x2898f4)[_0x2a6631(0x115)](_0x304cf0);}['getBasicShapeType'](_0x268428,_0x5589ad,_0xeca733){const _0x164ed1=_0x3188f1;return this['_ensureShapeModelManager'](_0x268428,_0x5589ad)[_0x164ed1(0xf4)](_0xeca733);}[_0x3188f1(0xf4)](_0x9f7266,_0x557460,_0x292f90){const _0x4ff4e1=_0x3188f1;return this[_0x4ff4e1(0xe5)](_0x9f7266,_0x557460)[_0x4ff4e1(0xf4)](_0x292f90);}[_0x3188f1(0xfc)](_0x597934,_0x12334d,_0x5e4cbe){const _0x4a2a5b=_0x3188f1;return this[_0x4a2a5b(0xe5)](_0x597934,_0x12334d)[_0x4a2a5b(0xfc)](_0x5e4cbe);}[_0x3188f1(0xec)](_0x326521,_0x410ff6,_0x560f20){const _0xf9bb0e=_0x3188f1;return this[_0xf9bb0e(0xe5)](_0x326521,_0x410ff6)[_0xf9bb0e(0xf4)](_0x560f20);}[_0x3188f1(0x101)](_0x3d60f9,_0x5a487d,_0x3f15cb){const _0x1c24e8=_0x3188f1,_0x4a6fda=this[_0x1c24e8(0xe5)](_0x3d60f9,_0x5a487d);if(!_0x4a6fda[_0x1c24e8(0xf4)](_0x3f15cb))return;const _0x4fc7b6=_0x4a6fda['_shapes'][_0x1c24e8(0x12c)](_0x3f15cb);if(_0x4fc7b6)return _0x4fc7b6[_0x1c24e8(0x100)]();}[_0x3188f1(0xfa)](_0x17d0cd,_0x12c81b,_0x48d520){const _0x22cab4=_0x3188f1;return this[_0x22cab4(0xe5)](_0x17d0cd,_0x12c81b)[_0x22cab4(0x11f)][_0x22cab4(0x12c)](_0x48d520);}[_0x3188f1(0xf1)](_0x3885b6,_0x48a313,_0x49094c){const _0x193e54=_0x3188f1;return this[_0x193e54(0xe5)](_0x3885b6,_0x48a313)[_0x193e54(0xf1)](_0x49094c);}[_0x3188f1(0x11b)](_0x33e918,_0xac95ab,_0x213d9d){const _0x123370=_0x3188f1,_0x2f1a57=this[_0x123370(0xe5)](_0x33e918,_0xac95ab)[_0x123370(0x11f)][_0x123370(0x12c)](_0x213d9d);if(_0x2f1a57)return _0x2f1a57[_0x123370(0x123)]();}[_0x3188f1(0x104)](){}[_0x3188f1(0x11d)](_0x11d1ce){const _0x1a26d3=_0x3188f1,_0x45f2e2={},_0x535c68=this[_0x1a26d3(0xff)]['get'](_0x11d1ce);return _0x535c68&&_0x535c68[_0x1a26d3(0xfe)]((_0x46e8e9,_0x516c95)=>{const _0x3c353b=_0x1a26d3;_0x45f2e2[_0x516c95]=_0x46e8e9[_0x3c353b(0x12b)]();}),JSON[_0x1a26d3(0x124)](_0x45f2e2);}[_0x3188f1(0x125)](_0x43062a,_0x5d094d){const _0x3ab075=_0x3188f1;Object[_0x3ab075(0x10c)](_0x5d094d)[_0x3ab075(0xfe)](_0x3be145=>{const _0x13f309=_0x3ab075;this['_ensureShapeModelManager'](_0x43062a,_0x3be145)[_0x13f309(0x132)](_0x5d094d[_0x3be145]);});}[_0x3188f1(0x12b)](){const _0x16832a=_0x3188f1,_0x55fe81={};return this[_0x16832a(0xff)]['forEach']((_0xac5ab4,_0x446c89)=>{const _0x4ff8eb=_0x16832a;_0x55fe81[_0x446c89]={},_0xac5ab4[_0x4ff8eb(0xfe)]((_0x10708b,_0x2417ff)=>{const _0x4b96ba=_0x4ff8eb;_0x55fe81[_0x446c89][_0x2417ff]=_0x10708b[_0x4b96ba(0x12b)]();});}),_0x55fe81;}['fromJSON'](_0x1c56d4){const _0x4e80c9=_0x3188f1;Object[_0x4e80c9(0x10c)](_0x1c56d4)[_0x4e80c9(0xfe)](_0x5bc534=>{const _0x8ce338=_0x4e80c9,_0x281974=_0x1c56d4[_0x5bc534];Object[_0x8ce338(0x10c)](_0x281974)['forEach'](_0x454361=>{const _0x29962f=_0x8ce338;this[_0x29962f(0xe5)](_0x5bc534,_0x454361)[_0x29962f(0x132)](_0x281974[_0x454361]);});});}[_0x3188f1(0x120)](){const _0x11378d=_0x3188f1;this[_0x11378d(0xed)][_0x11378d(0xee)]({'pluginName':W,'businesses':[_0x455757['UNIVER_SHEET']],'toJson':_0x3903de=>this[_0x11378d(0x11d)](_0x3903de),'parseJson':_0x38e78a=>JSON[_0x11378d(0x122)](_0x38e78a),'onLoad':(_0x4fb094,_0x176c96)=>{const _0x47b0bf=_0x11378d;this[_0x47b0bf(0x125)](_0x4fb094,_0x176c96);},'onUnLoad':_0x239bb2=>{const _0x12773e=_0x11378d,_0x5f0bae=this[_0x12773e(0xff)][_0x12773e(0x12c)](_0x239bb2);_0x5f0bae&&(_0x5f0bae[_0x12773e(0xfe)](_0x3e78a1=>{const _0x40da7a=_0x12773e;_0x3e78a1[_0x40da7a(0xe9)]();}),this[_0x12773e(0xff)][_0x12773e(0xe7)](_0x239bb2));}});}[_0x3188f1(0xe9)](){const _0x184fce=_0x3188f1;this[_0x184fce(0xff)]['forEach'](_0x1af67c=>{const _0x1a9149=_0x184fce;_0x1af67c[_0x1a9149(0xfe)](_0x5ecee5=>{const _0x561345=_0x1a9149;_0x5ecee5[_0x561345(0xe9)]();});});}};i=V([K(0x0,_0x21e69a)],i);const u={'id':_0x3188f1(0xf2),'type':_0x2d4ce4[_0x3188f1(0xea)],'handler':(_0xf435b3,_0x360373)=>{const _0x5afba9=_0x3188f1,{unitId:_0x1748d2,subUnitId:_0x44b8f0,shapeType:_0x42f054,shapeId:_0x77d974,shapeData:_0x435cdd}=_0x360373,_0x1878be=_0xf435b3[_0x5afba9(0x12c)](i)[_0x5afba9(0xfa)](_0x1748d2,_0x44b8f0,_0x77d974);return _0x1878be&&(_0x1878be[_0x5afba9(0x104)](_0x42f054),_0x435cdd&&(_0x1878be==null||_0x1878be[_0x5afba9(0xf0)](_0x435cdd))),!0x0;}},pe={'id':_0x3188f1(0x105),'type':_0x2d4ce4['COMMAND'],'handler':(_0x1ee09e,_0xfcd230)=>{const _0x292ba2=_0x3188f1;if(!_0xfcd230)return!0x1;const _0x55a3bf=_0x1ee09e['get'](_0x59ad7b),_0x35c2a5=_0x1ee09e[_0x292ba2(0x12c)](i),_0x52f551=_0x1ee09e[_0x292ba2(0x12c)](_0x304727),_0x3d2592=[],_0xde04fe=[],{unitId:_0x18b62c,subUnitId:_0x10e30b,shapeId:_0x59f18f,shapeType:_0x28b839,shapeData:_0x297fa3}=_0xfcd230,_0xf8eb2a=_0x35c2a5[_0x292ba2(0xfa)](_0x18b62c,_0x10e30b,_0x59f18f);if(_0xf8eb2a){const _0x18cf9e=_0xf8eb2a['getShapeType'](),_0xa10593=Object[_0x292ba2(0x118)]({},_0xf8eb2a[_0x292ba2(0x100)]()),_0x161363={'unitId':_0x18b62c,'subUnitId':_0x10e30b,'shapeId':_0x59f18f,'shapeType':_0x28b839,'shapeData':_0x297fa3},_0x4c74d9={'unitId':_0x18b62c,'subUnitId':_0x10e30b,'shapeId':_0x59f18f,'shapeType':_0x18cf9e,'shapeData':_0xa10593};return _0x3d2592[_0x292ba2(0x121)]({'id':u['id'],'params':_0x161363}),_0xde04fe[_0x292ba2(0x121)]({'id':u['id'],'params':_0x4c74d9}),_0x3d2592[_0x292ba2(0x11e)](_0x1b92e5=>_0x55a3bf[_0x292ba2(0x106)](_0x1b92e5['id'],_0x1b92e5[_0x292ba2(0xe8)]))&&_0x52f551['pushUndoRedo']({'unitID':_0x18b62c,'redoMutations':[..._0x3d2592],'undoMutations':[..._0xde04fe]}),!0x0;}return!0x1;}},Y={'id':_0x3188f1(0x11a),'type':_0x2d4ce4[_0x3188f1(0xea)],'handler':(_0x349cef,_0x4c1e69)=>{const _0x244693=_0x3188f1,{unitId:_0x4869f0,subUnitId:_0x353729,shapeType:_0x2d3057,shapeId:_0x214241,shapeData:_0x1fcc73}=_0x4c1e69;return _0x349cef[_0x244693(0x12c)](i)['insertShape'](_0x4869f0,_0x353729,_0x2d3057,_0x214241,_0x1fcc73),!0x0;}},q={'id':_0x3188f1(0x112),'type':_0x2d4ce4['MUTATION'],'handler':(_0x10e6a4,_0x229597)=>{const _0x2b1b1b=_0x3188f1,{unitId:_0x582b61,subUnitId:_0x471d39,shapeId:_0x2cf3de}=_0x229597;return _0x10e6a4[_0x2b1b1b(0x12c)](i)[_0x2b1b1b(0x115)](_0x582b61,_0x471d39,_0x2cf3de),!0x0;}},Q={'id':_0x3188f1(0x119),'type':_0x2d4ce4[_0x3188f1(0xea)],'handler':(_0x5a9960,_0x5293de)=>{const _0x2d6b07=_0x3188f1,{unitId:_0x59f6be,subUnitId:_0x44920e,shapeType:_0x589c75,shapeId:_0x4f2a0e,shapeData:_0x34ddc6}=_0x5293de,_0x5b2c6e=_0x5a9960[_0x2d6b07(0x12c)](i)[_0x2d6b07(0xfa)](_0x59f6be,_0x44920e,_0x4f2a0e);return _0x5b2c6e&&(_0x589c75!==void 0x0&&_0x5b2c6e[_0x2d6b07(0x104)](_0x589c75),_0x34ddc6&&(_0x5b2c6e==null||_0x5b2c6e[_0x2d6b07(0xf0)](_0x34ddc6,!0x0))),!0x0;}},X=_0x3188f1(0xf6),m={};function _0x1e6c(){const _0x81095e=['from','shapeId','setShapeType','sheet.command.update-shape-type','syncExecuteCommand','711712KGXEgg','setConfig','_groupIds','753736tSGJIU','3066qzMUSs','keys','_commandService','registerCommand','_disposed','add','_injector','sheet.mutation.remove-shape','30DBTdtC','UNIVER_SHEET','removeShape','clear','_configService','assign','sheet.mutation.update-shape-data','sheet.mutation.insert-shape','getLineShapeRelation','_config','_serializeShapeForUnit','every','_shapes','_initSnapshot','push','parse','getShapeRelation','stringify','_deserializeShapeForUnit','2156658UMNPRk','SHEET_SHAPE_PLUGIN','defineProperty','2729815gCPUzf','set','toJSON','get','1266BqkMYK','onRendered','type','41985irbTLj','6239761LiWWiD','fromJSON','symbol','_initCommands','_ensureShapeModelManager','insertShape','delete','params','dispose','MUTATION','length','getShapeTypeById','_resourcesManagerService','registerPluginResource','onStarting','setShapeData','getBasicShapeRelation','sheet.mutation.update-shape-type','getOwnPropertyDescriptor','getShapeType','_linesIds','sheets-shape.config','shapeData','168NHnkvS','4WBQLqJ','getShapeModel','has','hasShape','addShape','forEach','_shapeModelManagerMap','getShapeData','getShapeDataById'];_0x1e6c=function(){return _0x81095e;};return _0x1e6c();}var Z=Object[_0x3188f1(0x128)],k=Object[_0x3188f1(0xf3)],ee=(_0x3c9970,_0xf2254,_0x492f7b)=>_0xf2254 in _0x3c9970?Z(_0x3c9970,_0xf2254,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x492f7b}):_0x3c9970[_0xf2254]=_0x492f7b,ae=(_0x4d66a4,_0x215aed,_0x2bb676,_0x2cbb8d)=>{const _0x4605f0=_0x3188f1;for(var _0x4b0a64=_0x2cbb8d>0x1?void 0x0:_0x2cbb8d?k(_0x215aed,_0x2bb676):_0x215aed,_0x4a3991=_0x4d66a4[_0x4605f0(0xeb)]-0x1,_0x463615;_0x4a3991>=0x0;_0x4a3991--)(_0x463615=_0x4d66a4[_0x4a3991])&&(_0x4b0a64=_0x463615(_0x4b0a64)||_0x4b0a64);return _0x4b0a64;},g=(_0x252edd,_0x233fab)=>(_0xebf134,_0x455cbd)=>_0x233fab(_0xebf134,_0x455cbd,_0x252edd),E=(_0x1f4c53,_0x33e64d,_0x200066)=>ee(_0x1f4c53,typeof _0x33e64d!='symbol'?_0x33e64d+'':_0x33e64d,_0x200066);const se=_0x3188f1(0x127);let S=class extends _0x2cc40e{constructor(_0x261185=m,_0xb49f2c,_0x5bbd08,_0x5a1047){const _0x32b1b3=_0x3188f1;super(),this[_0x32b1b3(0x11c)]=_0x261185,this[_0x32b1b3(0x111)]=_0xb49f2c,this[_0x32b1b3(0x10d)]=_0x5bbd08,this[_0x32b1b3(0x117)]=_0x5a1047;const {..._0xfb3749}=_0x10a4ae({},m,this[_0x32b1b3(0x11c)]);this[_0x32b1b3(0x117)][_0x32b1b3(0x108)](X,_0xfb3749),this[_0x32b1b3(0xe4)]();}[_0x3188f1(0x12e)](){const _0x39b814=_0x3188f1;_0xb129c1(this[_0x39b814(0x111)],[]);}[_0x3188f1(0xef)](){const _0x1e2831=_0x3188f1,_0x30fca4=this['_injector'];[[T],[i]][_0x1e2831(0xfe)](_0x2051af=>_0x30fca4[_0x1e2831(0x110)](_0x2051af));}[_0x3188f1(0xe4)](){const _0xed509c=_0x3188f1;[Y,q,u,Q]['forEach'](_0xbe0cbd=>this['disposeWithMe'](this[_0xed509c(0x10d)][_0xed509c(0x10e)](_0xbe0cbd)));}};E(S,_0x3188f1(0x12f),_0x455757[_0x3188f1(0x114)]),E(S,'pluginName',se),S=ae([_0x16ad9e(_0x1d23e7),g(0x1,_0xf53028(_0x274ce4)),g(0x2,_0x59ad7b),g(0x3,_0x23f57d)],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(_0x31c444,_0x11aee2){const _0x4c3b00=_0x3388,_0x384b33=_0x31c444();while(!![]){try{const _0x571d3b=-parseInt(_0x4c3b00(0x1ff))/0x1+parseInt(_0x4c3b00(0x21d))/0x2+parseInt(_0x4c3b00(0x236))/0x3+parseInt(_0x4c3b00(0x1eb))/0x4*(-parseInt(_0x4c3b00(0x202))/0x5)+-parseInt(_0x4c3b00(0x210))/0x6*(parseInt(_0x4c3b00(0x21e))/0x7)+-parseInt(_0x4c3b00(0x1ed))/0x8+parseInt(_0x4c3b00(0x1f6))/0x9;if(_0x571d3b===_0x11aee2)break;else _0x384b33['push'](_0x384b33['shift']());}catch(_0x38a7ad){_0x384b33['push'](_0x384b33['shift']());}}}(_0x3518,0xb8c7d),function(_0x42faea,_0x216de8){const _0x5ab07a=_0x3388;typeof exports==_0x5ab07a(0x1ec)&&typeof module<'u'?_0x216de8(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x5ab07a(0x214)&&define[_0x5ab07a(0x233)]?define(['exports','@univerjs/core',_0x5ab07a(0x1ce),_0x5ab07a(0x22f)],_0x216de8):(_0x42faea=typeof globalThis<'u'?globalThis:_0x42faea||self,_0x216de8(_0x42faea[_0x5ab07a(0x227)]={},_0x42faea[_0x5ab07a(0x20c)],_0x42faea[_0x5ab07a(0x201)],_0x42faea[_0x5ab07a(0x1ee)]));}(this,function(_0x356ed4,_0x4cf87b,_0x715857,_0x3a75a2){'use strict';const _0x1c4e9c=_0x3388;var _0x227523=Object[_0x1c4e9c(0x235)],_0xef0799=(_0x37b939,_0x1bd550,_0x21a445)=>_0x1bd550 in _0x37b939?_0x227523(_0x37b939,_0x1bd550,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21a445}):_0x37b939[_0x1bd550]=_0x21a445,_0xf2c802=(_0xca8c49,_0x4365a2,_0x2813b6)=>_0xef0799(_0xca8c49,typeof _0x4365a2!=_0x1c4e9c(0x213)?_0x4365a2+'':_0x4365a2,_0x2813b6);class _0x3bc6bf extends _0x4cf87b[_0x1c4e9c(0x1d1)]{constructor(){const _0x101a49=_0x1c4e9c;super(),_0xf2c802(this,_0x101a49(0x1d4),new Map()),_0xf2c802(this,_0x101a49(0x1d2),new Set()),_0xf2c802(this,_0x101a49(0x1e8),new Set());}[_0x1c4e9c(0x234)](_0x2089b4,_0x30591c,_0x25b1b4){const _0x4bf435=_0x1c4e9c,_0x47c1c0=new _0x715857[(_0x4bf435(0x204))](_0x2089b4,_0x30591c,_0x25b1b4);return this[_0x4bf435(0x1d4)][_0x4bf435(0x1e5)](_0x30591c,_0x47c1c0),_0x715857[_0x4bf435(0x20e)](_0x2089b4)&&this[_0x4bf435(0x1d2)]['add'](_0x30591c),_0x47c1c0;}['getBasicShapeRelation'](_0x2f4cf4){const _0x1f02eb=_0x1c4e9c;var _0x596cf4,_0x2ab16d;const _0x44872a=[];for(const _0x4c5869 of this[_0x1f02eb(0x1d2)]){const _0x156280=this[_0x1f02eb(0x1d4)][_0x1f02eb(0x226)](_0x4c5869);if(_0x156280){const _0x2e55f9=_0x156280[_0x1f02eb(0x231)]();_0x2e55f9&&(((_0x596cf4=_0x2e55f9['from'])==null?void 0x0:_0x596cf4['shapeId'])===_0x2f4cf4&&_0x44872a[_0x1f02eb(0x1da)]({..._0x2e55f9['from'],'lineShapeId':_0x4c5869,'isFrom':!0x0}),((_0x2ab16d=_0x2e55f9['to'])==null?void 0x0:_0x2ab16d['shapeId'])===_0x2f4cf4&&_0x44872a[_0x1f02eb(0x1da)]({..._0x2e55f9['to'],'lineShapeId':_0x4c5869,'isFrom':!0x1}));}}return _0x44872a;}[_0x1c4e9c(0x222)](_0x195b56){const _0x87b05a=_0x1c4e9c,_0xa89dc0=this[_0x87b05a(0x1d4)][_0x87b05a(0x226)](_0x195b56);if(_0xa89dc0)return _0xa89dc0['getShapeRelation']();}['getShapeType'](_0x2ace76){const _0x1b7d1f=_0x1c4e9c,_0x5bb1a7=this[_0x1b7d1f(0x1d4)][_0x1b7d1f(0x226)](_0x2ace76);if(_0x5bb1a7)return _0x5bb1a7['getShapeType']();}[_0x1c4e9c(0x209)](_0x9ca329){const _0x1bcd04=_0x1c4e9c;return this[_0x1bcd04(0x1d4)][_0x1bcd04(0x217)](_0x9ca329);}['removeShape'](_0x1427e7){const _0x1b701a=_0x1c4e9c,_0x103b37=this[_0x1b701a(0x1d4)][_0x1b701a(0x226)](_0x1427e7);_0x103b37&&(_0x715857['isConnectorShape'](_0x103b37[_0x1b701a(0x22e)]())&&this['_linesIds'][_0x1b701a(0x1ea)](_0x1427e7),this[_0x1b701a(0x1d4)][_0x1b701a(0x1ea)](_0x1427e7));}[_0x1c4e9c(0x1e2)](){const _0x53b4e5=[];return this['_shapes']['forEach'](_0x4932df=>{const _0x558cb7=_0x3388;_0x53b4e5['push'](_0x4932df[_0x558cb7(0x1e2)]());}),_0x53b4e5;}[_0x1c4e9c(0x22b)](_0x95ce45){const _0x201820=_0x1c4e9c;for(const _0xe9410c of _0x95ce45){const {id:_0x38df3d,shapeType:_0x448415}=_0xe9410c,_0x5a1d5e=this[_0x201820(0x234)](_0x448415,_0x38df3d,_0xe9410c[_0x201820(0x1e6)]);_0x5a1d5e&&_0x5a1d5e['isLineShape']()&&this[_0x201820(0x1d2)]['add'](_0x38df3d);}}[_0x1c4e9c(0x221)](){const _0x33b9f2=_0x1c4e9c;this[_0x33b9f2(0x1f9)]||(this[_0x33b9f2(0x1d4)][_0x33b9f2(0x1f8)](_0xc710fb=>{const _0xe7daa6=_0x33b9f2;_0xc710fb[_0xe7daa6(0x221)]();}),this[_0x33b9f2(0x1d4)][_0x33b9f2(0x216)](),this[_0x33b9f2(0x1d2)]['clear'](),this['_groupIds'][_0x33b9f2(0x216)](),super[_0x33b9f2(0x221)]());}}var _0x33cd17=Object[_0x1c4e9c(0x1f0)],_0x49c3f9=(_0x11cecf,_0x3b0be0,_0x1c98b3,_0x5bf04e)=>{const _0x16cda1=_0x1c4e9c;for(var _0x5550f3=_0x5bf04e>0x1?void 0x0:_0x5bf04e?_0x33cd17(_0x3b0be0,_0x1c98b3):_0x3b0be0,_0x1604a4=_0x11cecf[_0x16cda1(0x232)]-0x1,_0xcad78b;_0x1604a4>=0x0;_0x1604a4--)(_0xcad78b=_0x11cecf[_0x1604a4])&&(_0x5550f3=_0xcad78b(_0x5550f3)||_0x5550f3);return _0x5550f3;},_0x300f62=(_0x55110b,_0x2acfb7)=>(_0x5633c9,_0x37ab70)=>_0x2acfb7(_0x5633c9,_0x37ab70,_0x55110b);const _0x2e17ab='SHEET_SHAPE_PLUGIN';_0x356ed4['SheetsShapeServices']=class extends _0x4cf87b[_0x1c4e9c(0x1d1)]{constructor(_0x29aeb7){const _0x33f0af=_0x1c4e9c;super(),_0xf2c802(this,_0x33f0af(0x1e4),new Map()),(this[_0x33f0af(0x1d6)]=_0x29aeb7,this['_initSnapshot']());}[_0x1c4e9c(0x21f)](_0x1cd634,_0x376773){const _0x1a85dd=_0x1c4e9c;let _0x28418b=this[_0x1a85dd(0x1e4)][_0x1a85dd(0x226)](_0x1cd634);_0x28418b||(_0x28418b=new Map(),this['_shapeModelManagerMap'][_0x1a85dd(0x1e5)](_0x1cd634,_0x28418b));let _0x4c14f8=_0x28418b['get'](_0x376773);return _0x4c14f8||(_0x4c14f8=new _0x3bc6bf(),_0x28418b['set'](_0x376773,_0x4c14f8)),_0x4c14f8;}['insertShape'](_0x2a9c18,_0xce0f92,_0x43379b,_0x50f96b,_0x35631f){const _0x21b42b=_0x1c4e9c;this[_0x21b42b(0x21f)](_0x2a9c18,_0xce0f92)[_0x21b42b(0x234)](_0x43379b,_0x50f96b,_0x35631f);}[_0x1c4e9c(0x1df)](_0x269c0f,_0x4894fd,_0x59e37d){const _0x41aba2=_0x1c4e9c;this['_ensureShapeModelManager'](_0x269c0f,_0x4894fd)[_0x41aba2(0x1df)](_0x59e37d);}['getBasicShapeType'](_0x448842,_0xc48815,_0x4b5d74){const _0x2c5d27=_0x1c4e9c;return this[_0x2c5d27(0x21f)](_0x448842,_0xc48815)[_0x2c5d27(0x22e)](_0x4b5d74);}[_0x1c4e9c(0x22e)](_0xd917c1,_0x4744a6,_0x23a1ba){const _0x348c47=_0x1c4e9c;return this['_ensureShapeModelManager'](_0xd917c1,_0x4744a6)[_0x348c47(0x22e)](_0x23a1ba);}[_0x1c4e9c(0x209)](_0x1ef929,_0x55d78e,_0x3aa3fa){const _0x7f7250=_0x1c4e9c;return this[_0x7f7250(0x21f)](_0x1ef929,_0x55d78e)[_0x7f7250(0x209)](_0x3aa3fa);}[_0x1c4e9c(0x22c)](_0x47e3df,_0x298880,_0x4ba623){const _0xa4bb6b=_0x1c4e9c;return this[_0xa4bb6b(0x21f)](_0x47e3df,_0x298880)[_0xa4bb6b(0x22e)](_0x4ba623);}[_0x1c4e9c(0x20a)](_0x29dfb3,_0x44129b,_0x125b4f){const _0x579965=_0x1c4e9c,_0x377079=this[_0x579965(0x21f)](_0x29dfb3,_0x44129b);if(!_0x377079['getShapeType'](_0x125b4f))return;const _0x220014=_0x377079[_0x579965(0x1d4)][_0x579965(0x226)](_0x125b4f);if(_0x220014)return _0x220014[_0x579965(0x228)]();}[_0x1c4e9c(0x1e3)](_0x47570f,_0x1a7b96,_0x3812e6){const _0x4d4f77=_0x1c4e9c;return this['_ensureShapeModelManager'](_0x47570f,_0x1a7b96)[_0x4d4f77(0x1d4)][_0x4d4f77(0x226)](_0x3812e6);}[_0x1c4e9c(0x220)](_0x39f5e7,_0x541cbb,_0x27c0ed){const _0x30267e=_0x1c4e9c;return this[_0x30267e(0x21f)](_0x39f5e7,_0x541cbb)[_0x30267e(0x220)](_0x27c0ed);}[_0x1c4e9c(0x222)](_0x4b6e5a,_0x330682,_0xf289fb){const _0xff8b55=_0x1c4e9c,_0x40c29d=this[_0xff8b55(0x21f)](_0x4b6e5a,_0x330682)[_0xff8b55(0x1d4)][_0xff8b55(0x226)](_0xf289fb);if(_0x40c29d)return _0x40c29d['getShapeRelation']();}[_0x1c4e9c(0x20d)](){}[_0x1c4e9c(0x1fe)](_0x1dcc62){const _0xa56354=_0x1c4e9c,_0x431dc4={},_0x4aa60d=this['_shapeModelManagerMap'][_0xa56354(0x226)](_0x1dcc62);return _0x4aa60d&&_0x4aa60d[_0xa56354(0x1f8)]((_0x9a0916,_0x4d78b2)=>{const _0x2b52c4=_0xa56354;_0x431dc4[_0x4d78b2]=_0x9a0916[_0x2b52c4(0x1e2)]();}),JSON['stringify'](_0x431dc4);}[_0x1c4e9c(0x219)](_0x28e731,_0x4ca8d6){const _0xa90a81=_0x1c4e9c;Object[_0xa90a81(0x1dd)](_0x4ca8d6)[_0xa90a81(0x1f8)](_0x21977a=>{const _0x42fa86=_0xa90a81;this[_0x42fa86(0x21f)](_0x28e731,_0x21977a)['fromJSON'](_0x4ca8d6[_0x21977a]);});}[_0x1c4e9c(0x1e2)](){const _0x4bf055=_0x1c4e9c,_0x3c3025={};return this[_0x4bf055(0x1e4)][_0x4bf055(0x1f8)]((_0x3f3617,_0x43a90e)=>{const _0x2c338c=_0x4bf055;_0x3c3025[_0x43a90e]={},_0x3f3617[_0x2c338c(0x1f8)]((_0x522db8,_0xeefc78)=>{const _0x2c1d76=_0x2c338c;_0x3c3025[_0x43a90e][_0xeefc78]=_0x522db8[_0x2c1d76(0x1e2)]();});}),_0x3c3025;}['fromJSON'](_0x12e849){const _0x44a5ce=_0x1c4e9c;Object[_0x44a5ce(0x1dd)](_0x12e849)[_0x44a5ce(0x1f8)](_0x57a7bb=>{const _0x6e805c=_0x44a5ce,_0x234910=_0x12e849[_0x57a7bb];Object[_0x6e805c(0x1dd)](_0x234910)[_0x6e805c(0x1f8)](_0x3c616c=>{const _0x5ad2df=_0x6e805c;this[_0x5ad2df(0x21f)](_0x57a7bb,_0x3c616c)[_0x5ad2df(0x22b)](_0x234910[_0x3c616c]);});});}[_0x1c4e9c(0x20b)](){const _0x327c49=_0x1c4e9c;this[_0x327c49(0x1d6)][_0x327c49(0x20f)]({'pluginName':_0x2e17ab,'businesses':[_0x4cf87b['UniverInstanceType'][_0x327c49(0x1ef)]],'toJson':_0x9950b2=>this[_0x327c49(0x1fe)](_0x9950b2),'parseJson':_0x55d15d=>JSON[_0x327c49(0x207)](_0x55d15d),'onLoad':(_0x1cd1ba,_0x12a85c)=>{const _0x1f77a5=_0x327c49;this[_0x1f77a5(0x219)](_0x1cd1ba,_0x12a85c);},'onUnLoad':_0x43dfbb=>{const _0x511d4c=_0x327c49,_0x18a885=this[_0x511d4c(0x1e4)][_0x511d4c(0x226)](_0x43dfbb);_0x18a885&&(_0x18a885[_0x511d4c(0x1f8)](_0x30329d=>{const _0x251467=_0x511d4c;_0x30329d[_0x251467(0x221)]();}),this[_0x511d4c(0x1e4)][_0x511d4c(0x1ea)](_0x43dfbb));}});}[_0x1c4e9c(0x221)](){const _0x1008d8=_0x1c4e9c;this[_0x1008d8(0x1e4)][_0x1008d8(0x1f8)](_0x3091d8=>{const _0x426027=_0x1008d8;_0x3091d8[_0x426027(0x1f8)](_0x5e7e86=>{_0x5e7e86['dispose']();});});}},_0x356ed4[_0x1c4e9c(0x200)]=_0x49c3f9([_0x300f62(0x0,_0x4cf87b[_0x1c4e9c(0x218)])],_0x356ed4[_0x1c4e9c(0x200)]);const _0x2ef461={'id':_0x1c4e9c(0x1cf),'type':_0x4cf87b[_0x1c4e9c(0x1d5)][_0x1c4e9c(0x215)],'handler':(_0x188556,_0x34780f)=>{const _0x26890e=_0x1c4e9c,{unitId:_0x302b27,subUnitId:_0xaef4b8,shapeType:_0x503362,shapeId:_0x25f57b,shapeData:_0x1a7465}=_0x34780f,_0x460912=_0x188556[_0x26890e(0x226)](_0x356ed4[_0x26890e(0x200)])['getShapeModel'](_0x302b27,_0xaef4b8,_0x25f57b);return _0x460912&&(_0x460912[_0x26890e(0x20d)](_0x503362),_0x1a7465&&(_0x460912==null||_0x460912[_0x26890e(0x22d)](_0x1a7465))),!0x0;}},_0x5e878d={'id':_0x1c4e9c(0x205),'type':_0x4cf87b[_0x1c4e9c(0x1d5)]['COMMAND'],'handler':(_0x348f63,_0x593c30)=>{const _0x928c0=_0x1c4e9c;if(!_0x593c30)return!0x1;const _0x880cfe=_0x348f63[_0x928c0(0x226)](_0x4cf87b[_0x928c0(0x208)]),_0x3b2616=_0x348f63[_0x928c0(0x226)](_0x356ed4['SheetsShapeServices']),_0x235566=_0x348f63[_0x928c0(0x226)](_0x4cf87b[_0x928c0(0x1d8)]),_0x8f4d68=[],_0x45e4c4=[],{unitId:_0x3229f7,subUnitId:_0x35ecde,shapeId:_0x4768ab,shapeType:_0x5ebb5b,shapeData:_0x3af05a}=_0x593c30,_0x344896=_0x3b2616[_0x928c0(0x1e3)](_0x3229f7,_0x35ecde,_0x4768ab);if(_0x344896){const _0x1f78a0=_0x344896['getShapeType'](),_0x1f549f=Object[_0x928c0(0x1d0)]({},_0x344896[_0x928c0(0x228)]()),_0x1d129f={'unitId':_0x3229f7,'subUnitId':_0x35ecde,'shapeId':_0x4768ab,'shapeType':_0x5ebb5b,'shapeData':_0x3af05a},_0x4775cd={'unitId':_0x3229f7,'subUnitId':_0x35ecde,'shapeId':_0x4768ab,'shapeType':_0x1f78a0,'shapeData':_0x1f549f};return _0x8f4d68['push']({'id':_0x2ef461['id'],'params':_0x1d129f}),_0x45e4c4[_0x928c0(0x1da)]({'id':_0x2ef461['id'],'params':_0x4775cd}),_0x8f4d68[_0x928c0(0x1e7)](_0x53b9bd=>_0x880cfe[_0x928c0(0x1dc)](_0x53b9bd['id'],_0x53b9bd[_0x928c0(0x22a)]))&&_0x235566[_0x928c0(0x230)]({'unitID':_0x3229f7,'redoMutations':[..._0x8f4d68],'undoMutations':[..._0x45e4c4]}),!0x0;}return!0x1;}},_0x3af07f={'id':_0x1c4e9c(0x237),'type':_0x4cf87b['CommandType'][_0x1c4e9c(0x215)],'handler':(_0x509309,_0x5d8a96)=>{const {unitId:_0x11f076,subUnitId:_0x293688,shapeType:_0x279927,shapeId:_0x32bdb2,shapeData:_0x4c184a}=_0x5d8a96;return _0x509309['get'](_0x356ed4['SheetsShapeServices'])['insertShape'](_0x11f076,_0x293688,_0x279927,_0x32bdb2,_0x4c184a),!0x0;}},_0x1299b8={'id':_0x1c4e9c(0x1f7),'type':_0x4cf87b[_0x1c4e9c(0x1d5)]['MUTATION'],'handler':(_0x2b644f,_0x50b172)=>{const _0x40f926=_0x1c4e9c,{unitId:_0x2a0553,subUnitId:_0x264645,shapeId:_0x22a595}=_0x50b172;return _0x2b644f['get'](_0x356ed4[_0x40f926(0x200)])['removeShape'](_0x2a0553,_0x264645,_0x22a595),!0x0;}},_0x1b0e12={'id':_0x1c4e9c(0x203),'type':_0x4cf87b[_0x1c4e9c(0x1d5)][_0x1c4e9c(0x215)],'handler':(_0x58f36d,_0x560477)=>{const _0x4d4631=_0x1c4e9c,{unitId:_0x31c59f,subUnitId:_0x22757d,shapeType:_0x3773ad,shapeId:_0x2dd170,shapeData:_0x124686}=_0x560477,_0x1ef618=_0x58f36d['get'](_0x356ed4['SheetsShapeServices'])[_0x4d4631(0x1e3)](_0x31c59f,_0x22757d,_0x2dd170);return _0x1ef618&&(_0x3773ad!==void 0x0&&_0x1ef618['setShapeType'](_0x3773ad),_0x124686&&(_0x1ef618==null||_0x1ef618['setShapeData'](_0x124686,!0x0))),!0x0;}},_0x5cc2b0=_0x1c4e9c(0x1db),_0x524398={};var _0x5ddf61=Object[_0x1c4e9c(0x235)],_0x51d1b8=Object[_0x1c4e9c(0x1f0)],_0x6f022=(_0x19ee3a,_0x493c36,_0x37decb)=>_0x493c36 in _0x19ee3a?_0x5ddf61(_0x19ee3a,_0x493c36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37decb}):_0x19ee3a[_0x493c36]=_0x37decb,_0x28f79d=(_0x4280f6,_0x26b434,_0x3574d0,_0x5d75e0)=>{const _0x33bdc8=_0x1c4e9c;for(var _0x4f8bdf=_0x5d75e0>0x1?void 0x0:_0x5d75e0?_0x51d1b8(_0x26b434,_0x3574d0):_0x26b434,_0x1d4e7f=_0x4280f6[_0x33bdc8(0x232)]-0x1,_0x1fc979;_0x1d4e7f>=0x0;_0x1d4e7f--)(_0x1fc979=_0x4280f6[_0x1d4e7f])&&(_0x4f8bdf=_0x1fc979(_0x4f8bdf)||_0x4f8bdf);return _0x4f8bdf;},_0xaf7dec=(_0x52f3a7,_0x283c23)=>(_0x1557bd,_0x5b286e)=>_0x283c23(_0x1557bd,_0x5b286e,_0x52f3a7),_0x9c1a27=(_0x2f0ef9,_0x38b7c4,_0x27d3fa)=>_0x6f022(_0x2f0ef9,typeof _0x38b7c4!=_0x1c4e9c(0x213)?_0x38b7c4+'':_0x38b7c4,_0x27d3fa);const _0x445adf=_0x1c4e9c(0x1f2);_0x356ed4[_0x1c4e9c(0x1fb)]=class extends _0x4cf87b[_0x1c4e9c(0x1e1)]{constructor(_0x51168a=_0x524398,_0x3981c7,_0x26badf,_0x26b3ae){const _0x15c0ca=_0x1c4e9c;super(),this[_0x15c0ca(0x1f3)]=_0x51168a,this[_0x15c0ca(0x1e0)]=_0x3981c7,this[_0x15c0ca(0x224)]=_0x26badf,this['_configService']=_0x26b3ae;const {..._0x498e47}=_0x4cf87b['merge']({},_0x524398,this[_0x15c0ca(0x1f3)]);this[_0x15c0ca(0x223)][_0x15c0ca(0x1f5)](_0x5cc2b0,_0x498e47),this[_0x15c0ca(0x21c)]();}[_0x1c4e9c(0x1fc)](){const _0x17f2b8=_0x1c4e9c;_0x4cf87b[_0x17f2b8(0x229)](this[_0x17f2b8(0x1e0)],[]);}[_0x1c4e9c(0x21a)](){const _0x421d1d=_0x1c4e9c,_0x260007=this[_0x421d1d(0x1e0)];[[_0x3bc6bf],[_0x356ed4[_0x421d1d(0x200)]]][_0x421d1d(0x1f8)](_0x3a4fd6=>_0x260007[_0x421d1d(0x1de)](_0x3a4fd6));}[_0x1c4e9c(0x21c)](){const _0xaf55ab=_0x1c4e9c;[_0x3af07f,_0x1299b8,_0x2ef461,_0x1b0e12]['forEach'](_0x16503f=>this[_0xaf55ab(0x1f1)](this['_commandService']['registerCommand'](_0x16503f)));}},_0x9c1a27(_0x356ed4[_0x1c4e9c(0x1fb)],_0x1c4e9c(0x1e9),_0x4cf87b[_0x1c4e9c(0x1d7)][_0x1c4e9c(0x1ef)]),_0x9c1a27(_0x356ed4['UniverSheetsShapePlugin'],_0x1c4e9c(0x1d3),_0x445adf),_0x356ed4[_0x1c4e9c(0x1fb)]=_0x28f79d([_0x4cf87b[_0x1c4e9c(0x1d9)](_0x3a75a2[_0x1c4e9c(0x225)]),_0xaf7dec(0x1,_0x4cf87b['Inject'](_0x4cf87b['Injector'])),_0xaf7dec(0x2,_0x4cf87b['ICommandService']),_0xaf7dec(0x3,_0x4cf87b[_0x1c4e9c(0x21b)])],_0x356ed4['UniverSheetsShapePlugin']),_0x356ed4[_0x1c4e9c(0x1f4)]=_0x3af07f,_0x356ed4['RemoveSheetsShapeMutation']=_0x1299b8,_0x356ed4[_0x1c4e9c(0x206)]=_0x1b0e12,_0x356ed4[_0x1c4e9c(0x212)]=_0x5e878d,_0x356ed4[_0x1c4e9c(0x1fd)]=_0x2ef461,Object[_0x1c4e9c(0x235)](_0x356ed4,Symbol[_0x1c4e9c(0x1fa)],{'value':_0x1c4e9c(0x211)});}));function _0x3388(_0x47f311,_0x35d68f){_0x47f311=_0x47f311-0x1ce;const _0x351864=_0x3518();let _0x338890=_0x351864[_0x47f311];return _0x338890;}function _0x3518(){const _0x31ce16=['getOwnPropertyDescriptor','disposeWithMe','SHEET_SHAPE_PLUGIN','_config','InsertSheetsShapeMutation','setConfig','21162375LOPDtA','sheet.mutation.remove-shape','forEach','_disposed','toStringTag','UniverSheetsShapePlugin','onRendered','UpdateSheetsShapeTypeMutation','_serializeShapeForUnit','1197098vHyNaf','SheetsShapeServices','UniverProEngineShape','31345BIBMFm','sheet.mutation.update-shape-data','ShapeModel','sheet.command.update-shape-type','UpdateSheetsShapeDataMutation','parse','ICommandService','hasShape','getShapeDataById','_initSnapshot','UniverCore','setShapeType','isConnectorShape','registerPluginResource','6niQHbu','Module','UpdateSheetsShapeTypeCommand','symbol','function','MUTATION','clear','has','IResourceManagerService','_deserializeShapeForUnit','onStarting','IConfigService','_initCommands','1020548IvfgNH','6127541OqARrZ','_ensureShapeModelManager','getBasicShapeRelation','dispose','getLineShapeRelation','_configService','_commandService','UniverLicensePlugin','get','UniverProSheetsShape','getShapeData','touchDependencies','params','fromJSON','getShapeTypeById','setShapeData','getShapeType','@univerjs-pro/license','pushUndoRedo','getShapeRelation','length','amd','addShape','defineProperty','4319454hWDgUV','sheet.mutation.insert-shape','@univerjs-pro/engine-shape','sheet.mutation.update-shape-type','assign','Disposable','_linesIds','pluginName','_shapes','CommandType','_resourcesManagerService','UniverInstanceType','IUndoRedoService','DependentOn','push','sheets-shape.config','syncExecuteCommand','keys','add','removeShape','_injector','Plugin','toJSON','getShapeModel','_shapeModelManagerMap','set','shapeData','every','_groupIds','type','delete','628DYGfPg','object','3903296ZgmIww','UniverProLicense','UNIVER_SHEET'];_0x3518=function(){return _0x31ce16;};return _0x3518();}
|
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-insiders.20260212-022614a",
|
|
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-pro/engine-shape": "0.15.
|
|
62
|
-
"@univerjs/core": "0.15.
|
|
60
|
+
"@univerjs-pro/license": "0.15.5-insiders.20260212-022614a",
|
|
61
|
+
"@univerjs-pro/engine-shape": "0.15.5-insiders.20260212-022614a",
|
|
62
|
+
"@univerjs/core": "0.15.5-insiders.20260212-022614a"
|
|
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
|
|
70
|
-
"@univerjs/
|
|
69
|
+
"@univerjs/sheets": "0.15.5-insiders.20260212-022614a",
|
|
70
|
+
"@univerjs-infra/shared": "0.15.5"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"test": "vitest run",
|