@univerjs-pro/engine-shape 1.0.0-alpha.3 → 1.0.0-alpha.4
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/facade.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -0
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -0
- package/lib/index.js +1 -1
- package/lib/types/config/config.d.ts +5 -0
- package/lib/types/facade/f-connector-shape.d.ts +257 -0
- package/lib/types/facade/f-enum.d.ts +246 -0
- package/lib/types/facade/f-shape-text.d.ts +281 -0
- package/lib/types/facade/f-shape.d.ts +625 -0
- package/lib/types/facade/index.d.ts +6 -0
- package/lib/types/index.d.ts +15 -3
- package/lib/types/models/shape-model.d.ts +1 -1
- package/lib/types/plugin.d.ts +13 -0
- package/lib/types/services/connector-shape-host-adapter.d.ts +40 -0
- package/lib/types/services/connector-shape-host-adapter.service.d.ts +55 -0
- package/lib/types/services/shape-host-adapter.service.d.ts +103 -0
- package/lib/types/shape-type.d.ts +72 -19
- package/lib/types/utils/connector.util.d.ts +15 -0
- package/lib/types/utils/shape-shadow.util.d.ts +8 -0
- package/lib/types/utils/shape-text-behavior.util.d.ts +10 -2
- package/lib/types/utils/shape-text-converter.d.ts +14 -0
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +1 -1
- package/package.json +15 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x20c3(_0x99fd55,_0x1ac25d){_0x99fd55=_0x99fd55-0x127;const _0x57962f=_0x5796();let _0x20c343=_0x57962f[_0x99fd55];return _0x20c343;}function _0x5796(){const _0x30303e=['getAdjustPoints','setStrokeWidth','FConnectorShape','GradientFill','linear','applyShapeTextStyle','updateShape','mode','_mutateConnector','set\x20route\x20points','Shape\x20height\x20must\x20be\x20greater\x20than\x20zero.','bringForward','radial','unbindStart','Connector\x20relationships\x20and\x20route\x20points\x20require\x20FConnectorShape.','startArrow','setRichText','offsetX','_getConnectorSnapshot','_patchStroke','setShapeData','isVisible','sendBackward','[Shape\x20Text\x20Facade]:\x20Shape\x20\x22','shapeType','getDrawingPoints','15980382bnhMnT','[Shape\x20Facade]:\x20','gradient','setNoneFill','_getShapeData','\x22\x20requires\x20Connector\x20Shape\x20data.','setSelectable','length','getShape','setShapeType','shapeTextToRichTextValue','setImageFill','NoLine','ShapeTextAutoFitType','unbind\x20end','getRichText','3280445UnyNLA','resolveShapeTextBoxOptions','getHostType','SolidLine','getText','extend','toPlainText','setBold','PictureFill','Module','setSolidFill','every','Tools','setName','Shape\x20width\x20must\x20be\x20greater\x20than\x20zero.','[Shape\x20Text\x20Facade]:\x20Gradient\x20text\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','FALSE','[Shape\x20Facade]:\x20Failed\x20to\x20','getConnectionSites','none','get','[Shape\x20Facade]:\x20Failed\x20to\x20resolve\x20geometry\x20for\x20Shape\x20\x22','height','FBase','_shapeRef','bindEnd','[Shape\x20Facade]:\x20Connector\x20\x22','\x20Shape\x20\x22','\x22\x20requires\x20a\x20Connector\x20Shape\x20type.','IConnectorShapeHostAdapter','2325JptKwH','flipY','Linear','Radial','remove','getSnapshot','selectable','\x22\x20must\x20be\x20boolean.','isInteger','getStartConnectInfo','TRUE','setStrokeLineType','bring\x20forward','[Shape\x20Facade]:\x20Shape\x20\x22','setEndArrow','setCustomGeometry','6523864VUuhEy','deepClone','SolidFill','setTextBoxOptions','sendToBack','FShapeText','relation','set\x20start\x20point','top','getEndEndpoint','2122meZHdJ','setGradientFill','setStartPoint','ShapeFillEnum','ShapeTextWrapType','isConnectorShape','setTransform','ShapeTypeEnum','setVerticalAlign','ShapeLineJoinEnum','ImageFillModeEnum','_bind','description','IShapeHostAdapterRegistry','6xOnQAT','isFinite','setStartArrow','ShapeGradientTypeEnum','shapeText','getConnectionSiteList','Tile','BooleanNumber','\x20Connector\x20Shape\x20\x22','setUnderline','set\x20end\x20point','unbindEnd','diamond','color','applyShapeTextAlignment','tile','scaleY','width','stretch','customGeometry','lineStrokeType','_getAdapter','setFontFamily','transform','isCustomShape','\x22\x20must\x20be\x20finite.','hostType','shapeId','setSize','toStringTag','send\x20backward','visible','removeShape','setHorizontalAlign','728449XkywYr','bring\x20to\x20front','setRoutePoints','3190692EabcrR','ShapeModel','_injector','getDescription','ShapeLineTypeEnum','setRotation','createInstance','setAbsolutePosition','boolean','opacity','solid','update','ShapeLineDashEnum','bindStart','\x22\x20points\x20must\x20contain\x20finite\x20coordinates.','_updateShapeData','_getGeometryModel','ImageSourceTypeEnum','end','rgba(0,\x200,\x200,\x200)','ShapeArrowSizeEnum','rotation','map','picture','warn','ShapeArrowTypeEnum','getEndConnectInfo','_patchShapeData','getRoutePoints','offsetY','getStartEndpoint','start','setEndPoint','setStrokeLineCapType','Angular','getTextBoxOptions','applyTextToShapeText','getTransform','routePoints','ShapeImageSourceTypeEnum','setVisible','getPlainText','ShapeTextDirection','7472801kiUzmx','bringToFront','set\x20end\x20arrow','ShapeLineCapEnum','_mutate','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Connector\x20Shape\x20\x22','setTextStyle','FShape','unbind\x20start','ShapeImageFillModeEnum','_getSnapshot','shapeData','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','getId','\x22\x20text.','getShapeData','_getConnectorAdapter','[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22','[Shape\x20Facade]:\x20Gradient\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.'];_0x5796=function(){return _0x30303e;};return _0x5796();}const _0x665fdc=_0x20c3;(function(_0x5befe5,_0x656fae){const _0x266b70=_0x20c3,_0x4b45c5=_0x5befe5();while(!![]){try{const _0xbabb3b=-parseInt(_0x266b70(0x1da))/0x1+-parseInt(_0x266b70(0x1aa))/0x2*(parseInt(_0x266b70(0x190))/0x3)+parseInt(_0x266b70(0x1dd))/0x4+-parseInt(_0x266b70(0x172))/0x5+parseInt(_0x266b70(0x1b8))/0x6*(parseInt(_0x266b70(0x135))/0x7)+-parseInt(_0x266b70(0x1a0))/0x8+parseInt(_0x266b70(0x162))/0x9;if(_0xbabb3b===_0x656fae)break;else _0x4b45c5['push'](_0x4b45c5['shift']());}catch(_0x1c4c9d){_0x4b45c5['push'](_0x4b45c5['shift']());}}}(_0x5796,0x97016),Object['defineProperty'](exports,Symbol[_0x665fdc(0x1d5)],{'value':_0x665fdc(0x17b)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs/core/facade'),n=require('@univerjs/core');var r=class extends t['FEnum']{get[_0x665fdc(0x1b1)](){return e['ShapeTypeEnum'];}get[_0x665fdc(0x1ad)](){const _0x5223be=_0x665fdc;return e[_0x5223be(0x1ad)];}get['ShapeGradientTypeEnum'](){const _0x18d24f=_0x665fdc;return e[_0x18d24f(0x1bb)];}get[_0x665fdc(0x13e)](){const _0x45c48d=_0x665fdc;return e[_0x45c48d(0x1b4)];}get[_0x665fdc(0x131)](){const _0x20f3d0=_0x665fdc;return e[_0x20f3d0(0x1ee)];}get['ShapeLineTypeEnum'](){return e['ShapeLineTypeEnum'];}get['ShapeLineDashEnum'](){const _0x35133e=_0x665fdc;return e[_0x35133e(0x1e9)];}get['ShapeLineCapEnum'](){const _0xc49a3f=_0x665fdc;return e[_0xc49a3f(0x138)];}get['ShapeLineJoinEnum'](){const _0x361269=_0x665fdc;return e[_0x361269(0x1b3)];}get['ShapeOperatorEnum'](){return e['ShapeOperatorEnum'];}get[_0x665fdc(0x1f6)](){const _0x40f537=_0x665fdc;return e[_0x40f537(0x1f6)];}get[_0x665fdc(0x1f1)](){const _0x53955f=_0x665fdc;return e[_0x53955f(0x1f1)];}get['ShapeTextAutoFitType'](){const _0x24296a=_0x665fdc;return e[_0x24296a(0x16f)];}get[_0x665fdc(0x134)](){const _0x3d91e1=_0x665fdc;return e[_0x3d91e1(0x134)];}get['ShapeTextWrapType'](){const _0x483219=_0x665fdc;return e[_0x483219(0x1ae)];}};t['FEnum'][_0x665fdc(0x177)](r);function i(_0x2a9070){const _0x5dec4a=_0x665fdc;switch(_0x2a9070){case e['ShapeGradientTypeEnum'][_0x5dec4a(0x193)]:return _0x5dec4a(0x154);case e[_0x5dec4a(0x1bb)][_0x5dec4a(0x12c)]:return'angular';case e[_0x5dec4a(0x1bb)]['Diamond']:return _0x5dec4a(0x1c4);case e['ShapeGradientTypeEnum'][_0x5dec4a(0x192)]:default:return _0x5dec4a(0x14c);}}function a(_0x424917){const _0x669326=_0x665fdc;return _0x424917===e[_0x669326(0x1b4)][_0x669326(0x1be)]?_0x669326(0x1c7):_0x669326(0x1ca);}var o=class{constructor(_0x21a668,_0x373aa1){const _0x3c2ac5=_0x665fdc;this['_shapeRef']=_0x21a668,this[_0x3c2ac5(0x1df)]=_0x373aa1;}['getRichText'](){const _0x1d5398=_0x665fdc;var _0x5f39c5;return(0x0,e[_0x1d5398(0x16c)])((_0x5f39c5=this[_0x1d5398(0x166)]())==null?void 0x0:_0x5f39c5[_0x1d5398(0x1bc)]);}[_0x665fdc(0x133)](){const _0x37f38b=_0x665fdc;var _0x506988,_0x288eb0;return(_0x506988=(_0x288eb0=this[_0x37f38b(0x171)]())==null?void 0x0:_0x288eb0[_0x37f38b(0x178)]())==null?null:_0x506988;}[_0x665fdc(0x158)](_0x145315){return this['_updateShapeData'](_0x43a4ab=>({..._0x43a4ab,'shapeText':(0x0,e['applyRichTextToShapeText'])(_0x43a4ab['shapeText'],_0x145315)})),this;}['setText'](_0x3c419e){const _0x388831=_0x665fdc;return this[_0x388831(0x1ec)](_0x1a4002=>({..._0x1a4002,'shapeText':(0x0,e[_0x388831(0x12e)])(_0x1a4002[_0x388831(0x1bc)],_0x3c419e)})),this;}[_0x665fdc(0x13b)](_0x3f7c72){const _0x23882f=_0x665fdc;return this[_0x23882f(0x1ec)](_0x1ffa87=>({..._0x1ffa87,'shapeText':(0x0,e[_0x23882f(0x14d)])(_0x1ffa87[_0x23882f(0x1bc)],_0x3f7c72)})),this;}['setColor'](_0x51073c,_0x12ae8c){const _0x24e5ec=_0x665fdc;return this[_0x24e5ec(0x13b)]({'cl':{'rgb':_0x51073c},'textFill':{'type':_0x24e5ec(0x1e7),'color':_0x51073c,'opacity':_0x12ae8c}});}[_0x665fdc(0x165)](){const _0x189a77=_0x665fdc;return this[_0x189a77(0x13b)]({'cl':{'rgb':_0x189a77(0x1f0)},'textFill':{'type':_0x189a77(0x185)}});}[_0x665fdc(0x1ab)](_0x576892,_0x5017ce,_0x2ad470){const _0x19e438=_0x665fdc;return _0x5017ce[_0x19e438(0x169)]<0x2?(console['warn'](_0x19e438(0x181)),this):this[_0x19e438(0x13b)]({'cl':{'rgb':_0x5017ce[0x0][_0x19e438(0x1c5)]},'textFill':{'type':_0x19e438(0x164),'gradient':{'type':i(_0x576892),'angle':_0x2ad470,'stops':_0x5017ce['map'](({position:_0x517c39,color:_0x11e9e0,opacity:_0x10bcff})=>({'offset':_0x517c39,'color':_0x11e9e0,'opacity':_0x10bcff}))}}});}[_0x665fdc(0x16d)](_0x12f606,_0x373e3f=e[_0x665fdc(0x1ee)]['URL'],_0x18b863={}){const _0x3bd847=_0x665fdc;return this['setTextStyle']({'textFill':{'type':_0x3bd847(0x1f4),'picture':{'source':_0x12f606,'sourceType':_0x373e3f,'opacity':_0x18b863[_0x3bd847(0x1e6)],'mode':a(_0x18b863[_0x3bd847(0x14f)]),'scaleX':_0x18b863['scaleX'],'scaleY':_0x18b863[_0x3bd847(0x1c8)],'offsetX':_0x18b863[_0x3bd847(0x159)],'offsetY':_0x18b863[_0x3bd847(0x127)]}}});}['setFontSize'](_0x3d0e49){const _0x58a24c=_0x665fdc;return this[_0x58a24c(0x13b)]({'fs':_0x3d0e49});}[_0x665fdc(0x1ce)](_0x13abd6){const _0x4b3831=_0x665fdc;return this[_0x4b3831(0x13b)]({'ff':_0x13abd6});}[_0x665fdc(0x179)](_0x29e255){const _0x3a95be=_0x665fdc;return this[_0x3a95be(0x13b)]({'bl':_0x29e255?n[_0x3a95be(0x1bf)][_0x3a95be(0x19a)]:n['BooleanNumber'][_0x3a95be(0x182)]});}['setItalic'](_0x1ad242){const _0xd36f87=_0x665fdc;return this[_0xd36f87(0x13b)]({'it':_0x1ad242?n['BooleanNumber'][_0xd36f87(0x19a)]:n[_0xd36f87(0x1bf)]['FALSE']});}[_0x665fdc(0x1c1)](_0x1fb8fc){const _0x18fe56=_0x665fdc;return this[_0x18fe56(0x13b)]({'ul':{'s':_0x1fb8fc?n[_0x18fe56(0x1bf)][_0x18fe56(0x19a)]:n['BooleanNumber'][_0x18fe56(0x182)]}});}['setStrikethrough'](_0x2079cb){const _0x2a7b90=_0x665fdc;return this[_0x2a7b90(0x13b)]({'st':{'s':_0x2079cb?n[_0x2a7b90(0x1bf)][_0x2a7b90(0x19a)]:n[_0x2a7b90(0x1bf)][_0x2a7b90(0x182)]}});}[_0x665fdc(0x1d9)](_0x5dcb78){const _0x274495=_0x665fdc;return this['_updateShapeData'](_0x22a49d=>(0x0,e[_0x274495(0x1c6)])(_0x22a49d,{'horizontalAlign':_0x5dcb78})),this;}[_0x665fdc(0x1b2)](_0x2618ac){const _0x128b61=_0x665fdc;return this[_0x128b61(0x1ec)](_0x47abd0=>(0x0,e[_0x128b61(0x1c6)])(_0x47abd0,{'verticalAlign':_0x2618ac})),this;}[_0x665fdc(0x12d)](){const _0x27ee74=_0x665fdc;let _0x3eea30=this['_getShapeData']();return _0x3eea30?(0x0,e[_0x27ee74(0x173)])(_0x3eea30):null;}[_0x665fdc(0x1a3)](_0x1508a9){const _0x542135=_0x665fdc;return this[_0x542135(0x1ec)](_0x5066b3=>(0x0,e['applyShapeTextBoxOptions'])(_0x5066b3,_0x1508a9)),this;}['_getAdapter'](){const _0x34c08f=_0x665fdc;return this[_0x34c08f(0x1df)][_0x34c08f(0x186)](e[_0x34c08f(0x1b7)])[_0x34c08f(0x186)](this[_0x34c08f(0x18a)][_0x34c08f(0x1d2)]);}['_getShapeData'](){const _0x1f3d88=_0x665fdc;let _0xa27e56=this['_getAdapter']();if(!_0xa27e56)return null;try{var _0x2c18da;return((_0x2c18da=_0xa27e56[_0x1f3d88(0x16a)](this[_0x1f3d88(0x18a)]))==null?void 0x0:_0x2c18da[_0x1f3d88(0x140)])||(console[_0x1f3d88(0x1f5)](_0x1f3d88(0x15f)+this[_0x1f3d88(0x18a)][_0x1f3d88(0x1d3)]+'\x22\x20was\x20not\x20found.'),null);}catch(_0x1f5830){return console['warn']('[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22'+this[_0x1f3d88(0x18a)][_0x1f3d88(0x1d3)]+'\x22\x20text.',_0x1f5830),null;}}[_0x665fdc(0x1ec)](_0x41a26b){const _0x5f78f=_0x665fdc;let _0x5ca224=this[_0x5f78f(0x1cd)]();if(!_0x5ca224)return!0x1;try{var _0x129c2f;let _0xdd7fb=(_0x129c2f=_0x5ca224[_0x5f78f(0x16a)](this[_0x5f78f(0x18a)]))==null?void 0x0:_0x129c2f[_0x5f78f(0x140)];if(!_0xdd7fb)return console[_0x5f78f(0x1f5)](_0x5f78f(0x15f)+this['_shapeRef'][_0x5f78f(0x1d3)]+'\x22\x20was\x20not\x20found.'),!0x1;let _0xa1ce12=_0x5ca224[_0x5f78f(0x14e)](this[_0x5f78f(0x18a)],{'shapeData':_0x41a26b(_0xdd7fb)});return _0xa1ce12||console[_0x5f78f(0x1f5)]('[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22'+this[_0x5f78f(0x18a)][_0x5f78f(0x1d3)]+_0x5f78f(0x143)),_0xa1ce12;}catch(_0x15485a){return console[_0x5f78f(0x1f5)]('[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22'+this[_0x5f78f(0x18a)][_0x5f78f(0x1d3)]+'\x22\x20text.',_0x15485a),!0x1;}}},s=class extends t[_0x665fdc(0x189)]{constructor(_0x3569b3,_0x1d8108){const _0x374477=_0x665fdc;super(),this[_0x374477(0x18a)]=_0x3569b3,this[_0x374477(0x1df)]=_0x1d8108;}['isConnectorShape'](){return!0x1;}[_0x665fdc(0x142)](){const _0x5e2c9a=_0x665fdc;return this[_0x5e2c9a(0x18a)][_0x5e2c9a(0x1d3)];}['getName'](){const _0x325ed9=_0x665fdc;var _0x2c46f4;return(_0x2c46f4=this[_0x325ed9(0x13f)]())==null?void 0x0:_0x2c46f4['name'];}[_0x665fdc(0x17f)](_0x17b8d1){const _0x4c30f8=_0x665fdc;return this[_0x4c30f8(0x1e8)]({'name':_0x17b8d1});}[_0x665fdc(0x1e0)](){const _0x5bae36=_0x665fdc;var _0x57c47e;return(_0x57c47e=this['_getSnapshot']())==null?void 0x0:_0x57c47e[_0x5bae36(0x1b6)];}['setDescription'](_0x5421f6){const _0x56acbd=_0x665fdc;return this[_0x56acbd(0x1e8)]({'description':_0x5421f6});}[_0x665fdc(0x174)](){const _0x46ea93=_0x665fdc;return this['_shapeRef'][_0x46ea93(0x1d2)];}['getShapeType'](){const _0x27b86e=_0x665fdc;var _0x163c62,_0x25e786;return(_0x163c62=(_0x25e786=this[_0x27b86e(0x13f)]())==null?void 0x0:_0x25e786[_0x27b86e(0x160)])==null?null:_0x163c62;}['getShapeData'](){const _0x3d3b5e=_0x665fdc;let _0x13b6f8=this[_0x3d3b5e(0x13f)]();return _0x13b6f8?n[_0x3d3b5e(0x17e)][_0x3d3b5e(0x1a1)](_0x13b6f8[_0x3d3b5e(0x140)]):null;}[_0x665fdc(0x195)](){const _0x1a2620=_0x665fdc;let _0x1aae97=this['_getSnapshot']();return _0x1aae97?n[_0x1a2620(0x17e)][_0x1a2620(0x1a1)](_0x1aae97):null;}[_0x665fdc(0x12f)](){const _0x691a7c=_0x665fdc;let _0x399026=this[_0x691a7c(0x13f)]();return _0x399026?{..._0x399026[_0x691a7c(0x1cf)]}:null;}[_0x665fdc(0x15d)](){const _0x4ddb7a=_0x665fdc;var _0x2b8a79,_0x2fbbbe;return(_0x2b8a79=(_0x2fbbbe=this[_0x4ddb7a(0x13f)]())==null?void 0x0:_0x2fbbbe[_0x4ddb7a(0x1d7)])==null?!0x1:_0x2b8a79;}[_0x665fdc(0x132)](_0x4167e7){const _0x8770ea=_0x665fdc;return this[_0x8770ea(0x1e8)]({'visible':_0x4167e7});}['isSelectable'](){const _0x267ed8=_0x665fdc;var _0x3d2c39,_0x1f95ee;return(_0x3d2c39=(_0x1f95ee=this[_0x267ed8(0x13f)]())==null?void 0x0:_0x1f95ee[_0x267ed8(0x196)])==null?!0x1:_0x3d2c39;}[_0x665fdc(0x168)](_0x38c589){const _0x1d6936=_0x665fdc;return this[_0x1d6936(0x1e8)]({'selectable':_0x38c589});}[_0x665fdc(0x176)](){const _0x14b732=_0x665fdc;return this[_0x14b732(0x1df)][_0x14b732(0x1e3)](o,this[_0x14b732(0x18a)],this[_0x14b732(0x1df)]);}[_0x665fdc(0x1d0)](){const _0x34432e=_0x665fdc;let _0x3f4c03=this[_0x34432e(0x144)]();return(_0x3f4c03==null?void 0x0:_0x3f4c03['isCustom'])===!0x0&&!!_0x3f4c03[_0x34432e(0x1cb)];}['getCustomGeometry'](){const _0x45aec5=_0x665fdc;var _0x1ce4c6,_0x1122cc;return(_0x1ce4c6=(_0x1122cc=this[_0x45aec5(0x144)]())==null?void 0x0:_0x1122cc[_0x45aec5(0x1cb)])==null?null:_0x1ce4c6;}['setShapeType'](_0x4cbd6c){return this['_patchShapeData'](_0x182a44=>({..._0x182a44,'shapeType':_0x4cbd6c}),_0x4cbd6c);}[_0x665fdc(0x15c)](_0x47493a){const _0x35c841=_0x665fdc;let _0x51b679=n['Tools'][_0x35c841(0x1a1)](_0x47493a);return this[_0x35c841(0x1e8)]({'shapeType':_0x51b679[_0x35c841(0x160)],'shapeData':_0x51b679});}[_0x665fdc(0x1b0)](_0x9a96a5){const _0x360d3c=_0x665fdc;return this[_0x360d3c(0x1e8)]({'transform':_0x9a96a5});}[_0x665fdc(0x1d4)](_0x167b8b,_0x4df8cc){const _0x4f888c=_0x665fdc;return this[_0x4f888c(0x1b0)]({'width':_0x167b8b,'height':_0x4df8cc});}[_0x665fdc(0x1e2)](_0x48a66e){const _0x73aab2=_0x665fdc;return this[_0x73aab2(0x1b0)]({'rotation':_0x48a66e});}[_0x665fdc(0x1e4)](_0x5f83db,_0x5d7cf4){const _0x5efa76=_0x665fdc;return this[_0x5efa76(0x1b0)]({'left':_0x5f83db,'top':_0x5d7cf4});}[_0x665fdc(0x19f)](_0x44fc17){const _0x52a1c9=_0x665fdc;let _0x1c19f5=n['Tools']['deepClone'](_0x44fc17);return this[_0x52a1c9(0x1f8)](_0x55bf29=>({..._0x55bf29,'isCustom':!0x0,'customGeometry':_0x1c19f5}));}[_0x665fdc(0x184)](){const _0x5c3db1=_0x665fdc;var _0x16d0a6,_0x52adb8;return(_0x16d0a6=(_0x52adb8=this['_getGeometryModel']())==null?void 0x0:_0x52adb8[_0x5c3db1(0x1bd)]()['map'](_0x575af3=>({..._0x575af3})))==null?[]:_0x16d0a6;}[_0x665fdc(0x148)](){const _0x2753cf=_0x665fdc;var _0x5ac225,_0x2b2393;return(_0x5ac225=(_0x2b2393=this[_0x2753cf(0x1ed)]())==null?void 0x0:_0x2b2393[_0x2753cf(0x161)]()[_0x2753cf(0x1f3)](_0x3abbaf=>({..._0x3abbaf})))==null?[]:_0x5ac225;}['getStartConnectInfo'](){const _0x2cc9e7=_0x665fdc;var _0x49e8c1;let _0x101674=(_0x49e8c1=this[_0x2cc9e7(0x1ed)]())==null?void 0x0:_0x49e8c1[_0x2cc9e7(0x199)]();return _0x101674?{..._0x101674}:null;}[_0x665fdc(0x1f7)](){const _0x392965=_0x665fdc;var _0x11dcb8;let _0x3d917d=(_0x11dcb8=this[_0x392965(0x1ed)]())==null?void 0x0:_0x11dcb8[_0x392965(0x1f7)]();return _0x3d917d?{..._0x3d917d}:null;}[_0x665fdc(0x17c)](_0x256b56,_0x3d0db1){const _0xb3834c=_0x665fdc;return this[_0xb3834c(0x1f8)](_0x8808ae=>({..._0x8808ae,'fill':{'fillType':e['ShapeFillEnum'][_0xb3834c(0x1a2)],'color':_0x256b56,'opacity':_0x3d0db1}}));}[_0x665fdc(0x1ab)](_0x1c1f3c,_0x4e8b2e,_0x47475f){const _0x47f8f8=_0x665fdc;return _0x4e8b2e[_0x47f8f8(0x169)]<0x2?(console[_0x47f8f8(0x1f5)](_0x47f8f8(0x147)),this):this['_patchShapeData'](_0x354c9b=>({..._0x354c9b,'fill':{'fillType':e[_0x47f8f8(0x1ad)][_0x47f8f8(0x14b)],'gradientType':_0x1c1f3c,'gradientStops':n[_0x47f8f8(0x17e)]['deepClone'](_0x4e8b2e),'gradientAngle':_0x47475f}}));}['setImageFill'](_0xcebd31,_0x5b3ba9,_0x104876={}){const _0x488315=_0x665fdc;return this['_patchShapeData'](_0x534c46=>({..._0x534c46,'fill':{...n[_0x488315(0x17e)]['deepClone'](_0x104876),'fillType':e[_0x488315(0x1ad)][_0x488315(0x17a)],'fillImageSource':_0xcebd31,'fillImageSourceType':_0x5b3ba9}}));}[_0x665fdc(0x165)](){const _0x2aab41=_0x665fdc;return this[_0x2aab41(0x1f8)](_0x92e209=>({..._0x92e209,'fill':{'fillType':e['ShapeFillEnum']['NoFill']}}));}['setStroke'](_0x26685d){const _0x1de5d4=_0x665fdc;return this[_0x1de5d4(0x1f8)](_0x5ee54c=>({..._0x5ee54c,'stroke':n[_0x1de5d4(0x17e)][_0x1de5d4(0x1a1)](_0x26685d)}));}['setStrokeColor'](_0x2b7c7c){const _0x493361=_0x665fdc;return this[_0x493361(0x15b)](_0x32985f=>({..._0x32985f,'color':_0x2b7c7c,'lineStrokeType':_0x32985f[_0x493361(0x1cc)]===e[_0x493361(0x1e1)][_0x493361(0x16e)]?e['ShapeLineTypeEnum'][_0x493361(0x175)]:_0x32985f[_0x493361(0x1cc)]}));}[_0x665fdc(0x149)](_0x13f6ac){const _0x1a2a73=_0x665fdc;return this[_0x1a2a73(0x15b)](_0x323a7a=>({..._0x323a7a,'width':_0x13f6ac,'lineStrokeType':_0x323a7a['lineStrokeType']===e[_0x1a2a73(0x1e1)][_0x1a2a73(0x16e)]?e['ShapeLineTypeEnum'][_0x1a2a73(0x175)]:_0x323a7a[_0x1a2a73(0x1cc)]}));}['setStrokeOpacity'](_0x402d41){const _0x1ba239=_0x665fdc;return this[_0x1ba239(0x15b)](_0x18187c=>({..._0x18187c,'opacity':_0x402d41}));}['setStrokeLineDashType'](_0x301f96){const _0x5a698c=_0x665fdc;return this[_0x5a698c(0x15b)](_0x2ed3fd=>({..._0x2ed3fd,'dashType':_0x301f96}));}['setStrokeLineJoinType'](_0x3a4bbd){const _0x4875ae=_0x665fdc;return this[_0x4875ae(0x15b)](_0x2d912e=>({..._0x2d912e,'lineJoinType':_0x3a4bbd}));}[_0x665fdc(0x12b)](_0x26c0c8){const _0x27811f=_0x665fdc;return this[_0x27811f(0x15b)](_0x3192e2=>({..._0x3192e2,'capType':_0x26c0c8}));}[_0x665fdc(0x19b)](_0x662443){return this['_patchStroke'](_0x5c0b4a=>({..._0x5c0b4a,'lineStrokeType':_0x662443}));}[_0x665fdc(0x1e8)](_0x5b7ad9){const _0x254aeb=_0x665fdc;var _0x470af5,_0x551426,_0x193436;let _0x3bbdaf=_0x5b7ad9[_0x254aeb(0x140)],_0x9ac357=_0x3bbdaf&&(_0x254aeb(0x1a6)in _0x3bbdaf||'points'in _0x3bbdaf)?this['getShapeType']():null,_0x5c865d=(_0x470af5=(_0x551426=_0x5b7ad9[_0x254aeb(0x160)])==null?(_0x193436=_0x5b7ad9['shapeData'])==null?void 0x0:_0x193436['shapeType']:_0x551426)==null?_0x9ac357:_0x470af5,_0x1e319c=c(_0x5b7ad9,_0x5c865d!==null&&(0x0,e[_0x254aeb(0x1af)])(_0x5c865d));return _0x1e319c?(console[_0x254aeb(0x1f5)](_0x254aeb(0x163)+_0x1e319c),this):(this[_0x254aeb(0x139)](_0x254aeb(0x1e8),_0x391cc2=>_0x391cc2[_0x254aeb(0x14e)](this[_0x254aeb(0x18a)],_0x5b7ad9)),this);}[_0x665fdc(0x194)](){const _0xa0d2c7=_0x665fdc;return this['_mutate'](_0xa0d2c7(0x194),_0x3e72bd=>_0x3e72bd[_0xa0d2c7(0x1d8)](this[_0xa0d2c7(0x18a)]));}[_0x665fdc(0x136)](){const _0x3d6f09=_0x665fdc;return this[_0x3d6f09(0x139)](_0x3d6f09(0x1db),_0xb9d822=>_0xb9d822[_0x3d6f09(0x136)](this[_0x3d6f09(0x18a)])),this;}['bringForward'](){const _0x276f82=_0x665fdc;return this['_mutate'](_0x276f82(0x19c),_0x5d6d0e=>_0x5d6d0e[_0x276f82(0x153)](this[_0x276f82(0x18a)])),this;}[_0x665fdc(0x15e)](){const _0x1c62b8=_0x665fdc;return this[_0x1c62b8(0x139)](_0x1c62b8(0x1d6),_0x22dab2=>_0x22dab2[_0x1c62b8(0x15e)](this[_0x1c62b8(0x18a)])),this;}[_0x665fdc(0x1a4)](){const _0x3590ac=_0x665fdc;return this['_mutate']('send\x20to\x20back',_0xfe5c57=>_0xfe5c57[_0x3590ac(0x1a4)](this[_0x3590ac(0x18a)])),this;}['_getAdapter'](){const _0x28ec07=_0x665fdc;return this[_0x28ec07(0x1df)][_0x28ec07(0x186)](e[_0x28ec07(0x1b7)])['get'](this[_0x28ec07(0x18a)]['hostType']);}[_0x665fdc(0x1f8)](_0x1b8a25,_0x21dbac){const _0x10fb4f=_0x665fdc;let _0x22a8a7=this['getShapeData']();return _0x22a8a7?this[_0x10fb4f(0x1e8)]({'shapeType':_0x21dbac,'shapeData':_0x1b8a25(_0x22a8a7)}):this;}[_0x665fdc(0x15b)](_0xe08212){const _0x2401cf=_0x665fdc;return this[_0x2401cf(0x1f8)](_0x2302e8=>{var _0x4f078c;return{..._0x2302e8,'stroke':_0xe08212((_0x4f078c=_0x2302e8['stroke'])==null?{}:_0x4f078c)};});}[_0x665fdc(0x13f)](){const _0x4c6ee5=_0x665fdc;let _0x44465b=this['_getAdapter']();if(!_0x44465b)return null;try{return _0x44465b['getShape'](this[_0x4c6ee5(0x18a)])||(console[_0x4c6ee5(0x1f5)](_0x4c6ee5(0x19d)+this[_0x4c6ee5(0x18a)]['shapeId']+'\x22\x20was\x20not\x20found.'),null);}catch(_0x46b01d){return console[_0x4c6ee5(0x1f5)](_0x4c6ee5(0x141)+this[_0x4c6ee5(0x18a)][_0x4c6ee5(0x1d3)]+'\x22.',_0x46b01d),null;}}[_0x665fdc(0x1ed)](){const _0x583b30=_0x665fdc;let _0x299a75=this[_0x583b30(0x13f)]();if(!_0x299a75)return null;try{let _0x231310=new e[(_0x583b30(0x1de))](_0x299a75[_0x583b30(0x160)],_0x299a75[_0x583b30(0x1d3)],_0x299a75[_0x583b30(0x140)]);return _0x231310['updateContext']({'width':_0x299a75[_0x583b30(0x1cf)][_0x583b30(0x1c9)],'height':_0x299a75[_0x583b30(0x1cf)][_0x583b30(0x188)]}),_0x231310;}catch(_0x44b95e){return console['warn'](_0x583b30(0x187)+this[_0x583b30(0x18a)][_0x583b30(0x1d3)]+'\x22.',_0x44b95e),null;}}[_0x665fdc(0x139)](_0x341aa8,_0x570789){const _0xbf83d8=_0x665fdc;let _0x51587c=this['_getAdapter']();if(!_0x51587c)return!0x1;try{let _0x1555c5=_0x570789(_0x51587c);return _0x1555c5||console[_0xbf83d8(0x1f5)]('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0x341aa8+_0xbf83d8(0x18d)+this['_shapeRef'][_0xbf83d8(0x1d3)]+'\x22.'),_0x1555c5;}catch(_0x5685bb){return console[_0xbf83d8(0x1f5)]('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0x341aa8+_0xbf83d8(0x18d)+this['_shapeRef']['shapeId']+'\x22.',_0x5685bb),!0x1;}}};function c(_0x41a610,_0x3d6f7e=!0x1){const _0x5d1a5e=_0x665fdc;for(let _0x1aae1e of[_0x5d1a5e(0x1d7),_0x5d1a5e(0x196)]){let _0x5b6002=_0x41a610[_0x1aae1e];if(_0x5b6002!==void 0x0&&typeof _0x5b6002!=_0x5d1a5e(0x1e5))return'Shape\x20\x22'+_0x1aae1e+_0x5d1a5e(0x197);}let _0xae4d19=_0x41a610[_0x5d1a5e(0x1cf)];if(_0xae4d19){for(let _0x5e82d9 of['left',_0x5d1a5e(0x1a8),'width',_0x5d1a5e(0x188),_0x5d1a5e(0x1f2)]){let _0x12f53d=_0xae4d19[_0x5e82d9];if(_0x12f53d!==void 0x0&&!Number[_0x5d1a5e(0x1b9)](_0x12f53d))return'Shape\x20transform\x20\x22'+_0x5e82d9+_0x5d1a5e(0x1d1);}if(_0xae4d19[_0x5d1a5e(0x1c9)]!==void 0x0&&_0xae4d19[_0x5d1a5e(0x1c9)]<=0x0)return _0x5d1a5e(0x180);if(_0xae4d19[_0x5d1a5e(0x188)]!==void 0x0&&_0xae4d19['height']<=0x0)return _0x5d1a5e(0x152);for(let _0x17f146 of['flipX',_0x5d1a5e(0x191)]){let _0x2c2ea2=_0xae4d19[_0x17f146];if(_0x2c2ea2!==void 0x0&&typeof _0x2c2ea2!='boolean')return'Shape\x20transform\x20\x22'+_0x17f146+_0x5d1a5e(0x197);}}let _0x3f113e=_0x41a610[_0x5d1a5e(0x140)];return!_0x3d6f7e&&_0x3f113e&&('relation'in _0x3f113e||'points'in _0x3f113e)?_0x5d1a5e(0x156):null;}var l=class extends s{['isConnectorShape'](){return!0x0;}[_0x665fdc(0x128)](){const _0x44985f=_0x665fdc;let _0x1a52d9=this[_0x44985f(0x15a)]();return _0x1a52d9?n['Tools'][_0x44985f(0x1a1)](_0x1a52d9[_0x44985f(0x129)]):null;}[_0x665fdc(0x1a9)](){const _0x30d4ec=_0x665fdc;let _0xed82d8=this[_0x30d4ec(0x15a)]();return _0xed82d8?n['Tools']['deepClone'](_0xed82d8[_0x30d4ec(0x1ef)]):null;}[_0x665fdc(0x1f9)](){const _0x162108=_0x665fdc;let _0x22d68f=this[_0x162108(0x15a)]();return _0x22d68f?n['Tools'][_0x162108(0x1a1)](_0x22d68f[_0x162108(0x130)]):null;}['getStartArrow'](){const _0x30cd6d=_0x665fdc;let _0x738490=this[_0x30cd6d(0x15a)]();return _0x738490?n[_0x30cd6d(0x17e)][_0x30cd6d(0x1a1)](_0x738490[_0x30cd6d(0x157)]):null;}['getEndArrow'](){const _0x4747ed=_0x665fdc;let _0x91956d=this[_0x4747ed(0x15a)]();return _0x91956d?n[_0x4747ed(0x17e)][_0x4747ed(0x1a1)](_0x91956d['endArrow']):null;}[_0x665fdc(0x16b)](_0xd8ed4){const _0x19b7c6=_0x665fdc;return(0x0,e['isConnectorShape'])(_0xd8ed4)?super[_0x19b7c6(0x16b)](_0xd8ed4):(console['warn']('[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22'+this[_0x19b7c6(0x18a)]['shapeId']+_0x19b7c6(0x18e)),this);}['setShapeData'](_0x9a72e){const _0x55340a=_0x665fdc;return _0x9a72e[_0x55340a(0x160)]!==void 0x0&&!(0x0,e['isConnectorShape'])(_0x9a72e[_0x55340a(0x160)])?(console[_0x55340a(0x1f5)](_0x55340a(0x146)+this[_0x55340a(0x18a)][_0x55340a(0x1d3)]+_0x55340a(0x167)),this):super[_0x55340a(0x15c)](_0x9a72e);}['bindStart'](_0x136318,_0x101a7c){const _0x4760ae=_0x665fdc;return this['_bind'](_0x4760ae(0x129),_0x136318,_0x101a7c),this;}['bindEnd'](_0x4a6899,_0x4313c6){const _0x59e3ec=_0x665fdc;return this[_0x59e3ec(0x1b5)](_0x59e3ec(0x1ef),_0x4a6899,_0x4313c6),this;}['unbindStart'](){const _0x54d74d=_0x665fdc;return this['_mutateConnector'](_0x54d74d(0x13d),_0x3f71cf=>_0x3f71cf[_0x54d74d(0x155)](this[_0x54d74d(0x18a)])),this;}['unbindEnd'](){const _0x49123b=_0x665fdc;return this[_0x49123b(0x150)](_0x49123b(0x170),_0x377227=>_0x377227[_0x49123b(0x1c3)](this[_0x49123b(0x18a)])),this;}['setStartPoint'](_0x4952df){const _0x3e5297=_0x665fdc;return u(_0x4952df,this[_0x3e5297(0x18a)]['shapeId'])&&this['_mutateConnector'](_0x3e5297(0x1a7),_0x1edc61=>_0x1edc61[_0x3e5297(0x1ac)](this[_0x3e5297(0x18a)],_0x4952df)),this;}[_0x665fdc(0x12a)](_0x4cfc17){const _0xc39510=_0x665fdc;return u(_0x4cfc17,this['_shapeRef'][_0xc39510(0x1d3)])&&this[_0xc39510(0x150)](_0xc39510(0x1c2),_0x1c9c85=>_0x1c9c85['setEndPoint'](this['_shapeRef'],_0x4cfc17)),this;}[_0x665fdc(0x1dc)](_0x183031){const _0x21c998=_0x665fdc;return _0x183031[_0x21c998(0x17d)](_0x2c17fd=>u(_0x2c17fd,this['_shapeRef'][_0x21c998(0x1d3)]))&&this[_0x21c998(0x150)](_0x21c998(0x151),_0x59991d=>_0x59991d[_0x21c998(0x1dc)](this[_0x21c998(0x18a)],_0x183031)),this;}['setStartArrow'](_0x29913e,_0x5a5e92){const _0x213afb=_0x665fdc;return this[_0x213afb(0x150)]('set\x20start\x20arrow',_0x24a559=>_0x24a559[_0x213afb(0x1ba)](this[_0x213afb(0x18a)],_0x29913e,_0x5a5e92)),this;}[_0x665fdc(0x19e)](_0x33901e,_0x5ad24d){const _0x56de98=_0x665fdc;return this[_0x56de98(0x150)](_0x56de98(0x137),_0x55024f=>_0x55024f[_0x56de98(0x19e)](this[_0x56de98(0x18a)],_0x33901e,_0x5ad24d)),this;}['_getConnectorAdapter'](){const _0x35a2e3=_0x665fdc;return this[_0x35a2e3(0x1df)][_0x35a2e3(0x186)](e[_0x35a2e3(0x18f)]);}[_0x665fdc(0x15a)](){const _0x30118d=_0x665fdc;let _0x83c9a6=this[_0x30118d(0x145)]();if(!_0x83c9a6)return null;try{return _0x83c9a6['getConnector'](this[_0x30118d(0x18a)])||(console[_0x30118d(0x1f5)]('[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22'+this[_0x30118d(0x18a)][_0x30118d(0x1d3)]+'\x22\x20was\x20not\x20found.'),null);}catch(_0x13cebf){return console[_0x30118d(0x1f5)](_0x30118d(0x13a)+this[_0x30118d(0x18a)]['shapeId']+'\x22.',_0x13cebf),null;}}[_0x665fdc(0x1b5)](_0x347536,_0x37533b,_0x2c4139){const _0x4f246b=_0x665fdc;if(!_0x37533b||!Number[_0x4f246b(0x198)](_0x2c4139)||_0x2c4139<0x0)return console[_0x4f246b(0x1f5)](_0x4f246b(0x18c)+this[_0x4f246b(0x18a)][_0x4f246b(0x1d3)]+'\x22\x20binding\x20requires\x20a\x20target\x20Shape\x20ID\x20and\x20a\x20non-negative\x20connection\x20site\x20index.'),!0x1;let _0x3cb5ea={'shapeId':_0x37533b,'cxnIndex':_0x2c4139};return this[_0x4f246b(0x150)]('bind\x20'+_0x347536,_0x4f97f9=>_0x347536===_0x4f246b(0x129)?_0x4f97f9[_0x4f246b(0x1ea)](this[_0x4f246b(0x18a)],_0x3cb5ea):_0x4f97f9[_0x4f246b(0x18b)](this[_0x4f246b(0x18a)],_0x3cb5ea));}[_0x665fdc(0x150)](_0x3964e,_0xc3efac){const _0x2c44be=_0x665fdc;let _0x563a35=this[_0x2c44be(0x145)]();if(!_0x563a35)return!0x1;try{let _0x4865f5=_0xc3efac(_0x563a35);return _0x4865f5||console[_0x2c44be(0x1f5)](_0x2c44be(0x183)+_0x3964e+_0x2c44be(0x1c0)+this[_0x2c44be(0x18a)][_0x2c44be(0x1d3)]+'\x22.'),_0x4865f5;}catch(_0x4ab440){return console[_0x2c44be(0x1f5)](_0x2c44be(0x183)+_0x3964e+_0x2c44be(0x1c0)+this['_shapeRef'][_0x2c44be(0x1d3)]+'\x22.',_0x4ab440),!0x1;}}};function u(_0x3b0909,_0x4a9a95){const _0x547a8a=_0x665fdc;return!Number[_0x547a8a(0x1b9)](_0x3b0909['x'])||!Number[_0x547a8a(0x1b9)](_0x3b0909['y'])?(console['warn'](_0x547a8a(0x18c)+_0x4a9a95+_0x547a8a(0x1eb)),!0x1):!0x0;}exports[_0x665fdc(0x14a)]=l,exports[_0x665fdc(0x13c)]=s,exports[_0x665fdc(0x1a5)]=o;
|