@univerjs-pro/sheets-shape 0.16.1 → 0.17.0-insiders.20260318-5bef180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/commands/command/update-shape-type.command.d.ts +3 -3
- package/lib/types/commands/mutation/add-shape.mutation.d.ts +3 -3
- package/lib/types/commands/mutation/remove-shape.mutation.d.ts +2 -2
- package/lib/types/commands/mutation/update-shape-data.mutation.d.ts +3 -3
- package/lib/types/commands/mutation/update-shape-type.mutation.d.ts +3 -3
- package/lib/types/model/shape-manager.d.ts +2 -1
- package/lib/types/plugin.d.ts +3 -2
- package/lib/types/services/sheet-shape-services.d.ts +4 -4
- package/lib/umd/index.js +1 -1
- package/package.json +12 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5bdef9=_0x366b;(function(_0x179329,_0x35630a){const _0x565a33=_0x366b,_0x159c64=_0x179329();while(!![]){try{const _0xf70f11=-parseInt(_0x565a33(0x93))/0x1+parseInt(_0x565a33(0xb2))/0x2+-parseInt(_0x565a33(0x8f))/0x3*(-parseInt(_0x565a33(0x99))/0x4)+parseInt(_0x565a33(0xbf))/0x5+parseInt(_0x565a33(0xad))/0x6*(parseInt(_0x565a33(0xb3))/0x7)+-parseInt(_0x565a33(0x8b))/0x8*(parseInt(_0x565a33(0xa0))/0x9)+-parseInt(_0x565a33(0xd4))/0xa;if(_0xf70f11===_0x35630a)break;else _0x159c64['push'](_0x159c64['shift']());}catch(_0x4fa0b2){_0x159c64['push'](_0x159c64['shift']());}}}(_0x53e0,0x28e80));var D=Object[_0x5bdef9(0xe0)],C=(_0x33a39f,_0x57d697,_0x48e259)=>_0x57d697 in _0x33a39f?D(_0x33a39f,_0x57d697,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48e259}):_0x33a39f[_0x57d697]=_0x48e259,S=(_0x26a040,_0x24f65e,_0x215a3f)=>C(_0x26a040,typeof _0x24f65e!='symbol'?_0x24f65e+'':_0x24f65e,_0x215a3f);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x5bdef9(0xa3)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');class f extends p[_0x5bdef9(0x92)]{constructor(){const _0x2cb75b=_0x5bdef9;super(),S(this,_0x2cb75b(0xdb),new Map()),S(this,_0x2cb75b(0xa2),new Set()),S(this,'_groupIds',new Set());}['addShape'](_0x43553d,_0x5af8a8,_0x4e0f67){const _0x27d047=_0x5bdef9,_0x467279=new l[(_0x27d047(0x98))](_0x43553d,_0x5af8a8,_0x4e0f67);return this['_shapes'][_0x27d047(0xc5)](_0x5af8a8,_0x467279),l[_0x27d047(0x8c)](_0x43553d)&&this[_0x27d047(0xa2)][_0x27d047(0xbd)](_0x5af8a8),_0x467279;}[_0x5bdef9(0xb5)](_0x1b5d93){const _0x1456d3=_0x5bdef9;var _0x2184f7,_0x3d8de0;const _0x302d62=[];for(const _0x29e02c of this[_0x1456d3(0xa2)]){const _0x3d107c=this[_0x1456d3(0xdb)][_0x1456d3(0xc8)](_0x29e02c);if(_0x3d107c){const _0x352ee2=_0x3d107c['getShapeRelation']();_0x352ee2&&(((_0x2184f7=_0x352ee2[_0x1456d3(0xa8)])==null?void 0x0:_0x2184f7[_0x1456d3(0xb8)])===_0x1b5d93&&_0x302d62['push']({..._0x352ee2['from'],'lineShapeId':_0x29e02c,'isFrom':!0x0}),((_0x3d8de0=_0x352ee2['to'])==null?void 0x0:_0x3d8de0[_0x1456d3(0xb8)])===_0x1b5d93&&_0x302d62[_0x1456d3(0xbc)]({..._0x352ee2['to'],'lineShapeId':_0x29e02c,'isFrom':!0x1}));}}return _0x302d62;}[_0x5bdef9(0xd2)](_0x138efd){const _0x455bc5=this['_shapes']['get'](_0x138efd);if(_0x455bc5)return _0x455bc5['getShapeRelation']();}[_0x5bdef9(0xbb)](_0x48b5db){const _0x3986c4=_0x5bdef9,_0x27679a=this[_0x3986c4(0xdb)][_0x3986c4(0xc8)](_0x48b5db);if(_0x27679a)return _0x27679a[_0x3986c4(0xbb)]();}[_0x5bdef9(0xd9)](_0x36adbf){return this['_shapes']['has'](_0x36adbf);}[_0x5bdef9(0xc7)](_0x15590e){const _0x474da0=_0x5bdef9,_0x4e016d=this['_shapes']['get'](_0x15590e);_0x4e016d&&(l[_0x474da0(0x8c)](_0x4e016d['getShapeType']())&&this['_linesIds'][_0x474da0(0x85)](_0x15590e),this[_0x474da0(0xdb)][_0x474da0(0x85)](_0x15590e));}['toJSON'](){const _0x98070e=_0x5bdef9,_0x264d80=[];return this[_0x98070e(0xdb)][_0x98070e(0xd1)](_0x3e773b=>{const _0x4a4307=_0x98070e;_0x264d80[_0x4a4307(0xbc)](_0x3e773b['toJSON']());}),_0x264d80;}[_0x5bdef9(0x84)](_0x2cd3ac){const _0x583b02=_0x5bdef9;for(const _0x1051e3 of _0x2cd3ac){const {id:_0x21a3eb,shapeType:_0x1d20be}=_0x1051e3,_0x35cfd8=this['addShape'](_0x1d20be,_0x21a3eb,_0x1051e3[_0x583b02(0xcd)]);_0x35cfd8&&_0x35cfd8['isLineShape']()&&this[_0x583b02(0xa2)][_0x583b02(0xbd)](_0x21a3eb);}}[_0x5bdef9(0xbe)](){const _0x5dba9c=_0x5bdef9;this[_0x5dba9c(0xd7)]||(this[_0x5dba9c(0xdb)][_0x5dba9c(0xd1)](_0xa5e8ec=>{const _0xe71bd8=_0x5dba9c;_0xa5e8ec[_0xe71bd8(0xbe)]();}),this[_0x5dba9c(0xdb)][_0x5dba9c(0x96)](),this[_0x5dba9c(0xa2)]['clear'](),this[_0x5dba9c(0x90)][_0x5dba9c(0x96)](),super['dispose']());}}var R=Object[_0x5bdef9(0xb0)],j=(_0xc6d00c,_0x16dfb5,_0x583191,_0x39a53b)=>{const _0x2ea79b=_0x5bdef9;for(var _0x1ddc4d=_0x39a53b>0x1?void 0x0:_0x39a53b?R(_0x16dfb5,_0x583191):_0x16dfb5,_0x12c755=_0xc6d00c[_0x2ea79b(0xd3)]-0x1,_0x2f63e5;_0x12c755>=0x0;_0x12c755--)(_0x2f63e5=_0xc6d00c[_0x12c755])&&(_0x1ddc4d=_0x2f63e5(_0x1ddc4d)||_0x1ddc4d);return _0x1ddc4d;},J=(_0x81bb2,_0x58681c)=>(_0x28cde6,_0x2551af)=>_0x58681c(_0x28cde6,_0x2551af,_0x81bb2);function _0x366b(_0x3cd96f,_0x105667){_0x3cd96f=_0x3cd96f-0x81;const _0x53e0b4=_0x53e0();let _0x366b3c=_0x53e0b4[_0x3cd96f];return _0x366b3c;}const w=_0x5bdef9(0x8d);function _0x53e0(){const _0xa72e9f=['getShapeType','push','add','dispose','1516205MxJGbC','merge','UniverSheetsShapePlugin','_shapeModelManagerMap','UpdateSheetsShapeTypeMutation','type','set','getShapeData','removeShape','get','Injector','pluginName','registerCommand','Plugin','shapeData','UpdateSheetsShapeTypeCommand','keys','touchDependencies','forEach','getLineShapeRelation','length','1443640mKsZdr','syncExecuteCommand','MUTATION','_disposed','DependentOn','hasShape','addShape','_shapes','insertShape','disposeWithMe','Inject','symbol','defineProperty','CommandType','setShapeData','_injector','fromJSON','delete','setConfig','_initSnapshot','toJSON','_config','every','6624EkpWWC','isConnectorShape','SHEET_SHAPE_PLUGIN','_ensureShapeModelManager','471054sBPMZZ','_groupIds','_commandService','Disposable','60647ELlIlD','InsertSheetsShapeMutation','getShapeModel','clear','onStarting','ShapeModel','4rVYaJN','_deserializeShapeForUnit','getShapeTypeById','_resourcesManagerService','IResourceManagerService','UniverInstanceType','UNIVER_SHEET','2466NgVZmi','sheet.mutation.update-shape-type','_linesIds','Module','_configService','ICommandService','sheets-shape.config','UpdateSheetsShapeDataMutation','from','IConfigService','sheet.mutation.update-shape-data','setShapeType','IUndoRedoService','6PYkKMl','assign','_serializeShapeForUnit','getOwnPropertyDescriptor','SheetsShapeService','6590gZmjWy','951167iXpVHj','parse','getBasicShapeRelation','UniverLicensePlugin','onRendered','shapeId','getShapeRelation','sheet.mutation.insert-shape'];_0x53e0=function(){return _0xa72e9f;};return _0x53e0();}exports[_0x5bdef9(0xb1)]=class extends p[_0x5bdef9(0x92)]{constructor(_0x3ecd81){const _0x46e24b=_0x5bdef9;super(),S(this,_0x46e24b(0xc2),new Map()),(this[_0x46e24b(0x9c)]=_0x3ecd81,this['_initSnapshot']());}['_ensureShapeModelManager'](_0x51e069,_0x52b25c){const _0x467ca7=_0x5bdef9;let _0x153d2b=this[_0x467ca7(0xc2)]['get'](_0x51e069);_0x153d2b||(_0x153d2b=new Map(),this[_0x467ca7(0xc2)][_0x467ca7(0xc5)](_0x51e069,_0x153d2b));let _0x3205d0=_0x153d2b[_0x467ca7(0xc8)](_0x52b25c);return _0x3205d0||(_0x3205d0=new f(),_0x153d2b[_0x467ca7(0xc5)](_0x52b25c,_0x3205d0)),_0x3205d0;}['insertShape'](_0x2625f5,_0x51843a,_0x4de087,_0x55889b,_0x32ee44){const _0xc45871=_0x5bdef9;this[_0xc45871(0x8e)](_0x2625f5,_0x51843a)[_0xc45871(0xda)](_0x4de087,_0x55889b,_0x32ee44);}[_0x5bdef9(0xc7)](_0x4def8f,_0x5758c4,_0x5d788c){const _0x5c4f59=_0x5bdef9;this[_0x5c4f59(0x8e)](_0x4def8f,_0x5758c4)['removeShape'](_0x5d788c);}['getBasicShapeType'](_0x5503e8,_0x2fc19,_0x4b39f3){const _0x4b9083=_0x5bdef9;return this[_0x4b9083(0x8e)](_0x5503e8,_0x2fc19)[_0x4b9083(0xbb)](_0x4b39f3);}[_0x5bdef9(0xbb)](_0x56c5af,_0x2ad505,_0x467b87){const _0x33b946=_0x5bdef9;return this[_0x33b946(0x8e)](_0x56c5af,_0x2ad505)[_0x33b946(0xbb)](_0x467b87);}[_0x5bdef9(0xd9)](_0x136970,_0x46d7e1,_0x1f6b9a){const _0x584094=_0x5bdef9;return this[_0x584094(0x8e)](_0x136970,_0x46d7e1)[_0x584094(0xd9)](_0x1f6b9a);}[_0x5bdef9(0x9b)](_0x4e19b1,_0x30586e,_0x37e3d7){const _0xfa113b=_0x5bdef9;return this[_0xfa113b(0x8e)](_0x4e19b1,_0x30586e)[_0xfa113b(0xbb)](_0x37e3d7);}['getShapeDataById'](_0x1691ee,_0x44746d,_0x41f612){const _0x5616e8=_0x5bdef9,_0x4b837b=this[_0x5616e8(0x8e)](_0x1691ee,_0x44746d);if(!_0x4b837b[_0x5616e8(0xbb)](_0x41f612))return;const _0xb08b32=_0x4b837b[_0x5616e8(0xdb)]['get'](_0x41f612);if(_0xb08b32)return _0xb08b32['getShapeData']();}[_0x5bdef9(0x95)](_0x35e935,_0x564ef9,_0x1bd019){const _0x28f2e8=_0x5bdef9;return this['_ensureShapeModelManager'](_0x35e935,_0x564ef9)[_0x28f2e8(0xdb)][_0x28f2e8(0xc8)](_0x1bd019);}[_0x5bdef9(0xb5)](_0x4c48cf,_0x1293b7,_0x200e5b){const _0x2671b1=_0x5bdef9;return this[_0x2671b1(0x8e)](_0x4c48cf,_0x1293b7)[_0x2671b1(0xb5)](_0x200e5b);}['getLineShapeRelation'](_0x218dfa,_0x4bb0fd,_0x3c5623){const _0x4c822c=_0x5bdef9,_0x35de24=this[_0x4c822c(0x8e)](_0x218dfa,_0x4bb0fd)[_0x4c822c(0xdb)]['get'](_0x3c5623);if(_0x35de24)return _0x35de24[_0x4c822c(0xb9)]();}['setShapeType'](){}[_0x5bdef9(0xaf)](_0x547392){const _0x1c10b2=_0x5bdef9,_0x418aba={},_0x27cc91=this[_0x1c10b2(0xc2)][_0x1c10b2(0xc8)](_0x547392);return _0x27cc91&&_0x27cc91[_0x1c10b2(0xd1)]((_0x57de1e,_0x5fa759)=>{const _0x46a2db=_0x1c10b2,_0x4c7a72=_0x57de1e[_0x46a2db(0x88)]();_0x4c7a72['length']>0x0&&(_0x418aba[_0x5fa759]=_0x4c7a72);}),JSON['stringify'](_0x418aba);}[_0x5bdef9(0x9a)](_0x329cf9,_0x407b0b){Object['keys'](_0x407b0b)['forEach'](_0x30b59f=>{const _0x1da7e7=_0x366b;this[_0x1da7e7(0x8e)](_0x329cf9,_0x30b59f)[_0x1da7e7(0x84)](_0x407b0b[_0x30b59f]);});}['toJSON'](){const _0x74037d=_0x5bdef9,_0x66638b={};return this[_0x74037d(0xc2)][_0x74037d(0xd1)]((_0x2f4732,_0x5c0378)=>{const _0x44ee72=_0x74037d;_0x66638b[_0x5c0378]={},_0x2f4732[_0x44ee72(0xd1)]((_0x335739,_0x5e1c67)=>{const _0x13e67d=_0x44ee72;_0x66638b[_0x5c0378][_0x5e1c67]=_0x335739[_0x13e67d(0x88)]();});}),_0x66638b;}[_0x5bdef9(0x84)](_0x55c5a3){const _0x2eb989=_0x5bdef9;Object[_0x2eb989(0xcf)](_0x55c5a3)[_0x2eb989(0xd1)](_0x5435cb=>{const _0x5ed9ea=_0x55c5a3[_0x5435cb];Object['keys'](_0x5ed9ea)['forEach'](_0xf8f2be=>{const _0x538805=_0x366b;this[_0x538805(0x8e)](_0x5435cb,_0xf8f2be)[_0x538805(0x84)](_0x5ed9ea[_0xf8f2be]);});});}[_0x5bdef9(0x87)](){const _0x10a8ab=_0x5bdef9;this['_resourcesManagerService']['registerPluginResource']({'pluginName':w,'businesses':[p['UniverInstanceType'][_0x10a8ab(0x9f)]],'toJson':_0x42eee5=>this[_0x10a8ab(0xaf)](_0x42eee5),'parseJson':_0x39666c=>JSON[_0x10a8ab(0xb4)](_0x39666c),'onLoad':(_0x1bcc84,_0x5973cd)=>{const _0x62e604=_0x10a8ab;this[_0x62e604(0x9a)](_0x1bcc84,_0x5973cd);},'onUnLoad':_0x34f8c5=>{const _0x44b107=_0x10a8ab,_0x2a7f2b=this['_shapeModelManagerMap'][_0x44b107(0xc8)](_0x34f8c5);_0x2a7f2b&&(_0x2a7f2b[_0x44b107(0xd1)](_0x825704=>{const _0x585ac2=_0x44b107;_0x825704[_0x585ac2(0xbe)]();}),this[_0x44b107(0xc2)][_0x44b107(0x85)](_0x34f8c5));}});}['dispose'](){const _0x48cde3=_0x5bdef9;this[_0x48cde3(0xc2)][_0x48cde3(0xd1)](_0x21f81d=>{const _0x24458e=_0x48cde3;_0x21f81d[_0x24458e(0xd1)](_0x119fc0=>{_0x119fc0['dispose']();});});}},exports[_0x5bdef9(0xb1)]=j([J(0x0,p[_0x5bdef9(0x9d)])],exports['SheetsShapeService']);const d={'id':_0x5bdef9(0xa1),'type':p[_0x5bdef9(0x81)][_0x5bdef9(0xd6)],'handler':(_0x2b7367,_0x20dbe0)=>{const _0x1c6b26=_0x5bdef9,{unitId:_0xe9a60,subUnitId:_0x55fbf5,shapeType:_0x2cbc0e,shapeId:_0x360da8,shapeData:_0x5c6261}=_0x20dbe0,_0x4d72aa=_0x2b7367[_0x1c6b26(0xc8)](exports[_0x1c6b26(0xb1)])['getShapeModel'](_0xe9a60,_0x55fbf5,_0x360da8);return _0x4d72aa&&(_0x4d72aa[_0x1c6b26(0xab)](_0x2cbc0e),_0x5c6261&&(_0x4d72aa==null||_0x4d72aa[_0x1c6b26(0x82)](_0x5c6261))),!0x0;}},H={'id':'sheet.command.update-shape-type','type':p[_0x5bdef9(0x81)]['COMMAND'],'handler':(_0x59dbe0,_0x9f6841)=>{const _0x360d72=_0x5bdef9;if(!_0x9f6841)return!0x1;const _0x122f6a=_0x59dbe0[_0x360d72(0xc8)](p[_0x360d72(0xa5)]),_0x2118c2=_0x59dbe0[_0x360d72(0xc8)](exports[_0x360d72(0xb1)]),_0x2fe521=_0x59dbe0[_0x360d72(0xc8)](p[_0x360d72(0xac)]),_0x28c6b8=[],_0x249245=[],{unitId:_0xfd4f3f,subUnitId:_0x4df752,shapeId:_0xe9c59a,shapeType:_0x334e40,shapeData:_0x4f67d0}=_0x9f6841,_0x4c4eb2=_0x2118c2[_0x360d72(0x95)](_0xfd4f3f,_0x4df752,_0xe9c59a);if(_0x4c4eb2){const _0x319070=_0x4c4eb2[_0x360d72(0xbb)](),_0x4bf1c4=Object[_0x360d72(0xae)]({},_0x4c4eb2[_0x360d72(0xc6)]()),_0x1b3995={'unitId':_0xfd4f3f,'subUnitId':_0x4df752,'shapeId':_0xe9c59a,'shapeType':_0x334e40,'shapeData':_0x4f67d0},_0x3f0ddf={'unitId':_0xfd4f3f,'subUnitId':_0x4df752,'shapeId':_0xe9c59a,'shapeType':_0x319070,'shapeData':_0x4bf1c4};return _0x28c6b8[_0x360d72(0xbc)]({'id':d['id'],'params':_0x1b3995}),_0x249245['push']({'id':d['id'],'params':_0x3f0ddf}),_0x28c6b8[_0x360d72(0x8a)](_0x400e5a=>_0x122f6a[_0x360d72(0xd5)](_0x400e5a['id'],_0x400e5a['params']))&&_0x2fe521['pushUndoRedo']({'unitID':_0xfd4f3f,'redoMutations':[..._0x28c6b8],'undoMutations':[..._0x249245]}),!0x0;}return!0x1;}},m={'id':_0x5bdef9(0xba),'type':p[_0x5bdef9(0x81)][_0x5bdef9(0xd6)],'handler':(_0x1199bf,_0x553bca)=>{const _0x1a7434=_0x5bdef9,{unitId:_0x90fc5f,subUnitId:_0x324b47,shapeType:_0x1e0052,shapeId:_0x44cde4,shapeData:_0x20f213}=_0x553bca;return _0x1199bf[_0x1a7434(0xc8)](exports[_0x1a7434(0xb1)])[_0x1a7434(0xdc)](_0x90fc5f,_0x324b47,_0x1e0052,_0x44cde4,_0x20f213),!0x0;}},v={'id':'sheet.mutation.remove-shape','type':p[_0x5bdef9(0x81)]['MUTATION'],'handler':(_0x4202ab,_0x22039d)=>{const _0x1374f1=_0x5bdef9,{unitId:_0x474c0f,subUnitId:_0x911f5b,shapeId:_0x1815ea}=_0x22039d;return _0x4202ab[_0x1374f1(0xc8)](exports['SheetsShapeService'])[_0x1374f1(0xc7)](_0x474c0f,_0x911f5b,_0x1815ea),!0x0;}},y={'id':_0x5bdef9(0xaa),'type':p[_0x5bdef9(0x81)][_0x5bdef9(0xd6)],'handler':(_0x6088cd,_0x1e2025)=>{const _0x10e940=_0x5bdef9,{unitId:_0x5553cf,subUnitId:_0x2c6138,shapeType:_0x5d3565,shapeId:_0x46d1c4,shapeData:_0x4b7fa7}=_0x1e2025,_0x26c3a8=_0x6088cd[_0x10e940(0xc8)](exports[_0x10e940(0xb1)])['getShapeModel'](_0x5553cf,_0x2c6138,_0x46d1c4);return _0x26c3a8&&(_0x5d3565!==void 0x0&&_0x26c3a8[_0x10e940(0xab)](_0x5d3565),_0x4b7fa7&&(_0x26c3a8==null||_0x26c3a8[_0x10e940(0x82)](_0x4b7fa7,!0x0))),!0x0;}},A=_0x5bdef9(0xa6),_={};var L=Object[_0x5bdef9(0xe0)],F=Object[_0x5bdef9(0xb0)],B=(_0x47c240,_0x1fac68,_0x4e520a)=>_0x1fac68 in _0x47c240?L(_0x47c240,_0x1fac68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e520a}):_0x47c240[_0x1fac68]=_0x4e520a,G=(_0xa9585d,_0x159aaf,_0x28d0ce,_0x2866a2)=>{const _0x132176=_0x5bdef9;for(var _0x466db8=_0x2866a2>0x1?void 0x0:_0x2866a2?F(_0x159aaf,_0x28d0ce):_0x159aaf,_0x58014c=_0xa9585d[_0x132176(0xd3)]-0x1,_0x35bc87;_0x58014c>=0x0;_0x58014c--)(_0x35bc87=_0xa9585d[_0x58014c])&&(_0x466db8=_0x35bc87(_0x466db8)||_0x466db8);return _0x466db8;},g=(_0x135368,_0x2e4e85)=>(_0x2e1cd3,_0x213f17)=>_0x2e4e85(_0x2e1cd3,_0x213f17,_0x135368),T=(_0x38249f,_0x3ee274,_0x5852c5)=>B(_0x38249f,typeof _0x3ee274!=_0x5bdef9(0xdf)?_0x3ee274+'':_0x3ee274,_0x5852c5);const x=_0x5bdef9(0x8d);exports[_0x5bdef9(0xc1)]=class extends p[_0x5bdef9(0xcc)]{constructor(_0xdc581e=_,_0xe386a9,_0x25b299,_0x1bb0f2){const _0x795715=_0x5bdef9;super(),this[_0x795715(0x89)]=_0xdc581e,this[_0x795715(0x83)]=_0xe386a9,this['_commandService']=_0x25b299,this[_0x795715(0xa4)]=_0x1bb0f2;const {..._0x4df42c}=p[_0x795715(0xc0)]({},_,this[_0x795715(0x89)]);this[_0x795715(0xa4)][_0x795715(0x86)](A,_0x4df42c),this['_initCommands']();}[_0x5bdef9(0xb7)](){const _0x36f1d7=_0x5bdef9;p[_0x36f1d7(0xd0)](this[_0x36f1d7(0x83)],[]);}[_0x5bdef9(0x97)](){const _0x3fcc57=_0x5bdef9,_0xdb361a=this[_0x3fcc57(0x83)];[[f],[exports[_0x3fcc57(0xb1)]]][_0x3fcc57(0xd1)](_0x584a99=>_0xdb361a[_0x3fcc57(0xbd)](_0x584a99));}['_initCommands'](){const _0x16624d=_0x5bdef9;[m,v,d,y][_0x16624d(0xd1)](_0x55c054=>this[_0x16624d(0xdd)](this[_0x16624d(0x91)][_0x16624d(0xcb)](_0x55c054)));}},T(exports[_0x5bdef9(0xc1)],_0x5bdef9(0xc4),p[_0x5bdef9(0x9e)]['UNIVER_SHEET']),T(exports['UniverSheetsShapePlugin'],_0x5bdef9(0xca),x),exports[_0x5bdef9(0xc1)]=G([p[_0x5bdef9(0xd8)](b[_0x5bdef9(0xb6)]),g(0x1,p[_0x5bdef9(0xde)](p[_0x5bdef9(0xc9)])),g(0x2,p[_0x5bdef9(0xa5)]),g(0x3,p[_0x5bdef9(0xa9)])],exports[_0x5bdef9(0xc1)]),exports[_0x5bdef9(0x94)]=m,exports['RemoveSheetsShapeMutation']=v,exports[_0x5bdef9(0xa7)]=y,exports[_0x5bdef9(0xce)]=H,exports[_0x5bdef9(0xc3)]=d;
|
|
1
|
+
const _0x3607e7=_0x2514;(function(_0x2dcb0f,_0xd22895){const _0x13aa91=_0x2514,_0x45449a=_0x2dcb0f();while(!![]){try{const _0x1855ac=-parseInt(_0x13aa91(0x148))/0x1*(parseInt(_0x13aa91(0x118))/0x2)+-parseInt(_0x13aa91(0x105))/0x3+-parseInt(_0x13aa91(0xf3))/0x4+-parseInt(_0x13aa91(0x10f))/0x5+parseInt(_0x13aa91(0x143))/0x6+-parseInt(_0x13aa91(0xf0))/0x7*(parseInt(_0x13aa91(0x13c))/0x8)+parseInt(_0x13aa91(0x126))/0x9*(parseInt(_0x13aa91(0x139))/0xa);if(_0x1855ac===_0xd22895)break;else _0x45449a['push'](_0x45449a['shift']());}catch(_0x5c629a){_0x45449a['push'](_0x45449a['shift']());}}}(_0x1596,0x44802),Object['defineProperty'](exports,Symbol[_0x3607e7(0x141)],{'value':'Module'}));let e=require(`@univerjs/core`),t=require(`@univerjs-pro/engine-shape`),n=require(`@univerjs-pro/license`);function r(_0x2fd419){'@babel/helpers - typeof';const _0x1a34b7=_0x3607e7;return r=typeof Symbol==_0x1a34b7(0x123)&&typeof Symbol[_0x1a34b7(0xe9)]=='symbol'?function(_0x42b9ef){return typeof _0x42b9ef;}:function(_0x38b0b5){const _0x391ba6=_0x1a34b7;return _0x38b0b5&&typeof Symbol=='function'&&_0x38b0b5[_0x391ba6(0x142)]===Symbol&&_0x38b0b5!==Symbol[_0x391ba6(0x116)]?_0x391ba6(0xfc):typeof _0x38b0b5;},r(_0x2fd419);}function i(_0x2ed6bd,_0x306a02){const _0x312513=_0x3607e7;if(r(_0x2ed6bd)!=_0x312513(0xf4)||!_0x2ed6bd)return _0x2ed6bd;var _0x28f125=_0x2ed6bd[Symbol[_0x312513(0xed)]];if(_0x28f125!==void 0x0){var _0x3f1e4d=_0x28f125[_0x312513(0xe8)](_0x2ed6bd,_0x306a02||_0x312513(0x130));if(r(_0x3f1e4d)!=_0x312513(0xf4))return _0x3f1e4d;throw TypeError(_0x312513(0x121));}return(_0x306a02==='string'?String:Number)(_0x2ed6bd);}function a(_0x539c04){const _0x5b65a8=_0x3607e7;var _0xf56c11=i(_0x539c04,_0x5b65a8(0x132));return r(_0xf56c11)==_0x5b65a8(0xfc)?_0xf56c11:_0xf56c11+'';}function o(_0xa143f9,_0x359fb9,_0x28e412){const _0x55d977=_0x3607e7;return(_0x359fb9=a(_0x359fb9))in _0xa143f9?Object[_0x55d977(0xff)](_0xa143f9,_0x359fb9,{'value':_0x28e412,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa143f9[_0x359fb9]=_0x28e412,_0xa143f9;}var s=class extends e[_0x3607e7(0x136)]{constructor(){const _0x230a19=_0x3607e7;super(),o(this,_0x230a19(0x119),new Map()),o(this,'_linesIds',new Set()),o(this,'_groupIds',new Set());}[_0x3607e7(0xf5)](_0x2e1c41,_0x117720,_0x36f46e){const _0x2e3dbe=_0x3607e7;let _0x4de086=new t['ShapeModel'](_0x2e1c41,_0x117720,_0x36f46e);return this[_0x2e3dbe(0x119)]['set'](_0x117720,_0x4de086),(0x0,t[_0x2e3dbe(0x11a)])(_0x2e1c41)&&this['_linesIds']['add'](_0x117720),_0x4de086;}[_0x3607e7(0xe5)](_0x2febb5){const _0x4dbe31=_0x3607e7;let _0x431a4d=[];for(let _0x4b7092 of this['_linesIds']){let _0x5b042b=this[_0x4dbe31(0x119)]['get'](_0x4b7092);if(_0x5b042b){let _0x1783dd=_0x5b042b[_0x4dbe31(0xf9)]();if(_0x1783dd){var _0x4ef0bb,_0x1ca511;((_0x4ef0bb=_0x1783dd[_0x4dbe31(0xee)])==null?void 0x0:_0x4ef0bb[_0x4dbe31(0x10c)])===_0x2febb5&&_0x431a4d[_0x4dbe31(0xf7)]({..._0x1783dd['from'],'lineShapeId':_0x4b7092,'isFrom':!0x0}),((_0x1ca511=_0x1783dd['to'])==null?void 0x0:_0x1ca511[_0x4dbe31(0x10c)])===_0x2febb5&&_0x431a4d['push']({..._0x1783dd['to'],'lineShapeId':_0x4b7092,'isFrom':!0x1});}}}return _0x431a4d;}[_0x3607e7(0x14a)](_0x26702c){const _0x2a9fc1=_0x3607e7;let _0x35eeb7=this[_0x2a9fc1(0x119)][_0x2a9fc1(0x12c)](_0x26702c);if(_0x35eeb7)return _0x35eeb7[_0x2a9fc1(0xf9)]();}[_0x3607e7(0x107)](_0x524d12){const _0xba1d43=_0x3607e7;let _0x3f5947=this[_0xba1d43(0x119)][_0xba1d43(0x12c)](_0x524d12);if(_0x3f5947)return _0x3f5947[_0xba1d43(0x107)]();}[_0x3607e7(0x12a)](_0x5bc190){return this['_shapes']['has'](_0x5bc190);}[_0x3607e7(0x128)](_0x55517d){const _0xff211e=_0x3607e7;let _0x170393=this[_0xff211e(0x119)][_0xff211e(0x12c)](_0x55517d);_0x170393&&((0x0,t['isConnectorShape'])(_0x170393[_0xff211e(0x107)]())&&this[_0xff211e(0x117)][_0xff211e(0x112)](_0x55517d),this['_shapes']['delete'](_0x55517d));}[_0x3607e7(0xe7)](){const _0x259e7a=_0x3607e7;let _0x2aa245=[];return this[_0x259e7a(0x119)][_0x259e7a(0x110)](_0xbb1392=>{const _0x41572b=_0x259e7a;_0x2aa245[_0x41572b(0xf7)](_0xbb1392['toJSON']());}),_0x2aa245;}[_0x3607e7(0x11b)](_0x3a449f){const _0x369348=_0x3607e7;for(let _0x4d19f6 of _0x3a449f){let {id:_0x5bdd24,shapeType:_0x22ed95}=_0x4d19f6,_0x31600f=this['addShape'](_0x22ed95,_0x5bdd24,_0x4d19f6[_0x369348(0x124)]);_0x31600f&&_0x31600f[_0x369348(0xfe)]()&&this[_0x369348(0x117)][_0x369348(0x11e)](_0x5bdd24);}}[_0x3607e7(0x147)](){const _0xd177e5=_0x3607e7;this['_disposed']||(this[_0xd177e5(0x119)]['forEach'](_0x2abac8=>{const _0x524f8f=_0xd177e5;_0x2abac8[_0x524f8f(0x147)]();}),this[_0xd177e5(0x119)][_0xd177e5(0x129)](),this[_0xd177e5(0x117)][_0xd177e5(0x129)](),this[_0xd177e5(0xea)][_0xd177e5(0x129)](),super[_0xd177e5(0x147)]());}};function c(_0x8efec,_0xde5384){return function(_0x5373fa,_0x1c0b75){_0xde5384(_0x5373fa,_0x1c0b75,_0x8efec);};}function _0x1596(){const _0x2b7a24=['fromJSON','params','syncExecuteCommand','add','DependentOn','_commandService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','IUndoRedoService','function','shapeData','setShapeType','9oqgwYv','UpdateSheetsShapeTypeCommand','removeShape','clear','hasShape','insertShape','get','0.17.0-insiders.20260318-5bef180','touchDependencies','sheet.mutation.remove-shape','default','IConfigService','string','length','getShapeModel','CommandType','Disposable','_injector','InsertSheetsShapeMutation','8609810vQvvsl','pluginName','_serializeShapeForUnit','8wkQisV','_configService','version','_shapeModelManagerMap','sheet.mutation.insert-shape','toStringTag','constructor','2430222vWsGFt','stringify','type','UNIVER_SHEET','dispose','84093YmlCnv','decorate','getLineShapeRelation','_initCommands','getBasicShapeRelation','SheetsShapeService','toJSON','call','iterator','_groupIds','_config','getShapeData','toPrimitive','from','getBasicShapeType','788186WudSlG','_resourcesManagerService','_initSnapshot','199640RHofzU','object','addShape','set','push','IResourceManagerService','getShapeRelation','sheet.command.update-shape-type','SHEET_SHAPE_PLUGIN','symbol','getShapeDataById','isLineShape','defineProperty','UniverLicensePlugin','packageName','keys','getOwnPropertyDescriptor','Inject','858096KwwAcl','UpdateSheetsShapeTypeMutation','getShapeType','setShapeData','_ensureShapeModelManager','getShapeTypeById','registerPluginResource','shapeId','_deserializeShapeForUnit','UniverInstanceType','1843570McJaQY','forEach','MUTATION','delete','onRendered','Plugin','parse','prototype','_linesIds','4fqFQHV','_shapes','isConnectorShape'];_0x1596=function(){return _0x2b7a24;};return _0x1596();}function l(_0x5998bf,_0x5a8ea7,_0x445db5,_0x4f7087){const _0x5c7a4e=_0x3607e7;var _0x231490=arguments[_0x5c7a4e(0x133)],_0x7e4f1f=_0x231490<0x3?_0x5a8ea7:_0x4f7087===null?_0x4f7087=Object[_0x5c7a4e(0x103)](_0x5a8ea7,_0x445db5):_0x4f7087,_0x20d15f;if(typeof Reflect==_0x5c7a4e(0xf4)&&typeof Reflect[_0x5c7a4e(0x149)]==_0x5c7a4e(0x123))_0x7e4f1f=Reflect['decorate'](_0x5998bf,_0x5a8ea7,_0x445db5,_0x4f7087);else{for(var _0x24c8f6=_0x5998bf[_0x5c7a4e(0x133)]-0x1;_0x24c8f6>=0x0;_0x24c8f6--)(_0x20d15f=_0x5998bf[_0x24c8f6])&&(_0x7e4f1f=(_0x231490<0x3?_0x20d15f(_0x7e4f1f):_0x231490>0x3?_0x20d15f(_0x5a8ea7,_0x445db5,_0x7e4f1f):_0x20d15f(_0x5a8ea7,_0x445db5))||_0x7e4f1f);}return _0x231490>0x3&&_0x7e4f1f&&Object[_0x5c7a4e(0xff)](_0x5a8ea7,_0x445db5,_0x7e4f1f),_0x7e4f1f;}let u=class extends e[_0x3607e7(0x136)]{constructor(_0x164854){const _0x2af770=_0x3607e7;super(),this[_0x2af770(0xf1)]=_0x164854,o(this,'_shapeModelManagerMap',new Map()),this[_0x2af770(0xf2)]();}[_0x3607e7(0x109)](_0x4037b7,_0x3a082e){const _0x30087c=_0x3607e7;let _0x425caf=this[_0x30087c(0x13f)][_0x30087c(0x12c)](_0x4037b7);_0x425caf||(_0x425caf=new Map(),this[_0x30087c(0x13f)][_0x30087c(0xf6)](_0x4037b7,_0x425caf));let _0x15ff2d=_0x425caf[_0x30087c(0x12c)](_0x3a082e);return _0x15ff2d||(_0x15ff2d=new s(),_0x425caf['set'](_0x3a082e,_0x15ff2d)),_0x15ff2d;}['insertShape'](_0xdc60d1,_0x361b14,_0x465f7,_0x388aba,_0x4c1200){const _0x1468e7=_0x3607e7;this[_0x1468e7(0x109)](_0xdc60d1,_0x361b14)[_0x1468e7(0xf5)](_0x465f7,_0x388aba,_0x4c1200);}[_0x3607e7(0x128)](_0x496379,_0x281922,_0x4692d2){const _0x2d1a1e=_0x3607e7;this[_0x2d1a1e(0x109)](_0x496379,_0x281922)[_0x2d1a1e(0x128)](_0x4692d2);}[_0x3607e7(0xef)](_0x1acb1f,_0x14297f,_0x29103a){const _0x1eaadf=_0x3607e7;return this[_0x1eaadf(0x109)](_0x1acb1f,_0x14297f)[_0x1eaadf(0x107)](_0x29103a);}[_0x3607e7(0x107)](_0x38eff3,_0x2d73af,_0x517c4b){const _0x436878=_0x3607e7;return this[_0x436878(0x109)](_0x38eff3,_0x2d73af)['getShapeType'](_0x517c4b);}[_0x3607e7(0x12a)](_0x13c051,_0x510580,_0x158bef){const _0x5c697b=_0x3607e7;return this[_0x5c697b(0x109)](_0x13c051,_0x510580)[_0x5c697b(0x12a)](_0x158bef);}[_0x3607e7(0x10a)](_0x1d503a,_0x10e52a,_0x43db57){const _0x7992d7=_0x3607e7;return this[_0x7992d7(0x109)](_0x1d503a,_0x10e52a)[_0x7992d7(0x107)](_0x43db57);}[_0x3607e7(0xfd)](_0x4e1120,_0x509566,_0x221585){const _0x3e590c=_0x3607e7;let _0x875784=this[_0x3e590c(0x109)](_0x4e1120,_0x509566);if(!_0x875784['getShapeType'](_0x221585))return;let _0x557361=_0x875784[_0x3e590c(0x119)][_0x3e590c(0x12c)](_0x221585);if(_0x557361)return _0x557361['getShapeData']();}[_0x3607e7(0x134)](_0x129cdc,_0x2c79c8,_0x4a85f5){const _0x51f2c2=_0x3607e7;return this[_0x51f2c2(0x109)](_0x129cdc,_0x2c79c8)['_shapes']['get'](_0x4a85f5);}[_0x3607e7(0xe5)](_0x125eca,_0xc05b9b,_0x35e83b){const _0x519a2d=_0x3607e7;return this['_ensureShapeModelManager'](_0x125eca,_0xc05b9b)[_0x519a2d(0xe5)](_0x35e83b);}[_0x3607e7(0x14a)](_0x65f58a,_0x1ada52,_0x158e3a){const _0x287f5e=_0x3607e7;let _0x2d8d25=this[_0x287f5e(0x109)](_0x65f58a,_0x1ada52)['_shapes'][_0x287f5e(0x12c)](_0x158e3a);if(_0x2d8d25)return _0x2d8d25[_0x287f5e(0xf9)]();}[_0x3607e7(0x125)](){}['_serializeShapeForUnit'](_0x37fed0){const _0x137f7c=_0x3607e7;let _0x226290={},_0x1286dc=this['_shapeModelManagerMap']['get'](_0x37fed0);return _0x1286dc&&_0x1286dc[_0x137f7c(0x110)]((_0x4840d2,_0x5173d2)=>{const _0x4e2d95=_0x137f7c;let _0x29144a=_0x4840d2['toJSON']();_0x29144a[_0x4e2d95(0x133)]>0x0&&(_0x226290[_0x5173d2]=_0x29144a);}),JSON[_0x137f7c(0x144)](_0x226290);}[_0x3607e7(0x10d)](_0x419f3f,_0xfb55c9){const _0x49f4a4=_0x3607e7;Object[_0x49f4a4(0x102)](_0xfb55c9)['forEach'](_0x162728=>{const _0x1a01bd=_0x49f4a4;this['_ensureShapeModelManager'](_0x419f3f,_0x162728)[_0x1a01bd(0x11b)](_0xfb55c9[_0x162728]);});}[_0x3607e7(0xe7)](){const _0x54b26d=_0x3607e7;let _0x5d6081={};return this[_0x54b26d(0x13f)][_0x54b26d(0x110)]((_0x161d05,_0x54beb5)=>{const _0x48b5ba=_0x54b26d;_0x5d6081[_0x54beb5]={},_0x161d05[_0x48b5ba(0x110)]((_0x3286da,_0x54476d)=>{const _0x58c163=_0x48b5ba;_0x5d6081[_0x54beb5][_0x54476d]=_0x3286da[_0x58c163(0xe7)]();});}),_0x5d6081;}[_0x3607e7(0x11b)](_0x3a8c98){const _0x500d32=_0x3607e7;Object[_0x500d32(0x102)](_0x3a8c98)[_0x500d32(0x110)](_0x565104=>{const _0x7cc081=_0x500d32;let _0x12f7a6=_0x3a8c98[_0x565104];Object['keys'](_0x12f7a6)[_0x7cc081(0x110)](_0x152c95=>{const _0x46336c=_0x7cc081;this[_0x46336c(0x109)](_0x565104,_0x152c95)[_0x46336c(0x11b)](_0x12f7a6[_0x152c95]);});});}[_0x3607e7(0xf2)](){const _0x1eac9e=_0x3607e7;this[_0x1eac9e(0xf1)][_0x1eac9e(0x10b)]({'pluginName':_0x1eac9e(0xfb),'businesses':[e[_0x1eac9e(0x10e)][_0x1eac9e(0x146)]],'toJson':_0xa42e70=>this[_0x1eac9e(0x13b)](_0xa42e70),'parseJson':_0x1dbf7e=>JSON[_0x1eac9e(0x115)](_0x1dbf7e),'onLoad':(_0x16a2a3,_0x241794)=>{this['_deserializeShapeForUnit'](_0x16a2a3,_0x241794);},'onUnLoad':_0x1688fb=>{const _0x17a3a1=_0x1eac9e;let _0x4e052e=this[_0x17a3a1(0x13f)][_0x17a3a1(0x12c)](_0x1688fb);_0x4e052e&&(_0x4e052e['forEach'](_0x1ec329=>{_0x1ec329['dispose']();}),this[_0x17a3a1(0x13f)][_0x17a3a1(0x112)](_0x1688fb));}});}[_0x3607e7(0x147)](){const _0x1e371a=_0x3607e7;this['_shapeModelManagerMap'][_0x1e371a(0x110)](_0x3b4ae7=>{const _0x20e811=_0x1e371a;_0x3b4ae7[_0x20e811(0x110)](_0x1ef1ef=>{const _0x3af353=_0x20e811;_0x1ef1ef[_0x3af353(0x147)]();});});}};u=l([c(0x0,e[_0x3607e7(0xf8)])],u);const d={'id':'sheet.mutation.update-shape-type','type':e[_0x3607e7(0x135)]['MUTATION'],'handler':(_0x4a8771,_0x49b242)=>{const _0x49b66e=_0x3607e7;let {unitId:_0x4f0615,subUnitId:_0x1c99a2,shapeType:_0x20bb42,shapeId:_0x18a0c0,shapeData:_0xb9abea}=_0x49b242,_0x142f5b=_0x4a8771[_0x49b66e(0x12c)](u)['getShapeModel'](_0x4f0615,_0x1c99a2,_0x18a0c0);return _0x142f5b&&(_0x142f5b['setShapeType'](_0x20bb42),_0xb9abea&&(_0x142f5b==null||_0x142f5b['setShapeData'](_0xb9abea))),!0x0;}},f={'id':_0x3607e7(0xfa),'type':e[_0x3607e7(0x135)]['COMMAND'],'handler':(_0x2e7250,_0x154fa8)=>{const _0xf09be2=_0x3607e7;if(!_0x154fa8)return!0x1;let _0x33ccb9=_0x2e7250[_0xf09be2(0x12c)](e['ICommandService']),_0x14e691=_0x2e7250[_0xf09be2(0x12c)](u),_0x46a323=_0x2e7250[_0xf09be2(0x12c)](e[_0xf09be2(0x122)]),_0x5ee299=[],_0x3b6aff=[],{unitId:_0x5d4eab,subUnitId:_0xcdfc85,shapeId:_0x4b24ae,shapeType:_0x127790,shapeData:_0x4f575f}=_0x154fa8,_0x363cf4=_0x14e691['getShapeModel'](_0x5d4eab,_0xcdfc85,_0x4b24ae);if(_0x363cf4){let _0x5da040=_0x363cf4[_0xf09be2(0x107)](),_0x4474b4=Object['assign']({},_0x363cf4[_0xf09be2(0xec)]()),_0x87ec8b={'unitId':_0x5d4eab,'subUnitId':_0xcdfc85,'shapeId':_0x4b24ae,'shapeType':_0x127790,'shapeData':_0x4f575f},_0x5a46cf={'unitId':_0x5d4eab,'subUnitId':_0xcdfc85,'shapeId':_0x4b24ae,'shapeType':_0x5da040,'shapeData':_0x4474b4};return _0x5ee299[_0xf09be2(0xf7)]({'id':d['id'],'params':_0x87ec8b}),_0x3b6aff[_0xf09be2(0xf7)]({'id':d['id'],'params':_0x5a46cf}),_0x5ee299['every'](_0x427504=>_0x33ccb9[_0xf09be2(0x11d)](_0x427504['id'],_0x427504[_0xf09be2(0x11c)]))&&_0x46a323['pushUndoRedo']({'unitID':_0x5d4eab,'redoMutations':[..._0x5ee299],'undoMutations':[..._0x3b6aff]}),!0x0;}return!0x1;}},p={'id':_0x3607e7(0x140),'type':e[_0x3607e7(0x135)]['MUTATION'],'handler':(_0x306af2,_0x2c71f5)=>{const _0x27be26=_0x3607e7;let {unitId:_0x26742e,subUnitId:_0x2cd99f,shapeType:_0x5647d5,shapeId:_0x14b073,shapeData:_0x403e83}=_0x2c71f5;return _0x306af2[_0x27be26(0x12c)](u)[_0x27be26(0x12b)](_0x26742e,_0x2cd99f,_0x5647d5,_0x14b073,_0x403e83),!0x0;}},m={'id':_0x3607e7(0x12f),'type':e[_0x3607e7(0x135)][_0x3607e7(0x111)],'handler':(_0x378520,_0x214f04)=>{const _0x2486a6=_0x3607e7;let {unitId:_0x4ed836,subUnitId:_0x45d665,shapeId:_0x4e6bb6}=_0x214f04;return _0x378520['get'](u)[_0x2486a6(0x128)](_0x4ed836,_0x45d665,_0x4e6bb6),!0x0;}},h={'id':'sheet.mutation.update-shape-data','type':e[_0x3607e7(0x135)]['MUTATION'],'handler':(_0x229647,_0x62e9a2)=>{const _0x4069e4=_0x3607e7;let {unitId:_0x25f958,subUnitId:_0x22c8ec,shapeType:_0x448f79,shapeId:_0x2ac3e3,shapeData:_0x14ef86}=_0x62e9a2,_0x4ed1c3=_0x229647[_0x4069e4(0x12c)](u)[_0x4069e4(0x134)](_0x25f958,_0x22c8ec,_0x2ac3e3);return _0x4ed1c3&&(_0x448f79!==void 0x0&&_0x4ed1c3[_0x4069e4(0x125)](_0x448f79),_0x14ef86&&(_0x4ed1c3==null||_0x4ed1c3[_0x4069e4(0x108)](_0x14ef86,!0x0))),!0x0;}};var g='@univerjs-pro/sheets-shape',_=_0x3607e7(0x12d);const v='sheets-shape.config';Symbol(v);const y={};let b=class extends e[_0x3607e7(0x114)]{constructor(_0x1ddd69=y,_0x77a2d7,_0x2da41a,_0x319748){const _0x41f2f4=_0x3607e7;super(),this[_0x41f2f4(0xeb)]=_0x1ddd69,this[_0x41f2f4(0x137)]=_0x77a2d7,this['_commandService']=_0x2da41a,this[_0x41f2f4(0x13d)]=_0x319748;let {..._0x2156a9}=(0x0,e['merge'])({},y,this[_0x41f2f4(0xeb)]);this[_0x41f2f4(0x13d)]['setConfig'](v,_0x2156a9),this[_0x41f2f4(0x14b)]();}[_0x3607e7(0x113)](){const _0x240be9=_0x3607e7;(0x0,e[_0x240be9(0x12e)])(this[_0x240be9(0x137)],[]);}['onStarting'](){const _0x28920a=_0x3607e7;let _0x1a4ed5=this[_0x28920a(0x137)];[[s],[u]][_0x28920a(0x110)](_0x3ac9fb=>_0x1a4ed5[_0x28920a(0x11e)](_0x3ac9fb));}[_0x3607e7(0x14b)](){const _0x4e1086=_0x3607e7;[p,m,d,h][_0x4e1086(0x110)](_0x3e68f9=>this['disposeWithMe'](this[_0x4e1086(0x120)]['registerCommand'](_0x3e68f9)));}};function _0x2514(_0x139e48,_0x32df5a){_0x139e48=_0x139e48-0xe5;const _0x159641=_0x1596();let _0x251430=_0x159641[_0x139e48];return _0x251430;}o(b,_0x3607e7(0x145),e[_0x3607e7(0x10e)]['UNIVER_SHEET']),o(b,_0x3607e7(0x13a),_0x3607e7(0xfb)),o(b,_0x3607e7(0x101),g),o(b,_0x3607e7(0x13e),_),b=l([(0x0,e[_0x3607e7(0x11f)])(n[_0x3607e7(0x100)]),c(0x1,(0x0,e[_0x3607e7(0x104)])(e['Injector'])),c(0x2,e['ICommandService']),c(0x3,e[_0x3607e7(0x131)])],b),exports[_0x3607e7(0x138)]=p,exports['RemoveSheetsShapeMutation']=m,Object[_0x3607e7(0xff)](exports,_0x3607e7(0xe6),{'enumerable':!0x0,'get':function(){return u;}}),Object[_0x3607e7(0xff)](exports,'UniverSheetsShapePlugin',{'enumerable':!0x0,'get':function(){return b;}}),exports['UpdateSheetsShapeDataMutation']=h,exports[_0x3607e7(0x127)]=f,exports[_0x3607e7(0x106)]=d;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3ff888=_0x4e6f;(function(_0xb6cc11,_0x51e16b){const _0x511fe0=_0x4e6f,_0x4816b8=_0xb6cc11();while(!![]){try{const _0x15453c=parseInt(_0x511fe0(0xea))/0x1+-parseInt(_0x511fe0(0x11e))/0x2*(parseInt(_0x511fe0(0x119))/0x3)+-parseInt(_0x511fe0(0xe3))/0x4*(-parseInt(_0x511fe0(0x11f))/0x5)+parseInt(_0x511fe0(0xf9))/0x6*(-parseInt(_0x511fe0(0x11b))/0x7)+parseInt(_0x511fe0(0x105))/0x8*(-parseInt(_0x511fe0(0xe9))/0x9)+-parseInt(_0x511fe0(0xe4))/0xa*(-parseInt(_0x511fe0(0x115))/0xb)+parseInt(_0x511fe0(0x116))/0xc;if(_0x15453c===_0x51e16b)break;else _0x4816b8['push'](_0x4816b8['shift']());}catch(_0x4691f2){_0x4816b8['push'](_0x4816b8['shift']());}}}(_0x131d,0x5ea04));var R=Object['defineProperty'],C=(_0x5706b7,_0x3c38ab,_0x26cc2a)=>_0x3c38ab in _0x5706b7?R(_0x5706b7,_0x3c38ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26cc2a}):_0x5706b7[_0x3c38ab]=_0x26cc2a,d=(_0x498909,_0x33e61b,_0x42406c)=>C(_0x498909,typeof _0x33e61b!='symbol'?_0x33e61b+'':_0x33e61b,_0x42406c);import{Disposable as _0x52dc16,UniverInstanceType as _0x107b27,IResourceManagerService as _0x119863,CommandType as _0x2b08be,ICommandService as _0x11fca2,IUndoRedoService as _0xec8a3,DependentOn as _0x15f9bd,Inject as _0x574c09,Injector as _0x1a8826,Plugin as _0x665b7d,merge as _0x4f2c70,touchDependencies as _0x434c38,IConfigService as _0x2c4b94}from'@univerjs/core';import{ShapeModel as _0x5ba7a0,isConnectorShape as _0x2979b2}from'@univerjs-pro/engine-shape';function _0x4e6f(_0x1013d,_0x34a829){_0x1013d=_0x1013d-0xdb;const _0x131d49=_0x131d();let _0x4e6ff1=_0x131d49[_0x1013d];return _0x4e6ff1;}import{UniverLicensePlugin as _0x1070ce}from'@univerjs-pro/license';class T extends _0x52dc16{constructor(){const _0x3e07e8=_0x4e6f;super(),d(this,'_shapes',new Map()),d(this,_0x3e07e8(0xee),new Set()),d(this,_0x3e07e8(0xe6),new Set());}['addShape'](_0xd4eb03,_0x5695ec,_0x405ed0){const _0x5b0b18=_0x4e6f,_0x6086a1=new _0x5ba7a0(_0xd4eb03,_0x5695ec,_0x405ed0);return this[_0x5b0b18(0xef)]['set'](_0x5695ec,_0x6086a1),_0x2979b2(_0xd4eb03)&&this[_0x5b0b18(0xee)][_0x5b0b18(0x127)](_0x5695ec),_0x6086a1;}[_0x3ff888(0x106)](_0x59232c){const _0x27c2d9=_0x3ff888;var _0x13301a,_0x5a4a73;const _0x42f730=[];for(const _0x31b189 of this[_0x27c2d9(0xee)]){const _0x50086a=this['_shapes'][_0x27c2d9(0x128)](_0x31b189);if(_0x50086a){const _0x2ae5da=_0x50086a[_0x27c2d9(0x118)]();_0x2ae5da&&(((_0x13301a=_0x2ae5da['from'])==null?void 0x0:_0x13301a['shapeId'])===_0x59232c&&_0x42f730[_0x27c2d9(0x120)]({..._0x2ae5da[_0x27c2d9(0x104)],'lineShapeId':_0x31b189,'isFrom':!0x0}),((_0x5a4a73=_0x2ae5da['to'])==null?void 0x0:_0x5a4a73[_0x27c2d9(0xfa)])===_0x59232c&&_0x42f730[_0x27c2d9(0x120)]({..._0x2ae5da['to'],'lineShapeId':_0x31b189,'isFrom':!0x1}));}}return _0x42f730;}[_0x3ff888(0xdd)](_0x48dc81){const _0x2605c2=_0x3ff888,_0x27fdbf=this[_0x2605c2(0xef)][_0x2605c2(0x128)](_0x48dc81);if(_0x27fdbf)return _0x27fdbf[_0x2605c2(0x118)]();}[_0x3ff888(0xff)](_0x26bd7a){const _0x5d0ea8=_0x3ff888,_0x24c24a=this[_0x5d0ea8(0xef)]['get'](_0x26bd7a);if(_0x24c24a)return _0x24c24a[_0x5d0ea8(0xff)]();}[_0x3ff888(0x110)](_0x40ee11){const _0x1f17c8=_0x3ff888;return this[_0x1f17c8(0xef)][_0x1f17c8(0xf7)](_0x40ee11);}['removeShape'](_0x137cad){const _0x1d3dd5=_0x3ff888,_0x3e7744=this[_0x1d3dd5(0xef)][_0x1d3dd5(0x128)](_0x137cad);_0x3e7744&&(_0x2979b2(_0x3e7744[_0x1d3dd5(0xff)]())&&this['_linesIds'][_0x1d3dd5(0x101)](_0x137cad),this[_0x1d3dd5(0xef)][_0x1d3dd5(0x101)](_0x137cad));}['toJSON'](){const _0x43558d=_0x3ff888,_0x49f00c=[];return this[_0x43558d(0xef)]['forEach'](_0x17a874=>{_0x49f00c['push'](_0x17a874['toJSON']());}),_0x49f00c;}[_0x3ff888(0x112)](_0x4258cc){const _0x45ac54=_0x3ff888;for(const _0xf01c85 of _0x4258cc){const {id:_0x45e27b,shapeType:_0x5c07fc}=_0xf01c85,_0x4d6468=this[_0x45ac54(0x124)](_0x5c07fc,_0x45e27b,_0xf01c85['shapeData']);_0x4d6468&&_0x4d6468['isLineShape']()&&this[_0x45ac54(0xee)]['add'](_0x45e27b);}}[_0x3ff888(0x11d)](){const _0x170860=_0x3ff888;this[_0x170860(0xf4)]||(this[_0x170860(0xef)]['forEach'](_0x4ac489=>{_0x4ac489['dispose']();}),this[_0x170860(0xef)][_0x170860(0x10e)](),this[_0x170860(0xee)][_0x170860(0x10e)](),this[_0x170860(0xe6)][_0x170860(0x10e)](),super[_0x170860(0x11d)]());}}var $=Object[_0x3ff888(0x11a)],V=(_0x42459a,_0x5f335d,_0x5f5bab,_0x5d22f9)=>{const _0x52805c=_0x3ff888;for(var _0x3d864e=_0x5d22f9>0x1?void 0x0:_0x5d22f9?$(_0x5f335d,_0x5f5bab):_0x5f335d,_0x3f8260=_0x42459a[_0x52805c(0x11c)]-0x1,_0x234de0;_0x3f8260>=0x0;_0x3f8260--)(_0x234de0=_0x42459a[_0x3f8260])&&(_0x3d864e=_0x234de0(_0x3d864e)||_0x3d864e);return _0x3d864e;},K=(_0x2a6e24,_0x533426)=>(_0x13b098,_0x2ee0bb)=>_0x533426(_0x13b098,_0x2ee0bb,_0x2a6e24);function _0x131d(){const _0x3b06e7=['length','dispose','2tBWiPZ','89345rxuaff','push','_injector','SHEET_SHAPE_PLUGIN','_config','addShape','setShapeType','keys','add','get','syncExecuteCommand','sheet.mutation.update-shape-data','getLineShapeRelation','_ensureShapeModelManager','sheet.mutation.update-shape-type','parse','onRendered','getShapeDataById','76KjxcAU','10hvaREo','toJSON','_groupIds','setShapeData','_resourcesManagerService','2697075xBQwYS','664229pjSQxd','symbol','assign','getShapeTypeById','_linesIds','_shapes','_serializeShapeForUnit','registerPluginResource','MUTATION','_shapeModelManagerMap','_disposed','sheet.command.update-shape-type','_deserializeShapeForUnit','has','forEach','24qbIDqz','shapeId','_initSnapshot','every','insertShape','type','getShapeType','UNIVER_SHEET','delete','COMMAND','_configService','from','8YzPVyM','getBasicShapeRelation','removeShape','pushUndoRedo','disposeWithMe','getShapeData','onStarting','setConfig','_initCommands','clear','pluginName','hasShape','getShapeModel','fromJSON','set','registerCommand','4949054ANrgBb','30276sdHtHP','_commandService','getShapeRelation','1959822cbtKqV','getOwnPropertyDescriptor','202370XuBBcb'];_0x131d=function(){return _0x3b06e7;};return _0x131d();}const W=_0x3ff888(0x122);let i=class extends _0x52dc16{constructor(_0x4583a1){const _0x290d69=_0x3ff888;super(),d(this,_0x290d69(0xf3),new Map()),(this[_0x290d69(0xe8)]=_0x4583a1,this[_0x290d69(0xfb)]());}['_ensureShapeModelManager'](_0x3fa9b5,_0x44fa13){const _0x14b57c=_0x3ff888;let _0x568647=this[_0x14b57c(0xf3)][_0x14b57c(0x128)](_0x3fa9b5);_0x568647||(_0x568647=new Map(),this[_0x14b57c(0xf3)][_0x14b57c(0x113)](_0x3fa9b5,_0x568647));let _0x538727=_0x568647[_0x14b57c(0x128)](_0x44fa13);return _0x538727||(_0x538727=new T(),_0x568647[_0x14b57c(0x113)](_0x44fa13,_0x538727)),_0x538727;}[_0x3ff888(0xfd)](_0x594cce,_0x179478,_0x5b2584,_0x35f361,_0x377834){const _0x8a54c=_0x3ff888;this[_0x8a54c(0xde)](_0x594cce,_0x179478)[_0x8a54c(0x124)](_0x5b2584,_0x35f361,_0x377834);}[_0x3ff888(0x107)](_0x7cb3cf,_0x2173dc,_0x602daf){const _0x3801aa=_0x3ff888;this[_0x3801aa(0xde)](_0x7cb3cf,_0x2173dc)[_0x3801aa(0x107)](_0x602daf);}['getBasicShapeType'](_0x3470ef,_0xf9c691,_0x39bbff){const _0x389e08=_0x3ff888;return this[_0x389e08(0xde)](_0x3470ef,_0xf9c691)[_0x389e08(0xff)](_0x39bbff);}[_0x3ff888(0xff)](_0x1bd6bc,_0x3fd9e5,_0x151bfb){const _0xb008d8=_0x3ff888;return this[_0xb008d8(0xde)](_0x1bd6bc,_0x3fd9e5)['getShapeType'](_0x151bfb);}['hasShape'](_0x4f32dc,_0x3c434f,_0x2c79f2){const _0x4c7bf4=_0x3ff888;return this['_ensureShapeModelManager'](_0x4f32dc,_0x3c434f)[_0x4c7bf4(0x110)](_0x2c79f2);}[_0x3ff888(0xed)](_0x46b879,_0x4dbd7c,_0x509c14){const _0x504108=_0x3ff888;return this[_0x504108(0xde)](_0x46b879,_0x4dbd7c)[_0x504108(0xff)](_0x509c14);}[_0x3ff888(0xe2)](_0x37d72e,_0x7ae954,_0x4172fa){const _0x1fdd4e=_0x3ff888,_0x4ddd5c=this[_0x1fdd4e(0xde)](_0x37d72e,_0x7ae954);if(!_0x4ddd5c[_0x1fdd4e(0xff)](_0x4172fa))return;const _0x25246d=_0x4ddd5c[_0x1fdd4e(0xef)]['get'](_0x4172fa);if(_0x25246d)return _0x25246d['getShapeData']();}[_0x3ff888(0x111)](_0x17ef44,_0x4d9d5b,_0x3af3c7){const _0x21149a=_0x3ff888;return this[_0x21149a(0xde)](_0x17ef44,_0x4d9d5b)['_shapes'][_0x21149a(0x128)](_0x3af3c7);}[_0x3ff888(0x106)](_0x3e7383,_0xb9a35a,_0x520f25){const _0x332d8d=_0x3ff888;return this['_ensureShapeModelManager'](_0x3e7383,_0xb9a35a)[_0x332d8d(0x106)](_0x520f25);}[_0x3ff888(0xdd)](_0x5982dd,_0x5dd3da,_0x4a7f48){const _0x10ecd7=_0x3ff888,_0x313a6a=this[_0x10ecd7(0xde)](_0x5982dd,_0x5dd3da)['_shapes']['get'](_0x4a7f48);if(_0x313a6a)return _0x313a6a['getShapeRelation']();}[_0x3ff888(0x125)](){}[_0x3ff888(0xf0)](_0x708977){const _0x16b9de=_0x3ff888,_0x2c63e5={},_0x5c6c9f=this[_0x16b9de(0xf3)][_0x16b9de(0x128)](_0x708977);return _0x5c6c9f&&_0x5c6c9f['forEach']((_0x264603,_0x210316)=>{const _0xe1985c=_0x16b9de,_0x56e674=_0x264603[_0xe1985c(0xe5)]();_0x56e674['length']>0x0&&(_0x2c63e5[_0x210316]=_0x56e674);}),JSON['stringify'](_0x2c63e5);}[_0x3ff888(0xf6)](_0xd15a5e,_0x1e4467){const _0x449a08=_0x3ff888;Object[_0x449a08(0x126)](_0x1e4467)[_0x449a08(0xf8)](_0x374727=>{const _0x59e184=_0x449a08;this[_0x59e184(0xde)](_0xd15a5e,_0x374727)[_0x59e184(0x112)](_0x1e4467[_0x374727]);});}['toJSON'](){const _0x316701=_0x3ff888,_0x4f881a={};return this[_0x316701(0xf3)][_0x316701(0xf8)]((_0x1f143a,_0x3bb1a9)=>{_0x4f881a[_0x3bb1a9]={},_0x1f143a['forEach']((_0x3e299d,_0x274175)=>{const _0x402722=_0x4e6f;_0x4f881a[_0x3bb1a9][_0x274175]=_0x3e299d[_0x402722(0xe5)]();});}),_0x4f881a;}[_0x3ff888(0x112)](_0x259932){const _0x3637df=_0x3ff888;Object[_0x3637df(0x126)](_0x259932)[_0x3637df(0xf8)](_0x1464e3=>{const _0x140f98=_0x3637df,_0x1aa49f=_0x259932[_0x1464e3];Object[_0x140f98(0x126)](_0x1aa49f)['forEach'](_0x4501e8=>{const _0x307a40=_0x140f98;this[_0x307a40(0xde)](_0x1464e3,_0x4501e8)[_0x307a40(0x112)](_0x1aa49f[_0x4501e8]);});});}[_0x3ff888(0xfb)](){const _0x45d585=_0x3ff888;this[_0x45d585(0xe8)][_0x45d585(0xf1)]({'pluginName':W,'businesses':[_0x107b27[_0x45d585(0x100)]],'toJson':_0x29ec47=>this[_0x45d585(0xf0)](_0x29ec47),'parseJson':_0x29e55d=>JSON[_0x45d585(0xe0)](_0x29e55d),'onLoad':(_0x1c8e04,_0xfd3011)=>{const _0x23997d=_0x45d585;this[_0x23997d(0xf6)](_0x1c8e04,_0xfd3011);},'onUnLoad':_0x1780d6=>{const _0x3f8d30=_0x45d585,_0x375752=this[_0x3f8d30(0xf3)][_0x3f8d30(0x128)](_0x1780d6);_0x375752&&(_0x375752[_0x3f8d30(0xf8)](_0x3f4978=>{const _0x2042c4=_0x3f8d30;_0x3f4978[_0x2042c4(0x11d)]();}),this[_0x3f8d30(0xf3)][_0x3f8d30(0x101)](_0x1780d6));}});}[_0x3ff888(0x11d)](){const _0x1f5124=_0x3ff888;this[_0x1f5124(0xf3)][_0x1f5124(0xf8)](_0x43cc45=>{const _0xfa53b2=_0x1f5124;_0x43cc45[_0xfa53b2(0xf8)](_0x1f2af7=>{const _0x105228=_0xfa53b2;_0x1f2af7[_0x105228(0x11d)]();});});}};i=V([K(0x0,_0x119863)],i);const u={'id':_0x3ff888(0xdf),'type':_0x2b08be['MUTATION'],'handler':(_0x4c8b46,_0x15041d)=>{const _0x5bf80e=_0x3ff888,{unitId:_0x172e2c,subUnitId:_0x33ee5c,shapeType:_0x4a62ef,shapeId:_0x14108c,shapeData:_0xcfd736}=_0x15041d,_0x408b3a=_0x4c8b46[_0x5bf80e(0x128)](i)[_0x5bf80e(0x111)](_0x172e2c,_0x33ee5c,_0x14108c);return _0x408b3a&&(_0x408b3a[_0x5bf80e(0x125)](_0x4a62ef),_0xcfd736&&(_0x408b3a==null||_0x408b3a[_0x5bf80e(0xe7)](_0xcfd736))),!0x0;}},pe={'id':_0x3ff888(0xf5),'type':_0x2b08be[_0x3ff888(0x102)],'handler':(_0x330475,_0x26593e)=>{const _0x28bfdf=_0x3ff888;if(!_0x26593e)return!0x1;const _0x5696ae=_0x330475['get'](_0x11fca2),_0x43be42=_0x330475[_0x28bfdf(0x128)](i),_0x151ba4=_0x330475['get'](_0xec8a3),_0x1f56e0=[],_0x4cd9f5=[],{unitId:_0x462a75,subUnitId:_0x45a086,shapeId:_0xc4b5dc,shapeType:_0x61cb85,shapeData:_0x5840a4}=_0x26593e,_0xa0a92e=_0x43be42['getShapeModel'](_0x462a75,_0x45a086,_0xc4b5dc);if(_0xa0a92e){const _0x32a0be=_0xa0a92e['getShapeType'](),_0x2a0e0c=Object[_0x28bfdf(0xec)]({},_0xa0a92e[_0x28bfdf(0x10a)]()),_0x409408={'unitId':_0x462a75,'subUnitId':_0x45a086,'shapeId':_0xc4b5dc,'shapeType':_0x61cb85,'shapeData':_0x5840a4},_0x8cd1a6={'unitId':_0x462a75,'subUnitId':_0x45a086,'shapeId':_0xc4b5dc,'shapeType':_0x32a0be,'shapeData':_0x2a0e0c};return _0x1f56e0[_0x28bfdf(0x120)]({'id':u['id'],'params':_0x409408}),_0x4cd9f5[_0x28bfdf(0x120)]({'id':u['id'],'params':_0x8cd1a6}),_0x1f56e0[_0x28bfdf(0xfc)](_0x39d469=>_0x5696ae[_0x28bfdf(0xdb)](_0x39d469['id'],_0x39d469['params']))&&_0x151ba4[_0x28bfdf(0x108)]({'unitID':_0x462a75,'redoMutations':[..._0x1f56e0],'undoMutations':[..._0x4cd9f5]}),!0x0;}return!0x1;}},Y={'id':'sheet.mutation.insert-shape','type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0x95da33,_0x309a76)=>{const _0x277b0e=_0x3ff888,{unitId:_0x32fec5,subUnitId:_0x1a2ff4,shapeType:_0x516807,shapeId:_0x307460,shapeData:_0x3abc1c}=_0x309a76;return _0x95da33[_0x277b0e(0x128)](i)['insertShape'](_0x32fec5,_0x1a2ff4,_0x516807,_0x307460,_0x3abc1c),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0x570f1d,_0x2e1297)=>{const _0x37d1dd=_0x3ff888,{unitId:_0x23d1ab,subUnitId:_0x45742e,shapeId:_0x3a3dcc}=_0x2e1297;return _0x570f1d[_0x37d1dd(0x128)](i)['removeShape'](_0x23d1ab,_0x45742e,_0x3a3dcc),!0x0;}},Q={'id':_0x3ff888(0xdc),'type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0xcf2400,_0x599efc)=>{const _0x1941d2=_0x3ff888,{unitId:_0x3e996e,subUnitId:_0x1ff04b,shapeType:_0x203604,shapeId:_0x495970,shapeData:_0x397f8e}=_0x599efc,_0x1c35f1=_0xcf2400[_0x1941d2(0x128)](i)[_0x1941d2(0x111)](_0x3e996e,_0x1ff04b,_0x495970);return _0x1c35f1&&(_0x203604!==void 0x0&&_0x1c35f1['setShapeType'](_0x203604),_0x397f8e&&(_0x1c35f1==null||_0x1c35f1[_0x1941d2(0xe7)](_0x397f8e,!0x0))),!0x0;}},X='sheets-shape.config',m={};var Z=Object['defineProperty'],k=Object[_0x3ff888(0x11a)],ee=(_0xe29c5e,_0x40d766,_0x169a84)=>_0x40d766 in _0xe29c5e?Z(_0xe29c5e,_0x40d766,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x169a84}):_0xe29c5e[_0x40d766]=_0x169a84,ae=(_0x537f3a,_0x25cb92,_0x443a28,_0xf104ac)=>{const _0x2cd593=_0x3ff888;for(var _0x3ed6f2=_0xf104ac>0x1?void 0x0:_0xf104ac?k(_0x25cb92,_0x443a28):_0x25cb92,_0x45fafe=_0x537f3a[_0x2cd593(0x11c)]-0x1,_0x2bedcc;_0x45fafe>=0x0;_0x45fafe--)(_0x2bedcc=_0x537f3a[_0x45fafe])&&(_0x3ed6f2=_0x2bedcc(_0x3ed6f2)||_0x3ed6f2);return _0x3ed6f2;},g=(_0x292061,_0x365684)=>(_0x284e86,_0x5f46a6)=>_0x365684(_0x284e86,_0x5f46a6,_0x292061),E=(_0x3ccf84,_0x2735e1,_0x1d7dd0)=>ee(_0x3ccf84,typeof _0x2735e1!=_0x3ff888(0xeb)?_0x2735e1+'':_0x2735e1,_0x1d7dd0);const se=_0x3ff888(0x122);let S=class extends _0x665b7d{constructor(_0x591af2=m,_0x34eb29,_0x2df2b6,_0x2caeb6){const _0x308fa9=_0x3ff888;super(),this[_0x308fa9(0x123)]=_0x591af2,this[_0x308fa9(0x121)]=_0x34eb29,this[_0x308fa9(0x117)]=_0x2df2b6,this['_configService']=_0x2caeb6;const {..._0x2d2f88}=_0x4f2c70({},m,this['_config']);this[_0x308fa9(0x103)][_0x308fa9(0x10c)](X,_0x2d2f88),this['_initCommands']();}[_0x3ff888(0xe1)](){_0x434c38(this['_injector'],[]);}[_0x3ff888(0x10b)](){const _0x2db0a6=_0x3ff888,_0x14a605=this[_0x2db0a6(0x121)];[[T],[i]][_0x2db0a6(0xf8)](_0x1b3b00=>_0x14a605[_0x2db0a6(0x127)](_0x1b3b00));}[_0x3ff888(0x10d)](){const _0x4a7877=_0x3ff888;[Y,q,u,Q][_0x4a7877(0xf8)](_0x257e64=>this[_0x4a7877(0x109)](this[_0x4a7877(0x117)][_0x4a7877(0x114)](_0x257e64)));}};E(S,_0x3ff888(0xfe),_0x107b27[_0x3ff888(0x100)]),E(S,_0x3ff888(0x10f),se),S=ae([_0x15f9bd(_0x1070ce),g(0x1,_0x574c09(_0x1a8826)),g(0x2,_0x11fca2),g(0x3,_0x2c4b94)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
const _0x507af9=_0x30a0;(function(_0x2e7339,_0x3614c6){const _0x4451ef=_0x30a0,_0x148148=_0x2e7339();while(!![]){try{const _0x489a42=parseInt(_0x4451ef(0x1a4))/0x1*(-parseInt(_0x4451ef(0x1bd))/0x2)+-parseInt(_0x4451ef(0x1c6))/0x3+-parseInt(_0x4451ef(0x19b))/0x4+parseInt(_0x4451ef(0x1d0))/0x5+parseInt(_0x4451ef(0x1e3))/0x6*(parseInt(_0x4451ef(0x1df))/0x7)+parseInt(_0x4451ef(0x1a0))/0x8+-parseInt(_0x4451ef(0x1b1))/0x9;if(_0x489a42===_0x3614c6)break;else _0x148148['push'](_0x148148['shift']());}catch(_0x573179){_0x148148['push'](_0x148148['shift']());}}}(_0x10a1,0x18d41));import{CommandType as _0x395ba8,DependentOn as _0x14f0ed,Disposable as _0x31bd33,ICommandService as _0x4e0c17,IConfigService as _0x95afc2,IResourceManagerService as _0x18aaa8,IUndoRedoService as _0x312996,Inject as _0x5f5519,Injector as _0x36647f,Plugin as _0x5debca,UniverInstanceType as _0x3bd622,merge as _0x253510,touchDependencies as _0x1193b2}from'@univerjs/core';function _0x30a0(_0x5e5991,_0x51ec3c){_0x5e5991=_0x5e5991-0x198;const _0x10a187=_0x10a1();let _0x30a089=_0x10a187[_0x5e5991];return _0x30a089;}import{ShapeModel as _0x42a193,isConnectorShape as _0x2e926b}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x47af1f}from'@univerjs-pro/license';function g(_0x33ae3a){'@babel/helpers - typeof';const _0xaddf16=_0x30a0;return g=typeof Symbol=='function'&&typeof Symbol[_0xaddf16(0x1bc)]==_0xaddf16(0x1ad)?function(_0x572000){return typeof _0x572000;}:function(_0x7c635c){const _0x3dff3f=_0xaddf16;return _0x7c635c&&typeof Symbol==_0x3dff3f(0x1d6)&&_0x7c635c[_0x3dff3f(0x1da)]===Symbol&&_0x7c635c!==Symbol[_0x3dff3f(0x1c3)]?'symbol':typeof _0x7c635c;},g(_0x33ae3a);}function _(_0x4115fe,_0x8ab89d){const _0x100850=_0x30a0;if(g(_0x4115fe)!=_0x100850(0x1af)||!_0x4115fe)return _0x4115fe;var _0x2d5a72=_0x4115fe[Symbol[_0x100850(0x1dd)]];if(_0x2d5a72!==void 0x0){var _0x3e7c61=_0x2d5a72[_0x100850(0x1b3)](_0x4115fe,_0x8ab89d||'default');if(g(_0x3e7c61)!=_0x100850(0x1af))return _0x3e7c61;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x8ab89d==='string'?String:Number)(_0x4115fe);}function v(_0x275475){const _0x256064=_0x30a0;var _0x4e7b25=_(_0x275475,_0x256064(0x1c1));return g(_0x4e7b25)=='symbol'?_0x4e7b25:_0x4e7b25+'';}function y(_0x4df32a,_0xa980a2,_0x337887){return(_0xa980a2=v(_0xa980a2))in _0x4df32a?Object['defineProperty'](_0x4df32a,_0xa980a2,{'value':_0x337887,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4df32a[_0xa980a2]=_0x337887,_0x4df32a;}var b=class extends _0x31bd33{constructor(){const _0x517770=_0x30a0;super(),y(this,_0x517770(0x1e4),new Map()),y(this,'_linesIds',new Set()),y(this,_0x517770(0x1c0),new Set());}[_0x507af9(0x19c)](_0x459316,_0x1a66d2,_0xd41927){const _0x577f0b=_0x507af9;let _0x48124f=new _0x42a193(_0x459316,_0x1a66d2,_0xd41927);return this[_0x577f0b(0x1e4)][_0x577f0b(0x1e2)](_0x1a66d2,_0x48124f),_0x2e926b(_0x459316)&&this[_0x577f0b(0x1d3)][_0x577f0b(0x1a5)](_0x1a66d2),_0x48124f;}[_0x507af9(0x1b0)](_0x400cb0){const _0x13db8e=_0x507af9;let _0x56372f=[];for(let _0x4ad205 of this[_0x13db8e(0x1d3)]){let _0x3fa67b=this['_shapes'][_0x13db8e(0x199)](_0x4ad205);if(_0x3fa67b){let _0x3c1f2e=_0x3fa67b['getShapeRelation']();if(_0x3c1f2e){var _0x39f2e6,_0x132116;((_0x39f2e6=_0x3c1f2e['from'])==null?void 0x0:_0x39f2e6[_0x13db8e(0x1a9)])===_0x400cb0&&_0x56372f[_0x13db8e(0x1d8)]({..._0x3c1f2e[_0x13db8e(0x1a7)],'lineShapeId':_0x4ad205,'isFrom':!0x0}),((_0x132116=_0x3c1f2e['to'])==null?void 0x0:_0x132116['shapeId'])===_0x400cb0&&_0x56372f['push']({..._0x3c1f2e['to'],'lineShapeId':_0x4ad205,'isFrom':!0x1});}}}return _0x56372f;}[_0x507af9(0x1ac)](_0x129eb7){const _0x3d98f7=_0x507af9;let _0x39757b=this['_shapes'][_0x3d98f7(0x199)](_0x129eb7);if(_0x39757b)return _0x39757b['getShapeRelation']();}[_0x507af9(0x1a1)](_0x53bff5){let _0x44824f=this['_shapes']['get'](_0x53bff5);if(_0x44824f)return _0x44824f['getShapeType']();}[_0x507af9(0x1eb)](_0x2c0af5){const _0x849f91=_0x507af9;return this[_0x849f91(0x1e4)]['has'](_0x2c0af5);}[_0x507af9(0x1cc)](_0x3c3d7e){const _0x201dd0=_0x507af9;let _0x5e88b2=this['_shapes']['get'](_0x3c3d7e);_0x5e88b2&&(_0x2e926b(_0x5e88b2[_0x201dd0(0x1a1)]())&&this[_0x201dd0(0x1d3)]['delete'](_0x3c3d7e),this[_0x201dd0(0x1e4)][_0x201dd0(0x1d5)](_0x3c3d7e));}[_0x507af9(0x1aa)](){const _0x14017a=_0x507af9;let _0xe09005=[];return this[_0x14017a(0x1e4)][_0x14017a(0x19a)](_0x49503d=>{const _0x446963=_0x14017a;_0xe09005[_0x446963(0x1d8)](_0x49503d[_0x446963(0x1aa)]());}),_0xe09005;}[_0x507af9(0x1d1)](_0x44ed55){const _0x1b6175=_0x507af9;for(let _0x2ac8a7 of _0x44ed55){let {id:_0xcb3ca8,shapeType:_0xf4b497}=_0x2ac8a7,_0x5552a4=this[_0x1b6175(0x19c)](_0xf4b497,_0xcb3ca8,_0x2ac8a7[_0x1b6175(0x1b2)]);_0x5552a4&&_0x5552a4[_0x1b6175(0x1ca)]()&&this[_0x1b6175(0x1d3)][_0x1b6175(0x1a5)](_0xcb3ca8);}}[_0x507af9(0x1ae)](){const _0x1d6391=_0x507af9;this['_disposed']||(this['_shapes'][_0x1d6391(0x19a)](_0x1e9df1=>{_0x1e9df1['dispose']();}),this[_0x1d6391(0x1e4)][_0x1d6391(0x1c5)](),this[_0x1d6391(0x1d3)]['clear'](),this[_0x1d6391(0x1c0)]['clear'](),super['dispose']());}};function x(_0x5b4dc4,_0x58c1ae){return function(_0x284696,_0x3f246a){_0x58c1ae(_0x284696,_0x3f246a,_0x5b4dc4);};}function S(_0x52f62e,_0x294f34,_0x3260b2,_0x1c1715){const _0x39f3d6=_0x507af9;var _0x43f7af=arguments[_0x39f3d6(0x1d2)],_0xeca10e=_0x43f7af<0x3?_0x294f34:_0x1c1715===null?_0x1c1715=Object[_0x39f3d6(0x1c7)](_0x294f34,_0x3260b2):_0x1c1715,_0x46ed8e;if(typeof Reflect==_0x39f3d6(0x1af)&&typeof Reflect[_0x39f3d6(0x1ce)]==_0x39f3d6(0x1d6))_0xeca10e=Reflect[_0x39f3d6(0x1ce)](_0x52f62e,_0x294f34,_0x3260b2,_0x1c1715);else{for(var _0x19eb25=_0x52f62e['length']-0x1;_0x19eb25>=0x0;_0x19eb25--)(_0x46ed8e=_0x52f62e[_0x19eb25])&&(_0xeca10e=(_0x43f7af<0x3?_0x46ed8e(_0xeca10e):_0x43f7af>0x3?_0x46ed8e(_0x294f34,_0x3260b2,_0xeca10e):_0x46ed8e(_0x294f34,_0x3260b2))||_0xeca10e);}return _0x43f7af>0x3&&_0xeca10e&&Object[_0x39f3d6(0x1ea)](_0x294f34,_0x3260b2,_0xeca10e),_0xeca10e;}let C=class extends _0x31bd33{constructor(_0x20e684){const _0x52ba8e=_0x507af9;super(),this[_0x52ba8e(0x1ec)]=_0x20e684,y(this,_0x52ba8e(0x1e1),new Map()),this[_0x52ba8e(0x198)]();}[_0x507af9(0x1ab)](_0x359052,_0x1d5c66){const _0x4837ec=_0x507af9;let _0x2e8766=this[_0x4837ec(0x1e1)][_0x4837ec(0x199)](_0x359052);_0x2e8766||(_0x2e8766=new Map(),this['_shapeModelManagerMap']['set'](_0x359052,_0x2e8766));let _0x5e69ad=_0x2e8766['get'](_0x1d5c66);return _0x5e69ad||(_0x5e69ad=new b(),_0x2e8766[_0x4837ec(0x1e2)](_0x1d5c66,_0x5e69ad)),_0x5e69ad;}[_0x507af9(0x1e9)](_0x1d0963,_0x703d32,_0x62a2f2,_0x21afcc,_0x1ad476){const _0x18757d=_0x507af9;this[_0x18757d(0x1ab)](_0x1d0963,_0x703d32)[_0x18757d(0x19c)](_0x62a2f2,_0x21afcc,_0x1ad476);}[_0x507af9(0x1cc)](_0x166200,_0x2d1d65,_0x4441a8){const _0x33b9a9=_0x507af9;this[_0x33b9a9(0x1ab)](_0x166200,_0x2d1d65)['removeShape'](_0x4441a8);}[_0x507af9(0x1a2)](_0x1f84e4,_0x51623d,_0x374509){const _0x1b912c=_0x507af9;return this['_ensureShapeModelManager'](_0x1f84e4,_0x51623d)[_0x1b912c(0x1a1)](_0x374509);}[_0x507af9(0x1a1)](_0x4b6b98,_0x39852a,_0x3c2591){const _0x5827b0=_0x507af9;return this[_0x5827b0(0x1ab)](_0x4b6b98,_0x39852a)['getShapeType'](_0x3c2591);}[_0x507af9(0x1eb)](_0xe7c188,_0x39cc74,_0x2c5d40){const _0x2e05f5=_0x507af9;return this[_0x2e05f5(0x1ab)](_0xe7c188,_0x39cc74)[_0x2e05f5(0x1eb)](_0x2c5d40);}['getShapeTypeById'](_0x16d56a,_0x117cba,_0x554feb){const _0x1beaf2=_0x507af9;return this[_0x1beaf2(0x1ab)](_0x16d56a,_0x117cba)[_0x1beaf2(0x1a1)](_0x554feb);}[_0x507af9(0x1b9)](_0x8c78ce,_0x57fa6d,_0x5336b3){const _0x66ab22=_0x507af9;let _0x4b1162=this[_0x66ab22(0x1ab)](_0x8c78ce,_0x57fa6d);if(!_0x4b1162[_0x66ab22(0x1a1)](_0x5336b3))return;let _0x1c7a52=_0x4b1162[_0x66ab22(0x1e4)][_0x66ab22(0x199)](_0x5336b3);if(_0x1c7a52)return _0x1c7a52[_0x66ab22(0x1e7)]();}['getShapeModel'](_0x48efb3,_0x57a8f7,_0xcb7150){const _0x488e01=_0x507af9;return this[_0x488e01(0x1ab)](_0x48efb3,_0x57a8f7)[_0x488e01(0x1e4)][_0x488e01(0x199)](_0xcb7150);}[_0x507af9(0x1b0)](_0x16a633,_0x3bd7a9,_0x2f1f18){const _0x5455d7=_0x507af9;return this[_0x5455d7(0x1ab)](_0x16a633,_0x3bd7a9)[_0x5455d7(0x1b0)](_0x2f1f18);}[_0x507af9(0x1ac)](_0x5a4a0a,_0x22e3c5,_0x278123){const _0xe851a=_0x507af9;let _0x4acb14=this[_0xe851a(0x1ab)](_0x5a4a0a,_0x22e3c5)[_0xe851a(0x1e4)]['get'](_0x278123);if(_0x4acb14)return _0x4acb14['getShapeRelation']();}['setShapeType'](){}[_0x507af9(0x1de)](_0x28a0a8){const _0x1d6fc5=_0x507af9;let _0x32be68={},_0x1a99e4=this[_0x1d6fc5(0x1e1)][_0x1d6fc5(0x199)](_0x28a0a8);return _0x1a99e4&&_0x1a99e4[_0x1d6fc5(0x19a)]((_0x1babaf,_0x21e9bf)=>{const _0x464072=_0x1d6fc5;let _0x86c5e7=_0x1babaf[_0x464072(0x1aa)]();_0x86c5e7['length']>0x0&&(_0x32be68[_0x21e9bf]=_0x86c5e7);}),JSON[_0x1d6fc5(0x1ba)](_0x32be68);}[_0x507af9(0x1cd)](_0x377b1c,_0x43d678){const _0x23fc73=_0x507af9;Object['keys'](_0x43d678)[_0x23fc73(0x19a)](_0x4a1461=>{const _0x4c939d=_0x23fc73;this['_ensureShapeModelManager'](_0x377b1c,_0x4a1461)[_0x4c939d(0x1d1)](_0x43d678[_0x4a1461]);});}[_0x507af9(0x1aa)](){const _0x217714=_0x507af9;let _0x2c9797={};return this['_shapeModelManagerMap'][_0x217714(0x19a)]((_0x3963c1,_0x12b18a)=>{_0x2c9797[_0x12b18a]={},_0x3963c1['forEach']((_0x28ce96,_0x1bacfc)=>{const _0x4fb1ee=_0x30a0;_0x2c9797[_0x12b18a][_0x1bacfc]=_0x28ce96[_0x4fb1ee(0x1aa)]();});}),_0x2c9797;}['fromJSON'](_0x489993){const _0xa75339=_0x507af9;Object[_0xa75339(0x1cb)](_0x489993)[_0xa75339(0x19a)](_0x1fdd5e=>{const _0x2b9ff7=_0xa75339;let _0x5e7b3f=_0x489993[_0x1fdd5e];Object[_0x2b9ff7(0x1cb)](_0x5e7b3f)[_0x2b9ff7(0x19a)](_0xc8654d=>{const _0x4e276d=_0x2b9ff7;this[_0x4e276d(0x1ab)](_0x1fdd5e,_0xc8654d)[_0x4e276d(0x1d1)](_0x5e7b3f[_0xc8654d]);});});}[_0x507af9(0x198)](){const _0x42d62e=_0x507af9;this[_0x42d62e(0x1ec)][_0x42d62e(0x1dc)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x3bd622[_0x42d62e(0x1be)]],'toJson':_0x4818ae=>this[_0x42d62e(0x1de)](_0x4818ae),'parseJson':_0x1ada38=>JSON[_0x42d62e(0x1b6)](_0x1ada38),'onLoad':(_0x43eb2b,_0x55ef90)=>{const _0x5aabc7=_0x42d62e;this[_0x5aabc7(0x1cd)](_0x43eb2b,_0x55ef90);},'onUnLoad':_0x555360=>{const _0x2ec721=_0x42d62e;let _0xc033c1=this[_0x2ec721(0x1e1)]['get'](_0x555360);_0xc033c1&&(_0xc033c1[_0x2ec721(0x19a)](_0x284e4c=>{const _0x159916=_0x2ec721;_0x284e4c[_0x159916(0x1ae)]();}),this[_0x2ec721(0x1e1)]['delete'](_0x555360));}});}[_0x507af9(0x1ae)](){const _0x5cfb26=_0x507af9;this[_0x5cfb26(0x1e1)][_0x5cfb26(0x19a)](_0x58a678=>{const _0x3c3a86=_0x5cfb26;_0x58a678[_0x3c3a86(0x19a)](_0x2d0581=>{const _0x18c065=_0x3c3a86;_0x2d0581[_0x18c065(0x1ae)]();});});}};C=S([x(0x0,_0x18aaa8)],C);function _0x10a1(){const _0x5c3aa8=['892945PvbsOW','fromJSON','length','_linesIds','version','delete','function','setShapeData','push','_injector','constructor','sheet.mutation.update-shape-data','registerPluginResource','toPrimitive','_serializeShapeForUnit','21xCGNMJ','sheet.mutation.update-shape-type','_shapeModelManagerMap','set','383982QbRwYU','_shapes','assign','type','getShapeData','sheet.command.update-shape-type','insertShape','defineProperty','hasShape','_resourcesManagerService','MUTATION','_initSnapshot','get','forEach','556424xFCvnF','addShape','registerCommand','onStarting','_config','1311944fLpwzB','getShapeType','getBasicShapeType','SHEET_SHAPE_PLUGIN','1Yxpibw','add','disposeWithMe','from','0.17.0-insiders.20260318-5bef180','shapeId','toJSON','_ensureShapeModelManager','getLineShapeRelation','symbol','dispose','object','getBasicShapeRelation','1390131jbQbZu','shapeData','call','onRendered','_commandService','parse','_initCommands','setConfig','getShapeDataById','stringify','getShapeModel','iterator','164530QfzaOt','UNIVER_SHEET','params','_groupIds','string','syncExecuteCommand','prototype','setShapeType','clear','171138vdSNIA','getOwnPropertyDescriptor','sheet.mutation.insert-shape','every','isLineShape','keys','removeShape','_deserializeShapeForUnit','decorate','sheet.mutation.remove-shape'];_0x10a1=function(){return _0x5c3aa8;};return _0x10a1();}const w={'id':_0x507af9(0x1e0),'type':_0x395ba8['MUTATION'],'handler':(_0x3c6e78,_0x3141bc)=>{const _0x32fb40=_0x507af9;let {unitId:_0x3a6c08,subUnitId:_0x11ab89,shapeType:_0x1ad7a3,shapeId:_0x2f4809,shapeData:_0x5886f3}=_0x3141bc,_0xb3bb23=_0x3c6e78['get'](C)['getShapeModel'](_0x3a6c08,_0x11ab89,_0x2f4809);return _0xb3bb23&&(_0xb3bb23[_0x32fb40(0x1c4)](_0x1ad7a3),_0x5886f3&&(_0xb3bb23==null||_0xb3bb23[_0x32fb40(0x1d7)](_0x5886f3))),!0x0;}},T={'id':_0x507af9(0x1e8),'type':_0x395ba8['COMMAND'],'handler':(_0x3fde7b,_0x566837)=>{const _0x2a3c5c=_0x507af9;if(!_0x566837)return!0x1;let _0x21ca89=_0x3fde7b['get'](_0x4e0c17),_0x3686f0=_0x3fde7b[_0x2a3c5c(0x199)](C),_0x1a449e=_0x3fde7b[_0x2a3c5c(0x199)](_0x312996),_0x25835f=[],_0x216b5f=[],{unitId:_0x465ce5,subUnitId:_0x66cd64,shapeId:_0x1b5e37,shapeType:_0x100364,shapeData:_0x4f38f9}=_0x566837,_0x413dbd=_0x3686f0[_0x2a3c5c(0x1bb)](_0x465ce5,_0x66cd64,_0x1b5e37);if(_0x413dbd){let _0x5868ad=_0x413dbd[_0x2a3c5c(0x1a1)](),_0x4c7892=Object[_0x2a3c5c(0x1e5)]({},_0x413dbd[_0x2a3c5c(0x1e7)]()),_0x36b870={'unitId':_0x465ce5,'subUnitId':_0x66cd64,'shapeId':_0x1b5e37,'shapeType':_0x100364,'shapeData':_0x4f38f9},_0x4a4a91={'unitId':_0x465ce5,'subUnitId':_0x66cd64,'shapeId':_0x1b5e37,'shapeType':_0x5868ad,'shapeData':_0x4c7892};return _0x25835f['push']({'id':w['id'],'params':_0x36b870}),_0x216b5f[_0x2a3c5c(0x1d8)]({'id':w['id'],'params':_0x4a4a91}),_0x25835f[_0x2a3c5c(0x1c9)](_0x32c1ed=>_0x21ca89[_0x2a3c5c(0x1c2)](_0x32c1ed['id'],_0x32c1ed[_0x2a3c5c(0x1bf)]))&&_0x1a449e['pushUndoRedo']({'unitID':_0x465ce5,'redoMutations':[..._0x25835f],'undoMutations':[..._0x216b5f]}),!0x0;}return!0x1;}},E={'id':_0x507af9(0x1c8),'type':_0x395ba8[_0x507af9(0x1ed)],'handler':(_0x247b2f,_0x1c430b)=>{const _0x268099=_0x507af9;let {unitId:_0x257bc7,subUnitId:_0x356bf9,shapeType:_0x1341bf,shapeId:_0x20e22e,shapeData:_0xde7976}=_0x1c430b;return _0x247b2f[_0x268099(0x199)](C)[_0x268099(0x1e9)](_0x257bc7,_0x356bf9,_0x1341bf,_0x20e22e,_0xde7976),!0x0;}},D={'id':_0x507af9(0x1cf),'type':_0x395ba8[_0x507af9(0x1ed)],'handler':(_0x2e7f49,_0x449706)=>{const _0x19077b=_0x507af9;let {unitId:_0x257a25,subUnitId:_0x122999,shapeId:_0x480a61}=_0x449706;return _0x2e7f49[_0x19077b(0x199)](C)[_0x19077b(0x1cc)](_0x257a25,_0x122999,_0x480a61),!0x0;}},O={'id':_0x507af9(0x1db),'type':_0x395ba8['MUTATION'],'handler':(_0x166984,_0x1195bb)=>{const _0x2e6fdd=_0x507af9;let {unitId:_0x319d38,subUnitId:_0x5a82ad,shapeType:_0x43e653,shapeId:_0x486ba6,shapeData:_0xf1fd1c}=_0x1195bb,_0x11573c=_0x166984[_0x2e6fdd(0x199)](C)[_0x2e6fdd(0x1bb)](_0x319d38,_0x5a82ad,_0x486ba6);return _0x11573c&&(_0x43e653!==void 0x0&&_0x11573c[_0x2e6fdd(0x1c4)](_0x43e653),_0xf1fd1c&&(_0x11573c==null||_0x11573c['setShapeData'](_0xf1fd1c,!0x0))),!0x0;}};var k='@univerjs-pro/sheets-shape',A=_0x507af9(0x1a8);const j='sheets-shape.config';Symbol(j);const M={};let N=class extends _0x5debca{constructor(_0x260950=M,_0x46973b,_0x4a6b0b,_0x18d2fd){const _0x20851e=_0x507af9;super(),this[_0x20851e(0x19f)]=_0x260950,this[_0x20851e(0x1d9)]=_0x46973b,this[_0x20851e(0x1b5)]=_0x4a6b0b,this['_configService']=_0x18d2fd;let {..._0x3a2dc2}=_0x253510({},M,this['_config']);this['_configService'][_0x20851e(0x1b8)](j,_0x3a2dc2),this[_0x20851e(0x1b7)]();}[_0x507af9(0x1b4)](){const _0x42e3c8=_0x507af9;_0x1193b2(this[_0x42e3c8(0x1d9)],[]);}[_0x507af9(0x19e)](){const _0x653fcc=_0x507af9;let _0x18a7d7=this[_0x653fcc(0x1d9)];[[b],[C]][_0x653fcc(0x19a)](_0x5bf443=>_0x18a7d7[_0x653fcc(0x1a5)](_0x5bf443));}[_0x507af9(0x1b7)](){const _0x41f911=_0x507af9;[E,D,w,O][_0x41f911(0x19a)](_0x3af51e=>this[_0x41f911(0x1a6)](this[_0x41f911(0x1b5)][_0x41f911(0x19d)](_0x3af51e)));}};y(N,_0x507af9(0x1e6),_0x3bd622[_0x507af9(0x1be)]),y(N,'pluginName',_0x507af9(0x1a3)),y(N,'packageName',k),y(N,_0x507af9(0x1d4),A),N=S([_0x14f0ed(_0x47af1f),x(0x1,_0x5f5519(_0x36647f)),x(0x2,_0x4e0c17),x(0x3,_0x95afc2)],N);export{E as InsertSheetsShapeMutation,D as RemoveSheetsShapeMutation,C as SheetsShapeService,N as UniverSheetsShapePlugin,O as UpdateSheetsShapeDataMutation,T as UpdateSheetsShapeTypeCommand,w as UpdateSheetsShapeTypeMutation};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3ff888=_0x4e6f;(function(_0xb6cc11,_0x51e16b){const _0x511fe0=_0x4e6f,_0x4816b8=_0xb6cc11();while(!![]){try{const _0x15453c=parseInt(_0x511fe0(0xea))/0x1+-parseInt(_0x511fe0(0x11e))/0x2*(parseInt(_0x511fe0(0x119))/0x3)+-parseInt(_0x511fe0(0xe3))/0x4*(-parseInt(_0x511fe0(0x11f))/0x5)+parseInt(_0x511fe0(0xf9))/0x6*(-parseInt(_0x511fe0(0x11b))/0x7)+parseInt(_0x511fe0(0x105))/0x8*(-parseInt(_0x511fe0(0xe9))/0x9)+-parseInt(_0x511fe0(0xe4))/0xa*(-parseInt(_0x511fe0(0x115))/0xb)+parseInt(_0x511fe0(0x116))/0xc;if(_0x15453c===_0x51e16b)break;else _0x4816b8['push'](_0x4816b8['shift']());}catch(_0x4691f2){_0x4816b8['push'](_0x4816b8['shift']());}}}(_0x131d,0x5ea04));var R=Object['defineProperty'],C=(_0x5706b7,_0x3c38ab,_0x26cc2a)=>_0x3c38ab in _0x5706b7?R(_0x5706b7,_0x3c38ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26cc2a}):_0x5706b7[_0x3c38ab]=_0x26cc2a,d=(_0x498909,_0x33e61b,_0x42406c)=>C(_0x498909,typeof _0x33e61b!='symbol'?_0x33e61b+'':_0x33e61b,_0x42406c);import{Disposable as _0x52dc16,UniverInstanceType as _0x107b27,IResourceManagerService as _0x119863,CommandType as _0x2b08be,ICommandService as _0x11fca2,IUndoRedoService as _0xec8a3,DependentOn as _0x15f9bd,Inject as _0x574c09,Injector as _0x1a8826,Plugin as _0x665b7d,merge as _0x4f2c70,touchDependencies as _0x434c38,IConfigService as _0x2c4b94}from'@univerjs/core';import{ShapeModel as _0x5ba7a0,isConnectorShape as _0x2979b2}from'@univerjs-pro/engine-shape';function _0x4e6f(_0x1013d,_0x34a829){_0x1013d=_0x1013d-0xdb;const _0x131d49=_0x131d();let _0x4e6ff1=_0x131d49[_0x1013d];return _0x4e6ff1;}import{UniverLicensePlugin as _0x1070ce}from'@univerjs-pro/license';class T extends _0x52dc16{constructor(){const _0x3e07e8=_0x4e6f;super(),d(this,'_shapes',new Map()),d(this,_0x3e07e8(0xee),new Set()),d(this,_0x3e07e8(0xe6),new Set());}['addShape'](_0xd4eb03,_0x5695ec,_0x405ed0){const _0x5b0b18=_0x4e6f,_0x6086a1=new _0x5ba7a0(_0xd4eb03,_0x5695ec,_0x405ed0);return this[_0x5b0b18(0xef)]['set'](_0x5695ec,_0x6086a1),_0x2979b2(_0xd4eb03)&&this[_0x5b0b18(0xee)][_0x5b0b18(0x127)](_0x5695ec),_0x6086a1;}[_0x3ff888(0x106)](_0x59232c){const _0x27c2d9=_0x3ff888;var _0x13301a,_0x5a4a73;const _0x42f730=[];for(const _0x31b189 of this[_0x27c2d9(0xee)]){const _0x50086a=this['_shapes'][_0x27c2d9(0x128)](_0x31b189);if(_0x50086a){const _0x2ae5da=_0x50086a[_0x27c2d9(0x118)]();_0x2ae5da&&(((_0x13301a=_0x2ae5da['from'])==null?void 0x0:_0x13301a['shapeId'])===_0x59232c&&_0x42f730[_0x27c2d9(0x120)]({..._0x2ae5da[_0x27c2d9(0x104)],'lineShapeId':_0x31b189,'isFrom':!0x0}),((_0x5a4a73=_0x2ae5da['to'])==null?void 0x0:_0x5a4a73[_0x27c2d9(0xfa)])===_0x59232c&&_0x42f730[_0x27c2d9(0x120)]({..._0x2ae5da['to'],'lineShapeId':_0x31b189,'isFrom':!0x1}));}}return _0x42f730;}[_0x3ff888(0xdd)](_0x48dc81){const _0x2605c2=_0x3ff888,_0x27fdbf=this[_0x2605c2(0xef)][_0x2605c2(0x128)](_0x48dc81);if(_0x27fdbf)return _0x27fdbf[_0x2605c2(0x118)]();}[_0x3ff888(0xff)](_0x26bd7a){const _0x5d0ea8=_0x3ff888,_0x24c24a=this[_0x5d0ea8(0xef)]['get'](_0x26bd7a);if(_0x24c24a)return _0x24c24a[_0x5d0ea8(0xff)]();}[_0x3ff888(0x110)](_0x40ee11){const _0x1f17c8=_0x3ff888;return this[_0x1f17c8(0xef)][_0x1f17c8(0xf7)](_0x40ee11);}['removeShape'](_0x137cad){const _0x1d3dd5=_0x3ff888,_0x3e7744=this[_0x1d3dd5(0xef)][_0x1d3dd5(0x128)](_0x137cad);_0x3e7744&&(_0x2979b2(_0x3e7744[_0x1d3dd5(0xff)]())&&this['_linesIds'][_0x1d3dd5(0x101)](_0x137cad),this[_0x1d3dd5(0xef)][_0x1d3dd5(0x101)](_0x137cad));}['toJSON'](){const _0x43558d=_0x3ff888,_0x49f00c=[];return this[_0x43558d(0xef)]['forEach'](_0x17a874=>{_0x49f00c['push'](_0x17a874['toJSON']());}),_0x49f00c;}[_0x3ff888(0x112)](_0x4258cc){const _0x45ac54=_0x3ff888;for(const _0xf01c85 of _0x4258cc){const {id:_0x45e27b,shapeType:_0x5c07fc}=_0xf01c85,_0x4d6468=this[_0x45ac54(0x124)](_0x5c07fc,_0x45e27b,_0xf01c85['shapeData']);_0x4d6468&&_0x4d6468['isLineShape']()&&this[_0x45ac54(0xee)]['add'](_0x45e27b);}}[_0x3ff888(0x11d)](){const _0x170860=_0x3ff888;this[_0x170860(0xf4)]||(this[_0x170860(0xef)]['forEach'](_0x4ac489=>{_0x4ac489['dispose']();}),this[_0x170860(0xef)][_0x170860(0x10e)](),this[_0x170860(0xee)][_0x170860(0x10e)](),this[_0x170860(0xe6)][_0x170860(0x10e)](),super[_0x170860(0x11d)]());}}var $=Object[_0x3ff888(0x11a)],V=(_0x42459a,_0x5f335d,_0x5f5bab,_0x5d22f9)=>{const _0x52805c=_0x3ff888;for(var _0x3d864e=_0x5d22f9>0x1?void 0x0:_0x5d22f9?$(_0x5f335d,_0x5f5bab):_0x5f335d,_0x3f8260=_0x42459a[_0x52805c(0x11c)]-0x1,_0x234de0;_0x3f8260>=0x0;_0x3f8260--)(_0x234de0=_0x42459a[_0x3f8260])&&(_0x3d864e=_0x234de0(_0x3d864e)||_0x3d864e);return _0x3d864e;},K=(_0x2a6e24,_0x533426)=>(_0x13b098,_0x2ee0bb)=>_0x533426(_0x13b098,_0x2ee0bb,_0x2a6e24);function _0x131d(){const _0x3b06e7=['length','dispose','2tBWiPZ','89345rxuaff','push','_injector','SHEET_SHAPE_PLUGIN','_config','addShape','setShapeType','keys','add','get','syncExecuteCommand','sheet.mutation.update-shape-data','getLineShapeRelation','_ensureShapeModelManager','sheet.mutation.update-shape-type','parse','onRendered','getShapeDataById','76KjxcAU','10hvaREo','toJSON','_groupIds','setShapeData','_resourcesManagerService','2697075xBQwYS','664229pjSQxd','symbol','assign','getShapeTypeById','_linesIds','_shapes','_serializeShapeForUnit','registerPluginResource','MUTATION','_shapeModelManagerMap','_disposed','sheet.command.update-shape-type','_deserializeShapeForUnit','has','forEach','24qbIDqz','shapeId','_initSnapshot','every','insertShape','type','getShapeType','UNIVER_SHEET','delete','COMMAND','_configService','from','8YzPVyM','getBasicShapeRelation','removeShape','pushUndoRedo','disposeWithMe','getShapeData','onStarting','setConfig','_initCommands','clear','pluginName','hasShape','getShapeModel','fromJSON','set','registerCommand','4949054ANrgBb','30276sdHtHP','_commandService','getShapeRelation','1959822cbtKqV','getOwnPropertyDescriptor','202370XuBBcb'];_0x131d=function(){return _0x3b06e7;};return _0x131d();}const W=_0x3ff888(0x122);let i=class extends _0x52dc16{constructor(_0x4583a1){const _0x290d69=_0x3ff888;super(),d(this,_0x290d69(0xf3),new Map()),(this[_0x290d69(0xe8)]=_0x4583a1,this[_0x290d69(0xfb)]());}['_ensureShapeModelManager'](_0x3fa9b5,_0x44fa13){const _0x14b57c=_0x3ff888;let _0x568647=this[_0x14b57c(0xf3)][_0x14b57c(0x128)](_0x3fa9b5);_0x568647||(_0x568647=new Map(),this[_0x14b57c(0xf3)][_0x14b57c(0x113)](_0x3fa9b5,_0x568647));let _0x538727=_0x568647[_0x14b57c(0x128)](_0x44fa13);return _0x538727||(_0x538727=new T(),_0x568647[_0x14b57c(0x113)](_0x44fa13,_0x538727)),_0x538727;}[_0x3ff888(0xfd)](_0x594cce,_0x179478,_0x5b2584,_0x35f361,_0x377834){const _0x8a54c=_0x3ff888;this[_0x8a54c(0xde)](_0x594cce,_0x179478)[_0x8a54c(0x124)](_0x5b2584,_0x35f361,_0x377834);}[_0x3ff888(0x107)](_0x7cb3cf,_0x2173dc,_0x602daf){const _0x3801aa=_0x3ff888;this[_0x3801aa(0xde)](_0x7cb3cf,_0x2173dc)[_0x3801aa(0x107)](_0x602daf);}['getBasicShapeType'](_0x3470ef,_0xf9c691,_0x39bbff){const _0x389e08=_0x3ff888;return this[_0x389e08(0xde)](_0x3470ef,_0xf9c691)[_0x389e08(0xff)](_0x39bbff);}[_0x3ff888(0xff)](_0x1bd6bc,_0x3fd9e5,_0x151bfb){const _0xb008d8=_0x3ff888;return this[_0xb008d8(0xde)](_0x1bd6bc,_0x3fd9e5)['getShapeType'](_0x151bfb);}['hasShape'](_0x4f32dc,_0x3c434f,_0x2c79f2){const _0x4c7bf4=_0x3ff888;return this['_ensureShapeModelManager'](_0x4f32dc,_0x3c434f)[_0x4c7bf4(0x110)](_0x2c79f2);}[_0x3ff888(0xed)](_0x46b879,_0x4dbd7c,_0x509c14){const _0x504108=_0x3ff888;return this[_0x504108(0xde)](_0x46b879,_0x4dbd7c)[_0x504108(0xff)](_0x509c14);}[_0x3ff888(0xe2)](_0x37d72e,_0x7ae954,_0x4172fa){const _0x1fdd4e=_0x3ff888,_0x4ddd5c=this[_0x1fdd4e(0xde)](_0x37d72e,_0x7ae954);if(!_0x4ddd5c[_0x1fdd4e(0xff)](_0x4172fa))return;const _0x25246d=_0x4ddd5c[_0x1fdd4e(0xef)]['get'](_0x4172fa);if(_0x25246d)return _0x25246d['getShapeData']();}[_0x3ff888(0x111)](_0x17ef44,_0x4d9d5b,_0x3af3c7){const _0x21149a=_0x3ff888;return this[_0x21149a(0xde)](_0x17ef44,_0x4d9d5b)['_shapes'][_0x21149a(0x128)](_0x3af3c7);}[_0x3ff888(0x106)](_0x3e7383,_0xb9a35a,_0x520f25){const _0x332d8d=_0x3ff888;return this['_ensureShapeModelManager'](_0x3e7383,_0xb9a35a)[_0x332d8d(0x106)](_0x520f25);}[_0x3ff888(0xdd)](_0x5982dd,_0x5dd3da,_0x4a7f48){const _0x10ecd7=_0x3ff888,_0x313a6a=this[_0x10ecd7(0xde)](_0x5982dd,_0x5dd3da)['_shapes']['get'](_0x4a7f48);if(_0x313a6a)return _0x313a6a['getShapeRelation']();}[_0x3ff888(0x125)](){}[_0x3ff888(0xf0)](_0x708977){const _0x16b9de=_0x3ff888,_0x2c63e5={},_0x5c6c9f=this[_0x16b9de(0xf3)][_0x16b9de(0x128)](_0x708977);return _0x5c6c9f&&_0x5c6c9f['forEach']((_0x264603,_0x210316)=>{const _0xe1985c=_0x16b9de,_0x56e674=_0x264603[_0xe1985c(0xe5)]();_0x56e674['length']>0x0&&(_0x2c63e5[_0x210316]=_0x56e674);}),JSON['stringify'](_0x2c63e5);}[_0x3ff888(0xf6)](_0xd15a5e,_0x1e4467){const _0x449a08=_0x3ff888;Object[_0x449a08(0x126)](_0x1e4467)[_0x449a08(0xf8)](_0x374727=>{const _0x59e184=_0x449a08;this[_0x59e184(0xde)](_0xd15a5e,_0x374727)[_0x59e184(0x112)](_0x1e4467[_0x374727]);});}['toJSON'](){const _0x316701=_0x3ff888,_0x4f881a={};return this[_0x316701(0xf3)][_0x316701(0xf8)]((_0x1f143a,_0x3bb1a9)=>{_0x4f881a[_0x3bb1a9]={},_0x1f143a['forEach']((_0x3e299d,_0x274175)=>{const _0x402722=_0x4e6f;_0x4f881a[_0x3bb1a9][_0x274175]=_0x3e299d[_0x402722(0xe5)]();});}),_0x4f881a;}[_0x3ff888(0x112)](_0x259932){const _0x3637df=_0x3ff888;Object[_0x3637df(0x126)](_0x259932)[_0x3637df(0xf8)](_0x1464e3=>{const _0x140f98=_0x3637df,_0x1aa49f=_0x259932[_0x1464e3];Object[_0x140f98(0x126)](_0x1aa49f)['forEach'](_0x4501e8=>{const _0x307a40=_0x140f98;this[_0x307a40(0xde)](_0x1464e3,_0x4501e8)[_0x307a40(0x112)](_0x1aa49f[_0x4501e8]);});});}[_0x3ff888(0xfb)](){const _0x45d585=_0x3ff888;this[_0x45d585(0xe8)][_0x45d585(0xf1)]({'pluginName':W,'businesses':[_0x107b27[_0x45d585(0x100)]],'toJson':_0x29ec47=>this[_0x45d585(0xf0)](_0x29ec47),'parseJson':_0x29e55d=>JSON[_0x45d585(0xe0)](_0x29e55d),'onLoad':(_0x1c8e04,_0xfd3011)=>{const _0x23997d=_0x45d585;this[_0x23997d(0xf6)](_0x1c8e04,_0xfd3011);},'onUnLoad':_0x1780d6=>{const _0x3f8d30=_0x45d585,_0x375752=this[_0x3f8d30(0xf3)][_0x3f8d30(0x128)](_0x1780d6);_0x375752&&(_0x375752[_0x3f8d30(0xf8)](_0x3f4978=>{const _0x2042c4=_0x3f8d30;_0x3f4978[_0x2042c4(0x11d)]();}),this[_0x3f8d30(0xf3)][_0x3f8d30(0x101)](_0x1780d6));}});}[_0x3ff888(0x11d)](){const _0x1f5124=_0x3ff888;this[_0x1f5124(0xf3)][_0x1f5124(0xf8)](_0x43cc45=>{const _0xfa53b2=_0x1f5124;_0x43cc45[_0xfa53b2(0xf8)](_0x1f2af7=>{const _0x105228=_0xfa53b2;_0x1f2af7[_0x105228(0x11d)]();});});}};i=V([K(0x0,_0x119863)],i);const u={'id':_0x3ff888(0xdf),'type':_0x2b08be['MUTATION'],'handler':(_0x4c8b46,_0x15041d)=>{const _0x5bf80e=_0x3ff888,{unitId:_0x172e2c,subUnitId:_0x33ee5c,shapeType:_0x4a62ef,shapeId:_0x14108c,shapeData:_0xcfd736}=_0x15041d,_0x408b3a=_0x4c8b46[_0x5bf80e(0x128)](i)[_0x5bf80e(0x111)](_0x172e2c,_0x33ee5c,_0x14108c);return _0x408b3a&&(_0x408b3a[_0x5bf80e(0x125)](_0x4a62ef),_0xcfd736&&(_0x408b3a==null||_0x408b3a[_0x5bf80e(0xe7)](_0xcfd736))),!0x0;}},pe={'id':_0x3ff888(0xf5),'type':_0x2b08be[_0x3ff888(0x102)],'handler':(_0x330475,_0x26593e)=>{const _0x28bfdf=_0x3ff888;if(!_0x26593e)return!0x1;const _0x5696ae=_0x330475['get'](_0x11fca2),_0x43be42=_0x330475[_0x28bfdf(0x128)](i),_0x151ba4=_0x330475['get'](_0xec8a3),_0x1f56e0=[],_0x4cd9f5=[],{unitId:_0x462a75,subUnitId:_0x45a086,shapeId:_0xc4b5dc,shapeType:_0x61cb85,shapeData:_0x5840a4}=_0x26593e,_0xa0a92e=_0x43be42['getShapeModel'](_0x462a75,_0x45a086,_0xc4b5dc);if(_0xa0a92e){const _0x32a0be=_0xa0a92e['getShapeType'](),_0x2a0e0c=Object[_0x28bfdf(0xec)]({},_0xa0a92e[_0x28bfdf(0x10a)]()),_0x409408={'unitId':_0x462a75,'subUnitId':_0x45a086,'shapeId':_0xc4b5dc,'shapeType':_0x61cb85,'shapeData':_0x5840a4},_0x8cd1a6={'unitId':_0x462a75,'subUnitId':_0x45a086,'shapeId':_0xc4b5dc,'shapeType':_0x32a0be,'shapeData':_0x2a0e0c};return _0x1f56e0[_0x28bfdf(0x120)]({'id':u['id'],'params':_0x409408}),_0x4cd9f5[_0x28bfdf(0x120)]({'id':u['id'],'params':_0x8cd1a6}),_0x1f56e0[_0x28bfdf(0xfc)](_0x39d469=>_0x5696ae[_0x28bfdf(0xdb)](_0x39d469['id'],_0x39d469['params']))&&_0x151ba4[_0x28bfdf(0x108)]({'unitID':_0x462a75,'redoMutations':[..._0x1f56e0],'undoMutations':[..._0x4cd9f5]}),!0x0;}return!0x1;}},Y={'id':'sheet.mutation.insert-shape','type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0x95da33,_0x309a76)=>{const _0x277b0e=_0x3ff888,{unitId:_0x32fec5,subUnitId:_0x1a2ff4,shapeType:_0x516807,shapeId:_0x307460,shapeData:_0x3abc1c}=_0x309a76;return _0x95da33[_0x277b0e(0x128)](i)['insertShape'](_0x32fec5,_0x1a2ff4,_0x516807,_0x307460,_0x3abc1c),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0x570f1d,_0x2e1297)=>{const _0x37d1dd=_0x3ff888,{unitId:_0x23d1ab,subUnitId:_0x45742e,shapeId:_0x3a3dcc}=_0x2e1297;return _0x570f1d[_0x37d1dd(0x128)](i)['removeShape'](_0x23d1ab,_0x45742e,_0x3a3dcc),!0x0;}},Q={'id':_0x3ff888(0xdc),'type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0xcf2400,_0x599efc)=>{const _0x1941d2=_0x3ff888,{unitId:_0x3e996e,subUnitId:_0x1ff04b,shapeType:_0x203604,shapeId:_0x495970,shapeData:_0x397f8e}=_0x599efc,_0x1c35f1=_0xcf2400[_0x1941d2(0x128)](i)[_0x1941d2(0x111)](_0x3e996e,_0x1ff04b,_0x495970);return _0x1c35f1&&(_0x203604!==void 0x0&&_0x1c35f1['setShapeType'](_0x203604),_0x397f8e&&(_0x1c35f1==null||_0x1c35f1[_0x1941d2(0xe7)](_0x397f8e,!0x0))),!0x0;}},X='sheets-shape.config',m={};var Z=Object['defineProperty'],k=Object[_0x3ff888(0x11a)],ee=(_0xe29c5e,_0x40d766,_0x169a84)=>_0x40d766 in _0xe29c5e?Z(_0xe29c5e,_0x40d766,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x169a84}):_0xe29c5e[_0x40d766]=_0x169a84,ae=(_0x537f3a,_0x25cb92,_0x443a28,_0xf104ac)=>{const _0x2cd593=_0x3ff888;for(var _0x3ed6f2=_0xf104ac>0x1?void 0x0:_0xf104ac?k(_0x25cb92,_0x443a28):_0x25cb92,_0x45fafe=_0x537f3a[_0x2cd593(0x11c)]-0x1,_0x2bedcc;_0x45fafe>=0x0;_0x45fafe--)(_0x2bedcc=_0x537f3a[_0x45fafe])&&(_0x3ed6f2=_0x2bedcc(_0x3ed6f2)||_0x3ed6f2);return _0x3ed6f2;},g=(_0x292061,_0x365684)=>(_0x284e86,_0x5f46a6)=>_0x365684(_0x284e86,_0x5f46a6,_0x292061),E=(_0x3ccf84,_0x2735e1,_0x1d7dd0)=>ee(_0x3ccf84,typeof _0x2735e1!=_0x3ff888(0xeb)?_0x2735e1+'':_0x2735e1,_0x1d7dd0);const se=_0x3ff888(0x122);let S=class extends _0x665b7d{constructor(_0x591af2=m,_0x34eb29,_0x2df2b6,_0x2caeb6){const _0x308fa9=_0x3ff888;super(),this[_0x308fa9(0x123)]=_0x591af2,this[_0x308fa9(0x121)]=_0x34eb29,this[_0x308fa9(0x117)]=_0x2df2b6,this['_configService']=_0x2caeb6;const {..._0x2d2f88}=_0x4f2c70({},m,this['_config']);this[_0x308fa9(0x103)][_0x308fa9(0x10c)](X,_0x2d2f88),this['_initCommands']();}[_0x3ff888(0xe1)](){_0x434c38(this['_injector'],[]);}[_0x3ff888(0x10b)](){const _0x2db0a6=_0x3ff888,_0x14a605=this[_0x2db0a6(0x121)];[[T],[i]][_0x2db0a6(0xf8)](_0x1b3b00=>_0x14a605[_0x2db0a6(0x127)](_0x1b3b00));}[_0x3ff888(0x10d)](){const _0x4a7877=_0x3ff888;[Y,q,u,Q][_0x4a7877(0xf8)](_0x257e64=>this[_0x4a7877(0x109)](this[_0x4a7877(0x117)][_0x4a7877(0x114)](_0x257e64)));}};E(S,_0x3ff888(0xfe),_0x107b27[_0x3ff888(0x100)]),E(S,_0x3ff888(0x10f),se),S=ae([_0x15f9bd(_0x1070ce),g(0x1,_0x574c09(_0x1a8826)),g(0x2,_0x11fca2),g(0x3,_0x2c4b94)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
|
|
1
|
+
const _0x507af9=_0x30a0;(function(_0x2e7339,_0x3614c6){const _0x4451ef=_0x30a0,_0x148148=_0x2e7339();while(!![]){try{const _0x489a42=parseInt(_0x4451ef(0x1a4))/0x1*(-parseInt(_0x4451ef(0x1bd))/0x2)+-parseInt(_0x4451ef(0x1c6))/0x3+-parseInt(_0x4451ef(0x19b))/0x4+parseInt(_0x4451ef(0x1d0))/0x5+parseInt(_0x4451ef(0x1e3))/0x6*(parseInt(_0x4451ef(0x1df))/0x7)+parseInt(_0x4451ef(0x1a0))/0x8+-parseInt(_0x4451ef(0x1b1))/0x9;if(_0x489a42===_0x3614c6)break;else _0x148148['push'](_0x148148['shift']());}catch(_0x573179){_0x148148['push'](_0x148148['shift']());}}}(_0x10a1,0x18d41));import{CommandType as _0x395ba8,DependentOn as _0x14f0ed,Disposable as _0x31bd33,ICommandService as _0x4e0c17,IConfigService as _0x95afc2,IResourceManagerService as _0x18aaa8,IUndoRedoService as _0x312996,Inject as _0x5f5519,Injector as _0x36647f,Plugin as _0x5debca,UniverInstanceType as _0x3bd622,merge as _0x253510,touchDependencies as _0x1193b2}from'@univerjs/core';function _0x30a0(_0x5e5991,_0x51ec3c){_0x5e5991=_0x5e5991-0x198;const _0x10a187=_0x10a1();let _0x30a089=_0x10a187[_0x5e5991];return _0x30a089;}import{ShapeModel as _0x42a193,isConnectorShape as _0x2e926b}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x47af1f}from'@univerjs-pro/license';function g(_0x33ae3a){'@babel/helpers - typeof';const _0xaddf16=_0x30a0;return g=typeof Symbol=='function'&&typeof Symbol[_0xaddf16(0x1bc)]==_0xaddf16(0x1ad)?function(_0x572000){return typeof _0x572000;}:function(_0x7c635c){const _0x3dff3f=_0xaddf16;return _0x7c635c&&typeof Symbol==_0x3dff3f(0x1d6)&&_0x7c635c[_0x3dff3f(0x1da)]===Symbol&&_0x7c635c!==Symbol[_0x3dff3f(0x1c3)]?'symbol':typeof _0x7c635c;},g(_0x33ae3a);}function _(_0x4115fe,_0x8ab89d){const _0x100850=_0x30a0;if(g(_0x4115fe)!=_0x100850(0x1af)||!_0x4115fe)return _0x4115fe;var _0x2d5a72=_0x4115fe[Symbol[_0x100850(0x1dd)]];if(_0x2d5a72!==void 0x0){var _0x3e7c61=_0x2d5a72[_0x100850(0x1b3)](_0x4115fe,_0x8ab89d||'default');if(g(_0x3e7c61)!=_0x100850(0x1af))return _0x3e7c61;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x8ab89d==='string'?String:Number)(_0x4115fe);}function v(_0x275475){const _0x256064=_0x30a0;var _0x4e7b25=_(_0x275475,_0x256064(0x1c1));return g(_0x4e7b25)=='symbol'?_0x4e7b25:_0x4e7b25+'';}function y(_0x4df32a,_0xa980a2,_0x337887){return(_0xa980a2=v(_0xa980a2))in _0x4df32a?Object['defineProperty'](_0x4df32a,_0xa980a2,{'value':_0x337887,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4df32a[_0xa980a2]=_0x337887,_0x4df32a;}var b=class extends _0x31bd33{constructor(){const _0x517770=_0x30a0;super(),y(this,_0x517770(0x1e4),new Map()),y(this,'_linesIds',new Set()),y(this,_0x517770(0x1c0),new Set());}[_0x507af9(0x19c)](_0x459316,_0x1a66d2,_0xd41927){const _0x577f0b=_0x507af9;let _0x48124f=new _0x42a193(_0x459316,_0x1a66d2,_0xd41927);return this[_0x577f0b(0x1e4)][_0x577f0b(0x1e2)](_0x1a66d2,_0x48124f),_0x2e926b(_0x459316)&&this[_0x577f0b(0x1d3)][_0x577f0b(0x1a5)](_0x1a66d2),_0x48124f;}[_0x507af9(0x1b0)](_0x400cb0){const _0x13db8e=_0x507af9;let _0x56372f=[];for(let _0x4ad205 of this[_0x13db8e(0x1d3)]){let _0x3fa67b=this['_shapes'][_0x13db8e(0x199)](_0x4ad205);if(_0x3fa67b){let _0x3c1f2e=_0x3fa67b['getShapeRelation']();if(_0x3c1f2e){var _0x39f2e6,_0x132116;((_0x39f2e6=_0x3c1f2e['from'])==null?void 0x0:_0x39f2e6[_0x13db8e(0x1a9)])===_0x400cb0&&_0x56372f[_0x13db8e(0x1d8)]({..._0x3c1f2e[_0x13db8e(0x1a7)],'lineShapeId':_0x4ad205,'isFrom':!0x0}),((_0x132116=_0x3c1f2e['to'])==null?void 0x0:_0x132116['shapeId'])===_0x400cb0&&_0x56372f['push']({..._0x3c1f2e['to'],'lineShapeId':_0x4ad205,'isFrom':!0x1});}}}return _0x56372f;}[_0x507af9(0x1ac)](_0x129eb7){const _0x3d98f7=_0x507af9;let _0x39757b=this['_shapes'][_0x3d98f7(0x199)](_0x129eb7);if(_0x39757b)return _0x39757b['getShapeRelation']();}[_0x507af9(0x1a1)](_0x53bff5){let _0x44824f=this['_shapes']['get'](_0x53bff5);if(_0x44824f)return _0x44824f['getShapeType']();}[_0x507af9(0x1eb)](_0x2c0af5){const _0x849f91=_0x507af9;return this[_0x849f91(0x1e4)]['has'](_0x2c0af5);}[_0x507af9(0x1cc)](_0x3c3d7e){const _0x201dd0=_0x507af9;let _0x5e88b2=this['_shapes']['get'](_0x3c3d7e);_0x5e88b2&&(_0x2e926b(_0x5e88b2[_0x201dd0(0x1a1)]())&&this[_0x201dd0(0x1d3)]['delete'](_0x3c3d7e),this[_0x201dd0(0x1e4)][_0x201dd0(0x1d5)](_0x3c3d7e));}[_0x507af9(0x1aa)](){const _0x14017a=_0x507af9;let _0xe09005=[];return this[_0x14017a(0x1e4)][_0x14017a(0x19a)](_0x49503d=>{const _0x446963=_0x14017a;_0xe09005[_0x446963(0x1d8)](_0x49503d[_0x446963(0x1aa)]());}),_0xe09005;}[_0x507af9(0x1d1)](_0x44ed55){const _0x1b6175=_0x507af9;for(let _0x2ac8a7 of _0x44ed55){let {id:_0xcb3ca8,shapeType:_0xf4b497}=_0x2ac8a7,_0x5552a4=this[_0x1b6175(0x19c)](_0xf4b497,_0xcb3ca8,_0x2ac8a7[_0x1b6175(0x1b2)]);_0x5552a4&&_0x5552a4[_0x1b6175(0x1ca)]()&&this[_0x1b6175(0x1d3)][_0x1b6175(0x1a5)](_0xcb3ca8);}}[_0x507af9(0x1ae)](){const _0x1d6391=_0x507af9;this['_disposed']||(this['_shapes'][_0x1d6391(0x19a)](_0x1e9df1=>{_0x1e9df1['dispose']();}),this[_0x1d6391(0x1e4)][_0x1d6391(0x1c5)](),this[_0x1d6391(0x1d3)]['clear'](),this[_0x1d6391(0x1c0)]['clear'](),super['dispose']());}};function x(_0x5b4dc4,_0x58c1ae){return function(_0x284696,_0x3f246a){_0x58c1ae(_0x284696,_0x3f246a,_0x5b4dc4);};}function S(_0x52f62e,_0x294f34,_0x3260b2,_0x1c1715){const _0x39f3d6=_0x507af9;var _0x43f7af=arguments[_0x39f3d6(0x1d2)],_0xeca10e=_0x43f7af<0x3?_0x294f34:_0x1c1715===null?_0x1c1715=Object[_0x39f3d6(0x1c7)](_0x294f34,_0x3260b2):_0x1c1715,_0x46ed8e;if(typeof Reflect==_0x39f3d6(0x1af)&&typeof Reflect[_0x39f3d6(0x1ce)]==_0x39f3d6(0x1d6))_0xeca10e=Reflect[_0x39f3d6(0x1ce)](_0x52f62e,_0x294f34,_0x3260b2,_0x1c1715);else{for(var _0x19eb25=_0x52f62e['length']-0x1;_0x19eb25>=0x0;_0x19eb25--)(_0x46ed8e=_0x52f62e[_0x19eb25])&&(_0xeca10e=(_0x43f7af<0x3?_0x46ed8e(_0xeca10e):_0x43f7af>0x3?_0x46ed8e(_0x294f34,_0x3260b2,_0xeca10e):_0x46ed8e(_0x294f34,_0x3260b2))||_0xeca10e);}return _0x43f7af>0x3&&_0xeca10e&&Object[_0x39f3d6(0x1ea)](_0x294f34,_0x3260b2,_0xeca10e),_0xeca10e;}let C=class extends _0x31bd33{constructor(_0x20e684){const _0x52ba8e=_0x507af9;super(),this[_0x52ba8e(0x1ec)]=_0x20e684,y(this,_0x52ba8e(0x1e1),new Map()),this[_0x52ba8e(0x198)]();}[_0x507af9(0x1ab)](_0x359052,_0x1d5c66){const _0x4837ec=_0x507af9;let _0x2e8766=this[_0x4837ec(0x1e1)][_0x4837ec(0x199)](_0x359052);_0x2e8766||(_0x2e8766=new Map(),this['_shapeModelManagerMap']['set'](_0x359052,_0x2e8766));let _0x5e69ad=_0x2e8766['get'](_0x1d5c66);return _0x5e69ad||(_0x5e69ad=new b(),_0x2e8766[_0x4837ec(0x1e2)](_0x1d5c66,_0x5e69ad)),_0x5e69ad;}[_0x507af9(0x1e9)](_0x1d0963,_0x703d32,_0x62a2f2,_0x21afcc,_0x1ad476){const _0x18757d=_0x507af9;this[_0x18757d(0x1ab)](_0x1d0963,_0x703d32)[_0x18757d(0x19c)](_0x62a2f2,_0x21afcc,_0x1ad476);}[_0x507af9(0x1cc)](_0x166200,_0x2d1d65,_0x4441a8){const _0x33b9a9=_0x507af9;this[_0x33b9a9(0x1ab)](_0x166200,_0x2d1d65)['removeShape'](_0x4441a8);}[_0x507af9(0x1a2)](_0x1f84e4,_0x51623d,_0x374509){const _0x1b912c=_0x507af9;return this['_ensureShapeModelManager'](_0x1f84e4,_0x51623d)[_0x1b912c(0x1a1)](_0x374509);}[_0x507af9(0x1a1)](_0x4b6b98,_0x39852a,_0x3c2591){const _0x5827b0=_0x507af9;return this[_0x5827b0(0x1ab)](_0x4b6b98,_0x39852a)['getShapeType'](_0x3c2591);}[_0x507af9(0x1eb)](_0xe7c188,_0x39cc74,_0x2c5d40){const _0x2e05f5=_0x507af9;return this[_0x2e05f5(0x1ab)](_0xe7c188,_0x39cc74)[_0x2e05f5(0x1eb)](_0x2c5d40);}['getShapeTypeById'](_0x16d56a,_0x117cba,_0x554feb){const _0x1beaf2=_0x507af9;return this[_0x1beaf2(0x1ab)](_0x16d56a,_0x117cba)[_0x1beaf2(0x1a1)](_0x554feb);}[_0x507af9(0x1b9)](_0x8c78ce,_0x57fa6d,_0x5336b3){const _0x66ab22=_0x507af9;let _0x4b1162=this[_0x66ab22(0x1ab)](_0x8c78ce,_0x57fa6d);if(!_0x4b1162[_0x66ab22(0x1a1)](_0x5336b3))return;let _0x1c7a52=_0x4b1162[_0x66ab22(0x1e4)][_0x66ab22(0x199)](_0x5336b3);if(_0x1c7a52)return _0x1c7a52[_0x66ab22(0x1e7)]();}['getShapeModel'](_0x48efb3,_0x57a8f7,_0xcb7150){const _0x488e01=_0x507af9;return this[_0x488e01(0x1ab)](_0x48efb3,_0x57a8f7)[_0x488e01(0x1e4)][_0x488e01(0x199)](_0xcb7150);}[_0x507af9(0x1b0)](_0x16a633,_0x3bd7a9,_0x2f1f18){const _0x5455d7=_0x507af9;return this[_0x5455d7(0x1ab)](_0x16a633,_0x3bd7a9)[_0x5455d7(0x1b0)](_0x2f1f18);}[_0x507af9(0x1ac)](_0x5a4a0a,_0x22e3c5,_0x278123){const _0xe851a=_0x507af9;let _0x4acb14=this[_0xe851a(0x1ab)](_0x5a4a0a,_0x22e3c5)[_0xe851a(0x1e4)]['get'](_0x278123);if(_0x4acb14)return _0x4acb14['getShapeRelation']();}['setShapeType'](){}[_0x507af9(0x1de)](_0x28a0a8){const _0x1d6fc5=_0x507af9;let _0x32be68={},_0x1a99e4=this[_0x1d6fc5(0x1e1)][_0x1d6fc5(0x199)](_0x28a0a8);return _0x1a99e4&&_0x1a99e4[_0x1d6fc5(0x19a)]((_0x1babaf,_0x21e9bf)=>{const _0x464072=_0x1d6fc5;let _0x86c5e7=_0x1babaf[_0x464072(0x1aa)]();_0x86c5e7['length']>0x0&&(_0x32be68[_0x21e9bf]=_0x86c5e7);}),JSON[_0x1d6fc5(0x1ba)](_0x32be68);}[_0x507af9(0x1cd)](_0x377b1c,_0x43d678){const _0x23fc73=_0x507af9;Object['keys'](_0x43d678)[_0x23fc73(0x19a)](_0x4a1461=>{const _0x4c939d=_0x23fc73;this['_ensureShapeModelManager'](_0x377b1c,_0x4a1461)[_0x4c939d(0x1d1)](_0x43d678[_0x4a1461]);});}[_0x507af9(0x1aa)](){const _0x217714=_0x507af9;let _0x2c9797={};return this['_shapeModelManagerMap'][_0x217714(0x19a)]((_0x3963c1,_0x12b18a)=>{_0x2c9797[_0x12b18a]={},_0x3963c1['forEach']((_0x28ce96,_0x1bacfc)=>{const _0x4fb1ee=_0x30a0;_0x2c9797[_0x12b18a][_0x1bacfc]=_0x28ce96[_0x4fb1ee(0x1aa)]();});}),_0x2c9797;}['fromJSON'](_0x489993){const _0xa75339=_0x507af9;Object[_0xa75339(0x1cb)](_0x489993)[_0xa75339(0x19a)](_0x1fdd5e=>{const _0x2b9ff7=_0xa75339;let _0x5e7b3f=_0x489993[_0x1fdd5e];Object[_0x2b9ff7(0x1cb)](_0x5e7b3f)[_0x2b9ff7(0x19a)](_0xc8654d=>{const _0x4e276d=_0x2b9ff7;this[_0x4e276d(0x1ab)](_0x1fdd5e,_0xc8654d)[_0x4e276d(0x1d1)](_0x5e7b3f[_0xc8654d]);});});}[_0x507af9(0x198)](){const _0x42d62e=_0x507af9;this[_0x42d62e(0x1ec)][_0x42d62e(0x1dc)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x3bd622[_0x42d62e(0x1be)]],'toJson':_0x4818ae=>this[_0x42d62e(0x1de)](_0x4818ae),'parseJson':_0x1ada38=>JSON[_0x42d62e(0x1b6)](_0x1ada38),'onLoad':(_0x43eb2b,_0x55ef90)=>{const _0x5aabc7=_0x42d62e;this[_0x5aabc7(0x1cd)](_0x43eb2b,_0x55ef90);},'onUnLoad':_0x555360=>{const _0x2ec721=_0x42d62e;let _0xc033c1=this[_0x2ec721(0x1e1)]['get'](_0x555360);_0xc033c1&&(_0xc033c1[_0x2ec721(0x19a)](_0x284e4c=>{const _0x159916=_0x2ec721;_0x284e4c[_0x159916(0x1ae)]();}),this[_0x2ec721(0x1e1)]['delete'](_0x555360));}});}[_0x507af9(0x1ae)](){const _0x5cfb26=_0x507af9;this[_0x5cfb26(0x1e1)][_0x5cfb26(0x19a)](_0x58a678=>{const _0x3c3a86=_0x5cfb26;_0x58a678[_0x3c3a86(0x19a)](_0x2d0581=>{const _0x18c065=_0x3c3a86;_0x2d0581[_0x18c065(0x1ae)]();});});}};C=S([x(0x0,_0x18aaa8)],C);function _0x10a1(){const _0x5c3aa8=['892945PvbsOW','fromJSON','length','_linesIds','version','delete','function','setShapeData','push','_injector','constructor','sheet.mutation.update-shape-data','registerPluginResource','toPrimitive','_serializeShapeForUnit','21xCGNMJ','sheet.mutation.update-shape-type','_shapeModelManagerMap','set','383982QbRwYU','_shapes','assign','type','getShapeData','sheet.command.update-shape-type','insertShape','defineProperty','hasShape','_resourcesManagerService','MUTATION','_initSnapshot','get','forEach','556424xFCvnF','addShape','registerCommand','onStarting','_config','1311944fLpwzB','getShapeType','getBasicShapeType','SHEET_SHAPE_PLUGIN','1Yxpibw','add','disposeWithMe','from','0.17.0-insiders.20260318-5bef180','shapeId','toJSON','_ensureShapeModelManager','getLineShapeRelation','symbol','dispose','object','getBasicShapeRelation','1390131jbQbZu','shapeData','call','onRendered','_commandService','parse','_initCommands','setConfig','getShapeDataById','stringify','getShapeModel','iterator','164530QfzaOt','UNIVER_SHEET','params','_groupIds','string','syncExecuteCommand','prototype','setShapeType','clear','171138vdSNIA','getOwnPropertyDescriptor','sheet.mutation.insert-shape','every','isLineShape','keys','removeShape','_deserializeShapeForUnit','decorate','sheet.mutation.remove-shape'];_0x10a1=function(){return _0x5c3aa8;};return _0x10a1();}const w={'id':_0x507af9(0x1e0),'type':_0x395ba8['MUTATION'],'handler':(_0x3c6e78,_0x3141bc)=>{const _0x32fb40=_0x507af9;let {unitId:_0x3a6c08,subUnitId:_0x11ab89,shapeType:_0x1ad7a3,shapeId:_0x2f4809,shapeData:_0x5886f3}=_0x3141bc,_0xb3bb23=_0x3c6e78['get'](C)['getShapeModel'](_0x3a6c08,_0x11ab89,_0x2f4809);return _0xb3bb23&&(_0xb3bb23[_0x32fb40(0x1c4)](_0x1ad7a3),_0x5886f3&&(_0xb3bb23==null||_0xb3bb23[_0x32fb40(0x1d7)](_0x5886f3))),!0x0;}},T={'id':_0x507af9(0x1e8),'type':_0x395ba8['COMMAND'],'handler':(_0x3fde7b,_0x566837)=>{const _0x2a3c5c=_0x507af9;if(!_0x566837)return!0x1;let _0x21ca89=_0x3fde7b['get'](_0x4e0c17),_0x3686f0=_0x3fde7b[_0x2a3c5c(0x199)](C),_0x1a449e=_0x3fde7b[_0x2a3c5c(0x199)](_0x312996),_0x25835f=[],_0x216b5f=[],{unitId:_0x465ce5,subUnitId:_0x66cd64,shapeId:_0x1b5e37,shapeType:_0x100364,shapeData:_0x4f38f9}=_0x566837,_0x413dbd=_0x3686f0[_0x2a3c5c(0x1bb)](_0x465ce5,_0x66cd64,_0x1b5e37);if(_0x413dbd){let _0x5868ad=_0x413dbd[_0x2a3c5c(0x1a1)](),_0x4c7892=Object[_0x2a3c5c(0x1e5)]({},_0x413dbd[_0x2a3c5c(0x1e7)]()),_0x36b870={'unitId':_0x465ce5,'subUnitId':_0x66cd64,'shapeId':_0x1b5e37,'shapeType':_0x100364,'shapeData':_0x4f38f9},_0x4a4a91={'unitId':_0x465ce5,'subUnitId':_0x66cd64,'shapeId':_0x1b5e37,'shapeType':_0x5868ad,'shapeData':_0x4c7892};return _0x25835f['push']({'id':w['id'],'params':_0x36b870}),_0x216b5f[_0x2a3c5c(0x1d8)]({'id':w['id'],'params':_0x4a4a91}),_0x25835f[_0x2a3c5c(0x1c9)](_0x32c1ed=>_0x21ca89[_0x2a3c5c(0x1c2)](_0x32c1ed['id'],_0x32c1ed[_0x2a3c5c(0x1bf)]))&&_0x1a449e['pushUndoRedo']({'unitID':_0x465ce5,'redoMutations':[..._0x25835f],'undoMutations':[..._0x216b5f]}),!0x0;}return!0x1;}},E={'id':_0x507af9(0x1c8),'type':_0x395ba8[_0x507af9(0x1ed)],'handler':(_0x247b2f,_0x1c430b)=>{const _0x268099=_0x507af9;let {unitId:_0x257bc7,subUnitId:_0x356bf9,shapeType:_0x1341bf,shapeId:_0x20e22e,shapeData:_0xde7976}=_0x1c430b;return _0x247b2f[_0x268099(0x199)](C)[_0x268099(0x1e9)](_0x257bc7,_0x356bf9,_0x1341bf,_0x20e22e,_0xde7976),!0x0;}},D={'id':_0x507af9(0x1cf),'type':_0x395ba8[_0x507af9(0x1ed)],'handler':(_0x2e7f49,_0x449706)=>{const _0x19077b=_0x507af9;let {unitId:_0x257a25,subUnitId:_0x122999,shapeId:_0x480a61}=_0x449706;return _0x2e7f49[_0x19077b(0x199)](C)[_0x19077b(0x1cc)](_0x257a25,_0x122999,_0x480a61),!0x0;}},O={'id':_0x507af9(0x1db),'type':_0x395ba8['MUTATION'],'handler':(_0x166984,_0x1195bb)=>{const _0x2e6fdd=_0x507af9;let {unitId:_0x319d38,subUnitId:_0x5a82ad,shapeType:_0x43e653,shapeId:_0x486ba6,shapeData:_0xf1fd1c}=_0x1195bb,_0x11573c=_0x166984[_0x2e6fdd(0x199)](C)[_0x2e6fdd(0x1bb)](_0x319d38,_0x5a82ad,_0x486ba6);return _0x11573c&&(_0x43e653!==void 0x0&&_0x11573c[_0x2e6fdd(0x1c4)](_0x43e653),_0xf1fd1c&&(_0x11573c==null||_0x11573c['setShapeData'](_0xf1fd1c,!0x0))),!0x0;}};var k='@univerjs-pro/sheets-shape',A=_0x507af9(0x1a8);const j='sheets-shape.config';Symbol(j);const M={};let N=class extends _0x5debca{constructor(_0x260950=M,_0x46973b,_0x4a6b0b,_0x18d2fd){const _0x20851e=_0x507af9;super(),this[_0x20851e(0x19f)]=_0x260950,this[_0x20851e(0x1d9)]=_0x46973b,this[_0x20851e(0x1b5)]=_0x4a6b0b,this['_configService']=_0x18d2fd;let {..._0x3a2dc2}=_0x253510({},M,this['_config']);this['_configService'][_0x20851e(0x1b8)](j,_0x3a2dc2),this[_0x20851e(0x1b7)]();}[_0x507af9(0x1b4)](){const _0x42e3c8=_0x507af9;_0x1193b2(this[_0x42e3c8(0x1d9)],[]);}[_0x507af9(0x19e)](){const _0x653fcc=_0x507af9;let _0x18a7d7=this[_0x653fcc(0x1d9)];[[b],[C]][_0x653fcc(0x19a)](_0x5bf443=>_0x18a7d7[_0x653fcc(0x1a5)](_0x5bf443));}[_0x507af9(0x1b7)](){const _0x41f911=_0x507af9;[E,D,w,O][_0x41f911(0x19a)](_0x3af51e=>this[_0x41f911(0x1a6)](this[_0x41f911(0x1b5)][_0x41f911(0x19d)](_0x3af51e)));}};y(N,_0x507af9(0x1e6),_0x3bd622[_0x507af9(0x1be)]),y(N,'pluginName',_0x507af9(0x1a3)),y(N,'packageName',k),y(N,_0x507af9(0x1d4),A),N=S([_0x14f0ed(_0x47af1f),x(0x1,_0x5f5519(_0x36647f)),x(0x2,_0x4e0c17),x(0x3,_0x95afc2)],N);export{E as InsertSheetsShapeMutation,D as RemoveSheetsShapeMutation,C as SheetsShapeService,N as UniverSheetsShapePlugin,O as UpdateSheetsShapeDataMutation,T as UpdateSheetsShapeTypeCommand,w as UpdateSheetsShapeTypeMutation};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import { ICommand } from '@univerjs/core';
|
|
3
|
-
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
1
|
+
import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { ICommand } from '@univerjs/core';
|
|
3
|
+
import type { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
4
4
|
export interface IUpdateSheetsShapeTypeCommandParams extends ISheetCommandSharedParams {
|
|
5
5
|
shapeId: string;
|
|
6
6
|
shapeType: ShapeTypeEnum;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import { IMutation } from '@univerjs/core';
|
|
3
|
-
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
1
|
+
import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { IMutation } from '@univerjs/core';
|
|
3
|
+
import type { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
4
4
|
export interface IInsertSheetsShapeMutationParams extends ISheetCommandSharedParams {
|
|
5
5
|
shapeId: string;
|
|
6
6
|
shapeType: ShapeTypeEnum;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IMutation } from '@univerjs/core';
|
|
2
|
-
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
1
|
+
import type { IMutation } from '@univerjs/core';
|
|
2
|
+
import type { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
3
3
|
export interface IRemoveSheetsShapeMutationParams extends ISheetCommandSharedParams {
|
|
4
4
|
shapeId: string;
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import { IMutation } from '@univerjs/core';
|
|
3
|
-
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
1
|
+
import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { IMutation } from '@univerjs/core';
|
|
3
|
+
import type { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
4
4
|
export interface IUpdateSheetsShapeDataMutationParams extends ISheetCommandSharedParams {
|
|
5
5
|
shapeId: string;
|
|
6
6
|
shapeType: ShapeTypeEnum;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
-
import { IMutation } from '@univerjs/core';
|
|
3
|
-
import { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
1
|
+
import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import type { IMutation } from '@univerjs/core';
|
|
3
|
+
import type { ISheetCommandSharedParams } from '@univerjs/sheets';
|
|
4
4
|
export interface IUpdateSheetsShapeTypeMutationParams extends ISheetCommandSharedParams {
|
|
5
5
|
shapeId: string;
|
|
6
6
|
shapeType: ShapeTypeEnum;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IShapeData, IShapeJSONData, IShapeRelation, IShapeRelationItem, ShapeTypeEnum
|
|
1
|
+
import type { IShapeData, IShapeJSONData, IShapeRelation, IShapeRelationItem, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
|
+
import { ShapeModel } from '@univerjs-pro/engine-shape';
|
|
2
3
|
import { Disposable } from '@univerjs/core';
|
|
3
4
|
export type IShapeRelationItemWithLineId = IShapeRelationItem & {
|
|
4
5
|
lineShapeId: string;
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { IUniverSheetsShapeConfig } from './controllers/config.schema';
|
|
1
|
+
import type { IUniverSheetsShapeConfig } from './controllers/config.schema';
|
|
2
2
|
import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
|
|
3
|
-
export declare const SHEET_SHAPE_PLUGIN_NAME = "SHEET_SHAPE_PLUGIN";
|
|
4
3
|
export declare class UniverSheetsShapePlugin extends Plugin {
|
|
5
4
|
private readonly _config;
|
|
6
5
|
protected readonly _injector: Injector;
|
|
@@ -8,6 +7,8 @@ export declare class UniverSheetsShapePlugin extends Plugin {
|
|
|
8
7
|
private readonly _configService;
|
|
9
8
|
static type: UniverInstanceType;
|
|
10
9
|
static pluginName: string;
|
|
10
|
+
static packageName: string;
|
|
11
|
+
static version: string;
|
|
11
12
|
constructor(_config: IUniverSheetsShapeConfig | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
|
|
12
13
|
onRendered(): void;
|
|
13
14
|
onStarting(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IShapeData, IShapeJSONData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
1
|
+
import type { IShapeData, IShapeJSONData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
|
|
2
2
|
import { Disposable, IResourceManagerService } from '@univerjs/core';
|
|
3
3
|
export interface ISheetsShapeResource {
|
|
4
4
|
[subUnitId: string]: IShapeJSONData[];
|
|
@@ -16,9 +16,9 @@ export declare class SheetsShapeService extends Disposable {
|
|
|
16
16
|
hasShape(unitId: string, subUnitId: string, shapeId: string): boolean;
|
|
17
17
|
getShapeTypeById(unitId: string, subUnitId: string, shapeId: string): ShapeTypeEnum | undefined;
|
|
18
18
|
getShapeDataById(unitId: string, subUnitId: string, shapeId: string): IShapeData | undefined;
|
|
19
|
-
getShapeModel(unitId: string, subUnitId: string, shapeId: string): import(
|
|
20
|
-
getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import(
|
|
21
|
-
getLineShapeRelation(unitId: string, subUnitId: string, shapeId: string): import(
|
|
19
|
+
getShapeModel(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").ShapeModel | undefined;
|
|
20
|
+
getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("../model/shape-manager").IShapeRelationItemWithLineId[];
|
|
21
|
+
getLineShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").IShapeRelation | undefined;
|
|
22
22
|
setShapeType(): void;
|
|
23
23
|
private _serializeShapeForUnit;
|
|
24
24
|
private _deserializeShapeForUnit;
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x151cc9,_0x72093b){const _0x2ff975=_0x2575,_0x2c097d=_0x151cc9();while(!![]){try{const _0x4393bc=-parseInt(_0x2ff975(0x18f))/0x1+parseInt(_0x2ff975(0x19e))/0x2*(parseInt(_0x2ff975(0x18b))/0x3)+parseInt(_0x2ff975(0x150))/0x4*(parseInt(_0x2ff975(0x15d))/0x5)+parseInt(_0x2ff975(0x178))/0x6*(parseInt(_0x2ff975(0x152))/0x7)+parseInt(_0x2ff975(0x16e))/0x8+parseInt(_0x2ff975(0x156))/0x9*(-parseInt(_0x2ff975(0x14a))/0xa)+-parseInt(_0x2ff975(0x1a0))/0xb;if(_0x4393bc===_0x72093b)break;else _0x2c097d['push'](_0x2c097d['shift']());}catch(_0xa850db){_0x2c097d['push'](_0x2c097d['shift']());}}}(_0x57cb,0x890b0),function(_0x3e6a9e,_0x1a471f){const _0x19803a=_0x2575;typeof exports==_0x19803a(0x16b)&&typeof module<'u'?_0x1a471f(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x19803a(0x1a3)]?define([_0x19803a(0x140),'@univerjs/core',_0x19803a(0x172),_0x19803a(0x1a5)],_0x1a471f):(_0x3e6a9e=typeof globalThis<'u'?globalThis:_0x3e6a9e||self,_0x1a471f(_0x3e6a9e[_0x19803a(0x153)]={},_0x3e6a9e[_0x19803a(0x167)],_0x3e6a9e[_0x19803a(0x18d)],_0x3e6a9e['UniverProLicense']));}(this,function(_0x5cf09e,_0x33e491,_0x4da624,_0x125323){'use strict';const _0x122c24=_0x2575;var _0x49cbaf=Object['defineProperty'],_0x878320=(_0x11294d,_0x738a3d,_0x32654a)=>_0x738a3d in _0x11294d?_0x49cbaf(_0x11294d,_0x738a3d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32654a}):_0x11294d[_0x738a3d]=_0x32654a,_0x24e550=(_0x3edd01,_0x540fff,_0xf2820d)=>_0x878320(_0x3edd01,typeof _0x540fff!=_0x122c24(0x14b)?_0x540fff+'':_0x540fff,_0xf2820d);class _0x1990ac extends _0x33e491[_0x122c24(0x159)]{constructor(){const _0x4435fb=_0x122c24;super(),_0x24e550(this,_0x4435fb(0x145),new Map()),_0x24e550(this,_0x4435fb(0x158),new Set()),_0x24e550(this,_0x4435fb(0x187),new Set());}[_0x122c24(0x173)](_0x27fd07,_0x5c1ddf,_0x48d6be){const _0x3631dc=_0x122c24,_0x5c0f83=new _0x4da624[(_0x3631dc(0x148))](_0x27fd07,_0x5c1ddf,_0x48d6be);return this['_shapes'][_0x3631dc(0x183)](_0x5c1ddf,_0x5c0f83),_0x4da624[_0x3631dc(0x143)](_0x27fd07)&&this['_linesIds'][_0x3631dc(0x193)](_0x5c1ddf),_0x5c0f83;}[_0x122c24(0x191)](_0x10fd8c){const _0x1ca29b=_0x122c24;var _0x110dbd,_0x135888;const _0x33d565=[];for(const _0x4d2467 of this[_0x1ca29b(0x158)]){const _0x1beef9=this['_shapes'][_0x1ca29b(0x177)](_0x4d2467);if(_0x1beef9){const _0x2a514f=_0x1beef9[_0x1ca29b(0x16f)]();_0x2a514f&&(((_0x110dbd=_0x2a514f[_0x1ca29b(0x189)])==null?void 0x0:_0x110dbd[_0x1ca29b(0x1a2)])===_0x10fd8c&&_0x33d565[_0x1ca29b(0x162)]({..._0x2a514f[_0x1ca29b(0x189)],'lineShapeId':_0x4d2467,'isFrom':!0x0}),((_0x135888=_0x2a514f['to'])==null?void 0x0:_0x135888[_0x1ca29b(0x1a2)])===_0x10fd8c&&_0x33d565[_0x1ca29b(0x162)]({..._0x2a514f['to'],'lineShapeId':_0x4d2467,'isFrom':!0x1}));}}return _0x33d565;}[_0x122c24(0x16d)](_0x457048){const _0x16fa08=_0x122c24,_0x2656e9=this[_0x16fa08(0x145)][_0x16fa08(0x177)](_0x457048);if(_0x2656e9)return _0x2656e9[_0x16fa08(0x16f)]();}[_0x122c24(0x168)](_0x367799){const _0x1c5bd5=_0x122c24,_0x571bf3=this[_0x1c5bd5(0x145)]['get'](_0x367799);if(_0x571bf3)return _0x571bf3[_0x1c5bd5(0x168)]();}['hasShape'](_0x44b872){const _0x364f6c=_0x122c24;return this[_0x364f6c(0x145)][_0x364f6c(0x181)](_0x44b872);}[_0x122c24(0x161)](_0x28920c){const _0x53de4b=_0x122c24,_0x1ef336=this[_0x53de4b(0x145)][_0x53de4b(0x177)](_0x28920c);_0x1ef336&&(_0x4da624[_0x53de4b(0x143)](_0x1ef336[_0x53de4b(0x168)]())&&this['_linesIds'][_0x53de4b(0x176)](_0x28920c),this[_0x53de4b(0x145)][_0x53de4b(0x176)](_0x28920c));}[_0x122c24(0x142)](){const _0x5c1419=_0x122c24,_0x1abd11=[];return this[_0x5c1419(0x145)]['forEach'](_0x379b23=>{const _0x3a4ca6=_0x5c1419;_0x1abd11[_0x3a4ca6(0x162)](_0x379b23[_0x3a4ca6(0x142)]());}),_0x1abd11;}['fromJSON'](_0x74e866){const _0x4d4200=_0x122c24;for(const _0x455a99 of _0x74e866){const {id:_0x51a9f4,shapeType:_0x38ea88}=_0x455a99,_0x239d9b=this[_0x4d4200(0x173)](_0x38ea88,_0x51a9f4,_0x455a99[_0x4d4200(0x16a)]);_0x239d9b&&_0x239d9b[_0x4d4200(0x17e)]()&&this[_0x4d4200(0x158)][_0x4d4200(0x193)](_0x51a9f4);}}[_0x122c24(0x19b)](){const _0x188f7d=_0x122c24;this[_0x188f7d(0x19a)]||(this['_shapes'][_0x188f7d(0x166)](_0xf1bb3=>{const _0x2855d7=_0x188f7d;_0xf1bb3[_0x2855d7(0x19b)]();}),this['_shapes']['clear'](),this[_0x188f7d(0x158)][_0x188f7d(0x165)](),this[_0x188f7d(0x187)][_0x188f7d(0x165)](),super[_0x188f7d(0x19b)]());}}var _0x28dd8d=Object['getOwnPropertyDescriptor'],_0x559763=(_0x4d7042,_0x17eeca,_0x1851b7,_0x3e4da0)=>{const _0x2f303f=_0x122c24;for(var _0x5c0404=_0x3e4da0>0x1?void 0x0:_0x3e4da0?_0x28dd8d(_0x17eeca,_0x1851b7):_0x17eeca,_0x3af6df=_0x4d7042[_0x2f303f(0x179)]-0x1,_0x4f8bd8;_0x3af6df>=0x0;_0x3af6df--)(_0x4f8bd8=_0x4d7042[_0x3af6df])&&(_0x5c0404=_0x4f8bd8(_0x5c0404)||_0x5c0404);return _0x5c0404;},_0x60680f=(_0x221cea,_0x6614a3)=>(_0x47729f,_0x3d8d2e)=>_0x6614a3(_0x47729f,_0x3d8d2e,_0x221cea);const _0x43da07=_0x122c24(0x15c);_0x5cf09e[_0x122c24(0x196)]=class extends _0x33e491[_0x122c24(0x159)]{constructor(_0x44c8b8){const _0x1d0375=_0x122c24;super(),_0x24e550(this,_0x1d0375(0x17c),new Map()),(this[_0x1d0375(0x17a)]=_0x44c8b8,this[_0x1d0375(0x14d)]());}[_0x122c24(0x1a4)](_0x3c3595,_0x1f4c58){const _0x1ce26c=_0x122c24;let _0x467e19=this[_0x1ce26c(0x17c)]['get'](_0x3c3595);_0x467e19||(_0x467e19=new Map(),this[_0x1ce26c(0x17c)][_0x1ce26c(0x183)](_0x3c3595,_0x467e19));let _0xe3f20c=_0x467e19[_0x1ce26c(0x177)](_0x1f4c58);return _0xe3f20c||(_0xe3f20c=new _0x1990ac(),_0x467e19[_0x1ce26c(0x183)](_0x1f4c58,_0xe3f20c)),_0xe3f20c;}[_0x122c24(0x19f)](_0x5d91b5,_0x289674,_0x52f3ac,_0xcfcb2a,_0x12e333){const _0x10230d=_0x122c24;this[_0x10230d(0x1a4)](_0x5d91b5,_0x289674)[_0x10230d(0x173)](_0x52f3ac,_0xcfcb2a,_0x12e333);}[_0x122c24(0x161)](_0x5d9898,_0x5a0bae,_0x23d81b){const _0x4d8bee=_0x122c24;this[_0x4d8bee(0x1a4)](_0x5d9898,_0x5a0bae)[_0x4d8bee(0x161)](_0x23d81b);}['getBasicShapeType'](_0x2fcfe7,_0x25223c,_0x3fe707){const _0x53f0c2=_0x122c24;return this[_0x53f0c2(0x1a4)](_0x2fcfe7,_0x25223c)[_0x53f0c2(0x168)](_0x3fe707);}[_0x122c24(0x168)](_0x5c1535,_0x56a243,_0x19a16d){const _0x56aa59=_0x122c24;return this[_0x56aa59(0x1a4)](_0x5c1535,_0x56a243)[_0x56aa59(0x168)](_0x19a16d);}[_0x122c24(0x14e)](_0x95ad0,_0x465cf1,_0x39e8fc){const _0x5ecd7e=_0x122c24;return this[_0x5ecd7e(0x1a4)](_0x95ad0,_0x465cf1)[_0x5ecd7e(0x14e)](_0x39e8fc);}[_0x122c24(0x147)](_0x342c1a,_0x1afa1f,_0x2c378b){const _0x15b877=_0x122c24;return this['_ensureShapeModelManager'](_0x342c1a,_0x1afa1f)[_0x15b877(0x168)](_0x2c378b);}[_0x122c24(0x14f)](_0xb37099,_0x9e6197,_0x14a0aa){const _0x28ab3f=_0x122c24,_0x57a364=this['_ensureShapeModelManager'](_0xb37099,_0x9e6197);if(!_0x57a364['getShapeType'](_0x14a0aa))return;const _0x3ccee3=_0x57a364[_0x28ab3f(0x145)][_0x28ab3f(0x177)](_0x14a0aa);if(_0x3ccee3)return _0x3ccee3[_0x28ab3f(0x1a1)]();}[_0x122c24(0x16c)](_0x4da186,_0x19b50c,_0x1ff915){const _0x3f3572=_0x122c24;return this[_0x3f3572(0x1a4)](_0x4da186,_0x19b50c)[_0x3f3572(0x145)][_0x3f3572(0x177)](_0x1ff915);}[_0x122c24(0x191)](_0x4313fb,_0x272bca,_0x30b630){const _0x1972cd=_0x122c24;return this[_0x1972cd(0x1a4)](_0x4313fb,_0x272bca)[_0x1972cd(0x191)](_0x30b630);}['getLineShapeRelation'](_0x1a5c2a,_0x5cdd0b,_0x3558fd){const _0x4936d1=_0x122c24,_0x46953c=this[_0x4936d1(0x1a4)](_0x1a5c2a,_0x5cdd0b)[_0x4936d1(0x145)][_0x4936d1(0x177)](_0x3558fd);if(_0x46953c)return _0x46953c[_0x4936d1(0x16f)]();}[_0x122c24(0x15a)](){}[_0x122c24(0x151)](_0x35d0ce){const _0x366d11=_0x122c24,_0x42f12f={},_0x1d083d=this[_0x366d11(0x17c)][_0x366d11(0x177)](_0x35d0ce);return _0x1d083d&&_0x1d083d[_0x366d11(0x166)]((_0xe78cc1,_0x20fda9)=>{const _0x9fd72b=_0x366d11,_0x51411e=_0xe78cc1[_0x9fd72b(0x142)]();_0x51411e[_0x9fd72b(0x179)]>0x0&&(_0x42f12f[_0x20fda9]=_0x51411e);}),JSON['stringify'](_0x42f12f);}[_0x122c24(0x199)](_0x5bb840,_0x108e57){const _0x19dc09=_0x122c24;Object[_0x19dc09(0x144)](_0x108e57)[_0x19dc09(0x166)](_0x3c38c0=>{const _0x31c422=_0x19dc09;this[_0x31c422(0x1a4)](_0x5bb840,_0x3c38c0)[_0x31c422(0x184)](_0x108e57[_0x3c38c0]);});}[_0x122c24(0x142)](){const _0x5350f7=_0x122c24,_0x245c0b={};return this[_0x5350f7(0x17c)][_0x5350f7(0x166)]((_0x5bd492,_0x545548)=>{const _0x3799ad=_0x5350f7;_0x245c0b[_0x545548]={},_0x5bd492[_0x3799ad(0x166)]((_0x1d309b,_0x2933a5)=>{const _0x5a1de1=_0x3799ad;_0x245c0b[_0x545548][_0x2933a5]=_0x1d309b[_0x5a1de1(0x142)]();});}),_0x245c0b;}[_0x122c24(0x184)](_0x12e09f){const _0x3b794b=_0x122c24;Object[_0x3b794b(0x144)](_0x12e09f)[_0x3b794b(0x166)](_0x1e1efc=>{const _0x1f3cc3=_0x3b794b,_0x1ebb6a=_0x12e09f[_0x1e1efc];Object[_0x1f3cc3(0x144)](_0x1ebb6a)[_0x1f3cc3(0x166)](_0x50f420=>{const _0x29df1a=_0x1f3cc3;this[_0x29df1a(0x1a4)](_0x1e1efc,_0x50f420)['fromJSON'](_0x1ebb6a[_0x50f420]);});});}['_initSnapshot'](){const _0x356f91=_0x122c24;this[_0x356f91(0x17a)][_0x356f91(0x18a)]({'pluginName':_0x43da07,'businesses':[_0x33e491[_0x356f91(0x13f)]['UNIVER_SHEET']],'toJson':_0x57a0df=>this[_0x356f91(0x151)](_0x57a0df),'parseJson':_0x266cbe=>JSON[_0x356f91(0x146)](_0x266cbe),'onLoad':(_0x101a21,_0xfe6363)=>{const _0x3348b3=_0x356f91;this[_0x3348b3(0x199)](_0x101a21,_0xfe6363);},'onUnLoad':_0x57916e=>{const _0x2c9d86=_0x356f91,_0x3a406a=this['_shapeModelManagerMap'][_0x2c9d86(0x177)](_0x57916e);_0x3a406a&&(_0x3a406a[_0x2c9d86(0x166)](_0x490357=>{const _0x5215e1=_0x2c9d86;_0x490357[_0x5215e1(0x19b)]();}),this['_shapeModelManagerMap'][_0x2c9d86(0x176)](_0x57916e));}});}['dispose'](){const _0x749687=_0x122c24;this[_0x749687(0x17c)][_0x749687(0x166)](_0x320737=>{_0x320737['forEach'](_0x144d82=>{const _0x1cb92b=_0x2575;_0x144d82[_0x1cb92b(0x19b)]();});});}},_0x5cf09e[_0x122c24(0x196)]=_0x559763([_0x60680f(0x0,_0x33e491[_0x122c24(0x186)])],_0x5cf09e[_0x122c24(0x196)]);const _0x385e0e={'id':_0x122c24(0x188),'type':_0x33e491[_0x122c24(0x19d)][_0x122c24(0x155)],'handler':(_0x513b70,_0x128bab)=>{const _0x5e221f=_0x122c24,{unitId:_0x3b6ace,subUnitId:_0x315d1b,shapeType:_0x185ac2,shapeId:_0x3163b8,shapeData:_0xa47c8a}=_0x128bab,_0x586511=_0x513b70[_0x5e221f(0x177)](_0x5cf09e[_0x5e221f(0x196)])[_0x5e221f(0x16c)](_0x3b6ace,_0x315d1b,_0x3163b8);return _0x586511&&(_0x586511[_0x5e221f(0x15a)](_0x185ac2),_0xa47c8a&&(_0x586511==null||_0x586511['setShapeData'](_0xa47c8a))),!0x0;}},_0x3b671f={'id':_0x122c24(0x174),'type':_0x33e491[_0x122c24(0x19d)][_0x122c24(0x180)],'handler':(_0x533951,_0x514424)=>{const _0x29ff7c=_0x122c24;if(!_0x514424)return!0x1;const _0x37c399=_0x533951['get'](_0x33e491['ICommandService']),_0x3f1f7d=_0x533951[_0x29ff7c(0x177)](_0x5cf09e['SheetsShapeService']),_0xef145c=_0x533951[_0x29ff7c(0x177)](_0x33e491[_0x29ff7c(0x197)]),_0x3cc334=[],_0x447518=[],{unitId:_0x902a86,subUnitId:_0x24531f,shapeId:_0x826367,shapeType:_0x37c72f,shapeData:_0x1f3fd0}=_0x514424,_0x343c96=_0x3f1f7d[_0x29ff7c(0x16c)](_0x902a86,_0x24531f,_0x826367);if(_0x343c96){const _0x573a9d=_0x343c96['getShapeType'](),_0x44b76c=Object['assign']({},_0x343c96[_0x29ff7c(0x1a1)]()),_0x35ec29={'unitId':_0x902a86,'subUnitId':_0x24531f,'shapeId':_0x826367,'shapeType':_0x37c72f,'shapeData':_0x1f3fd0},_0x1c00f1={'unitId':_0x902a86,'subUnitId':_0x24531f,'shapeId':_0x826367,'shapeType':_0x573a9d,'shapeData':_0x44b76c};return _0x3cc334[_0x29ff7c(0x162)]({'id':_0x385e0e['id'],'params':_0x35ec29}),_0x447518[_0x29ff7c(0x162)]({'id':_0x385e0e['id'],'params':_0x1c00f1}),_0x3cc334[_0x29ff7c(0x1a6)](_0xcd9743=>_0x37c399[_0x29ff7c(0x192)](_0xcd9743['id'],_0xcd9743[_0x29ff7c(0x19c)]))&&_0xef145c[_0x29ff7c(0x198)]({'unitID':_0x902a86,'redoMutations':[..._0x3cc334],'undoMutations':[..._0x447518]}),!0x0;}return!0x1;}},_0x4f13d3={'id':_0x122c24(0x194),'type':_0x33e491[_0x122c24(0x19d)][_0x122c24(0x155)],'handler':(_0x37a57f,_0x4db445)=>{const _0x4e9165=_0x122c24,{unitId:_0x52df43,subUnitId:_0x550e59,shapeType:_0x271e63,shapeId:_0x57521e,shapeData:_0x313f36}=_0x4db445;return _0x37a57f[_0x4e9165(0x177)](_0x5cf09e[_0x4e9165(0x196)])[_0x4e9165(0x19f)](_0x52df43,_0x550e59,_0x271e63,_0x57521e,_0x313f36),!0x0;}},_0x415590={'id':_0x122c24(0x15f),'type':_0x33e491['CommandType'][_0x122c24(0x155)],'handler':(_0x2b74f4,_0x51ed4e)=>{const _0x343e5a=_0x122c24,{unitId:_0xea4c85,subUnitId:_0x524b22,shapeId:_0x2dea48}=_0x51ed4e;return _0x2b74f4['get'](_0x5cf09e[_0x343e5a(0x196)])[_0x343e5a(0x161)](_0xea4c85,_0x524b22,_0x2dea48),!0x0;}},_0x26b290={'id':_0x122c24(0x171),'type':_0x33e491[_0x122c24(0x19d)][_0x122c24(0x155)],'handler':(_0x2879dd,_0x2d8af0)=>{const _0xd53eb5=_0x122c24,{unitId:_0x46eb0e,subUnitId:_0x5ae38c,shapeType:_0x6b4136,shapeId:_0x33360c,shapeData:_0x1026bd}=_0x2d8af0,_0x206221=_0x2879dd[_0xd53eb5(0x177)](_0x5cf09e[_0xd53eb5(0x196)])[_0xd53eb5(0x16c)](_0x46eb0e,_0x5ae38c,_0x33360c);return _0x206221&&(_0x6b4136!==void 0x0&&_0x206221[_0xd53eb5(0x15a)](_0x6b4136),_0x1026bd&&(_0x206221==null||_0x206221['setShapeData'](_0x1026bd,!0x0))),!0x0;}},_0x199f6e='sheets-shape.config',_0x5db54e={};var _0x205295=Object['defineProperty'],_0xe3f327=Object[_0x122c24(0x17d)],_0x1c6ebb=(_0x16f8c1,_0x67b14e,_0x38923c)=>_0x67b14e in _0x16f8c1?_0x205295(_0x16f8c1,_0x67b14e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38923c}):_0x16f8c1[_0x67b14e]=_0x38923c,_0xcfbc40=(_0x2de13b,_0x1af970,_0xcefe74,_0x4419b4)=>{const _0x34a057=_0x122c24;for(var _0x48942c=_0x4419b4>0x1?void 0x0:_0x4419b4?_0xe3f327(_0x1af970,_0xcefe74):_0x1af970,_0x2ee683=_0x2de13b[_0x34a057(0x179)]-0x1,_0x240f66;_0x2ee683>=0x0;_0x2ee683--)(_0x240f66=_0x2de13b[_0x2ee683])&&(_0x48942c=_0x240f66(_0x48942c)||_0x48942c);return _0x48942c;},_0x5a2b96=(_0x29dedd,_0x4ffa61)=>(_0x1af349,_0x589e1a)=>_0x4ffa61(_0x1af349,_0x589e1a,_0x29dedd),_0x25b0fa=(_0x17b9d2,_0x2ed2ef,_0x1d7bd1)=>_0x1c6ebb(_0x17b9d2,typeof _0x2ed2ef!=_0x122c24(0x14b)?_0x2ed2ef+'':_0x2ed2ef,_0x1d7bd1);const _0x37557a=_0x122c24(0x15c);_0x5cf09e['UniverSheetsShapePlugin']=class extends _0x33e491['Plugin']{constructor(_0x5bb509=_0x5db54e,_0x112f2e,_0x4e4c67,_0x1a216f){const _0x581a39=_0x122c24;super(),this[_0x581a39(0x175)]=_0x5bb509,this[_0x581a39(0x157)]=_0x112f2e,this['_commandService']=_0x4e4c67,this[_0x581a39(0x149)]=_0x1a216f;const {..._0x16b2fe}=_0x33e491[_0x581a39(0x164)]({},_0x5db54e,this[_0x581a39(0x175)]);this[_0x581a39(0x149)][_0x581a39(0x14c)](_0x199f6e,_0x16b2fe),this[_0x581a39(0x15e)]();}['onRendered'](){const _0x46a338=_0x122c24;_0x33e491['touchDependencies'](this[_0x46a338(0x157)],[]);}[_0x122c24(0x17b)](){const _0x3483d0=_0x122c24,_0x8f5770=this[_0x3483d0(0x157)];[[_0x1990ac],[_0x5cf09e[_0x3483d0(0x196)]]][_0x3483d0(0x166)](_0x4dd8dd=>_0x8f5770[_0x3483d0(0x193)](_0x4dd8dd));}[_0x122c24(0x15e)](){const _0x3ef3b2=_0x122c24;[_0x4f13d3,_0x415590,_0x385e0e,_0x26b290][_0x3ef3b2(0x166)](_0x472b33=>this[_0x3ef3b2(0x185)](this['_commandService'][_0x3ef3b2(0x18e)](_0x472b33)));}},_0x25b0fa(_0x5cf09e[_0x122c24(0x190)],_0x122c24(0x160),_0x33e491['UniverInstanceType']['UNIVER_SHEET']),_0x25b0fa(_0x5cf09e[_0x122c24(0x190)],'pluginName',_0x37557a),_0x5cf09e[_0x122c24(0x190)]=_0xcfbc40([_0x33e491['DependentOn'](_0x125323['UniverLicensePlugin']),_0x5a2b96(0x1,_0x33e491[_0x122c24(0x182)](_0x33e491[_0x122c24(0x169)])),_0x5a2b96(0x2,_0x33e491[_0x122c24(0x163)]),_0x5a2b96(0x3,_0x33e491[_0x122c24(0x195)])],_0x5cf09e[_0x122c24(0x190)]),_0x5cf09e[_0x122c24(0x17f)]=_0x4f13d3,_0x5cf09e['RemoveSheetsShapeMutation']=_0x415590,_0x5cf09e[_0x122c24(0x141)]=_0x26b290,_0x5cf09e['UpdateSheetsShapeTypeCommand']=_0x3b671f,_0x5cf09e[_0x122c24(0x18c)]=_0x385e0e,Object[_0x122c24(0x154)](_0x5cf09e,Symbol[_0x122c24(0x15b)],{'value':_0x122c24(0x170)});}));function _0x2575(_0x2e72c2,_0x5b987d){_0x2e72c2=_0x2e72c2-0x13f;const _0x57cba9=_0x57cb();let _0x25756f=_0x57cba9[_0x2e72c2];return _0x25756f;}function _0x57cb(){const _0x278929=['addShape','sheet.command.update-shape-type','_config','delete','get','105132QKYxXs','length','_resourcesManagerService','onStarting','_shapeModelManagerMap','getOwnPropertyDescriptor','isLineShape','InsertSheetsShapeMutation','COMMAND','has','Inject','set','fromJSON','disposeWithMe','IResourceManagerService','_groupIds','sheet.mutation.update-shape-type','from','registerPluginResource','2493smruGp','UpdateSheetsShapeTypeMutation','UniverProEngineShape','registerCommand','1064238bemWAM','UniverSheetsShapePlugin','getBasicShapeRelation','syncExecuteCommand','add','sheet.mutation.insert-shape','IConfigService','SheetsShapeService','IUndoRedoService','pushUndoRedo','_deserializeShapeForUnit','_disposed','dispose','params','CommandType','1438SACxBg','insertShape','242000DdwuNd','getShapeData','shapeId','amd','_ensureShapeModelManager','@univerjs-pro/license','every','UniverInstanceType','exports','UpdateSheetsShapeDataMutation','toJSON','isConnectorShape','keys','_shapes','parse','getShapeTypeById','ShapeModel','_configService','280OAkVJH','symbol','setConfig','_initSnapshot','hasShape','getShapeDataById','1140280CLJMUD','_serializeShapeForUnit','357slgxXn','UniverProSheetsShape','defineProperty','MUTATION','255105aSAJOK','_injector','_linesIds','Disposable','setShapeType','toStringTag','SHEET_SHAPE_PLUGIN','15ftRCIA','_initCommands','sheet.mutation.remove-shape','type','removeShape','push','ICommandService','merge','clear','forEach','UniverCore','getShapeType','Injector','shapeData','object','getShapeModel','getLineShapeRelation','759240VHNoTC','getShapeRelation','Module','sheet.mutation.update-shape-data','@univerjs-pro/engine-shape'];_0x57cb=function(){return _0x278929;};return _0x57cb();}
|
|
1
|
+
function _0x5e5d(){const _0x407b54=['object','hasShape','426AtmscQ','string','type','UniverCore','502640pWgjIN','amd','ICommandService','touchDependencies','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','IConfigService','setConfig','IUndoRedoService','_config','isLineShape','setShapeData','function','CommandType','826029MhlTIV','4335045zzIkDp','registerCommand','getShapeRelation','_injector','IResourceManagerService','_initCommands','get','call','clear','UniverInstanceType','RemoveSheetsShapeMutation','_serializeShapeForUnit','prototype','90027xWGret','_groupIds','SHEET_SHAPE_PLUGIN','UniverProLicense','delete','decorate','Injector','_commandService','InsertSheetsShapeMutation','getBasicShapeType','8zPkXBw','64120Nkvqys','add','UniverProSheetsShape','pluginName','_linesIds','SheetsShapeService','1137ccXFiF','sheet.mutation.remove-shape','UNIVER_SHEET','getShapeTypeById','_initSnapshot','@univerjs-pro/sheets-shape','onStarting','getOwnPropertyDescriptor','fromJSON','isConnectorShape','_deserializeShapeForUnit','1382oxuJup','Plugin','getShapeType','_configService','packageName','set','insertShape','length','shapeId','MUTATION','toStringTag','getShapeModel','keys','getShapeDataById','sheet.mutation.update-shape-data','iterator','setShapeType','_shapes','removeShape','forEach','ShapeModel','defineProperty','from','5999884rMOzSG','dispose','_shapeModelManagerMap','_ensureShapeModelManager','Module','getShapeData','parse','getLineShapeRelation','UpdateSheetsShapeTypeMutation','UpdateSheetsShapeTypeCommand','push','sheet.mutation.insert-shape','UniverLicensePlugin','24dwXyLW','addShape','UpdateSheetsShapeDataMutation','exports','@univerjs-pro/license','merge','Inject','getBasicShapeRelation','9PlqCBH','_resourcesManagerService','toJSON','0.17.0-insiders.20260318-5bef180','symbol','sheet.mutation.update-shape-type','@univerjs/core','sheet.command.update-shape-type','onRendered'];_0x5e5d=function(){return _0x407b54;};return _0x5e5d();}function _0x34cb(_0x543040,_0x119a26){_0x543040=_0x543040-0x173;const _0x5e5dd8=_0x5e5d();let _0x34cb93=_0x5e5dd8[_0x543040];return _0x34cb93;}(function(_0x4f5417,_0xe08457){const _0x55ac0a=_0x34cb,_0x29c952=_0x4f5417();while(!![]){try{const _0x118ea9=-parseInt(_0x55ac0a(0x190))/0x1*(parseInt(_0x55ac0a(0x19b))/0x2)+parseInt(_0x55ac0a(0x1c7))/0x3*(parseInt(_0x55ac0a(0x1d6))/0x4)+parseInt(_0x55ac0a(0x1e4))/0x5+parseInt(_0x55ac0a(0x1d2))/0x6*(-parseInt(_0x55ac0a(0x17f))/0x7)+-parseInt(_0x55ac0a(0x189))/0x8*(parseInt(_0x55ac0a(0x1e3))/0x9)+parseInt(_0x55ac0a(0x18a))/0xa+parseInt(_0x55ac0a(0x1b2))/0xb*(parseInt(_0x55ac0a(0x1bf))/0xc);if(_0x118ea9===_0xe08457)break;else _0x29c952['push'](_0x29c952['shift']());}catch(_0x2ca173){_0x29c952['push'](_0x29c952['shift']());}}}(_0x5e5d,0x86736),function(_0x4de883,_0x37b460){const _0x3ce3ad=_0x34cb;typeof exports=='object'&&typeof module<'u'?_0x37b460(exports,require(`@univerjs/core`),require(`@univerjs-pro/engine-shape`),require(`@univerjs-pro/license`)):typeof define=='function'&&define[_0x3ce3ad(0x1d7)]?define([_0x3ce3ad(0x1c2),_0x3ce3ad(0x1cd),'@univerjs-pro/engine-shape',_0x3ce3ad(0x1c3)],_0x37b460):(_0x4de883=typeof globalThis<'u'?globalThis:_0x4de883||self,_0x37b460(_0x4de883[_0x3ce3ad(0x18c)]={},_0x4de883[_0x3ce3ad(0x1d5)],_0x4de883['UniverProEngineShape'],_0x4de883[_0x3ce3ad(0x182)]));}(this,function(_0x4714ac,_0x54f4b5,_0x251443,_0x39636a){const _0x3d9a6d=_0x34cb;Object[_0x3d9a6d(0x1b0)](_0x4714ac,Symbol[_0x3d9a6d(0x1a5)],{'value':_0x3d9a6d(0x1b6)});function _0x40c73b(_0x3ba133){'@babel/helpers - typeof';const _0x48835e=_0x3d9a6d;return _0x40c73b=typeof Symbol=='function'&&typeof Symbol[_0x48835e(0x1aa)]==_0x48835e(0x1cb)?function(_0x21300b){return typeof _0x21300b;}:function(_0x57320a){const _0x554cc7=_0x48835e;return _0x57320a&&typeof Symbol=='function'&&_0x57320a['constructor']===Symbol&&_0x57320a!==Symbol[_0x554cc7(0x17e)]?_0x554cc7(0x1cb):typeof _0x57320a;},_0x40c73b(_0x3ba133);}function _0x5c0733(_0x4ba943,_0x8ea978){const _0x24fd73=_0x3d9a6d;if(_0x40c73b(_0x4ba943)!=_0x24fd73(0x1d0)||!_0x4ba943)return _0x4ba943;var _0x15a135=_0x4ba943[Symbol['toPrimitive']];if(_0x15a135!==void 0x0){var _0x2dd6d9=_0x15a135[_0x24fd73(0x179)](_0x4ba943,_0x8ea978||'default');if(_0x40c73b(_0x2dd6d9)!=_0x24fd73(0x1d0))return _0x2dd6d9;throw TypeError(_0x24fd73(0x1da));}return(_0x8ea978===_0x24fd73(0x1d3)?String:Number)(_0x4ba943);}function _0x4ef600(_0x3ad814){const _0x24f227=_0x3d9a6d;var _0x419f66=_0x5c0733(_0x3ad814,'string');return _0x40c73b(_0x419f66)==_0x24f227(0x1cb)?_0x419f66:_0x419f66+'';}function _0x395318(_0x353b51,_0x5dd5fb,_0x33edaa){const _0x310561=_0x3d9a6d;return(_0x5dd5fb=_0x4ef600(_0x5dd5fb))in _0x353b51?Object[_0x310561(0x1b0)](_0x353b51,_0x5dd5fb,{'value':_0x33edaa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x353b51[_0x5dd5fb]=_0x33edaa,_0x353b51;}var _0xd2202e=class extends _0x54f4b5['Disposable']{constructor(){const _0x48e6ff=_0x3d9a6d;super(),_0x395318(this,'_shapes',new Map()),_0x395318(this,_0x48e6ff(0x18e),new Set()),_0x395318(this,_0x48e6ff(0x180),new Set());}[_0x3d9a6d(0x1c0)](_0x6b549a,_0x49bc97,_0x42f3fd){const _0x4be1db=_0x3d9a6d;let _0x1e5748=new _0x251443[(_0x4be1db(0x1af))](_0x6b549a,_0x49bc97,_0x42f3fd);return this[_0x4be1db(0x1ac)]['set'](_0x49bc97,_0x1e5748),(0x0,_0x251443['isConnectorShape'])(_0x6b549a)&&this[_0x4be1db(0x18e)][_0x4be1db(0x18b)](_0x49bc97),_0x1e5748;}[_0x3d9a6d(0x1c6)](_0x1cce6e){const _0x20836e=_0x3d9a6d;let _0x38175f=[];for(let _0x3fb765 of this['_linesIds']){let _0x1865e8=this[_0x20836e(0x1ac)][_0x20836e(0x178)](_0x3fb765);if(_0x1865e8){let _0x287ddb=_0x1865e8[_0x20836e(0x174)]();if(_0x287ddb){var _0x5c807f,_0x3270d9;((_0x5c807f=_0x287ddb[_0x20836e(0x1b1)])==null?void 0x0:_0x5c807f[_0x20836e(0x1a3)])===_0x1cce6e&&_0x38175f[_0x20836e(0x1bc)]({..._0x287ddb[_0x20836e(0x1b1)],'lineShapeId':_0x3fb765,'isFrom':!0x0}),((_0x3270d9=_0x287ddb['to'])==null?void 0x0:_0x3270d9[_0x20836e(0x1a3)])===_0x1cce6e&&_0x38175f[_0x20836e(0x1bc)]({..._0x287ddb['to'],'lineShapeId':_0x3fb765,'isFrom':!0x1});}}}return _0x38175f;}[_0x3d9a6d(0x1b9)](_0x3dcb76){const _0xc9c2cd=_0x3d9a6d;let _0x2465a9=this[_0xc9c2cd(0x1ac)]['get'](_0x3dcb76);if(_0x2465a9)return _0x2465a9[_0xc9c2cd(0x174)]();}[_0x3d9a6d(0x19d)](_0x2971b2){const _0x15c03e=_0x3d9a6d;let _0x481072=this[_0x15c03e(0x1ac)]['get'](_0x2971b2);if(_0x481072)return _0x481072['getShapeType']();}[_0x3d9a6d(0x1d1)](_0xfad8ed){const _0x3b6e59=_0x3d9a6d;return this[_0x3b6e59(0x1ac)]['has'](_0xfad8ed);}[_0x3d9a6d(0x1ad)](_0x470f5f){const _0x3e1e00=_0x3d9a6d;let _0x1b225e=this['_shapes']['get'](_0x470f5f);_0x1b225e&&((0x0,_0x251443[_0x3e1e00(0x199)])(_0x1b225e['getShapeType']())&&this[_0x3e1e00(0x18e)][_0x3e1e00(0x183)](_0x470f5f),this[_0x3e1e00(0x1ac)][_0x3e1e00(0x183)](_0x470f5f));}['toJSON'](){let _0x3d1077=[];return this['_shapes']['forEach'](_0x4a4b22=>{const _0x5423e2=_0x34cb;_0x3d1077['push'](_0x4a4b22[_0x5423e2(0x1c9)]());}),_0x3d1077;}[_0x3d9a6d(0x198)](_0x3cb202){const _0x14b0d2=_0x3d9a6d;for(let _0x5af250 of _0x3cb202){let {id:_0x524f9d,shapeType:_0x49b078}=_0x5af250,_0x1108e8=this['addShape'](_0x49b078,_0x524f9d,_0x5af250['shapeData']);_0x1108e8&&_0x1108e8[_0x14b0d2(0x1df)]()&&this[_0x14b0d2(0x18e)][_0x14b0d2(0x18b)](_0x524f9d);}}[_0x3d9a6d(0x1b3)](){const _0x2010b9=_0x3d9a6d;this['_disposed']||(this['_shapes'][_0x2010b9(0x1ae)](_0x46485b=>{const _0x4f3f03=_0x2010b9;_0x46485b[_0x4f3f03(0x1b3)]();}),this[_0x2010b9(0x1ac)]['clear'](),this[_0x2010b9(0x18e)][_0x2010b9(0x17a)](),this[_0x2010b9(0x180)][_0x2010b9(0x17a)](),super['dispose']());}};function _0x1ffac1(_0x516862,_0x550181){return function(_0x4de37a,_0x3bf769){_0x550181(_0x4de37a,_0x3bf769,_0x516862);};}function _0x349d5b(_0x30b18e,_0x3b13a2,_0x3f85d5,_0x1d6307){const _0x381d9a=_0x3d9a6d;var _0x40e99c=arguments[_0x381d9a(0x1a2)],_0x284333=_0x40e99c<0x3?_0x3b13a2:_0x1d6307===null?_0x1d6307=Object[_0x381d9a(0x197)](_0x3b13a2,_0x3f85d5):_0x1d6307,_0x5b2064;if(typeof Reflect==_0x381d9a(0x1d0)&&typeof Reflect[_0x381d9a(0x184)]==_0x381d9a(0x1e1))_0x284333=Reflect['decorate'](_0x30b18e,_0x3b13a2,_0x3f85d5,_0x1d6307);else{for(var _0x2cdc76=_0x30b18e[_0x381d9a(0x1a2)]-0x1;_0x2cdc76>=0x0;_0x2cdc76--)(_0x5b2064=_0x30b18e[_0x2cdc76])&&(_0x284333=(_0x40e99c<0x3?_0x5b2064(_0x284333):_0x40e99c>0x3?_0x5b2064(_0x3b13a2,_0x3f85d5,_0x284333):_0x5b2064(_0x3b13a2,_0x3f85d5))||_0x284333);}return _0x40e99c>0x3&&_0x284333&&Object[_0x381d9a(0x1b0)](_0x3b13a2,_0x3f85d5,_0x284333),_0x284333;}let _0x577aa6=class extends _0x54f4b5['Disposable']{constructor(_0x3b9cbb){const _0x2bfde2=_0x3d9a6d;super(),this[_0x2bfde2(0x1c8)]=_0x3b9cbb,_0x395318(this,_0x2bfde2(0x1b4),new Map()),this[_0x2bfde2(0x194)]();}[_0x3d9a6d(0x1b5)](_0x2fd53a,_0xaacbf1){const _0x3e5bf5=_0x3d9a6d;let _0x64f13d=this[_0x3e5bf5(0x1b4)][_0x3e5bf5(0x178)](_0x2fd53a);_0x64f13d||(_0x64f13d=new Map(),this[_0x3e5bf5(0x1b4)]['set'](_0x2fd53a,_0x64f13d));let _0x2dd9da=_0x64f13d[_0x3e5bf5(0x178)](_0xaacbf1);return _0x2dd9da||(_0x2dd9da=new _0xd2202e(),_0x64f13d[_0x3e5bf5(0x1a0)](_0xaacbf1,_0x2dd9da)),_0x2dd9da;}[_0x3d9a6d(0x1a1)](_0x525975,_0x3a6505,_0x99f8ef,_0x4fc41f,_0x247e02){const _0x25ad86=_0x3d9a6d;this[_0x25ad86(0x1b5)](_0x525975,_0x3a6505)[_0x25ad86(0x1c0)](_0x99f8ef,_0x4fc41f,_0x247e02);}[_0x3d9a6d(0x1ad)](_0x253dc2,_0x17a956,_0x117b27){const _0x1e2691=_0x3d9a6d;this[_0x1e2691(0x1b5)](_0x253dc2,_0x17a956)[_0x1e2691(0x1ad)](_0x117b27);}[_0x3d9a6d(0x188)](_0x100d55,_0x35f47e,_0x4d5480){const _0x25f733=_0x3d9a6d;return this['_ensureShapeModelManager'](_0x100d55,_0x35f47e)[_0x25f733(0x19d)](_0x4d5480);}[_0x3d9a6d(0x19d)](_0x3c98da,_0x1c98a2,_0x22905c){const _0x17bdf8=_0x3d9a6d;return this[_0x17bdf8(0x1b5)](_0x3c98da,_0x1c98a2)[_0x17bdf8(0x19d)](_0x22905c);}[_0x3d9a6d(0x1d1)](_0x408453,_0x55b286,_0x36c0c7){const _0x238f9c=_0x3d9a6d;return this[_0x238f9c(0x1b5)](_0x408453,_0x55b286)[_0x238f9c(0x1d1)](_0x36c0c7);}[_0x3d9a6d(0x193)](_0x426c02,_0x1411b1,_0x1fc74f){const _0x369fbf=_0x3d9a6d;return this['_ensureShapeModelManager'](_0x426c02,_0x1411b1)[_0x369fbf(0x19d)](_0x1fc74f);}[_0x3d9a6d(0x1a8)](_0x27ee2f,_0x5c6d89,_0x284c7c){const _0x259f4e=_0x3d9a6d;let _0x2d5e12=this[_0x259f4e(0x1b5)](_0x27ee2f,_0x5c6d89);if(!_0x2d5e12['getShapeType'](_0x284c7c))return;let _0x95cfe6=_0x2d5e12[_0x259f4e(0x1ac)][_0x259f4e(0x178)](_0x284c7c);if(_0x95cfe6)return _0x95cfe6[_0x259f4e(0x1b7)]();}[_0x3d9a6d(0x1a6)](_0x6e1bcd,_0x207afa,_0x3c26d1){const _0x43c031=_0x3d9a6d;return this[_0x43c031(0x1b5)](_0x6e1bcd,_0x207afa)[_0x43c031(0x1ac)][_0x43c031(0x178)](_0x3c26d1);}['getBasicShapeRelation'](_0x4e0eef,_0x3320dc,_0x433893){const _0x4d6ca6=_0x3d9a6d;return this[_0x4d6ca6(0x1b5)](_0x4e0eef,_0x3320dc)[_0x4d6ca6(0x1c6)](_0x433893);}[_0x3d9a6d(0x1b9)](_0x2f54c3,_0x10ba00,_0x582333){const _0x3eaeca=_0x3d9a6d;let _0xaec04e=this[_0x3eaeca(0x1b5)](_0x2f54c3,_0x10ba00)[_0x3eaeca(0x1ac)][_0x3eaeca(0x178)](_0x582333);if(_0xaec04e)return _0xaec04e['getShapeRelation']();}['setShapeType'](){}[_0x3d9a6d(0x17d)](_0x197a7a){const _0x33abab=_0x3d9a6d;let _0xdbb98c={},_0x2935fa=this['_shapeModelManagerMap']['get'](_0x197a7a);return _0x2935fa&&_0x2935fa[_0x33abab(0x1ae)]((_0x444ead,_0x1d5cce)=>{const _0x553458=_0x33abab;let _0x2e68db=_0x444ead['toJSON']();_0x2e68db[_0x553458(0x1a2)]>0x0&&(_0xdbb98c[_0x1d5cce]=_0x2e68db);}),JSON['stringify'](_0xdbb98c);}[_0x3d9a6d(0x19a)](_0x39d087,_0x467409){const _0x46808c=_0x3d9a6d;Object[_0x46808c(0x1a7)](_0x467409)[_0x46808c(0x1ae)](_0x3f95e7=>{const _0x3a1f56=_0x46808c;this['_ensureShapeModelManager'](_0x39d087,_0x3f95e7)[_0x3a1f56(0x198)](_0x467409[_0x3f95e7]);});}[_0x3d9a6d(0x1c9)](){const _0x593baf=_0x3d9a6d;let _0x1d5faa={};return this[_0x593baf(0x1b4)][_0x593baf(0x1ae)]((_0x451d4a,_0x291d83)=>{const _0x365993=_0x593baf;_0x1d5faa[_0x291d83]={},_0x451d4a[_0x365993(0x1ae)]((_0x373fba,_0x3dd6f7)=>{const _0x32a714=_0x365993;_0x1d5faa[_0x291d83][_0x3dd6f7]=_0x373fba[_0x32a714(0x1c9)]();});}),_0x1d5faa;}[_0x3d9a6d(0x198)](_0x10afbd){const _0x5193fb=_0x3d9a6d;Object['keys'](_0x10afbd)[_0x5193fb(0x1ae)](_0x558f07=>{const _0x125acc=_0x5193fb;let _0x14e428=_0x10afbd[_0x558f07];Object[_0x125acc(0x1a7)](_0x14e428)[_0x125acc(0x1ae)](_0x52a143=>{const _0x1eabc9=_0x125acc;this[_0x1eabc9(0x1b5)](_0x558f07,_0x52a143)['fromJSON'](_0x14e428[_0x52a143]);});});}['_initSnapshot'](){const _0x325f5e=_0x3d9a6d;this[_0x325f5e(0x1c8)]['registerPluginResource']({'pluginName':_0x325f5e(0x181),'businesses':[_0x54f4b5[_0x325f5e(0x17b)][_0x325f5e(0x192)]],'toJson':_0x49dd05=>this['_serializeShapeForUnit'](_0x49dd05),'parseJson':_0x440c93=>JSON[_0x325f5e(0x1b8)](_0x440c93),'onLoad':(_0x48981b,_0x264a85)=>{const _0x1ef8d9=_0x325f5e;this[_0x1ef8d9(0x19a)](_0x48981b,_0x264a85);},'onUnLoad':_0x55fc3d=>{const _0x48bdf6=_0x325f5e;let _0x35983d=this[_0x48bdf6(0x1b4)]['get'](_0x55fc3d);_0x35983d&&(_0x35983d[_0x48bdf6(0x1ae)](_0x274523=>{const _0x2a4829=_0x48bdf6;_0x274523[_0x2a4829(0x1b3)]();}),this['_shapeModelManagerMap']['delete'](_0x55fc3d));}});}['dispose'](){const _0x2fb606=_0x3d9a6d;this[_0x2fb606(0x1b4)]['forEach'](_0x3ba260=>{const _0x48d11f=_0x2fb606;_0x3ba260[_0x48d11f(0x1ae)](_0x4cef37=>{const _0x522487=_0x48d11f;_0x4cef37[_0x522487(0x1b3)]();});});}};_0x577aa6=_0x349d5b([_0x1ffac1(0x0,_0x54f4b5[_0x3d9a6d(0x176)])],_0x577aa6);let _0x46d329={'id':_0x3d9a6d(0x1cc),'type':_0x54f4b5[_0x3d9a6d(0x1e2)][_0x3d9a6d(0x1a4)],'handler':(_0x25982b,_0x278c04)=>{const _0x23e2ea=_0x3d9a6d;let {unitId:_0xfc0c43,subUnitId:_0x420069,shapeType:_0x526643,shapeId:_0x40b85a,shapeData:_0x5851c2}=_0x278c04,_0x40a430=_0x25982b[_0x23e2ea(0x178)](_0x577aa6)[_0x23e2ea(0x1a6)](_0xfc0c43,_0x420069,_0x40b85a);return _0x40a430&&(_0x40a430[_0x23e2ea(0x1ab)](_0x526643),_0x5851c2&&(_0x40a430==null||_0x40a430[_0x23e2ea(0x1e0)](_0x5851c2))),!0x0;}},_0x4a82ef={'id':_0x3d9a6d(0x1ce),'type':_0x54f4b5[_0x3d9a6d(0x1e2)]['COMMAND'],'handler':(_0x21a94e,_0x4f12f2)=>{const _0x58ebef=_0x3d9a6d;if(!_0x4f12f2)return!0x1;let _0x3f4a6f=_0x21a94e['get'](_0x54f4b5['ICommandService']),_0x6d853=_0x21a94e[_0x58ebef(0x178)](_0x577aa6),_0x1701e0=_0x21a94e['get'](_0x54f4b5[_0x58ebef(0x1dd)]),_0x3b439f=[],_0x128f4d=[],{unitId:_0x3a010a,subUnitId:_0x3be077,shapeId:_0x2995c1,shapeType:_0x18909e,shapeData:_0x33f4ed}=_0x4f12f2,_0x40a31d=_0x6d853[_0x58ebef(0x1a6)](_0x3a010a,_0x3be077,_0x2995c1);if(_0x40a31d){let _0x9a5e94=_0x40a31d['getShapeType'](),_0x1d3f5f=Object['assign']({},_0x40a31d[_0x58ebef(0x1b7)]()),_0x3a86d5={'unitId':_0x3a010a,'subUnitId':_0x3be077,'shapeId':_0x2995c1,'shapeType':_0x18909e,'shapeData':_0x33f4ed},_0x458799={'unitId':_0x3a010a,'subUnitId':_0x3be077,'shapeId':_0x2995c1,'shapeType':_0x9a5e94,'shapeData':_0x1d3f5f};return _0x3b439f[_0x58ebef(0x1bc)]({'id':_0x46d329['id'],'params':_0x3a86d5}),_0x128f4d[_0x58ebef(0x1bc)]({'id':_0x46d329['id'],'params':_0x458799}),_0x3b439f['every'](_0x5386aa=>_0x3f4a6f['syncExecuteCommand'](_0x5386aa['id'],_0x5386aa['params']))&&_0x1701e0['pushUndoRedo']({'unitID':_0x3a010a,'redoMutations':[..._0x3b439f],'undoMutations':[..._0x128f4d]}),!0x0;}return!0x1;}},_0x38b95d={'id':_0x3d9a6d(0x1bd),'type':_0x54f4b5[_0x3d9a6d(0x1e2)][_0x3d9a6d(0x1a4)],'handler':(_0x2dcfb6,_0x58813e)=>{const _0x48705b=_0x3d9a6d;let {unitId:_0x25747a,subUnitId:_0x447f18,shapeType:_0x2c71d9,shapeId:_0x6cf0b9,shapeData:_0x46bcbe}=_0x58813e;return _0x2dcfb6['get'](_0x577aa6)[_0x48705b(0x1a1)](_0x25747a,_0x447f18,_0x2c71d9,_0x6cf0b9,_0x46bcbe),!0x0;}},_0x598f2f={'id':_0x3d9a6d(0x191),'type':_0x54f4b5['CommandType'][_0x3d9a6d(0x1a4)],'handler':(_0x4677c8,_0x52a888)=>{const _0x476c37=_0x3d9a6d;let {unitId:_0x34d0ae,subUnitId:_0x5a13b2,shapeId:_0x3b8f11}=_0x52a888;return _0x4677c8[_0x476c37(0x178)](_0x577aa6)[_0x476c37(0x1ad)](_0x34d0ae,_0x5a13b2,_0x3b8f11),!0x0;}},_0x29f8cc={'id':_0x3d9a6d(0x1a9),'type':_0x54f4b5[_0x3d9a6d(0x1e2)][_0x3d9a6d(0x1a4)],'handler':(_0x3ef199,_0x422514)=>{const _0x541d58=_0x3d9a6d;let {unitId:_0x23e512,subUnitId:_0x11de65,shapeType:_0x38ef06,shapeId:_0x5ef37c,shapeData:_0x42b994}=_0x422514,_0x3f4f5c=_0x3ef199['get'](_0x577aa6)[_0x541d58(0x1a6)](_0x23e512,_0x11de65,_0x5ef37c);return _0x3f4f5c&&(_0x38ef06!==void 0x0&&_0x3f4f5c[_0x541d58(0x1ab)](_0x38ef06),_0x42b994&&(_0x3f4f5c==null||_0x3f4f5c['setShapeData'](_0x42b994,!0x0))),!0x0;}};var _0x3c7aca=_0x3d9a6d(0x195),_0xb0d6ec=_0x3d9a6d(0x1ca);let _0x51a2a8='sheets-shape.config';Symbol(_0x51a2a8);let _0x2dd5fe={},_0x20d984=class extends _0x54f4b5[_0x3d9a6d(0x19c)]{constructor(_0x1214dd=_0x2dd5fe,_0x3599ea,_0xa2248a,_0x4e9ae8){const _0x15c6e1=_0x3d9a6d;super(),this['_config']=_0x1214dd,this[_0x15c6e1(0x175)]=_0x3599ea,this[_0x15c6e1(0x186)]=_0xa2248a,this[_0x15c6e1(0x19e)]=_0x4e9ae8;let {..._0x273bd1}=(0x0,_0x54f4b5[_0x15c6e1(0x1c4)])({},_0x2dd5fe,this[_0x15c6e1(0x1de)]);this[_0x15c6e1(0x19e)][_0x15c6e1(0x1dc)](_0x51a2a8,_0x273bd1),this[_0x15c6e1(0x177)]();}[_0x3d9a6d(0x1cf)](){const _0x50176f=_0x3d9a6d;(0x0,_0x54f4b5[_0x50176f(0x1d9)])(this[_0x50176f(0x175)],[]);}[_0x3d9a6d(0x196)](){const _0x39fe10=_0x3d9a6d;let _0x251231=this[_0x39fe10(0x175)];[[_0xd2202e],[_0x577aa6]][_0x39fe10(0x1ae)](_0x50f246=>_0x251231['add'](_0x50f246));}[_0x3d9a6d(0x177)](){const _0x2f4973=_0x3d9a6d;[_0x38b95d,_0x598f2f,_0x46d329,_0x29f8cc][_0x2f4973(0x1ae)](_0x188f27=>this['disposeWithMe'](this[_0x2f4973(0x186)][_0x2f4973(0x173)](_0x188f27)));}};_0x395318(_0x20d984,_0x3d9a6d(0x1d4),_0x54f4b5[_0x3d9a6d(0x17b)][_0x3d9a6d(0x192)]),_0x395318(_0x20d984,_0x3d9a6d(0x18d),_0x3d9a6d(0x181)),_0x395318(_0x20d984,_0x3d9a6d(0x19f),_0x3c7aca),_0x395318(_0x20d984,'version',_0xb0d6ec),_0x20d984=_0x349d5b([(0x0,_0x54f4b5['DependentOn'])(_0x39636a[_0x3d9a6d(0x1be)]),_0x1ffac1(0x1,(0x0,_0x54f4b5[_0x3d9a6d(0x1c5)])(_0x54f4b5[_0x3d9a6d(0x185)])),_0x1ffac1(0x2,_0x54f4b5[_0x3d9a6d(0x1d8)]),_0x1ffac1(0x3,_0x54f4b5[_0x3d9a6d(0x1db)])],_0x20d984),_0x4714ac[_0x3d9a6d(0x187)]=_0x38b95d,_0x4714ac[_0x3d9a6d(0x17c)]=_0x598f2f,Object[_0x3d9a6d(0x1b0)](_0x4714ac,_0x3d9a6d(0x18f),{'enumerable':!0x0,'get':function(){return _0x577aa6;}}),Object[_0x3d9a6d(0x1b0)](_0x4714ac,'UniverSheetsShapePlugin',{'enumerable':!0x0,'get':function(){return _0x20d984;}}),_0x4714ac[_0x3d9a6d(0x1c1)]=_0x29f8cc,_0x4714ac[_0x3d9a6d(0x1bb)]=_0x4a82ef,_0x4714ac[_0x3d9a6d(0x1ba)]=_0x46d329;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-shape",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0-insiders.20260318-5bef180",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "shape for Univer.",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"./lib/*": "./lib/*"
|
|
39
39
|
},
|
|
40
40
|
"main": "./lib/es/index.js",
|
|
41
|
-
"module": "./lib/es/index.js",
|
|
42
41
|
"types": "./lib/types/index.d.ts",
|
|
43
42
|
"publishConfig": {
|
|
44
43
|
"access": "public"
|
|
@@ -53,27 +52,25 @@
|
|
|
53
52
|
"node": ">=16.0.0",
|
|
54
53
|
"npm": ">=8.0.0"
|
|
55
54
|
},
|
|
56
|
-
"peerDependencies": {
|
|
57
|
-
"rxjs": ">=7.0.0"
|
|
58
|
-
},
|
|
59
55
|
"dependencies": {
|
|
60
|
-
"@univerjs-pro/engine-shape": "0.
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
56
|
+
"@univerjs-pro/engine-shape": "0.17.0-insiders.20260318-5bef180",
|
|
57
|
+
"@univerjs/core": "0.17.0-insiders.20260318-5bef180",
|
|
58
|
+
"@univerjs-pro/license": "0.17.0-insiders.20260318-5bef180"
|
|
63
59
|
},
|
|
64
60
|
"devDependencies": {
|
|
65
|
-
"rxjs": "7.8.2",
|
|
66
61
|
"typescript": "^5.9.3",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"@univerjs
|
|
70
|
-
"@univerjs/sheets": "0.16.1"
|
|
62
|
+
"vitest": "^4.1.0",
|
|
63
|
+
"@univerjs-infra/shared": "0.17.0",
|
|
64
|
+
"@univerjs/sheets": "0.17.0-insiders.20260318-5bef180"
|
|
71
65
|
},
|
|
72
66
|
"scripts": {
|
|
73
67
|
"test": "vitest run",
|
|
74
68
|
"test:watch": "vitest",
|
|
75
69
|
"coverage": "vitest run --coverage",
|
|
76
70
|
"typecheck": "tsc --noEmit",
|
|
77
|
-
"build": "univer-cli build"
|
|
78
|
-
|
|
71
|
+
"build:bundle": "univer-cli build",
|
|
72
|
+
"build:types": "tsc -p tsconfig.node.json",
|
|
73
|
+
"build": "pnpm run build:bundle && pnpm run build:types"
|
|
74
|
+
},
|
|
75
|
+
"module": "./lib/es/index.js"
|
|
79
76
|
}
|