@univerjs-pro/sheets-shape 0.16.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x23824f=_0x4c8e;(function(_0x2745a8,_0x2f304c){const _0x525436=_0x4c8e,_0x3479e1=_0x2745a8();while(!![]){try{const _0x2beda9=-parseInt(_0x525436(0xd3))/0x1*(-parseInt(_0x525436(0xf3))/0x2)+-parseInt(_0x525436(0xe1))/0x3+-parseInt(_0x525436(0xc7))/0x4+-parseInt(_0x525436(0xcc))/0x5+parseInt(_0x525436(0xd9))/0x6*(parseInt(_0x525436(0xcd))/0x7)+-parseInt(_0x525436(0xfe))/0x8*(parseInt(_0x525436(0xd6))/0x9)+parseInt(_0x525436(0xbb))/0xa;if(_0x2beda9===_0x2f304c)break;else _0x3479e1['push'](_0x3479e1['shift']());}catch(_0x4a95d0){_0x3479e1['push'](_0x3479e1['shift']());}}}(_0x14cf,0xe29da));var D=Object[_0x23824f(0xe9)],C=(_0x5a8902,_0x1e7b78,_0x471d54)=>_0x1e7b78 in _0x5a8902?D(_0x5a8902,_0x1e7b78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x471d54}):_0x5a8902[_0x1e7b78]=_0x471d54,S=(_0x14c1f7,_0x7e9171,_0x25f15e)=>C(_0x14c1f7,typeof _0x7e9171!=_0x23824f(0xc3)?_0x7e9171+'':_0x7e9171,_0x25f15e);Object[_0x23824f(0xe9)](exports,Symbol[_0x23824f(0xe7)],{'value':_0x23824f(0xae)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');class f extends p[_0x23824f(0xd5)]{constructor(){const _0x4f8f2a=_0x23824f;super(),S(this,_0x4f8f2a(0xce),new Map()),S(this,'_linesIds',new Set()),S(this,_0x4f8f2a(0xbf),new Set());}[_0x23824f(0xc2)](_0x101b70,_0x527467,_0x19bb6f){const _0x4074f6=_0x23824f,_0x14d68c=new l[(_0x4074f6(0xe5))](_0x101b70,_0x527467,_0x19bb6f);return this['_shapes'][_0x4074f6(0xaf)](_0x527467,_0x14d68c),l[_0x4074f6(0x100)](_0x101b70)&&this[_0x4074f6(0xb9)][_0x4074f6(0xbc)](_0x527467),_0x14d68c;}[_0x23824f(0xa7)](_0x580222){const _0x1aa8d9=_0x23824f;var _0x5c5947,_0x331968;const _0x2ae2fd=[];for(const _0x2ee907 of this[_0x1aa8d9(0xb9)]){const _0x59eefa=this[_0x1aa8d9(0xce)][_0x1aa8d9(0xb7)](_0x2ee907);if(_0x59eefa){const _0x4bc9c4=_0x59eefa[_0x1aa8d9(0xa9)]();_0x4bc9c4&&(((_0x5c5947=_0x4bc9c4['from'])==null?void 0x0:_0x5c5947['shapeId'])===_0x580222&&_0x2ae2fd[_0x1aa8d9(0xff)]({..._0x4bc9c4[_0x1aa8d9(0xfb)],'lineShapeId':_0x2ee907,'isFrom':!0x0}),((_0x331968=_0x4bc9c4['to'])==null?void 0x0:_0x331968['shapeId'])===_0x580222&&_0x2ae2fd[_0x1aa8d9(0xff)]({..._0x4bc9c4['to'],'lineShapeId':_0x2ee907,'isFrom':!0x1}));}}return _0x2ae2fd;}[_0x23824f(0xec)](_0x31f949){const _0x543d0a=_0x23824f,_0x53abaa=this[_0x543d0a(0xce)]['get'](_0x31f949);if(_0x53abaa)return _0x53abaa[_0x543d0a(0xa9)]();}[_0x23824f(0xf8)](_0x182e27){const _0x22aec1=_0x23824f,_0x97a98f=this['_shapes'][_0x22aec1(0xb7)](_0x182e27);if(_0x97a98f)return _0x97a98f[_0x22aec1(0xf8)]();}['hasShape'](_0x49558d){const _0x42f697=_0x23824f;return this[_0x42f697(0xce)][_0x42f697(0xda)](_0x49558d);}[_0x23824f(0xca)](_0x59011d){const _0x407083=_0x23824f,_0x590b56=this[_0x407083(0xce)][_0x407083(0xb7)](_0x59011d);_0x590b56&&(l[_0x407083(0x100)](_0x590b56[_0x407083(0xf8)]())&&this['_linesIds'][_0x407083(0xc9)](_0x59011d),this[_0x407083(0xce)][_0x407083(0xc9)](_0x59011d));}['toJSON'](){const _0x28768d=_0x23824f,_0x34535e=[];return this[_0x28768d(0xce)][_0x28768d(0xdd)](_0xb3c2f6=>{_0x34535e['push'](_0xb3c2f6['toJSON']());}),_0x34535e;}[_0x23824f(0xa5)](_0x370606){const _0x2f889c=_0x23824f;for(const _0x8a9383 of _0x370606){const {id:_0x28cfd7,shapeType:_0x573687}=_0x8a9383,_0x6ad9f2=this[_0x2f889c(0xc2)](_0x573687,_0x28cfd7,_0x8a9383[_0x2f889c(0xaa)]);_0x6ad9f2&&_0x6ad9f2[_0x2f889c(0xc1)]()&&this[_0x2f889c(0xb9)][_0x2f889c(0xbc)](_0x28cfd7);}}[_0x23824f(0xde)](){const _0x1cfa02=_0x23824f;this['_disposed']||(this['_shapes']['forEach'](_0x5e8317=>{const _0xe6154b=_0x4c8e;_0x5e8317[_0xe6154b(0xde)]();}),this['_shapes'][_0x1cfa02(0xb1)](),this[_0x1cfa02(0xb9)]['clear'](),this[_0x1cfa02(0xbf)][_0x1cfa02(0xb1)](),super[_0x1cfa02(0xde)]());}}var R=Object[_0x23824f(0xbd)],j=(_0x3d2b21,_0x2e133d,_0x5bf1be,_0xc4910f)=>{const _0x27cb19=_0x23824f;for(var _0x3dc4e6=_0xc4910f>0x1?void 0x0:_0xc4910f?R(_0x2e133d,_0x5bf1be):_0x2e133d,_0x1d2198=_0x3d2b21[_0x27cb19(0x104)]-0x1,_0x579b1b;_0x1d2198>=0x0;_0x1d2198--)(_0x579b1b=_0x3d2b21[_0x1d2198])&&(_0x3dc4e6=_0x579b1b(_0x3dc4e6)||_0x3dc4e6);return _0x3dc4e6;},J=(_0x669207,_0x5deec0)=>(_0x3ce567,_0xd6abd5)=>_0x5deec0(_0x3ce567,_0xd6abd5,_0x669207);const w=_0x23824f(0xe6);exports[_0x23824f(0xe0)]=class extends p[_0x23824f(0xd5)]{constructor(_0x57f791){const _0x2529bd=_0x23824f;super(),S(this,'_shapeModelManagerMap',new Map()),(this[_0x2529bd(0xa3)]=_0x57f791,this[_0x2529bd(0xe3)]());}[_0x23824f(0xed)](_0x100a5e,_0x4cdfc3){const _0x58a9fb=_0x23824f;let _0x3d78a3=this['_shapeModelManagerMap']['get'](_0x100a5e);_0x3d78a3||(_0x3d78a3=new Map(),this[_0x58a9fb(0xa2)][_0x58a9fb(0xaf)](_0x100a5e,_0x3d78a3));let _0x401b9f=_0x3d78a3[_0x58a9fb(0xb7)](_0x4cdfc3);return _0x401b9f||(_0x401b9f=new f(),_0x3d78a3[_0x58a9fb(0xaf)](_0x4cdfc3,_0x401b9f)),_0x401b9f;}[_0x23824f(0xdf)](_0x2a85d7,_0x1e8526,_0xd7f3b5,_0x1d23cd,_0x1a94c8){const _0x1bd0ab=_0x23824f;this[_0x1bd0ab(0xed)](_0x2a85d7,_0x1e8526)['addShape'](_0xd7f3b5,_0x1d23cd,_0x1a94c8);}['removeShape'](_0x52d6ea,_0x3119f9,_0x26032b){const _0x28db3d=_0x23824f;this[_0x28db3d(0xed)](_0x52d6ea,_0x3119f9)[_0x28db3d(0xca)](_0x26032b);}[_0x23824f(0xfc)](_0x1103ad,_0x153d28,_0xd57b2d){const _0x2dc214=_0x23824f;return this[_0x2dc214(0xed)](_0x1103ad,_0x153d28)[_0x2dc214(0xf8)](_0xd57b2d);}[_0x23824f(0xf8)](_0x387c5,_0x1c49df,_0x45257e){const _0x3f8100=_0x23824f;return this['_ensureShapeModelManager'](_0x387c5,_0x1c49df)[_0x3f8100(0xf8)](_0x45257e);}[_0x23824f(0xf4)](_0x97434e,_0x43c651,_0xba40a){const _0x33a4b7=_0x23824f;return this[_0x33a4b7(0xed)](_0x97434e,_0x43c651)['hasShape'](_0xba40a);}[_0x23824f(0xb4)](_0x2329d3,_0x1e629e,_0x14d3bf){const _0x50dff6=_0x23824f;return this[_0x50dff6(0xed)](_0x2329d3,_0x1e629e)[_0x50dff6(0xf8)](_0x14d3bf);}[_0x23824f(0xb2)](_0x2c4081,_0x4b155e,_0x5111b0){const _0x3e261f=_0x23824f,_0x107522=this[_0x3e261f(0xed)](_0x2c4081,_0x4b155e);if(!_0x107522[_0x3e261f(0xf8)](_0x5111b0))return;const _0x4fd1e0=_0x107522[_0x3e261f(0xce)]['get'](_0x5111b0);if(_0x4fd1e0)return _0x4fd1e0[_0x3e261f(0xa4)]();}['getShapeModel'](_0x4836d5,_0x193a3c,_0x185557){const _0x445319=_0x23824f;return this[_0x445319(0xed)](_0x4836d5,_0x193a3c)[_0x445319(0xce)]['get'](_0x185557);}[_0x23824f(0xa7)](_0x1df8ad,_0x620357,_0x5b683e){const _0x522940=_0x23824f;return this[_0x522940(0xed)](_0x1df8ad,_0x620357)[_0x522940(0xa7)](_0x5b683e);}[_0x23824f(0xec)](_0x2a7afb,_0x54a32f,_0x3af423){const _0x222e2c=_0x23824f,_0x3bf4b1=this[_0x222e2c(0xed)](_0x2a7afb,_0x54a32f)['_shapes'][_0x222e2c(0xb7)](_0x3af423);if(_0x3bf4b1)return _0x3bf4b1['getShapeRelation']();}[_0x23824f(0xbe)](){}[_0x23824f(0xad)](_0x476efb){const _0x37bb37=_0x23824f,_0x4c4d3d={},_0xad3ad1=this[_0x37bb37(0xa2)]['get'](_0x476efb);return _0xad3ad1&&_0xad3ad1['forEach']((_0x4fb1ec,_0x2c9cc6)=>{const _0x5a8cde=_0x37bb37,_0x16fdff=_0x4fb1ec[_0x5a8cde(0xfd)]();_0x16fdff[_0x5a8cde(0x104)]>0x0&&(_0x4c4d3d[_0x2c9cc6]=_0x16fdff);}),JSON['stringify'](_0x4c4d3d);}[_0x23824f(0xe2)](_0x297f7c,_0x3ea413){const _0x2d318e=_0x23824f;Object[_0x2d318e(0xcf)](_0x3ea413)[_0x2d318e(0xdd)](_0xf771b0=>{const _0x2bb9b5=_0x2d318e;this[_0x2bb9b5(0xed)](_0x297f7c,_0xf771b0)[_0x2bb9b5(0xa5)](_0x3ea413[_0xf771b0]);});}[_0x23824f(0xfd)](){const _0x19508d=_0x23824f,_0x5e61b5={};return this[_0x19508d(0xa2)][_0x19508d(0xdd)]((_0x5068ac,_0x1f99dd)=>{const _0x1db0e2=_0x19508d;_0x5e61b5[_0x1f99dd]={},_0x5068ac[_0x1db0e2(0xdd)]((_0x3f0642,_0x21d637)=>{const _0x280e7a=_0x1db0e2;_0x5e61b5[_0x1f99dd][_0x21d637]=_0x3f0642[_0x280e7a(0xfd)]();});}),_0x5e61b5;}[_0x23824f(0xa5)](_0x122a8a){const _0xb5acb6=_0x23824f;Object[_0xb5acb6(0xcf)](_0x122a8a)[_0xb5acb6(0xdd)](_0x475321=>{const _0x10706e=_0xb5acb6,_0x219c65=_0x122a8a[_0x475321];Object[_0x10706e(0xcf)](_0x219c65)[_0x10706e(0xdd)](_0x3d7fc5=>{const _0x29be84=_0x10706e;this['_ensureShapeModelManager'](_0x475321,_0x3d7fc5)[_0x29be84(0xa5)](_0x219c65[_0x3d7fc5]);});});}[_0x23824f(0xe3)](){const _0x58312c=_0x23824f;this[_0x58312c(0xa3)][_0x58312c(0xab)]({'pluginName':w,'businesses':[p[_0x58312c(0xf5)][_0x58312c(0xb0)]],'toJson':_0x48bc2c=>this[_0x58312c(0xad)](_0x48bc2c),'parseJson':_0x3eaa0f=>JSON[_0x58312c(0xd8)](_0x3eaa0f),'onLoad':(_0x1a6a83,_0x89ad07)=>{const _0x7a70bc=_0x58312c;this[_0x7a70bc(0xe2)](_0x1a6a83,_0x89ad07);},'onUnLoad':_0x4806f9=>{const _0x2712b1=_0x58312c,_0x14b38c=this[_0x2712b1(0xa2)]['get'](_0x4806f9);_0x14b38c&&(_0x14b38c[_0x2712b1(0xdd)](_0x3205bf=>{_0x3205bf['dispose']();}),this[_0x2712b1(0xa2)][_0x2712b1(0xc9)](_0x4806f9));}});}[_0x23824f(0xde)](){const _0x150966=_0x23824f;this[_0x150966(0xa2)][_0x150966(0xdd)](_0x174cdc=>{_0x174cdc['forEach'](_0x538734=>{const _0x191af7=_0x4c8e;_0x538734[_0x191af7(0xde)]();});});}},exports[_0x23824f(0xe0)]=j([J(0x0,p[_0x23824f(0xf6)])],exports['SheetsShapeService']);const d={'id':_0x23824f(0xc0),'type':p[_0x23824f(0xc6)][_0x23824f(0xfa)],'handler':(_0x36325f,_0x1e579b)=>{const _0x144d37=_0x23824f,{unitId:_0x14489e,subUnitId:_0x2e3723,shapeType:_0x2ba74e,shapeId:_0x1147b6,shapeData:_0x435a9c}=_0x1e579b,_0x149f84=_0x36325f[_0x144d37(0xb7)](exports[_0x144d37(0xe0)])[_0x144d37(0xf2)](_0x14489e,_0x2e3723,_0x1147b6);return _0x149f84&&(_0x149f84[_0x144d37(0xbe)](_0x2ba74e),_0x435a9c&&(_0x149f84==null||_0x149f84[_0x144d37(0xcb)](_0x435a9c))),!0x0;}},H={'id':_0x23824f(0xd1),'type':p[_0x23824f(0xc6)][_0x23824f(0x102)],'handler':(_0x4d8132,_0x420457)=>{const _0x1e77b4=_0x23824f;if(!_0x420457)return!0x1;const _0x48030f=_0x4d8132['get'](p[_0x1e77b4(0xd2)]),_0x390611=_0x4d8132[_0x1e77b4(0xb7)](exports[_0x1e77b4(0xe0)]),_0x470729=_0x4d8132[_0x1e77b4(0xb7)](p[_0x1e77b4(0xb3)]),_0x5126f3=[],_0x144a8f=[],{unitId:_0x2ad21c,subUnitId:_0x5c4132,shapeId:_0x5d4f9b,shapeType:_0x56fa3c,shapeData:_0x2697fd}=_0x420457,_0x2b0165=_0x390611[_0x1e77b4(0xf2)](_0x2ad21c,_0x5c4132,_0x5d4f9b);if(_0x2b0165){const _0x1dc798=_0x2b0165['getShapeType'](),_0x58ab83=Object[_0x1e77b4(0x101)]({},_0x2b0165[_0x1e77b4(0xa4)]()),_0x46f1d6={'unitId':_0x2ad21c,'subUnitId':_0x5c4132,'shapeId':_0x5d4f9b,'shapeType':_0x56fa3c,'shapeData':_0x2697fd},_0x5a62a6={'unitId':_0x2ad21c,'subUnitId':_0x5c4132,'shapeId':_0x5d4f9b,'shapeType':_0x1dc798,'shapeData':_0x58ab83};return _0x5126f3['push']({'id':d['id'],'params':_0x46f1d6}),_0x144a8f[_0x1e77b4(0xff)]({'id':d['id'],'params':_0x5a62a6}),_0x5126f3[_0x1e77b4(0xdc)](_0x54d37b=>_0x48030f[_0x1e77b4(0xd7)](_0x54d37b['id'],_0x54d37b['params']))&&_0x470729[_0x1e77b4(0xf1)]({'unitID':_0x2ad21c,'redoMutations':[..._0x5126f3],'undoMutations':[..._0x144a8f]}),!0x0;}return!0x1;}},m={'id':'sheet.mutation.insert-shape','type':p[_0x23824f(0xc6)][_0x23824f(0xfa)],'handler':(_0xb0283e,_0x5d381a)=>{const _0x3a86fb=_0x23824f,{unitId:_0x20a333,subUnitId:_0x3d6173,shapeType:_0x5e1e5e,shapeId:_0x48d51b,shapeData:_0x53c6ba}=_0x5d381a;return _0xb0283e[_0x3a86fb(0xb7)](exports[_0x3a86fb(0xe0)])[_0x3a86fb(0xdf)](_0x20a333,_0x3d6173,_0x5e1e5e,_0x48d51b,_0x53c6ba),!0x0;}},v={'id':_0x23824f(0x103),'type':p[_0x23824f(0xc6)][_0x23824f(0xfa)],'handler':(_0xb1b80,_0x5615f8)=>{const _0x22ef64=_0x23824f,{unitId:_0x2f794e,subUnitId:_0xebae4a,shapeId:_0x4a281c}=_0x5615f8;return _0xb1b80[_0x22ef64(0xb7)](exports['SheetsShapeService'])[_0x22ef64(0xca)](_0x2f794e,_0xebae4a,_0x4a281c),!0x0;}},y={'id':'sheet.mutation.update-shape-data','type':p[_0x23824f(0xc6)]['MUTATION'],'handler':(_0x4f0af8,_0x367dab)=>{const _0x2193f0=_0x23824f,{unitId:_0x1c8837,subUnitId:_0x1f0c60,shapeType:_0x12dc12,shapeId:_0xd4cfc5,shapeData:_0x3e2da7}=_0x367dab,_0xf25110=_0x4f0af8[_0x2193f0(0xb7)](exports[_0x2193f0(0xe0)])[_0x2193f0(0xf2)](_0x1c8837,_0x1f0c60,_0xd4cfc5);return _0xf25110&&(_0x12dc12!==void 0x0&&_0xf25110[_0x2193f0(0xbe)](_0x12dc12),_0x3e2da7&&(_0xf25110==null||_0xf25110[_0x2193f0(0xcb)](_0x3e2da7,!0x0))),!0x0;}},A=_0x23824f(0xc8),_={};var L=Object[_0x23824f(0xe9)],F=Object[_0x23824f(0xbd)],B=(_0x2679bf,_0x3d002e,_0x17f3f9)=>_0x3d002e in _0x2679bf?L(_0x2679bf,_0x3d002e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17f3f9}):_0x2679bf[_0x3d002e]=_0x17f3f9,G=(_0x516466,_0x387bfa,_0x47566e,_0x382e18)=>{const _0x3af532=_0x23824f;for(var _0x377dc6=_0x382e18>0x1?void 0x0:_0x382e18?F(_0x387bfa,_0x47566e):_0x387bfa,_0x53aba8=_0x516466[_0x3af532(0x104)]-0x1,_0x2a0075;_0x53aba8>=0x0;_0x53aba8--)(_0x2a0075=_0x516466[_0x53aba8])&&(_0x377dc6=_0x2a0075(_0x377dc6)||_0x377dc6);return _0x377dc6;},g=(_0x258d22,_0x12c75a)=>(_0x4e4b78,_0x168f0c)=>_0x12c75a(_0x4e4b78,_0x168f0c,_0x258d22),T=(_0x524dea,_0x30694c,_0x3ad88e)=>B(_0x524dea,typeof _0x30694c!=_0x23824f(0xc3)?_0x30694c+'':_0x30694c,_0x3ad88e);const x=_0x23824f(0xe6);function _0x4c8e(_0x507e46,_0x120cae){_0x507e46=_0x507e46-0xa2;const _0x14cff3=_0x14cf();let _0x4c8eba=_0x14cff3[_0x507e46];return _0x4c8eba;}function _0x14cf(){const _0x16babd=['fromJSON','UpdateSheetsShapeTypeMutation','getBasicShapeRelation','UniverLicensePlugin','getShapeRelation','shapeData','registerPluginResource','RemoveSheetsShapeMutation','_serializeShapeForUnit','Module','set','UNIVER_SHEET','clear','getShapeDataById','IUndoRedoService','getShapeTypeById','type','disposeWithMe','get','pluginName','_linesIds','_initCommands','9480260MATQrA','add','getOwnPropertyDescriptor','setShapeType','_groupIds','sheet.mutation.update-shape-type','isLineShape','addShape','symbol','merge','UpdateSheetsShapeTypeCommand','CommandType','950112nVzQcx','sheets-shape.config','delete','removeShape','setShapeData','305495teDKkb','77DgPuJB','_shapes','keys','DependentOn','sheet.command.update-shape-type','ICommandService','1FKUPgk','onRendered','Disposable','9AHfOIY','syncExecuteCommand','parse','147618yXjjYp','has','IConfigService','every','forEach','dispose','insertShape','SheetsShapeService','3169110wrrhrk','_deserializeShapeForUnit','_initSnapshot','_config','ShapeModel','SHEET_SHAPE_PLUGIN','toStringTag','touchDependencies','defineProperty','_injector','_commandService','getLineShapeRelation','_ensureShapeModelManager','_configService','InsertSheetsShapeMutation','registerCommand','pushUndoRedo','getShapeModel','2129506oHmxAW','hasShape','UniverInstanceType','IResourceManagerService','UniverSheetsShapePlugin','getShapeType','UpdateSheetsShapeDataMutation','MUTATION','from','getBasicShapeType','toJSON','1576ScfStN','push','isConnectorShape','assign','COMMAND','sheet.mutation.remove-shape','length','_shapeModelManagerMap','_resourcesManagerService','getShapeData'];_0x14cf=function(){return _0x16babd;};return _0x14cf();}exports[_0x23824f(0xf7)]=class extends p['Plugin']{constructor(_0x2e7bba=_,_0x12c867,_0x388da2,_0x5211c0){const _0x30a25e=_0x23824f;super(),this[_0x30a25e(0xe4)]=_0x2e7bba,this[_0x30a25e(0xea)]=_0x12c867,this[_0x30a25e(0xeb)]=_0x388da2,this[_0x30a25e(0xee)]=_0x5211c0;const {..._0x5c639e}=p[_0x30a25e(0xc4)]({},_,this[_0x30a25e(0xe4)]);this[_0x30a25e(0xee)]['setConfig'](A,_0x5c639e),this[_0x30a25e(0xba)]();}[_0x23824f(0xd4)](){const _0xb317be=_0x23824f;p[_0xb317be(0xe8)](this[_0xb317be(0xea)],[]);}['onStarting'](){const _0x40f605=_0x23824f,_0x3178fc=this[_0x40f605(0xea)];[[f],[exports[_0x40f605(0xe0)]]][_0x40f605(0xdd)](_0x52222a=>_0x3178fc[_0x40f605(0xbc)](_0x52222a));}[_0x23824f(0xba)](){const _0x1772b9=_0x23824f;[m,v,d,y][_0x1772b9(0xdd)](_0x4fca22=>this[_0x1772b9(0xb6)](this[_0x1772b9(0xeb)][_0x1772b9(0xf0)](_0x4fca22)));}},T(exports['UniverSheetsShapePlugin'],_0x23824f(0xb5),p[_0x23824f(0xf5)]['UNIVER_SHEET']),T(exports[_0x23824f(0xf7)],_0x23824f(0xb8),x),exports[_0x23824f(0xf7)]=G([p[_0x23824f(0xd0)](b[_0x23824f(0xa8)]),g(0x1,p['Inject'](p['Injector'])),g(0x2,p[_0x23824f(0xd2)]),g(0x3,p[_0x23824f(0xdb)])],exports[_0x23824f(0xf7)]),exports[_0x23824f(0xef)]=m,exports[_0x23824f(0xac)]=v,exports[_0x23824f(0xf9)]=y,exports[_0x23824f(0xc5)]=H,exports[_0x23824f(0xa6)]=d;
|
|
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;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x43a6f2=_0x421c;(function(_0x4ae34e,_0x1c02ae){const _0x41a7b7=_0x421c,_0x558949=_0x4ae34e();while(!![]){try{const _0x1c8c37=-parseInt(_0x41a7b7(0xad))/0x1*(-parseInt(_0x41a7b7(0xe8))/0x2)+parseInt(_0x41a7b7(0xcb))/0x3+-parseInt(_0x41a7b7(0xe2))/0x4*(parseInt(_0x41a7b7(0xb8))/0x5)+-parseInt(_0x41a7b7(0xd5))/0x6*(parseInt(_0x41a7b7(0xd1))/0x7)+-parseInt(_0x41a7b7(0xe7))/0x8+-parseInt(_0x41a7b7(0xb4))/0x9+parseInt(_0x41a7b7(0xae))/0xa*(parseInt(_0x41a7b7(0xce))/0xb);if(_0x1c8c37===_0x1c02ae)break;else _0x558949['push'](_0x558949['shift']());}catch(_0x4b7533){_0x558949['push'](_0x558949['shift']());}}}(_0x14cf,0x6fa18));var R=Object[_0x43a6f2(0xc1)],C=(_0x2a89db,_0x2f5e71,_0x5c03fc)=>_0x2f5e71 in _0x2a89db?R(_0x2a89db,_0x2f5e71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c03fc}):_0x2a89db[_0x2f5e71]=_0x5c03fc,d=(_0x773689,_0x392702,_0x100533)=>C(_0x773689,typeof _0x392702!=_0x43a6f2(0xbe)?_0x392702+'':_0x392702,_0x100533);import{Disposable as _0x4b7b4d,UniverInstanceType as _0x26dd27,IResourceManagerService as _0x203dfb,CommandType as _0x49e1d5,ICommandService as _0x65add9,IUndoRedoService as _0x5b7d85,DependentOn as _0x26fc7e,Inject as _0x196b66,Injector as _0xf77523,Plugin as _0x4cf84e,merge as _0x41e183,touchDependencies as _0x55073d,IConfigService as _0x3ebb98}from'@univerjs/core';import{ShapeModel as _0x464ca3,isConnectorShape as _0x453e60}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x69e81b}from'@univerjs-pro/license';class T extends _0x4b7b4d{constructor(){const _0x5d5555=_0x43a6f2;super(),d(this,_0x5d5555(0xcd),new Map()),d(this,_0x5d5555(0xc4),new Set()),d(this,_0x5d5555(0xee),new Set());}[_0x43a6f2(0xcf)](_0x1d8001,_0x585ac6,_0x5cd8ef){const _0x59b7f3=_0x43a6f2,_0x59ab0a=new _0x464ca3(_0x1d8001,_0x585ac6,_0x5cd8ef);return this[_0x59b7f3(0xcd)][_0x59b7f3(0xb1)](_0x585ac6,_0x59ab0a),_0x453e60(_0x1d8001)&&this[_0x59b7f3(0xc4)]['add'](_0x585ac6),_0x59ab0a;}[_0x43a6f2(0xeb)](_0x2d8661){const _0x7b6934=_0x43a6f2;var _0x20a8a2,_0x1aad62;const _0x1b559b=[];for(const _0x924f74 of this['_linesIds']){const _0x39eecb=this[_0x7b6934(0xcd)][_0x7b6934(0xda)](_0x924f74);if(_0x39eecb){const _0x35314d=_0x39eecb['getShapeRelation']();_0x35314d&&(((_0x20a8a2=_0x35314d[_0x7b6934(0xa9)])==null?void 0x0:_0x20a8a2[_0x7b6934(0xa7)])===_0x2d8661&&_0x1b559b['push']({..._0x35314d['from'],'lineShapeId':_0x924f74,'isFrom':!0x0}),((_0x1aad62=_0x35314d['to'])==null?void 0x0:_0x1aad62[_0x7b6934(0xa7)])===_0x2d8661&&_0x1b559b[_0x7b6934(0xef)]({..._0x35314d['to'],'lineShapeId':_0x924f74,'isFrom':!0x1}));}}return _0x1b559b;}[_0x43a6f2(0xf0)](_0x11c47f){const _0x5a6db0=_0x43a6f2,_0x13675b=this['_shapes']['get'](_0x11c47f);if(_0x13675b)return _0x13675b[_0x5a6db0(0xa8)]();}[_0x43a6f2(0xb3)](_0x5861e9){const _0x398238=_0x43a6f2,_0x3163ba=this[_0x398238(0xcd)]['get'](_0x5861e9);if(_0x3163ba)return _0x3163ba[_0x398238(0xb3)]();}[_0x43a6f2(0xe1)](_0x2ece54){const _0x51297a=_0x43a6f2;return this[_0x51297a(0xcd)]['has'](_0x2ece54);}[_0x43a6f2(0xd2)](_0x354e4b){const _0x5b7a7f=_0x43a6f2,_0x3ccd33=this['_shapes'][_0x5b7a7f(0xda)](_0x354e4b);_0x3ccd33&&(_0x453e60(_0x3ccd33[_0x5b7a7f(0xb3)]())&&this[_0x5b7a7f(0xc4)]['delete'](_0x354e4b),this[_0x5b7a7f(0xcd)][_0x5b7a7f(0xaf)](_0x354e4b));}[_0x43a6f2(0xb2)](){const _0x45916a=_0x43a6f2,_0x3ac80e=[];return this[_0x45916a(0xcd)][_0x45916a(0xba)](_0x406120=>{const _0x43546e=_0x45916a;_0x3ac80e[_0x43546e(0xef)](_0x406120[_0x43546e(0xb2)]());}),_0x3ac80e;}['fromJSON'](_0x38bb4d){const _0x46147a=_0x43a6f2;for(const _0x2ee55b of _0x38bb4d){const {id:_0x1ce412,shapeType:_0x135f41}=_0x2ee55b,_0x22130f=this[_0x46147a(0xcf)](_0x135f41,_0x1ce412,_0x2ee55b[_0x46147a(0xc3)]);_0x22130f&&_0x22130f[_0x46147a(0xea)]()&&this['_linesIds'][_0x46147a(0xd0)](_0x1ce412);}}[_0x43a6f2(0xc6)](){const _0x559412=_0x43a6f2;this[_0x559412(0xa6)]||(this[_0x559412(0xcd)]['forEach'](_0x55948f=>{const _0xa1cd4f=_0x559412;_0x55948f[_0xa1cd4f(0xc6)]();}),this[_0x559412(0xcd)]['clear'](),this['_linesIds']['clear'](),this[_0x559412(0xee)][_0x559412(0xe6)](),super['dispose']());}}var $=Object[_0x43a6f2(0xd7)],V=(_0x3b2d48,_0x1101da,_0x5b1927,_0x1be1e5)=>{const _0x3d0f82=_0x43a6f2;for(var _0x1f1281=_0x1be1e5>0x1?void 0x0:_0x1be1e5?$(_0x1101da,_0x5b1927):_0x1101da,_0x44a118=_0x3b2d48[_0x3d0f82(0xe5)]-0x1,_0x4f530c;_0x44a118>=0x0;_0x44a118--)(_0x4f530c=_0x3b2d48[_0x44a118])&&(_0x1f1281=_0x4f530c(_0x1f1281)||_0x1f1281);return _0x1f1281;},K=(_0x207a13,_0x6bb06a)=>(_0x4a4fd4,_0x59fcd4)=>_0x6bb06a(_0x4a4fd4,_0x59fcd4,_0x207a13);const W=_0x43a6f2(0xd3);let i=class extends _0x4b7b4d{constructor(_0x4a443f){const _0x40c745=_0x43a6f2;super(),d(this,_0x40c745(0xd8),new Map()),(this['_resourcesManagerService']=_0x4a443f,this[_0x40c745(0xd6)]());}[_0x43a6f2(0xe9)](_0x43f03d,_0x16e722){const _0x1609b0=_0x43a6f2;let _0xb0cb56=this['_shapeModelManagerMap'][_0x1609b0(0xda)](_0x43f03d);_0xb0cb56||(_0xb0cb56=new Map(),this[_0x1609b0(0xd8)][_0x1609b0(0xb1)](_0x43f03d,_0xb0cb56));let _0x4fa5c6=_0xb0cb56[_0x1609b0(0xda)](_0x16e722);return _0x4fa5c6||(_0x4fa5c6=new T(),_0xb0cb56[_0x1609b0(0xb1)](_0x16e722,_0x4fa5c6)),_0x4fa5c6;}[_0x43a6f2(0xc5)](_0x2b128a,_0x4653c0,_0x497e8a,_0x1dfecd,_0x210f56){const _0x398954=_0x43a6f2;this[_0x398954(0xe9)](_0x2b128a,_0x4653c0)[_0x398954(0xcf)](_0x497e8a,_0x1dfecd,_0x210f56);}['removeShape'](_0x54b567,_0x49279d,_0x22a61c){const _0x135d2a=_0x43a6f2;this[_0x135d2a(0xe9)](_0x54b567,_0x49279d)[_0x135d2a(0xd2)](_0x22a61c);}['getBasicShapeType'](_0x893c94,_0x263843,_0xffdcb6){const _0x4917b3=_0x43a6f2;return this[_0x4917b3(0xe9)](_0x893c94,_0x263843)[_0x4917b3(0xb3)](_0xffdcb6);}[_0x43a6f2(0xb3)](_0xd9a4f8,_0x41b910,_0x39d752){const _0x329ee1=_0x43a6f2;return this[_0x329ee1(0xe9)](_0xd9a4f8,_0x41b910)[_0x329ee1(0xb3)](_0x39d752);}['hasShape'](_0x56e5f0,_0x9d8c59,_0x1922d8){const _0x28d24c=_0x43a6f2;return this[_0x28d24c(0xe9)](_0x56e5f0,_0x9d8c59)[_0x28d24c(0xe1)](_0x1922d8);}['getShapeTypeById'](_0x4432c7,_0x5b2696,_0x36ef67){const _0x4cbacb=_0x43a6f2;return this[_0x4cbacb(0xe9)](_0x4432c7,_0x5b2696)['getShapeType'](_0x36ef67);}[_0x43a6f2(0xb0)](_0x32113a,_0x438962,_0x369f02){const _0x132b5e=_0x43a6f2,_0x40847f=this['_ensureShapeModelManager'](_0x32113a,_0x438962);if(!_0x40847f['getShapeType'](_0x369f02))return;const _0x48abf7=_0x40847f[_0x132b5e(0xcd)][_0x132b5e(0xda)](_0x369f02);if(_0x48abf7)return _0x48abf7[_0x132b5e(0xdc)]();}[_0x43a6f2(0xdb)](_0x3647b6,_0x13751a,_0x3afdb2){const _0x27ec61=_0x43a6f2;return this[_0x27ec61(0xe9)](_0x3647b6,_0x13751a)[_0x27ec61(0xcd)][_0x27ec61(0xda)](_0x3afdb2);}['getBasicShapeRelation'](_0x275f85,_0x13ee72,_0x155922){const _0x199e96=_0x43a6f2;return this[_0x199e96(0xe9)](_0x275f85,_0x13ee72)['getBasicShapeRelation'](_0x155922);}['getLineShapeRelation'](_0x1b10a3,_0x42d94d,_0x487c92){const _0x2b11cc=_0x43a6f2,_0x596b76=this['_ensureShapeModelManager'](_0x1b10a3,_0x42d94d)[_0x2b11cc(0xcd)][_0x2b11cc(0xda)](_0x487c92);if(_0x596b76)return _0x596b76[_0x2b11cc(0xa8)]();}[_0x43a6f2(0xdd)](){}[_0x43a6f2(0xbf)](_0x4e4052){const _0x560e86=_0x43a6f2,_0x582638={},_0x5db59c=this['_shapeModelManagerMap'][_0x560e86(0xda)](_0x4e4052);return _0x5db59c&&_0x5db59c['forEach']((_0x37e9aa,_0x4d0e4d)=>{const _0x149ea6=_0x560e86,_0x2bbf6a=_0x37e9aa[_0x149ea6(0xb2)]();_0x2bbf6a['length']>0x0&&(_0x582638[_0x4d0e4d]=_0x2bbf6a);}),JSON[_0x560e86(0xcc)](_0x582638);}['_deserializeShapeForUnit'](_0x14c70f,_0x46bc8f){const _0x57d86a=_0x43a6f2;Object[_0x57d86a(0xed)](_0x46bc8f)['forEach'](_0x29888d=>{this['_ensureShapeModelManager'](_0x14c70f,_0x29888d)['fromJSON'](_0x46bc8f[_0x29888d]);});}[_0x43a6f2(0xb2)](){const _0x5df47c=_0x43a6f2,_0x1090fa={};return this[_0x5df47c(0xd8)][_0x5df47c(0xba)]((_0x40dff7,_0x11b75)=>{const _0x130317=_0x5df47c;_0x1090fa[_0x11b75]={},_0x40dff7[_0x130317(0xba)]((_0x2b7ae2,_0x431f19)=>{_0x1090fa[_0x11b75][_0x431f19]=_0x2b7ae2['toJSON']();});}),_0x1090fa;}[_0x43a6f2(0xec)](_0xe73ca6){const _0x406ac0=_0x43a6f2;Object[_0x406ac0(0xed)](_0xe73ca6)[_0x406ac0(0xba)](_0x5defbc=>{const _0x552c11=_0x406ac0,_0x31ffc2=_0xe73ca6[_0x5defbc];Object[_0x552c11(0xed)](_0x31ffc2)['forEach'](_0x37a41c=>{const _0x412e5f=_0x552c11;this[_0x412e5f(0xe9)](_0x5defbc,_0x37a41c)['fromJSON'](_0x31ffc2[_0x37a41c]);});});}[_0x43a6f2(0xd6)](){const _0x3f1f4c=_0x43a6f2;this['_resourcesManagerService']['registerPluginResource']({'pluginName':W,'businesses':[_0x26dd27[_0x3f1f4c(0xa5)]],'toJson':_0x135b0f=>this[_0x3f1f4c(0xbf)](_0x135b0f),'parseJson':_0x77431a=>JSON[_0x3f1f4c(0xaa)](_0x77431a),'onLoad':(_0x1fb15d,_0x46aa18)=>{const _0x397169=_0x3f1f4c;this[_0x397169(0xb9)](_0x1fb15d,_0x46aa18);},'onUnLoad':_0x2bc5be=>{const _0x24ccb1=_0x3f1f4c,_0x14c061=this['_shapeModelManagerMap'][_0x24ccb1(0xda)](_0x2bc5be);_0x14c061&&(_0x14c061[_0x24ccb1(0xba)](_0x3ff9d5=>{_0x3ff9d5['dispose']();}),this[_0x24ccb1(0xd8)][_0x24ccb1(0xaf)](_0x2bc5be));}});}['dispose'](){const _0x2a4526=_0x43a6f2;this[_0x2a4526(0xd8)][_0x2a4526(0xba)](_0xeff72e=>{_0xeff72e['forEach'](_0x12e8e4=>{const _0x1058a5=_0x421c;_0x12e8e4[_0x1058a5(0xc6)]();});});}};i=V([K(0x0,_0x203dfb)],i);const u={'id':'sheet.mutation.update-shape-type','type':_0x49e1d5[_0x43a6f2(0xc0)],'handler':(_0x3c19d7,_0x188894)=>{const _0x21d03a=_0x43a6f2,{unitId:_0x1aebf1,subUnitId:_0x314803,shapeType:_0x4faacd,shapeId:_0x27bb28,shapeData:_0x5c4ca8}=_0x188894,_0x28c798=_0x3c19d7[_0x21d03a(0xda)](i)[_0x21d03a(0xdb)](_0x1aebf1,_0x314803,_0x27bb28);return _0x28c798&&(_0x28c798[_0x21d03a(0xdd)](_0x4faacd),_0x5c4ca8&&(_0x28c798==null||_0x28c798[_0x21d03a(0xde)](_0x5c4ca8))),!0x0;}},pe={'id':_0x43a6f2(0xc8),'type':_0x49e1d5[_0x43a6f2(0xbc)],'handler':(_0x4218ee,_0x3c223c)=>{const _0x3a5281=_0x43a6f2;if(!_0x3c223c)return!0x1;const _0x26fc2c=_0x4218ee[_0x3a5281(0xda)](_0x65add9),_0x589419=_0x4218ee['get'](i),_0x314748=_0x4218ee[_0x3a5281(0xda)](_0x5b7d85),_0x9e32be=[],_0x267a0f=[],{unitId:_0x24bfe6,subUnitId:_0xb884d7,shapeId:_0x3dcefa,shapeType:_0x21f3c0,shapeData:_0x47d470}=_0x3c223c,_0x5b8c68=_0x589419[_0x3a5281(0xdb)](_0x24bfe6,_0xb884d7,_0x3dcefa);if(_0x5b8c68){const _0x23fb57=_0x5b8c68[_0x3a5281(0xb3)](),_0x4ca1cc=Object[_0x3a5281(0xc2)]({},_0x5b8c68[_0x3a5281(0xdc)]()),_0x577a72={'unitId':_0x24bfe6,'subUnitId':_0xb884d7,'shapeId':_0x3dcefa,'shapeType':_0x21f3c0,'shapeData':_0x47d470},_0x341c1d={'unitId':_0x24bfe6,'subUnitId':_0xb884d7,'shapeId':_0x3dcefa,'shapeType':_0x23fb57,'shapeData':_0x4ca1cc};return _0x9e32be[_0x3a5281(0xef)]({'id':u['id'],'params':_0x577a72}),_0x267a0f[_0x3a5281(0xef)]({'id':u['id'],'params':_0x341c1d}),_0x9e32be[_0x3a5281(0xb7)](_0x437d3c=>_0x26fc2c[_0x3a5281(0xab)](_0x437d3c['id'],_0x437d3c[_0x3a5281(0xe0)]))&&_0x314748[_0x3a5281(0xac)]({'unitID':_0x24bfe6,'redoMutations':[..._0x9e32be],'undoMutations':[..._0x267a0f]}),!0x0;}return!0x1;}},Y={'id':_0x43a6f2(0xdf),'type':_0x49e1d5['MUTATION'],'handler':(_0x4ab54f,_0x35dfd5)=>{const _0x460ef1=_0x43a6f2,{unitId:_0x139b7e,subUnitId:_0x3e2378,shapeType:_0x5b3de1,shapeId:_0x3167f4,shapeData:_0x2f1bf2}=_0x35dfd5;return _0x4ab54f['get'](i)[_0x460ef1(0xc5)](_0x139b7e,_0x3e2378,_0x5b3de1,_0x3167f4,_0x2f1bf2),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x49e1d5[_0x43a6f2(0xc0)],'handler':(_0x1fad37,_0x44fc02)=>{const _0x55e4d6=_0x43a6f2,{unitId:_0x1d4c3,subUnitId:_0x3ce7d5,shapeId:_0x159aa5}=_0x44fc02;return _0x1fad37[_0x55e4d6(0xda)](i)['removeShape'](_0x1d4c3,_0x3ce7d5,_0x159aa5),!0x0;}},Q={'id':'sheet.mutation.update-shape-data','type':_0x49e1d5[_0x43a6f2(0xc0)],'handler':(_0x38d43d,_0x37d0af)=>{const _0x59c3d6=_0x43a6f2,{unitId:_0x3ba78e,subUnitId:_0x44b7ca,shapeType:_0x546535,shapeId:_0x383919,shapeData:_0x2a1b11}=_0x37d0af,_0x307f12=_0x38d43d[_0x59c3d6(0xda)](i)[_0x59c3d6(0xdb)](_0x3ba78e,_0x44b7ca,_0x383919);return _0x307f12&&(_0x546535!==void 0x0&&_0x307f12['setShapeType'](_0x546535),_0x2a1b11&&(_0x307f12==null||_0x307f12[_0x59c3d6(0xde)](_0x2a1b11,!0x0))),!0x0;}},X='sheets-shape.config',m={};function _0x421c(_0x19686e,_0x50be41){_0x19686e=_0x19686e-0xa5;const _0x14cf33=_0x14cf();let _0x421cda=_0x14cf33[_0x19686e];return _0x421cda;}var Z=Object[_0x43a6f2(0xc1)],k=Object[_0x43a6f2(0xd7)],ee=(_0x557a80,_0x3186c4,_0x80e7d7)=>_0x3186c4 in _0x557a80?Z(_0x557a80,_0x3186c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x80e7d7}):_0x557a80[_0x3186c4]=_0x80e7d7,ae=(_0x2e843e,_0xcef521,_0x311b8d,_0x344f1b)=>{const _0xc92546=_0x43a6f2;for(var _0x1333be=_0x344f1b>0x1?void 0x0:_0x344f1b?k(_0xcef521,_0x311b8d):_0xcef521,_0x383bb6=_0x2e843e[_0xc92546(0xe5)]-0x1,_0x2e3302;_0x383bb6>=0x0;_0x383bb6--)(_0x2e3302=_0x2e843e[_0x383bb6])&&(_0x1333be=_0x2e3302(_0x1333be)||_0x1333be);return _0x1333be;},g=(_0x3ff799,_0x69fafd)=>(_0x33eb9d,_0x3d7711)=>_0x69fafd(_0x33eb9d,_0x3d7711,_0x3ff799),E=(_0xa345fc,_0x3bcc12,_0x239c62)=>ee(_0xa345fc,typeof _0x3bcc12!=_0x43a6f2(0xbe)?_0x3bcc12+'':_0x3bcc12,_0x239c62);const se=_0x43a6f2(0xd3);let S=class extends _0x4cf84e{constructor(_0x143000=m,_0x114294,_0x1f05f3,_0xbfa95){const _0x4d0c73=_0x43a6f2;super(),this['_config']=_0x143000,this['_injector']=_0x114294,this[_0x4d0c73(0xe4)]=_0x1f05f3,this['_configService']=_0xbfa95;const {..._0x5ad44a}=_0x41e183({},m,this[_0x4d0c73(0xb5)]);this[_0x4d0c73(0xd9)]['setConfig'](X,_0x5ad44a),this['_initCommands']();}[_0x43a6f2(0xe3)](){const _0x3450ef=_0x43a6f2;_0x55073d(this[_0x3450ef(0xd4)],[]);}[_0x43a6f2(0xbb)](){const _0x3232fa=_0x43a6f2,_0x590c89=this['_injector'];[[T],[i]]['forEach'](_0x339708=>_0x590c89[_0x3232fa(0xd0)](_0x339708));}[_0x43a6f2(0xc7)](){const _0x1f01d8=_0x43a6f2;[Y,q,u,Q][_0x1f01d8(0xba)](_0x516021=>this[_0x1f01d8(0xb6)](this[_0x1f01d8(0xe4)][_0x1f01d8(0xc9)](_0x516021)));}};E(S,_0x43a6f2(0xbd),_0x26dd27['UNIVER_SHEET']),E(S,_0x43a6f2(0xca),se),S=ae([_0x26fc7e(_0x69e81b),g(0x1,_0x196b66(_0xf77523)),g(0x2,_0x65add9),g(0x3,_0x3ebb98)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};function _0x14cf(){const _0x595cf1=['443315WIlOiN','_deserializeShapeForUnit','forEach','onStarting','COMMAND','type','symbol','_serializeShapeForUnit','MUTATION','defineProperty','assign','shapeData','_linesIds','insertShape','dispose','_initCommands','sheet.command.update-shape-type','registerCommand','pluginName','1137750odJFmU','stringify','_shapes','587103MiAzZu','addShape','add','35enerlF','removeShape','SHEET_SHAPE_PLUGIN','_injector','764670GPObEp','_initSnapshot','getOwnPropertyDescriptor','_shapeModelManagerMap','_configService','get','getShapeModel','getShapeData','setShapeType','setShapeData','sheet.mutation.insert-shape','params','hasShape','24jiSMvf','onRendered','_commandService','length','clear','2161632OlRLlr','2gZirpw','_ensureShapeModelManager','isLineShape','getBasicShapeRelation','fromJSON','keys','_groupIds','push','getLineShapeRelation','UNIVER_SHEET','_disposed','shapeId','getShapeRelation','from','parse','syncExecuteCommand','pushUndoRedo','412073ynxJIB','260jWTktA','delete','getShapeDataById','set','toJSON','getShapeType','2541366zkoWRC','_config','disposeWithMe','every'];_0x14cf=function(){return _0x595cf1;};return _0x14cf();}
|
|
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};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x43a6f2=_0x421c;(function(_0x4ae34e,_0x1c02ae){const _0x41a7b7=_0x421c,_0x558949=_0x4ae34e();while(!![]){try{const _0x1c8c37=-parseInt(_0x41a7b7(0xad))/0x1*(-parseInt(_0x41a7b7(0xe8))/0x2)+parseInt(_0x41a7b7(0xcb))/0x3+-parseInt(_0x41a7b7(0xe2))/0x4*(parseInt(_0x41a7b7(0xb8))/0x5)+-parseInt(_0x41a7b7(0xd5))/0x6*(parseInt(_0x41a7b7(0xd1))/0x7)+-parseInt(_0x41a7b7(0xe7))/0x8+-parseInt(_0x41a7b7(0xb4))/0x9+parseInt(_0x41a7b7(0xae))/0xa*(parseInt(_0x41a7b7(0xce))/0xb);if(_0x1c8c37===_0x1c02ae)break;else _0x558949['push'](_0x558949['shift']());}catch(_0x4b7533){_0x558949['push'](_0x558949['shift']());}}}(_0x14cf,0x6fa18));var R=Object[_0x43a6f2(0xc1)],C=(_0x2a89db,_0x2f5e71,_0x5c03fc)=>_0x2f5e71 in _0x2a89db?R(_0x2a89db,_0x2f5e71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c03fc}):_0x2a89db[_0x2f5e71]=_0x5c03fc,d=(_0x773689,_0x392702,_0x100533)=>C(_0x773689,typeof _0x392702!=_0x43a6f2(0xbe)?_0x392702+'':_0x392702,_0x100533);import{Disposable as _0x4b7b4d,UniverInstanceType as _0x26dd27,IResourceManagerService as _0x203dfb,CommandType as _0x49e1d5,ICommandService as _0x65add9,IUndoRedoService as _0x5b7d85,DependentOn as _0x26fc7e,Inject as _0x196b66,Injector as _0xf77523,Plugin as _0x4cf84e,merge as _0x41e183,touchDependencies as _0x55073d,IConfigService as _0x3ebb98}from'@univerjs/core';import{ShapeModel as _0x464ca3,isConnectorShape as _0x453e60}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x69e81b}from'@univerjs-pro/license';class T extends _0x4b7b4d{constructor(){const _0x5d5555=_0x43a6f2;super(),d(this,_0x5d5555(0xcd),new Map()),d(this,_0x5d5555(0xc4),new Set()),d(this,_0x5d5555(0xee),new Set());}[_0x43a6f2(0xcf)](_0x1d8001,_0x585ac6,_0x5cd8ef){const _0x59b7f3=_0x43a6f2,_0x59ab0a=new _0x464ca3(_0x1d8001,_0x585ac6,_0x5cd8ef);return this[_0x59b7f3(0xcd)][_0x59b7f3(0xb1)](_0x585ac6,_0x59ab0a),_0x453e60(_0x1d8001)&&this[_0x59b7f3(0xc4)]['add'](_0x585ac6),_0x59ab0a;}[_0x43a6f2(0xeb)](_0x2d8661){const _0x7b6934=_0x43a6f2;var _0x20a8a2,_0x1aad62;const _0x1b559b=[];for(const _0x924f74 of this['_linesIds']){const _0x39eecb=this[_0x7b6934(0xcd)][_0x7b6934(0xda)](_0x924f74);if(_0x39eecb){const _0x35314d=_0x39eecb['getShapeRelation']();_0x35314d&&(((_0x20a8a2=_0x35314d[_0x7b6934(0xa9)])==null?void 0x0:_0x20a8a2[_0x7b6934(0xa7)])===_0x2d8661&&_0x1b559b['push']({..._0x35314d['from'],'lineShapeId':_0x924f74,'isFrom':!0x0}),((_0x1aad62=_0x35314d['to'])==null?void 0x0:_0x1aad62[_0x7b6934(0xa7)])===_0x2d8661&&_0x1b559b[_0x7b6934(0xef)]({..._0x35314d['to'],'lineShapeId':_0x924f74,'isFrom':!0x1}));}}return _0x1b559b;}[_0x43a6f2(0xf0)](_0x11c47f){const _0x5a6db0=_0x43a6f2,_0x13675b=this['_shapes']['get'](_0x11c47f);if(_0x13675b)return _0x13675b[_0x5a6db0(0xa8)]();}[_0x43a6f2(0xb3)](_0x5861e9){const _0x398238=_0x43a6f2,_0x3163ba=this[_0x398238(0xcd)]['get'](_0x5861e9);if(_0x3163ba)return _0x3163ba[_0x398238(0xb3)]();}[_0x43a6f2(0xe1)](_0x2ece54){const _0x51297a=_0x43a6f2;return this[_0x51297a(0xcd)]['has'](_0x2ece54);}[_0x43a6f2(0xd2)](_0x354e4b){const _0x5b7a7f=_0x43a6f2,_0x3ccd33=this['_shapes'][_0x5b7a7f(0xda)](_0x354e4b);_0x3ccd33&&(_0x453e60(_0x3ccd33[_0x5b7a7f(0xb3)]())&&this[_0x5b7a7f(0xc4)]['delete'](_0x354e4b),this[_0x5b7a7f(0xcd)][_0x5b7a7f(0xaf)](_0x354e4b));}[_0x43a6f2(0xb2)](){const _0x45916a=_0x43a6f2,_0x3ac80e=[];return this[_0x45916a(0xcd)][_0x45916a(0xba)](_0x406120=>{const _0x43546e=_0x45916a;_0x3ac80e[_0x43546e(0xef)](_0x406120[_0x43546e(0xb2)]());}),_0x3ac80e;}['fromJSON'](_0x38bb4d){const _0x46147a=_0x43a6f2;for(const _0x2ee55b of _0x38bb4d){const {id:_0x1ce412,shapeType:_0x135f41}=_0x2ee55b,_0x22130f=this[_0x46147a(0xcf)](_0x135f41,_0x1ce412,_0x2ee55b[_0x46147a(0xc3)]);_0x22130f&&_0x22130f[_0x46147a(0xea)]()&&this['_linesIds'][_0x46147a(0xd0)](_0x1ce412);}}[_0x43a6f2(0xc6)](){const _0x559412=_0x43a6f2;this[_0x559412(0xa6)]||(this[_0x559412(0xcd)]['forEach'](_0x55948f=>{const _0xa1cd4f=_0x559412;_0x55948f[_0xa1cd4f(0xc6)]();}),this[_0x559412(0xcd)]['clear'](),this['_linesIds']['clear'](),this[_0x559412(0xee)][_0x559412(0xe6)](),super['dispose']());}}var $=Object[_0x43a6f2(0xd7)],V=(_0x3b2d48,_0x1101da,_0x5b1927,_0x1be1e5)=>{const _0x3d0f82=_0x43a6f2;for(var _0x1f1281=_0x1be1e5>0x1?void 0x0:_0x1be1e5?$(_0x1101da,_0x5b1927):_0x1101da,_0x44a118=_0x3b2d48[_0x3d0f82(0xe5)]-0x1,_0x4f530c;_0x44a118>=0x0;_0x44a118--)(_0x4f530c=_0x3b2d48[_0x44a118])&&(_0x1f1281=_0x4f530c(_0x1f1281)||_0x1f1281);return _0x1f1281;},K=(_0x207a13,_0x6bb06a)=>(_0x4a4fd4,_0x59fcd4)=>_0x6bb06a(_0x4a4fd4,_0x59fcd4,_0x207a13);const W=_0x43a6f2(0xd3);let i=class extends _0x4b7b4d{constructor(_0x4a443f){const _0x40c745=_0x43a6f2;super(),d(this,_0x40c745(0xd8),new Map()),(this['_resourcesManagerService']=_0x4a443f,this[_0x40c745(0xd6)]());}[_0x43a6f2(0xe9)](_0x43f03d,_0x16e722){const _0x1609b0=_0x43a6f2;let _0xb0cb56=this['_shapeModelManagerMap'][_0x1609b0(0xda)](_0x43f03d);_0xb0cb56||(_0xb0cb56=new Map(),this[_0x1609b0(0xd8)][_0x1609b0(0xb1)](_0x43f03d,_0xb0cb56));let _0x4fa5c6=_0xb0cb56[_0x1609b0(0xda)](_0x16e722);return _0x4fa5c6||(_0x4fa5c6=new T(),_0xb0cb56[_0x1609b0(0xb1)](_0x16e722,_0x4fa5c6)),_0x4fa5c6;}[_0x43a6f2(0xc5)](_0x2b128a,_0x4653c0,_0x497e8a,_0x1dfecd,_0x210f56){const _0x398954=_0x43a6f2;this[_0x398954(0xe9)](_0x2b128a,_0x4653c0)[_0x398954(0xcf)](_0x497e8a,_0x1dfecd,_0x210f56);}['removeShape'](_0x54b567,_0x49279d,_0x22a61c){const _0x135d2a=_0x43a6f2;this[_0x135d2a(0xe9)](_0x54b567,_0x49279d)[_0x135d2a(0xd2)](_0x22a61c);}['getBasicShapeType'](_0x893c94,_0x263843,_0xffdcb6){const _0x4917b3=_0x43a6f2;return this[_0x4917b3(0xe9)](_0x893c94,_0x263843)[_0x4917b3(0xb3)](_0xffdcb6);}[_0x43a6f2(0xb3)](_0xd9a4f8,_0x41b910,_0x39d752){const _0x329ee1=_0x43a6f2;return this[_0x329ee1(0xe9)](_0xd9a4f8,_0x41b910)[_0x329ee1(0xb3)](_0x39d752);}['hasShape'](_0x56e5f0,_0x9d8c59,_0x1922d8){const _0x28d24c=_0x43a6f2;return this[_0x28d24c(0xe9)](_0x56e5f0,_0x9d8c59)[_0x28d24c(0xe1)](_0x1922d8);}['getShapeTypeById'](_0x4432c7,_0x5b2696,_0x36ef67){const _0x4cbacb=_0x43a6f2;return this[_0x4cbacb(0xe9)](_0x4432c7,_0x5b2696)['getShapeType'](_0x36ef67);}[_0x43a6f2(0xb0)](_0x32113a,_0x438962,_0x369f02){const _0x132b5e=_0x43a6f2,_0x40847f=this['_ensureShapeModelManager'](_0x32113a,_0x438962);if(!_0x40847f['getShapeType'](_0x369f02))return;const _0x48abf7=_0x40847f[_0x132b5e(0xcd)][_0x132b5e(0xda)](_0x369f02);if(_0x48abf7)return _0x48abf7[_0x132b5e(0xdc)]();}[_0x43a6f2(0xdb)](_0x3647b6,_0x13751a,_0x3afdb2){const _0x27ec61=_0x43a6f2;return this[_0x27ec61(0xe9)](_0x3647b6,_0x13751a)[_0x27ec61(0xcd)][_0x27ec61(0xda)](_0x3afdb2);}['getBasicShapeRelation'](_0x275f85,_0x13ee72,_0x155922){const _0x199e96=_0x43a6f2;return this[_0x199e96(0xe9)](_0x275f85,_0x13ee72)['getBasicShapeRelation'](_0x155922);}['getLineShapeRelation'](_0x1b10a3,_0x42d94d,_0x487c92){const _0x2b11cc=_0x43a6f2,_0x596b76=this['_ensureShapeModelManager'](_0x1b10a3,_0x42d94d)[_0x2b11cc(0xcd)][_0x2b11cc(0xda)](_0x487c92);if(_0x596b76)return _0x596b76[_0x2b11cc(0xa8)]();}[_0x43a6f2(0xdd)](){}[_0x43a6f2(0xbf)](_0x4e4052){const _0x560e86=_0x43a6f2,_0x582638={},_0x5db59c=this['_shapeModelManagerMap'][_0x560e86(0xda)](_0x4e4052);return _0x5db59c&&_0x5db59c['forEach']((_0x37e9aa,_0x4d0e4d)=>{const _0x149ea6=_0x560e86,_0x2bbf6a=_0x37e9aa[_0x149ea6(0xb2)]();_0x2bbf6a['length']>0x0&&(_0x582638[_0x4d0e4d]=_0x2bbf6a);}),JSON[_0x560e86(0xcc)](_0x582638);}['_deserializeShapeForUnit'](_0x14c70f,_0x46bc8f){const _0x57d86a=_0x43a6f2;Object[_0x57d86a(0xed)](_0x46bc8f)['forEach'](_0x29888d=>{this['_ensureShapeModelManager'](_0x14c70f,_0x29888d)['fromJSON'](_0x46bc8f[_0x29888d]);});}[_0x43a6f2(0xb2)](){const _0x5df47c=_0x43a6f2,_0x1090fa={};return this[_0x5df47c(0xd8)][_0x5df47c(0xba)]((_0x40dff7,_0x11b75)=>{const _0x130317=_0x5df47c;_0x1090fa[_0x11b75]={},_0x40dff7[_0x130317(0xba)]((_0x2b7ae2,_0x431f19)=>{_0x1090fa[_0x11b75][_0x431f19]=_0x2b7ae2['toJSON']();});}),_0x1090fa;}[_0x43a6f2(0xec)](_0xe73ca6){const _0x406ac0=_0x43a6f2;Object[_0x406ac0(0xed)](_0xe73ca6)[_0x406ac0(0xba)](_0x5defbc=>{const _0x552c11=_0x406ac0,_0x31ffc2=_0xe73ca6[_0x5defbc];Object[_0x552c11(0xed)](_0x31ffc2)['forEach'](_0x37a41c=>{const _0x412e5f=_0x552c11;this[_0x412e5f(0xe9)](_0x5defbc,_0x37a41c)['fromJSON'](_0x31ffc2[_0x37a41c]);});});}[_0x43a6f2(0xd6)](){const _0x3f1f4c=_0x43a6f2;this['_resourcesManagerService']['registerPluginResource']({'pluginName':W,'businesses':[_0x26dd27[_0x3f1f4c(0xa5)]],'toJson':_0x135b0f=>this[_0x3f1f4c(0xbf)](_0x135b0f),'parseJson':_0x77431a=>JSON[_0x3f1f4c(0xaa)](_0x77431a),'onLoad':(_0x1fb15d,_0x46aa18)=>{const _0x397169=_0x3f1f4c;this[_0x397169(0xb9)](_0x1fb15d,_0x46aa18);},'onUnLoad':_0x2bc5be=>{const _0x24ccb1=_0x3f1f4c,_0x14c061=this['_shapeModelManagerMap'][_0x24ccb1(0xda)](_0x2bc5be);_0x14c061&&(_0x14c061[_0x24ccb1(0xba)](_0x3ff9d5=>{_0x3ff9d5['dispose']();}),this[_0x24ccb1(0xd8)][_0x24ccb1(0xaf)](_0x2bc5be));}});}['dispose'](){const _0x2a4526=_0x43a6f2;this[_0x2a4526(0xd8)][_0x2a4526(0xba)](_0xeff72e=>{_0xeff72e['forEach'](_0x12e8e4=>{const _0x1058a5=_0x421c;_0x12e8e4[_0x1058a5(0xc6)]();});});}};i=V([K(0x0,_0x203dfb)],i);const u={'id':'sheet.mutation.update-shape-type','type':_0x49e1d5[_0x43a6f2(0xc0)],'handler':(_0x3c19d7,_0x188894)=>{const _0x21d03a=_0x43a6f2,{unitId:_0x1aebf1,subUnitId:_0x314803,shapeType:_0x4faacd,shapeId:_0x27bb28,shapeData:_0x5c4ca8}=_0x188894,_0x28c798=_0x3c19d7[_0x21d03a(0xda)](i)[_0x21d03a(0xdb)](_0x1aebf1,_0x314803,_0x27bb28);return _0x28c798&&(_0x28c798[_0x21d03a(0xdd)](_0x4faacd),_0x5c4ca8&&(_0x28c798==null||_0x28c798[_0x21d03a(0xde)](_0x5c4ca8))),!0x0;}},pe={'id':_0x43a6f2(0xc8),'type':_0x49e1d5[_0x43a6f2(0xbc)],'handler':(_0x4218ee,_0x3c223c)=>{const _0x3a5281=_0x43a6f2;if(!_0x3c223c)return!0x1;const _0x26fc2c=_0x4218ee[_0x3a5281(0xda)](_0x65add9),_0x589419=_0x4218ee['get'](i),_0x314748=_0x4218ee[_0x3a5281(0xda)](_0x5b7d85),_0x9e32be=[],_0x267a0f=[],{unitId:_0x24bfe6,subUnitId:_0xb884d7,shapeId:_0x3dcefa,shapeType:_0x21f3c0,shapeData:_0x47d470}=_0x3c223c,_0x5b8c68=_0x589419[_0x3a5281(0xdb)](_0x24bfe6,_0xb884d7,_0x3dcefa);if(_0x5b8c68){const _0x23fb57=_0x5b8c68[_0x3a5281(0xb3)](),_0x4ca1cc=Object[_0x3a5281(0xc2)]({},_0x5b8c68[_0x3a5281(0xdc)]()),_0x577a72={'unitId':_0x24bfe6,'subUnitId':_0xb884d7,'shapeId':_0x3dcefa,'shapeType':_0x21f3c0,'shapeData':_0x47d470},_0x341c1d={'unitId':_0x24bfe6,'subUnitId':_0xb884d7,'shapeId':_0x3dcefa,'shapeType':_0x23fb57,'shapeData':_0x4ca1cc};return _0x9e32be[_0x3a5281(0xef)]({'id':u['id'],'params':_0x577a72}),_0x267a0f[_0x3a5281(0xef)]({'id':u['id'],'params':_0x341c1d}),_0x9e32be[_0x3a5281(0xb7)](_0x437d3c=>_0x26fc2c[_0x3a5281(0xab)](_0x437d3c['id'],_0x437d3c[_0x3a5281(0xe0)]))&&_0x314748[_0x3a5281(0xac)]({'unitID':_0x24bfe6,'redoMutations':[..._0x9e32be],'undoMutations':[..._0x267a0f]}),!0x0;}return!0x1;}},Y={'id':_0x43a6f2(0xdf),'type':_0x49e1d5['MUTATION'],'handler':(_0x4ab54f,_0x35dfd5)=>{const _0x460ef1=_0x43a6f2,{unitId:_0x139b7e,subUnitId:_0x3e2378,shapeType:_0x5b3de1,shapeId:_0x3167f4,shapeData:_0x2f1bf2}=_0x35dfd5;return _0x4ab54f['get'](i)[_0x460ef1(0xc5)](_0x139b7e,_0x3e2378,_0x5b3de1,_0x3167f4,_0x2f1bf2),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x49e1d5[_0x43a6f2(0xc0)],'handler':(_0x1fad37,_0x44fc02)=>{const _0x55e4d6=_0x43a6f2,{unitId:_0x1d4c3,subUnitId:_0x3ce7d5,shapeId:_0x159aa5}=_0x44fc02;return _0x1fad37[_0x55e4d6(0xda)](i)['removeShape'](_0x1d4c3,_0x3ce7d5,_0x159aa5),!0x0;}},Q={'id':'sheet.mutation.update-shape-data','type':_0x49e1d5[_0x43a6f2(0xc0)],'handler':(_0x38d43d,_0x37d0af)=>{const _0x59c3d6=_0x43a6f2,{unitId:_0x3ba78e,subUnitId:_0x44b7ca,shapeType:_0x546535,shapeId:_0x383919,shapeData:_0x2a1b11}=_0x37d0af,_0x307f12=_0x38d43d[_0x59c3d6(0xda)](i)[_0x59c3d6(0xdb)](_0x3ba78e,_0x44b7ca,_0x383919);return _0x307f12&&(_0x546535!==void 0x0&&_0x307f12['setShapeType'](_0x546535),_0x2a1b11&&(_0x307f12==null||_0x307f12[_0x59c3d6(0xde)](_0x2a1b11,!0x0))),!0x0;}},X='sheets-shape.config',m={};function _0x421c(_0x19686e,_0x50be41){_0x19686e=_0x19686e-0xa5;const _0x14cf33=_0x14cf();let _0x421cda=_0x14cf33[_0x19686e];return _0x421cda;}var Z=Object[_0x43a6f2(0xc1)],k=Object[_0x43a6f2(0xd7)],ee=(_0x557a80,_0x3186c4,_0x80e7d7)=>_0x3186c4 in _0x557a80?Z(_0x557a80,_0x3186c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x80e7d7}):_0x557a80[_0x3186c4]=_0x80e7d7,ae=(_0x2e843e,_0xcef521,_0x311b8d,_0x344f1b)=>{const _0xc92546=_0x43a6f2;for(var _0x1333be=_0x344f1b>0x1?void 0x0:_0x344f1b?k(_0xcef521,_0x311b8d):_0xcef521,_0x383bb6=_0x2e843e[_0xc92546(0xe5)]-0x1,_0x2e3302;_0x383bb6>=0x0;_0x383bb6--)(_0x2e3302=_0x2e843e[_0x383bb6])&&(_0x1333be=_0x2e3302(_0x1333be)||_0x1333be);return _0x1333be;},g=(_0x3ff799,_0x69fafd)=>(_0x33eb9d,_0x3d7711)=>_0x69fafd(_0x33eb9d,_0x3d7711,_0x3ff799),E=(_0xa345fc,_0x3bcc12,_0x239c62)=>ee(_0xa345fc,typeof _0x3bcc12!=_0x43a6f2(0xbe)?_0x3bcc12+'':_0x3bcc12,_0x239c62);const se=_0x43a6f2(0xd3);let S=class extends _0x4cf84e{constructor(_0x143000=m,_0x114294,_0x1f05f3,_0xbfa95){const _0x4d0c73=_0x43a6f2;super(),this['_config']=_0x143000,this['_injector']=_0x114294,this[_0x4d0c73(0xe4)]=_0x1f05f3,this['_configService']=_0xbfa95;const {..._0x5ad44a}=_0x41e183({},m,this[_0x4d0c73(0xb5)]);this[_0x4d0c73(0xd9)]['setConfig'](X,_0x5ad44a),this['_initCommands']();}[_0x43a6f2(0xe3)](){const _0x3450ef=_0x43a6f2;_0x55073d(this[_0x3450ef(0xd4)],[]);}[_0x43a6f2(0xbb)](){const _0x3232fa=_0x43a6f2,_0x590c89=this['_injector'];[[T],[i]]['forEach'](_0x339708=>_0x590c89[_0x3232fa(0xd0)](_0x339708));}[_0x43a6f2(0xc7)](){const _0x1f01d8=_0x43a6f2;[Y,q,u,Q][_0x1f01d8(0xba)](_0x516021=>this[_0x1f01d8(0xb6)](this[_0x1f01d8(0xe4)][_0x1f01d8(0xc9)](_0x516021)));}};E(S,_0x43a6f2(0xbd),_0x26dd27['UNIVER_SHEET']),E(S,_0x43a6f2(0xca),se),S=ae([_0x26fc7e(_0x69e81b),g(0x1,_0x196b66(_0xf77523)),g(0x2,_0x65add9),g(0x3,_0x3ebb98)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};function _0x14cf(){const _0x595cf1=['443315WIlOiN','_deserializeShapeForUnit','forEach','onStarting','COMMAND','type','symbol','_serializeShapeForUnit','MUTATION','defineProperty','assign','shapeData','_linesIds','insertShape','dispose','_initCommands','sheet.command.update-shape-type','registerCommand','pluginName','1137750odJFmU','stringify','_shapes','587103MiAzZu','addShape','add','35enerlF','removeShape','SHEET_SHAPE_PLUGIN','_injector','764670GPObEp','_initSnapshot','getOwnPropertyDescriptor','_shapeModelManagerMap','_configService','get','getShapeModel','getShapeData','setShapeType','setShapeData','sheet.mutation.insert-shape','params','hasShape','24jiSMvf','onRendered','_commandService','length','clear','2161632OlRLlr','2gZirpw','_ensureShapeModelManager','isLineShape','getBasicShapeRelation','fromJSON','keys','_groupIds','push','getLineShapeRelation','UNIVER_SHEET','_disposed','shapeId','getShapeRelation','from','parse','syncExecuteCommand','pushUndoRedo','412073ynxJIB','260jWTktA','delete','getShapeDataById','set','toJSON','getShapeType','2541366zkoWRC','_config','disposeWithMe','every'];_0x14cf=function(){return _0x595cf1;};return _0x14cf();}
|
|
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};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x47b0e9,_0x24d308){const _0x5a1b3=_0xcdc3,_0x58beb1=_0x47b0e9();while(!![]){try{const _0x12b61f=parseInt(_0x5a1b3(0xcc))/0x1*(parseInt(_0x5a1b3(0xc7))/0x2)+parseInt(_0x5a1b3(0xca))/0x3+parseInt(_0x5a1b3(0xdf))/0x4*(parseInt(_0x5a1b3(0xbb))/0x5)+parseInt(_0x5a1b3(0xf6))/0x6*(parseInt(_0x5a1b3(0x118))/0x7)+parseInt(_0x5a1b3(0xce))/0x8+-parseInt(_0x5a1b3(0xc1))/0x9*(parseInt(_0x5a1b3(0x106))/0xa)+-parseInt(_0x5a1b3(0x105))/0xb;if(_0x12b61f===_0x24d308)break;else _0x58beb1['push'](_0x58beb1['shift']());}catch(_0x575b81){_0x58beb1['push'](_0x58beb1['shift']());}}}(_0x2e5d,0x3a03f),function(_0x4cab9e,_0x5efb44){const _0x2e36bd=_0xcdc3;typeof exports==_0x2e36bd(0xe9)&&typeof module<'u'?_0x5efb44(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x2e36bd(0xcf)&&define[_0x2e36bd(0xd6)]?define([_0x2e36bd(0xf1),_0x2e36bd(0xd3),'@univerjs-pro/engine-shape',_0x2e36bd(0x10b)],_0x5efb44):(_0x4cab9e=typeof globalThis<'u'?globalThis:_0x4cab9e||self,_0x5efb44(_0x4cab9e[_0x2e36bd(0x10e)]={},_0x4cab9e[_0x2e36bd(0xf0)],_0x4cab9e[_0x2e36bd(0xeb)],_0x4cab9e[_0x2e36bd(0xd7)]));}(this,function(_0xf1826b,_0x24aa40,_0xa66e61,_0x3dc2a3){'use strict';const _0x4e9450=_0xcdc3;var _0x5b4f17=Object[_0x4e9450(0xfb)],_0x39fae7=(_0x1faea6,_0x4f5e08,_0x265a8b)=>_0x4f5e08 in _0x1faea6?_0x5b4f17(_0x1faea6,_0x4f5e08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x265a8b}):_0x1faea6[_0x4f5e08]=_0x265a8b,_0x5b059d=(_0x31f3a2,_0x58483d,_0x3c44e2)=>_0x39fae7(_0x31f3a2,typeof _0x58483d!=_0x4e9450(0xfe)?_0x58483d+'':_0x58483d,_0x3c44e2);class _0x5dd780 extends _0x24aa40['Disposable']{constructor(){const _0x3b92a8=_0x4e9450;super(),_0x5b059d(this,_0x3b92a8(0xd0),new Map()),_0x5b059d(this,_0x3b92a8(0xc9),new Set()),_0x5b059d(this,_0x3b92a8(0x107),new Set());}['addShape'](_0x41210e,_0x1e59cd,_0x24ac79){const _0xbedccd=_0x4e9450,_0x4c5eed=new _0xa66e61['ShapeModel'](_0x41210e,_0x1e59cd,_0x24ac79);return this[_0xbedccd(0xd0)]['set'](_0x1e59cd,_0x4c5eed),_0xa66e61[_0xbedccd(0xbf)](_0x41210e)&&this[_0xbedccd(0xc9)][_0xbedccd(0xff)](_0x1e59cd),_0x4c5eed;}[_0x4e9450(0xf2)](_0x4e0a5f){const _0x1f9f16=_0x4e9450;var _0x213b00,_0x5927f8;const _0x22376b=[];for(const _0x1c2247 of this[_0x1f9f16(0xc9)]){const _0x4dd240=this['_shapes'][_0x1f9f16(0xbc)](_0x1c2247);if(_0x4dd240){const _0x44c6e6=_0x4dd240['getShapeRelation']();_0x44c6e6&&(((_0x213b00=_0x44c6e6[_0x1f9f16(0x101)])==null?void 0x0:_0x213b00[_0x1f9f16(0xd9)])===_0x4e0a5f&&_0x22376b[_0x1f9f16(0xcd)]({..._0x44c6e6[_0x1f9f16(0x101)],'lineShapeId':_0x1c2247,'isFrom':!0x0}),((_0x5927f8=_0x44c6e6['to'])==null?void 0x0:_0x5927f8[_0x1f9f16(0xd9)])===_0x4e0a5f&&_0x22376b[_0x1f9f16(0xcd)]({..._0x44c6e6['to'],'lineShapeId':_0x1c2247,'isFrom':!0x1}));}}return _0x22376b;}['getLineShapeRelation'](_0x3b75c4){const _0x2b516f=_0x4e9450,_0x4488ec=this['_shapes']['get'](_0x3b75c4);if(_0x4488ec)return _0x4488ec[_0x2b516f(0xed)]();}['getShapeType'](_0x164d20){const _0x13eaff=_0x4e9450,_0x5e729d=this[_0x13eaff(0xd0)]['get'](_0x164d20);if(_0x5e729d)return _0x5e729d[_0x13eaff(0xc4)]();}[_0x4e9450(0xc3)](_0x4c120e){const _0x36c3fb=_0x4e9450;return this[_0x36c3fb(0xd0)]['has'](_0x4c120e);}[_0x4e9450(0xec)](_0x1616e5){const _0x323baa=_0x4e9450,_0x17ba67=this[_0x323baa(0xd0)][_0x323baa(0xbc)](_0x1616e5);_0x17ba67&&(_0xa66e61['isConnectorShape'](_0x17ba67[_0x323baa(0xc4)]())&&this['_linesIds'][_0x323baa(0xc5)](_0x1616e5),this['_shapes']['delete'](_0x1616e5));}[_0x4e9450(0xd5)](){const _0xe2d13c=_0x4e9450,_0x2ace9e=[];return this['_shapes'][_0xe2d13c(0xe7)](_0x2d2d1f=>{const _0x36b45c=_0xe2d13c;_0x2ace9e['push'](_0x2d2d1f[_0x36b45c(0xd5)]());}),_0x2ace9e;}[_0x4e9450(0xdc)](_0x98817e){const _0x59280b=_0x4e9450;for(const _0x5f01c8 of _0x98817e){const {id:_0x91c90a,shapeType:_0x41d499}=_0x5f01c8,_0x31ea13=this[_0x59280b(0x113)](_0x41d499,_0x91c90a,_0x5f01c8[_0x59280b(0x102)]);_0x31ea13&&_0x31ea13[_0x59280b(0x114)]()&&this[_0x59280b(0xc9)][_0x59280b(0xff)](_0x91c90a);}}['dispose'](){const _0x71d61a=_0x4e9450;this[_0x71d61a(0x111)]||(this[_0x71d61a(0xd0)][_0x71d61a(0xe7)](_0x133021=>{_0x133021['dispose']();}),this['_shapes'][_0x71d61a(0x115)](),this[_0x71d61a(0xc9)]['clear'](),this[_0x71d61a(0x107)]['clear'](),super[_0x71d61a(0x109)]());}}var _0x1ad1a6=Object[_0x4e9450(0xdd)],_0x4b48a9=(_0xe0f487,_0x3179ca,_0x4e092a,_0x21a7d9)=>{const _0x374c38=_0x4e9450;for(var _0x45bf8a=_0x21a7d9>0x1?void 0x0:_0x21a7d9?_0x1ad1a6(_0x3179ca,_0x4e092a):_0x3179ca,_0x2133c7=_0xe0f487[_0x374c38(0xd8)]-0x1,_0x513696;_0x2133c7>=0x0;_0x2133c7--)(_0x513696=_0xe0f487[_0x2133c7])&&(_0x45bf8a=_0x513696(_0x45bf8a)||_0x45bf8a);return _0x45bf8a;},_0x10fcd8=(_0x560428,_0x52aaf9)=>(_0x56cc12,_0x3093e8)=>_0x52aaf9(_0x56cc12,_0x3093e8,_0x560428);const _0x14ff6f=_0x4e9450(0xe0);_0xf1826b[_0x4e9450(0x11c)]=class extends _0x24aa40[_0x4e9450(0xf7)]{constructor(_0x12c01e){const _0x2d34ce=_0x4e9450;super(),_0x5b059d(this,_0x2d34ce(0xc6),new Map()),(this[_0x2d34ce(0x100)]=_0x12c01e,this['_initSnapshot']());}[_0x4e9450(0xe2)](_0x14951a,_0x93b02f){const _0x185d9c=_0x4e9450;let _0x3d9bde=this[_0x185d9c(0xc6)][_0x185d9c(0xbc)](_0x14951a);_0x3d9bde||(_0x3d9bde=new Map(),this['_shapeModelManagerMap'][_0x185d9c(0xbe)](_0x14951a,_0x3d9bde));let _0xc8a5ed=_0x3d9bde[_0x185d9c(0xbc)](_0x93b02f);return _0xc8a5ed||(_0xc8a5ed=new _0x5dd780(),_0x3d9bde[_0x185d9c(0xbe)](_0x93b02f,_0xc8a5ed)),_0xc8a5ed;}[_0x4e9450(0xe8)](_0x451111,_0x534a31,_0x262016,_0x81a567,_0x4064bd){const _0x3488ed=_0x4e9450;this[_0x3488ed(0xe2)](_0x451111,_0x534a31)['addShape'](_0x262016,_0x81a567,_0x4064bd);}[_0x4e9450(0xec)](_0x71d0c5,_0x197ec6,_0x44d999){const _0xd06eb6=_0x4e9450;this[_0xd06eb6(0xe2)](_0x71d0c5,_0x197ec6)[_0xd06eb6(0xec)](_0x44d999);}[_0x4e9450(0x10d)](_0x1d6eab,_0x22085b,_0x1dc1c3){const _0x5dcdba=_0x4e9450;return this[_0x5dcdba(0xe2)](_0x1d6eab,_0x22085b)[_0x5dcdba(0xc4)](_0x1dc1c3);}[_0x4e9450(0xc4)](_0x226e84,_0x542c9a,_0x9e001e){const _0x4f8fea=_0x4e9450;return this[_0x4f8fea(0xe2)](_0x226e84,_0x542c9a)[_0x4f8fea(0xc4)](_0x9e001e);}['hasShape'](_0x50922c,_0x2d64d2,_0x3555b4){const _0x28e980=_0x4e9450;return this[_0x28e980(0xe2)](_0x50922c,_0x2d64d2)[_0x28e980(0xc3)](_0x3555b4);}['getShapeTypeById'](_0x1fd0cc,_0x33e835,_0x5985c7){const _0x15d07f=_0x4e9450;return this[_0x15d07f(0xe2)](_0x1fd0cc,_0x33e835)['getShapeType'](_0x5985c7);}[_0x4e9450(0xf4)](_0x194c47,_0x4adce3,_0x5bd8b4){const _0x3abce6=_0x4e9450,_0x22c1ae=this[_0x3abce6(0xe2)](_0x194c47,_0x4adce3);if(!_0x22c1ae[_0x3abce6(0xc4)](_0x5bd8b4))return;const _0x346cb3=_0x22c1ae[_0x3abce6(0xd0)][_0x3abce6(0xbc)](_0x5bd8b4);if(_0x346cb3)return _0x346cb3['getShapeData']();}[_0x4e9450(0xd4)](_0x380ba5,_0x43d2d8,_0x250bbf){const _0x5c6da5=_0x4e9450;return this[_0x5c6da5(0xe2)](_0x380ba5,_0x43d2d8)[_0x5c6da5(0xd0)][_0x5c6da5(0xbc)](_0x250bbf);}[_0x4e9450(0xf2)](_0x5be41f,_0x256ba9,_0x139b5c){const _0x9e686b=_0x4e9450;return this[_0x9e686b(0xe2)](_0x5be41f,_0x256ba9)[_0x9e686b(0xf2)](_0x139b5c);}[_0x4e9450(0xe1)](_0x5584e1,_0x3f3491,_0x2eecab){const _0x2651cf=_0x4e9450,_0xada7b6=this['_ensureShapeModelManager'](_0x5584e1,_0x3f3491)['_shapes']['get'](_0x2eecab);if(_0xada7b6)return _0xada7b6[_0x2651cf(0xed)]();}[_0x4e9450(0x117)](){}['_serializeShapeForUnit'](_0x360552){const _0x23d1a7=_0x4e9450,_0x5bb796={},_0x3a4036=this[_0x23d1a7(0xc6)][_0x23d1a7(0xbc)](_0x360552);return _0x3a4036&&_0x3a4036[_0x23d1a7(0xe7)]((_0x3105d4,_0x415199)=>{const _0x507331=_0x23d1a7,_0x3707ca=_0x3105d4[_0x507331(0xd5)]();_0x3707ca[_0x507331(0xd8)]>0x0&&(_0x5bb796[_0x415199]=_0x3707ca);}),JSON['stringify'](_0x5bb796);}['_deserializeShapeForUnit'](_0x4cd4c4,_0x2873b2){const _0x45af9a=_0x4e9450;Object[_0x45af9a(0xda)](_0x2873b2)['forEach'](_0x2df950=>{const _0x3ba869=_0x45af9a;this[_0x3ba869(0xe2)](_0x4cd4c4,_0x2df950)[_0x3ba869(0xdc)](_0x2873b2[_0x2df950]);});}['toJSON'](){const _0x370057={};return this['_shapeModelManagerMap']['forEach']((_0x255b46,_0x394038)=>{_0x370057[_0x394038]={},_0x255b46['forEach']((_0x1463b7,_0xce49a3)=>{const _0x158ffd=_0xcdc3;_0x370057[_0x394038][_0xce49a3]=_0x1463b7[_0x158ffd(0xd5)]();});}),_0x370057;}[_0x4e9450(0xdc)](_0x5b3e4e){const _0x4f7a49=_0x4e9450;Object[_0x4f7a49(0xda)](_0x5b3e4e)[_0x4f7a49(0xe7)](_0x4d366e=>{const _0x3cd270=_0x4f7a49,_0x4c03e8=_0x5b3e4e[_0x4d366e];Object[_0x3cd270(0xda)](_0x4c03e8)[_0x3cd270(0xe7)](_0x36e3b7=>{const _0x2ccad7=_0x3cd270;this[_0x2ccad7(0xe2)](_0x4d366e,_0x36e3b7)[_0x2ccad7(0xdc)](_0x4c03e8[_0x36e3b7]);});});}['_initSnapshot'](){const _0x465671=_0x4e9450;this[_0x465671(0x100)][_0x465671(0xf8)]({'pluginName':_0x14ff6f,'businesses':[_0x24aa40['UniverInstanceType'][_0x465671(0x116)]],'toJson':_0x2df201=>this[_0x465671(0xf9)](_0x2df201),'parseJson':_0x13dcc9=>JSON['parse'](_0x13dcc9),'onLoad':(_0x578663,_0xb96c4b)=>{this['_deserializeShapeForUnit'](_0x578663,_0xb96c4b);},'onUnLoad':_0x20aa50=>{const _0x2dea66=_0x465671,_0x326850=this['_shapeModelManagerMap'][_0x2dea66(0xbc)](_0x20aa50);_0x326850&&(_0x326850[_0x2dea66(0xe7)](_0x1d4804=>{const _0x483d07=_0x2dea66;_0x1d4804[_0x483d07(0x109)]();}),this['_shapeModelManagerMap'][_0x2dea66(0xc5)](_0x20aa50));}});}[_0x4e9450(0x109)](){const _0x384aff=_0x4e9450;this[_0x384aff(0xc6)][_0x384aff(0xe7)](_0x105ba9=>{_0x105ba9['forEach'](_0x231cad=>{const _0x2e66f2=_0xcdc3;_0x231cad[_0x2e66f2(0x109)]();});});}},_0xf1826b['SheetsShapeService']=_0x4b48a9([_0x10fcd8(0x0,_0x24aa40['IResourceManagerService'])],_0xf1826b['SheetsShapeService']);const _0xaddb7d={'id':_0x4e9450(0xc2),'type':_0x24aa40[_0x4e9450(0x11a)][_0x4e9450(0xd1)],'handler':(_0x22ea88,_0x242cf9)=>{const _0xc40811=_0x4e9450,{unitId:_0x18578d,subUnitId:_0x117246,shapeType:_0xe978f4,shapeId:_0x134913,shapeData:_0x3fc36c}=_0x242cf9,_0x211fef=_0x22ea88[_0xc40811(0xbc)](_0xf1826b[_0xc40811(0x11c)])[_0xc40811(0xd4)](_0x18578d,_0x117246,_0x134913);return _0x211fef&&(_0x211fef[_0xc40811(0x117)](_0xe978f4),_0x3fc36c&&(_0x211fef==null||_0x211fef[_0xc40811(0xdb)](_0x3fc36c))),!0x0;}},_0xc31978={'id':_0x4e9450(0xe3),'type':_0x24aa40[_0x4e9450(0x11a)][_0x4e9450(0x11b)],'handler':(_0xcfdde4,_0x4bbe6e)=>{const _0xd4f14d=_0x4e9450;if(!_0x4bbe6e)return!0x1;const _0x4cde58=_0xcfdde4[_0xd4f14d(0xbc)](_0x24aa40['ICommandService']),_0x513936=_0xcfdde4[_0xd4f14d(0xbc)](_0xf1826b[_0xd4f14d(0x11c)]),_0x460435=_0xcfdde4['get'](_0x24aa40[_0xd4f14d(0xc8)]),_0x165394=[],_0x302b2e=[],{unitId:_0x329586,subUnitId:_0x45a801,shapeId:_0x1c0115,shapeType:_0x548860,shapeData:_0x27c10f}=_0x4bbe6e,_0x1e4028=_0x513936['getShapeModel'](_0x329586,_0x45a801,_0x1c0115);if(_0x1e4028){const _0x4b54da=_0x1e4028[_0xd4f14d(0xc4)](),_0x2bf42f=Object[_0xd4f14d(0xe5)]({},_0x1e4028[_0xd4f14d(0x10f)]()),_0x18d012={'unitId':_0x329586,'subUnitId':_0x45a801,'shapeId':_0x1c0115,'shapeType':_0x548860,'shapeData':_0x27c10f},_0xb6e789={'unitId':_0x329586,'subUnitId':_0x45a801,'shapeId':_0x1c0115,'shapeType':_0x4b54da,'shapeData':_0x2bf42f};return _0x165394['push']({'id':_0xaddb7d['id'],'params':_0x18d012}),_0x302b2e[_0xd4f14d(0xcd)]({'id':_0xaddb7d['id'],'params':_0xb6e789}),_0x165394[_0xd4f14d(0xe6)](_0x1b8afa=>_0x4cde58['syncExecuteCommand'](_0x1b8afa['id'],_0x1b8afa['params']))&&_0x460435[_0xd4f14d(0x112)]({'unitID':_0x329586,'redoMutations':[..._0x165394],'undoMutations':[..._0x302b2e]}),!0x0;}return!0x1;}},_0x446377={'id':'sheet.mutation.insert-shape','type':_0x24aa40[_0x4e9450(0x11a)]['MUTATION'],'handler':(_0x5591bb,_0xc2ae62)=>{const _0x3801a4=_0x4e9450,{unitId:_0x20ec48,subUnitId:_0x4a411b,shapeType:_0x4c927f,shapeId:_0x59e421,shapeData:_0xcb105f}=_0xc2ae62;return _0x5591bb[_0x3801a4(0xbc)](_0xf1826b['SheetsShapeService'])[_0x3801a4(0xe8)](_0x20ec48,_0x4a411b,_0x4c927f,_0x59e421,_0xcb105f),!0x0;}},_0x42b5e3={'id':'sheet.mutation.remove-shape','type':_0x24aa40[_0x4e9450(0x11a)][_0x4e9450(0xd1)],'handler':(_0x3d6017,_0x30a677)=>{const _0x455a2d=_0x4e9450,{unitId:_0x56eacf,subUnitId:_0x237207,shapeId:_0x3641ab}=_0x30a677;return _0x3d6017[_0x455a2d(0xbc)](_0xf1826b['SheetsShapeService'])[_0x455a2d(0xec)](_0x56eacf,_0x237207,_0x3641ab),!0x0;}},_0x85a31a={'id':_0x4e9450(0xef),'type':_0x24aa40[_0x4e9450(0x11a)]['MUTATION'],'handler':(_0x7dea4f,_0x282d46)=>{const _0x14eef6=_0x4e9450,{unitId:_0x3c6dbc,subUnitId:_0x5cfb31,shapeType:_0x2c26a2,shapeId:_0xab76a3,shapeData:_0xc37e9e}=_0x282d46,_0x463b7c=_0x7dea4f[_0x14eef6(0xbc)](_0xf1826b[_0x14eef6(0x11c)])[_0x14eef6(0xd4)](_0x3c6dbc,_0x5cfb31,_0xab76a3);return _0x463b7c&&(_0x2c26a2!==void 0x0&&_0x463b7c[_0x14eef6(0x117)](_0x2c26a2),_0xc37e9e&&(_0x463b7c==null||_0x463b7c[_0x14eef6(0xdb)](_0xc37e9e,!0x0))),!0x0;}},_0x3f87e1='sheets-shape.config',_0x2ae075={};var _0x7f9b34=Object[_0x4e9450(0xfb)],_0x1c2c88=Object[_0x4e9450(0xdd)],_0x2c3818=(_0x38617b,_0x33c28d,_0x500bd4)=>_0x33c28d in _0x38617b?_0x7f9b34(_0x38617b,_0x33c28d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x500bd4}):_0x38617b[_0x33c28d]=_0x500bd4,_0x3e28c8=(_0x5c97bb,_0x41e9e5,_0x237b37,_0x3ff651)=>{const _0x52fc31=_0x4e9450;for(var _0x57afa2=_0x3ff651>0x1?void 0x0:_0x3ff651?_0x1c2c88(_0x41e9e5,_0x237b37):_0x41e9e5,_0x45542f=_0x5c97bb[_0x52fc31(0xd8)]-0x1,_0x5027a0;_0x45542f>=0x0;_0x45542f--)(_0x5027a0=_0x5c97bb[_0x45542f])&&(_0x57afa2=_0x5027a0(_0x57afa2)||_0x57afa2);return _0x57afa2;},_0x5d6855=(_0x4d655b,_0x358d50)=>(_0x10f098,_0x4cad10)=>_0x358d50(_0x10f098,_0x4cad10,_0x4d655b),_0x302986=(_0x2f1ff3,_0x48f32f,_0x253d33)=>_0x2c3818(_0x2f1ff3,typeof _0x48f32f!=_0x4e9450(0xfe)?_0x48f32f+'':_0x48f32f,_0x253d33);const _0xc9b457=_0x4e9450(0xe0);_0xf1826b[_0x4e9450(0xde)]=class extends _0x24aa40[_0x4e9450(0x10c)]{constructor(_0xcee4c5=_0x2ae075,_0xb8e4b6,_0x28e725,_0x40e8a3){const _0x4fe6dc=_0x4e9450;super(),this[_0x4fe6dc(0x108)]=_0xcee4c5,this[_0x4fe6dc(0x10a)]=_0xb8e4b6,this[_0x4fe6dc(0xea)]=_0x28e725,this[_0x4fe6dc(0xc0)]=_0x40e8a3;const {..._0x30d473}=_0x24aa40['merge']({},_0x2ae075,this[_0x4fe6dc(0x108)]);this[_0x4fe6dc(0xc0)][_0x4fe6dc(0x110)](_0x3f87e1,_0x30d473),this[_0x4fe6dc(0xd2)]();}['onRendered'](){_0x24aa40['touchDependencies'](this['_injector'],[]);}[_0x4e9450(0xfd)](){const _0xfb17e1=_0x4e9450,_0x2133ea=this[_0xfb17e1(0x10a)];[[_0x5dd780],[_0xf1826b[_0xfb17e1(0x11c)]]][_0xfb17e1(0xe7)](_0x4d614c=>_0x2133ea[_0xfb17e1(0xff)](_0x4d614c));}['_initCommands'](){const _0x5cb229=_0x4e9450;[_0x446377,_0x42b5e3,_0xaddb7d,_0x85a31a][_0x5cb229(0xe7)](_0x8f7290=>this['disposeWithMe'](this[_0x5cb229(0xea)][_0x5cb229(0xfa)](_0x8f7290)));}},_0x302986(_0xf1826b[_0x4e9450(0xde)],'type',_0x24aa40['UniverInstanceType'][_0x4e9450(0x116)]),_0x302986(_0xf1826b['UniverSheetsShapePlugin'],_0x4e9450(0x119),_0xc9b457),_0xf1826b['UniverSheetsShapePlugin']=_0x3e28c8([_0x24aa40[_0x4e9450(0xf3)](_0x3dc2a3[_0x4e9450(0xf5)]),_0x5d6855(0x1,_0x24aa40['Inject'](_0x24aa40[_0x4e9450(0xfc)])),_0x5d6855(0x2,_0x24aa40[_0x4e9450(0x104)]),_0x5d6855(0x3,_0x24aa40[_0x4e9450(0xcb)])],_0xf1826b[_0x4e9450(0xde)]),_0xf1826b[_0x4e9450(0xe4)]=_0x446377,_0xf1826b['RemoveSheetsShapeMutation']=_0x42b5e3,_0xf1826b[_0x4e9450(0x103)]=_0x85a31a,_0xf1826b['UpdateSheetsShapeTypeCommand']=_0xc31978,_0xf1826b[_0x4e9450(0xbd)]=_0xaddb7d,Object[_0x4e9450(0xfb)](_0xf1826b,Symbol['toStringTag'],{'value':_0x4e9450(0xee)});}));function _0xcdc3(_0x299850,_0x3ef417){_0x299850=_0x299850-0xbb;const _0x2e5db3=_0x2e5d();let _0xcdc31e=_0x2e5db3[_0x299850];return _0xcdc31e;}function _0x2e5d(){const _0x257fea=['_initCommands','@univerjs/core','getShapeModel','toJSON','amd','UniverProLicense','length','shapeId','keys','setShapeData','fromJSON','getOwnPropertyDescriptor','UniverSheetsShapePlugin','8qrHryj','SHEET_SHAPE_PLUGIN','getLineShapeRelation','_ensureShapeModelManager','sheet.command.update-shape-type','InsertSheetsShapeMutation','assign','every','forEach','insertShape','object','_commandService','UniverProEngineShape','removeShape','getShapeRelation','Module','sheet.mutation.update-shape-data','UniverCore','exports','getBasicShapeRelation','DependentOn','getShapeDataById','UniverLicensePlugin','2298LkqduI','Disposable','registerPluginResource','_serializeShapeForUnit','registerCommand','defineProperty','Injector','onStarting','symbol','add','_resourcesManagerService','from','shapeData','UpdateSheetsShapeDataMutation','ICommandService','11899272vrOxmD','543990KsJLXX','_groupIds','_config','dispose','_injector','@univerjs-pro/license','Plugin','getBasicShapeType','UniverProSheetsShape','getShapeData','setConfig','_disposed','pushUndoRedo','addShape','isLineShape','clear','UNIVER_SHEET','setShapeType','8603WKdgyK','pluginName','CommandType','COMMAND','SheetsShapeService','699370RLHqjG','get','UpdateSheetsShapeTypeMutation','set','isConnectorShape','_configService','18fxUDJB','sheet.mutation.update-shape-type','hasShape','getShapeType','delete','_shapeModelManagerMap','6AFJppT','IUndoRedoService','_linesIds','1054812xUKLnP','IConfigService','59394blgEHr','push','1183520jtCfaU','function','_shapes','MUTATION'];_0x2e5d=function(){return _0x257fea;};return _0x2e5d();}
|
|
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();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/sheets-shape",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "shape for Univer.",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
"rxjs": ">=7.0.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@univerjs-pro/engine-shape": "0.16.
|
|
61
|
-
"@univerjs-pro/license": "0.16.
|
|
62
|
-
"@univerjs/core": "0.16.
|
|
60
|
+
"@univerjs-pro/engine-shape": "0.16.1",
|
|
61
|
+
"@univerjs-pro/license": "0.16.1",
|
|
62
|
+
"@univerjs/core": "0.16.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"rxjs": "7.8.2",
|
|
66
66
|
"typescript": "^5.9.3",
|
|
67
67
|
"vite": "^7.3.1",
|
|
68
68
|
"vitest": "^4.0.18",
|
|
69
|
-
"@univerjs-infra/shared": "0.16.
|
|
70
|
-
"@univerjs/sheets": "0.16.
|
|
69
|
+
"@univerjs-infra/shared": "0.16.1",
|
|
70
|
+
"@univerjs/sheets": "0.16.1"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"test": "vitest run",
|