@zklogic/draw.io
Version:
Draw.IO - Graph Editor integration in Angular-cli
1 lines • 57.1 kB
JavaScript
function mxShapeSysMLComposite(){mxCylinder.call(this)}function mxShapeSysMLPackage(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLPackage2(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLNone(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLRect(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLPortOne(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLPortTwo(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLPortThree(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLPortFour(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLItemFlow(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLItemFlowLeft(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLItemFlowRight(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLNestedPort(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLParametricDiagram(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLConstraintProperty(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLCallBehaviorAction(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLAcceptEventAction(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLTimeEvent(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLSendSignalAction(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLActivityFinal(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLActivityParameterNode(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLControlOperator(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLFlowFinal(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLIsControl(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLIsStream(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLIsActStream(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLParameterSet(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLParameterActivitySet(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLProbability(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLActivityProbability(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLObjectFlowRight(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLObjectFlowLeft(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLActivityPartition(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLContinuation(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLCoregion(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLDimension(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLCompositeState(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLRegion(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLSimpleState(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLStateMachine(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLX(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLSubmachineState(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}function mxShapeSysMLUseCaseExtensionPoints(n,t,e,o){mxShape.call(this),this.bounds=n,this.fill=t,this.stroke=e,this.strokewidth=null!=o?o:1}mxUtils.extend(mxShapeSysMLComposite,mxShape),mxShapeSysMLComposite.prototype.isHtmlAllowed=function(){return!1},mxShapeSysMLComposite.prototype.paintForeground=function(n,t,e,o,i){if(null!=this.style){var s=mxCellRenderer.defaultShapes[this.style.symbol0];n.save(),(C=new s).style=this.style,s.prototype.paintVertexShape.call(C,n,t,e,o,i),n.restore(),n.setDashed(!1);var r=1;do{if(null!=(s=mxCellRenderer.defaultShapes[this.style["symbol"+r]])){var a=this.style["symbol"+r+"Align"],m=this.style["symbol"+r+"VerticalAlign"],p=this.style["symbol"+r+"Width"],x=this.style["symbol"+r+"Height"],l=this.style["symbol"+r+"Spacing"]||0,h=this.style["symbol"+r+"VSpacing"]||0,S=this.style["symbol"+r+"ArcSpacing"],c=this.style["symbol"+r+"Direction"];null!=S&&(l+=this.getArcSize(o+this.strokewidth,i+this.strokewidth)*S,h+=this.getArcSize(o+this.strokewidth,i+this.strokewidth)*S);var C,w=t,u=e;a==mxConstants.ALIGN_CENTER?w+=(o-p)/2:a==mxConstants.ALIGN_RIGHT?w+=o-p-l:w+=l,m==mxConstants.ALIGN_MIDDLE?u+=(i-x)/2:m==mxConstants.ALIGN_BOTTOM?u+=i-x-h:u+=h,n.save(),(C=new s).style=mxUtils.clone(this.style),C.direction=c,C.updateTransform(n,w,u,p,x),s.prototype.paintVertexShape.call(C,n,w,u,p,x),n.restore()}r++}while(null!=s)}},mxCellRenderer.registerShape("mxgraph.sysml.composite",mxShapeSysMLComposite),mxUtils.extend(mxShapeSysMLPackage,mxShape),mxShapeSysMLPackage.prototype.cst={PACKAGE:"mxgraph.sysml.package",LABEL_X:"labelX"},mxShapeSysMLPackage.prototype.customProperties=[{name:"labelX",dispName:"Header Width",type:"float",min:0,defVal:90}],mxShapeSysMLPackage.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.25,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.25),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.25,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.25),!1)),o},mxShapeSysMLPackage.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),this.background(n,t,e,o,i),n.setShadow(!1),this.foreground(n,t,e,o,i)},mxShapeSysMLPackage.prototype.background=function(n,t,e,o,i){n.rect(0,0,o,i),n.fillAndStroke()},mxShapeSysMLPackage.prototype.foreground=function(n,t,e,o,i){var s=parseInt(mxUtils.getValue(this.style,mxShapeSysMLPackage.prototype.cst.LABEL_X,"90"));(s=Math.min(s,o))>20&&(n.begin(),n.moveTo(0,20),n.lineTo(s-10,20),n.lineTo(s,10),n.lineTo(s,0),n.stroke())},mxCellRenderer.registerShape(mxShapeSysMLPackage.prototype.cst.PACKAGE,mxShapeSysMLPackage),Graph.handleFactory[mxShapeSysMLPackage.prototype.cst.PACKAGE]=function(n){return[Graph.createHandle(n,["labelX"],(function(n){var t=Math.max(0,Math.min(n.width,parseFloat(mxUtils.getValue(this.state.style,"labelX",90))));return new mxPoint(n.x+t,n.y+10)}),(function(n,t){this.state.style.labelX=Math.round(100*Math.max(0,Math.min(n.width,t.x-n.x)))/100}))]},mxUtils.extend(mxShapeSysMLPackage2,mxShape),mxShapeSysMLPackage2.prototype.cst={PACKAGE2:"mxgraph.sysml.package2",LABEL_X:"labelX"},mxShapeSysMLPackage2.prototype.customProperties=[{name:"labelX",dispName:"Header Width",type:"float",min:0,defVal:90}],mxShapeSysMLPackage2.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),this.background(n,t,e,o,i),n.setShadow(!1),this.foreground(n,t,e,o,i)},mxShapeSysMLPackage2.prototype.background=function(n,t,e,o,i){n.rect(0,0,o,i),n.stroke()},mxShapeSysMLPackage2.prototype.foreground=function(n,t,e,o,i){var s=parseInt(mxUtils.getValue(this.style,mxShapeSysMLPackage2.prototype.cst.LABEL_X,"90"));(s=Math.min(s,o))>20&&(n.begin(),n.moveTo(0,20),n.lineTo(s-10,20),n.lineTo(s,10),n.lineTo(s,0),n.lineTo(0,0),n.close(),n.fillAndStroke())},mxCellRenderer.registerShape(mxShapeSysMLPackage2.prototype.cst.PACKAGE2,mxShapeSysMLPackage2),Graph.handleFactory[mxShapeSysMLPackage2.prototype.cst.PACKAGE2]=function(n){return[Graph.createHandle(n,["labelX"],(function(n){var t=Math.max(0,Math.min(n.width,parseFloat(mxUtils.getValue(this.state.style,"labelX",90))));return new mxPoint(n.x+t,n.y+10)}),(function(n,t){this.state.style.labelX=Math.round(100*Math.max(0,Math.min(n.width,t.x-n.x)))/100}))]},mxUtils.extend(mxShapeSysMLNone,mxShape),mxShapeSysMLNone.prototype.cst={NONE:"mxgraph.sysml.none"},mxShapeSysMLNone.prototype.paintVertexShape=function(n,t,e,o,i){},mxCellRenderer.registerShape(mxShapeSysMLNone.prototype.cst.NONE,mxShapeSysMLNone),mxUtils.extend(mxShapeSysMLRect,mxShape),mxShapeSysMLRect.prototype.cst={RECT:"mxgraph.sysml.rect"},mxShapeSysMLRect.prototype.paintVertexShape=function(n,t,e,o,i){n.rect(t,e,o,i),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLRect.prototype.cst.RECT,mxShapeSysMLRect),mxUtils.extend(mxShapeSysMLPortOne,mxShape),mxShapeSysMLPortOne.prototype.cst={PORT1:"mxgraph.sysml.port1"},mxShapeSysMLPortOne.prototype.paintVertexShape=function(n,t,e,o,i){n.rect(t+.05*o,e,o-.1*o,i),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLPortOne.prototype.cst.PORT1,mxShapeSysMLPortOne),mxShapeSysMLPortOne.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(.05,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.25,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.95,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.95,.25),!1)),o.push(new mxConnectionConstraint(new mxPoint(.95,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(.95,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.25,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.05,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.05,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(.05,.25),!1)),o},mxUtils.extend(mxShapeSysMLPortTwo,mxShape),mxShapeSysMLPortTwo.prototype.cst={PORT2:"mxgraph.sysml.port2"},mxShapeSysMLPortTwo.prototype.paintVertexShape=function(n,t,e,o,i){n.rect(t+.05*o,e,.8*o,i),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLPortTwo.prototype.cst.PORT2,mxShapeSysMLPortTwo),mxShapeSysMLPortTwo.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(.05,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.25,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.95,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.95,.25),!1)),o.push(new mxConnectionConstraint(new mxPoint(.95,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(.95,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.25,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.05,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.05,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(.05,.25),!1)),o},mxUtils.extend(mxShapeSysMLPortThree,mxShape),mxShapeSysMLPortThree.prototype.cst={PORT3:"mxgraph.sysml.port3"},mxShapeSysMLPortThree.prototype.paintVertexShape=function(n,t,e,o,i){n.rect(t+.07*o,e,.86*o,i),n.fillAndStroke(),n.rect(t,e+.125*i,.14*o,.25*i),n.fillAndStroke(),n.rect(t,e+.625*i,.14*o,.25*i),n.fillAndStroke(),n.rect(t+.86*o,e+.375*i,.14*o,.25*i),n.fillAndStroke(),this.drawIn(n,t+.01*o,e+.2*i,.11*o,.1*i),this.drawOut(n,t+.02*o,e+.7*i,.11*o,.1*i),this.drawInOut(n,t+.88*o,e+.45*i,.1*o,.1*i)},mxShapeSysMLPortThree.prototype.drawIn=function(n,t,e,o,i){n.begin(),n.moveTo(t,e+.5*i),n.lineTo(t+o,e+.5*i),n.moveTo(t+.75*o,e),n.lineTo(t+o,e+.5*i),n.lineTo(t+.75*o,e+i),n.stroke()},mxShapeSysMLPortThree.prototype.drawOut=function(n,t,e,o,i){n.begin(),n.moveTo(t,e+.5*i),n.lineTo(t+o,e+.5*i),n.moveTo(t+.25*o,e),n.lineTo(t,e+.5*i),n.lineTo(t+.25*o,e+i),n.stroke()},mxShapeSysMLPortThree.prototype.drawInOut=function(n,t,e,o,i){n.begin(),n.moveTo(t+.75*o,e),n.lineTo(t+o,e+.5*i),n.lineTo(t+.75*o,e+i),n.moveTo(t+.25*o,e),n.lineTo(t,e+.5*i),n.lineTo(t+.25*o,e+i),n.stroke()},mxCellRenderer.registerShape(mxShapeSysMLPortThree.prototype.cst.PORT3,mxShapeSysMLPortThree),mxUtils.extend(mxShapeSysMLPortFour,mxShape),mxShapeSysMLPortFour.prototype.cst={PORT4:"mxgraph.sysml.port4"},mxShapeSysMLPortFour.prototype.paintVertexShape=function(n,t,e,o,i){n.rect(t+.05*o,e,o-.05*o,i),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLPortFour.prototype.cst.PORT4,mxShapeSysMLPortFour),mxShapeSysMLPortFour.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0)],mxUtils.extend(mxShapeSysMLItemFlow,mxShape),mxShapeSysMLItemFlow.prototype.cst={ITEM_FLOW:"mxgraph.sysml.itemFlow",FLOW_DIR:"flowDir",FLOW_TYPE:"flowType"},mxShapeSysMLItemFlow.prototype.customProperties=[{name:"flowDir",dispName:"Flow Direction",type:"enum",enumList:[{val:"n",dispName:"North"},{val:"s",dispName:"South"},{val:"e",dispName:"East"},{val:"w",dispName:"West"}]},{name:"flowType",dispName:"Flow Type",type:"enum",enumList:[{val:"in",dispName:"In"},{val:"out",dispName:"Out"}]}],mxShapeSysMLItemFlow.prototype.paintVertexShape=function(n,t,e,o,i){var s=mxUtils.getValue(this.style,mxShapeSysMLItemFlow.prototype.cst.FLOW_DIR,"none").toLowerCase(),r=mxUtils.getValue(this.style,mxShapeSysMLItemFlow.prototype.cst.FLOW_TYPE,"none");"n"===s?(n.rect(t,e+10,o,i-10),n.fillAndStroke(),n.setShadow(!1),n.rect(t+.5*o-10,e,20,20),n.fillAndStroke(),"in"===r?this.drawDown(n,t+.5*o-5,e+2,10,16):"out"===r&&this.drawUp(n,t+.5*o-5,e+2,10,16)):"s"===s?(n.rect(t,e,o,i-10),n.fillAndStroke(),n.setShadow(!1),n.rect(t+.5*o-10,e+i-20,20,20),n.fillAndStroke(),"in"===r?this.drawUp(n,t+.5*o-5,e+i-18,10,16):"out"===r&&this.drawDown(n,t+.5*o-5,e+i-18,10,16)):"w"===s?(n.rect(t+10,e,o-10,i),n.fillAndStroke(),n.setShadow(!1),n.rect(t,e+.5*i-10,20,20),n.fillAndStroke(),"in"===r?this.drawRight(n,t+2,e+.5*i-5,16,10):"out"===r&&this.drawLeft(n,t+2,e+.5*i-5,16,10)):"e"===s&&(n.rect(t,e,o-10,i),n.fillAndStroke(),n.setShadow(!1),n.rect(t+o-20,e+.5*i-10,20,20),n.fillAndStroke(),"in"===r?this.drawLeft(n,t+o-18,e+.5*i-5,16,10):"out"===r&&this.drawRight(n,t+o-18,e+.5*i-5,16,10))},mxShapeSysMLItemFlow.prototype.drawRight=function(n,t,e,o,i){n.begin(),n.moveTo(t,e+.5*i),n.lineTo(t+o,e+.5*i),n.moveTo(t+.75*o,e),n.lineTo(t+o,e+.5*i),n.lineTo(t+.75*o,e+i),n.stroke()},mxShapeSysMLItemFlow.prototype.drawDown=function(n,t,e,o,i){n.begin(),n.moveTo(t+.5*o,e),n.lineTo(t+.5*o,e+i),n.moveTo(t,e+.75*i),n.lineTo(t+.5*o,e+i),n.lineTo(t+o,e+.75*i),n.stroke()},mxShapeSysMLItemFlow.prototype.drawLeft=function(n,t,e,o,i){n.begin(),n.moveTo(t,e+.5*i),n.lineTo(t+o,e+.5*i),n.moveTo(t+.25*o,e),n.lineTo(t,e+.5*i),n.lineTo(t+.25*o,e+i),n.stroke()},mxShapeSysMLItemFlow.prototype.drawUp=function(n,t,e,o,i){n.begin(),n.moveTo(t+.5*o,e+i),n.lineTo(t+.5*o,e),n.moveTo(t,e+.25*i),n.lineTo(t+.5*o,e),n.lineTo(t+o,e+.25*i),n.stroke()},mxCellRenderer.registerShape(mxShapeSysMLItemFlow.prototype.cst.ITEM_FLOW,mxShapeSysMLItemFlow),mxShapeSysMLItemFlow.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0)],mxUtils.extend(mxShapeSysMLItemFlowLeft,mxShape),mxShapeSysMLItemFlowLeft.prototype.cst={ITEM_FLOW_LEFT:"mxgraph.sysml.itemFlowLeft"},mxShapeSysMLItemFlowLeft.prototype.paintVertexShape=function(n,t,e,o,i){n.rect(t+10,e,o-10,i),n.fillAndStroke(),n.rect(t,e+.25*i-10,20,20),n.fillAndStroke(),n.rect(t,e+.5*i-10,20,20),n.fillAndStroke(),n.rect(t,e+.75*i-10,20,20),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLItemFlowLeft.prototype.cst.ITEM_FLOW_LEFT,mxShapeSysMLItemFlowLeft),mxShapeSysMLItemFlowLeft.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0)],mxUtils.extend(mxShapeSysMLItemFlowRight,mxShape),mxShapeSysMLItemFlowRight.prototype.cst={ITEM_FLOW_RIGHT:"mxgraph.sysml.itemFlowRight"},mxShapeSysMLItemFlowRight.prototype.paintVertexShape=function(n,t,e,o,i){n.rect(t,e,o-10,i),n.fillAndStroke(),n.rect(t+o-20,e+.25*i-10,20,20),n.fillAndStroke(),n.rect(t+o-20,e+.5*i-10,20,20),n.fillAndStroke(),n.rect(t+o-20,e+.75*i-10,20,20),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLItemFlowRight.prototype.cst.ITEM_FLOW_RIGHT,mxShapeSysMLItemFlowRight),mxShapeSysMLItemFlowRight.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0)],mxUtils.extend(mxShapeSysMLNestedPort,mxShape),mxShapeSysMLNestedPort.prototype.cst={NESTED_PORT:"mxgraph.sysml.nestedPort"},mxShapeSysMLNestedPort.prototype.paintVertexShape=function(n,t,e,o,i){n.rect(t+.08*o,e,.92*o,i),n.fillAndStroke(),n.rect(t+.03*o,e+.1*i,.1*o,.8*i),n.fillAndStroke(),n.rect(t,e+.15*i,.06*o,.16*i),n.fillAndStroke(),n.rect(t,e+.42*i,.06*o,.16*i),n.fillAndStroke(),n.rect(t,e+.69*i,.06*o,.16*i),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLNestedPort.prototype.cst.NESTED_PORT,mxShapeSysMLNestedPort),mxMarker.addMarker("sysMLPackCont",(function(n,t,e,o,i,s,r,a,m,p){var x=i*(r+m+1),l=s*(r+m+1),h=r/2;return function(){n.begin(),n.moveTo(o.x-x/2-l/2,o.y-l/2+x/2),n.lineTo(o.x-x/2+l/2,o.y-l/2-x/2),n.stroke(),n.ellipse(o.x-.5*x-h,o.y-.5*l-h,2*h,2*h),n.stroke()}})),mxMarker.addMarker("sysMLReqInt",(function(n,t,e,o,i,s,r,a,m,p){var x=i*(r+m+1),l=s*(r+m+1),h=r/2;return function(){var e=mxUtils.getValue(t.style,mxConstants.STYLE_FILLCOLOR,"none");n.setFillColor(e),n.ellipse(o.x-.5*x-h,o.y-.5*l-h,2*h,2*h),n.fillAndStroke()}})),mxMarker.addMarker("sysMLProvInt",(function(n,t,e,o,i,s,r,a,m,p){var x=i*(r+m+1),l=s*(r+m+1),h=r/2;return function(){var e=mxUtils.getValue(t.style,mxConstants.STYLE_FILLCOLOR,"none");n.setFillColor(e),n.begin(),n.moveTo(o.x-l/2,o.y+x/2),n.arcTo(h,h,0,0,1,o.x+l/2,o.y-x/2),n.fillAndStroke()}})),mxUtils.extend(mxShapeSysMLParametricDiagram,mxShape),mxShapeSysMLParametricDiagram.prototype.cst={PARAM_DGM:"mxgraph.sysml.paramDgm"},mxShapeSysMLParametricDiagram.prototype.paintVertexShape=function(n,t,e,o,i){n.roundrect(t,e,o,i,10,10),n.fillAndStroke(),n.setShadow(!1),i>60&&(n.rect(t,e+.25*i-10,20,20),n.stroke(),n.rect(t,e+.75*i-10,20,20),n.stroke())},mxCellRenderer.registerShape(mxShapeSysMLParametricDiagram.prototype.cst.PARAM_DGM,mxShapeSysMLParametricDiagram),mxUtils.extend(mxShapeSysMLConstraintProperty,mxShape),mxShapeSysMLConstraintProperty.prototype.cst={CONS_PROP:"mxgraph.sysml.consProp"},mxShapeSysMLConstraintProperty.prototype.paintVertexShape=function(n,t,e,o,i){n.rect(t,e,o,i),n.fillAndStroke(),n.setShadow(!1),i>60&&(n.rect(t,e+50,20,20),n.stroke(),n.rect(t,e+80,20,20),n.stroke())},mxCellRenderer.registerShape(mxShapeSysMLConstraintProperty.prototype.cst.CONS_PROP,mxShapeSysMLConstraintProperty),mxUtils.extend(mxShapeSysMLCallBehaviorAction,mxShape),mxShapeSysMLCallBehaviorAction.prototype.cst={CALL_BEH_ACT:"mxgraph.sysml.callBehAct"},mxShapeSysMLCallBehaviorAction.prototype.paintVertexShape=function(n,t,e,o,i){n.roundrect(t,e,o,i,10,10),n.fillAndStroke(),i>30&&o>40&&(n.setShadow(!1),this.drawSymb(n,t+o-30,e+i-30,20,20))},mxShapeSysMLCallBehaviorAction.prototype.drawSymb=function(n,t,e,o,i){n.begin(),n.moveTo(t+.5*o,e),n.lineTo(t+.5*o,e+i),n.moveTo(t,e+i),n.lineTo(t,e+.5*i),n.lineTo(t+o,e+.5*i),n.lineTo(t+o,e+i),n.stroke()},mxCellRenderer.registerShape(mxShapeSysMLCallBehaviorAction.prototype.cst.CALL_BEH_ACT,mxShapeSysMLCallBehaviorAction),mxShapeSysMLCallBehaviorAction.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,2.9,2.9)),o.push(new mxConnectionConstraint(new mxPoint(.25,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,-2.9,2.9)),o.push(new mxConnectionConstraint(new mxPoint(1,.25),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,1),!1,null,-2.9,-2.9)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.25,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,1),!1,null,2.9,-2.9)),o.push(new mxConnectionConstraint(new mxPoint(0,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.25),!1)),o},mxUtils.extend(mxShapeSysMLAcceptEventAction,mxShape),mxShapeSysMLAcceptEventAction.prototype.cst={ACC_EVENT:"mxgraph.sysml.accEvent"},mxShapeSysMLAcceptEventAction.prototype.paintVertexShape=function(n,t,e,o,i){n.begin(),n.moveTo(t,e),n.lineTo(t+o,e),n.lineTo(t+o,e+i),n.lineTo(t,e+i),n.lineTo(t+.3*i,e+.5*i),n.close(),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLAcceptEventAction.prototype.cst.ACC_EVENT,mxShapeSysMLAcceptEventAction),mxShapeSysMLAcceptEventAction.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.25,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.25),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.25,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,.3*e,0)),o},mxUtils.extend(mxShapeSysMLTimeEvent,mxShape),mxShapeSysMLTimeEvent.prototype.cst={TIME_EVENT:"mxgraph.sysml.timeEvent"},mxShapeSysMLTimeEvent.prototype.paintVertexShape=function(n,t,e,o,i){n.begin(),n.moveTo(t,e),n.lineTo(t+o,e),n.lineTo(t,e+i),n.lineTo(t+o,e+i),n.close(),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLTimeEvent.prototype.cst.TIME_EVENT,mxShapeSysMLTimeEvent),mxShapeSysMLTimeEvent.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,.5),!1)),o},mxUtils.extend(mxShapeSysMLSendSignalAction,mxShape),mxShapeSysMLSendSignalAction.prototype.cst={SEND_SIG_ACT:"mxgraph.sysml.sendSigAct"},mxShapeSysMLSendSignalAction.prototype.paintVertexShape=function(n,t,e,o,i){n.begin(),n.moveTo(t,e),n.lineTo(t+o-.3*i,e),n.lineTo(t+o,e+.5*i),n.lineTo(t+o-.3*i,e+i),n.lineTo(t,e+i),n.close(),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLSendSignalAction.prototype.cst.SEND_SIG_ACT,mxShapeSysMLSendSignalAction),mxShapeSysMLSendSignalAction.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.25,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,.3*-e,0)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,1),!1,null,.3*-e,0)),o.push(new mxConnectionConstraint(new mxPoint(.25,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.25),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.75),!1)),o},mxUtils.extend(mxShapeSysMLActivityFinal,mxShape),mxShapeSysMLActivityFinal.prototype.cst={ACT_FINAL:"mxgraph.sysml.actFinal"},mxShapeSysMLActivityFinal.prototype.paintVertexShape=function(n,t,e,o,i){n.ellipse(t,e,o,i),n.fillAndStroke();var s=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");n.setFillColor(s),n.ellipse(t+5,e+5,o-10,i-10),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLActivityFinal.prototype.cst.ACT_FINAL,mxShapeSysMLActivityFinal),mxShapeSysMLActivityFinal.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(.145,.145),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.855,.145),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(.855,.855),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.145,.855),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o},mxUtils.extend(mxShapeSysMLActivityParameterNode,mxShape),mxShapeSysMLActivityParameterNode.prototype.cst={ACT_PARAM_NODE:"mxgraph.sysml.actParamNode"},mxShapeSysMLActivityParameterNode.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),n.begin();var s=Math.max(.35*o,70),r=Math.min(.65*o,o-10);n.begin(),n.moveTo(s,i),n.lineTo(10,i),n.lineTo(10,0),n.lineTo(s,0),n.moveTo(r,i),n.lineTo(o-10,i),n.lineTo(o-10,0),n.lineTo(r,0),n.stroke();var a=50;(a=Math.min(a,o))>20&&(n.begin(),n.moveTo(10,20),n.lineTo(a-10,20),n.lineTo(a,10),n.lineTo(a,0),n.lineTo(10,0),n.close(),n.fillAndStroke()),n.rect(0,.35*i-10,20,20),n.fillAndStroke(),n.rect(0,.65*i-10,20,20),n.fillAndStroke(),n.rect(o-20,.5*i-10,20,20),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLActivityParameterNode.prototype.cst.ACT_PARAM_NODE,mxShapeSysMLActivityParameterNode),mxShapeSysMLActivityParameterNode.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,.35),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.65),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o},mxUtils.extend(mxShapeSysMLControlOperator,mxShape),mxShapeSysMLControlOperator.prototype.cst={CONT_OPER:"mxgraph.sysml.contOper"},mxShapeSysMLControlOperator.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),this.background(n,t,e,o,i),n.setShadow(!1),this.foreground(n,t,e,o,i)},mxShapeSysMLControlOperator.prototype.background=function(n,t,e,o,i){n.rect(0,0,o,i),n.fillAndStroke()},mxShapeSysMLControlOperator.prototype.foreground=function(n,t,e,o,i){var s=130;(s=Math.min(s,o))>20&&(n.begin(),n.moveTo(0,20),n.lineTo(s-10,20),n.lineTo(s,10),n.lineTo(s,0),n.stroke())},mxCellRenderer.registerShape(mxShapeSysMLControlOperator.prototype.cst.CONT_OPER,mxShapeSysMLControlOperator),mxUtils.extend(mxShapeSysMLFlowFinal,mxShape),mxShapeSysMLFlowFinal.prototype.cst={FLOW_FINAL:"mxgraph.sysml.flowFinal"},mxShapeSysMLFlowFinal.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),n.ellipse(0,0,o,i),n.fillAndStroke(),n.setShadow(!1),n.begin(),n.moveTo(.145*o,.145*i),n.lineTo(.855*o,.855*i),n.moveTo(.855*o,.145*i),n.lineTo(.145*o,.855*i),n.stroke()},mxCellRenderer.registerShape(mxShapeSysMLFlowFinal.prototype.cst.FLOW_FINAL,mxShapeSysMLFlowFinal),mxShapeSysMLFlowFinal.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(.145,.145),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.855,.145),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(.855,.855),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.145,.855),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o},mxUtils.extend(mxShapeSysMLIsControl,mxShape),mxShapeSysMLIsControl.prototype.cst={IS_CONTROL:"mxgraph.sysml.isControl"},mxShapeSysMLIsControl.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),n.rect(0,.5*i-10,10,20),n.fillAndStroke(),n.roundrect(10,0,o-20,i,10,10),n.fillAndStroke(),n.rect(o-10,.5*i-10,10,20),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLIsControl.prototype.cst.IS_CONTROL,mxShapeSysMLIsControl),mxShapeSysMLIsControl.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o},mxUtils.extend(mxShapeSysMLIsStream,mxShape),mxShapeSysMLIsStream.prototype.cst={IS_STREAM:"mxgraph.sysml.isStream"},mxShapeSysMLIsStream.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e);var s=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000"),r=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff");n.setFillColor(s),n.rect(0,.5*i-10,10,20),n.fillAndStroke(),n.setFillColor(r),n.roundrect(10,0,o-20,i,10,10),n.fillAndStroke(),n.setFillColor(s),n.rect(o-10,.5*i-10,10,20),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLIsStream.prototype.cst.IS_STREAM,mxShapeSysMLIsStream),mxShapeSysMLIsStream.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o},mxUtils.extend(mxShapeSysMLIsActStream,mxShape),mxShapeSysMLIsActStream.prototype.cst={IS_ACT_STREAM:"mxgraph.sysml.isActStream"},mxShapeSysMLIsActStream.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),n.begin(),n.rect(0,0,o-10,i),n.fillAndStroke();var s=40;(s=Math.min(s,o))>20&&(n.begin(),n.moveTo(0,20),n.lineTo(s-10,20),n.lineTo(s,10),n.lineTo(s,0),n.lineTo(0,0),n.close(),n.fillAndStroke()),n.rect(o-20,.5*i-10,20,20),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLIsActStream.prototype.cst.IS_ACT_STREAM,mxShapeSysMLIsActStream),mxShapeSysMLIsActStream.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o},mxUtils.extend(mxShapeSysMLParameterSet,mxShape),mxShapeSysMLParameterSet.prototype.cst={PARAM_SET:"mxgraph.sysml.paramSet"},mxShapeSysMLParameterSet.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),n.rect(0,.5*i-28,10,56),n.fillAndStroke(),n.roundrect(10,0,o-20,i,10,10),n.fillAndStroke(),n.rect(o-10,.5*i-28,10,56),n.fillAndStroke(),n.setShadow(!1),n.rect(4,.5*i-24,6,20),n.fillAndStroke(),n.rect(4,.5*i+4,6,20),n.fillAndStroke(),n.rect(o-10,.5*i-24,6,20),n.fillAndStroke(),n.rect(o-10,.5*i+4,6,20),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLParameterSet.prototype.cst.PARAM_SET,mxShapeSysMLParameterSet),mxShapeSysMLParameterSet.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,0,-14)),o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,0,14)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null,0,-14)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null,0,14)),o.push(new mxConnectionConstraint(new mxPoint(.25,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.25,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1)),o},mxUtils.extend(mxShapeSysMLParameterActivitySet,mxShape),mxShapeSysMLParameterActivitySet.prototype.cst={PARAM_ACT_SET:"mxgraph.sysml.paramActSet"},mxShapeSysMLParameterActivitySet.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),n.begin(),n.rect(10,0,o-20,i),n.fillAndStroke();var s=50;(s=Math.min(s,o))>20&&(n.begin(),n.moveTo(10,20),n.lineTo(s-10,20),n.lineTo(s,10),n.lineTo(s,0),n.lineTo(10,0),n.close(),n.fillAndStroke()),n.setShadow(!1),i>70&&(n.rect(0,.5*i-28,15,56),n.fillAndStroke(),n.rect(4,.5*i-24,15,20),n.fillAndStroke(),n.rect(4,.5*i+4,15,20),n.fillAndStroke(),n.rect(o-15,.5*i-28,15,56),n.fillAndStroke(),n.rect(o-19,.5*i-24,15,20),n.fillAndStroke(),n.rect(o-19,.5*i+4,15,20),n.fillAndStroke())},mxCellRenderer.registerShape(mxShapeSysMLParameterActivitySet.prototype.cst.PARAM_ACT_SET,mxShapeSysMLParameterActivitySet),mxShapeSysMLParameterActivitySet.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,0,-14)),o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1,null,0,14)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null,0,-14)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1,null,0,14)),o.push(new mxConnectionConstraint(new mxPoint(.25,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.25,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1)),o},mxUtils.extend(mxShapeSysMLProbability,mxShape),mxShapeSysMLProbability.prototype.cst={PROBABILITY:"mxgraph.sysml.probability"},mxShapeSysMLProbability.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),n.roundrect(0,0,o-10,i,10,10),n.fillAndStroke(),n.rect(o-10,.25*i-28,10,56),n.fillAndStroke(),n.rect(o-10,.75*i-28,10,56),n.fillAndStroke(),n.setShadow(!1),n.rect(o-10,.25*i-24,6,20),n.fillAndStroke(),n.rect(o-10,.25*i+4,6,20),n.fillAndStroke(),n.rect(o-10,.75*i-24,6,20),n.fillAndStroke(),n.rect(o-10,.75*i+4,6,20),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLProbability.prototype.cst.PROBABILITY,mxShapeSysMLProbability),mxShapeSysMLProbability.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,.25),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.25),!1,null,0,-14)),o.push(new mxConnectionConstraint(new mxPoint(1,.25),!1,null,0,14)),o.push(new mxConnectionConstraint(new mxPoint(1,.25),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.75),!1,null,0,-14)),o.push(new mxConnectionConstraint(new mxPoint(1,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.75),!1,null,0,14)),o.push(new mxConnectionConstraint(new mxPoint(.25,0),!1,null,-5,0)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1,null,-5,0)),o.push(new mxConnectionConstraint(new mxPoint(.75,0),!1,null,-5,0)),o.push(new mxConnectionConstraint(new mxPoint(.25,1),!1,null,-5,0)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1,null,-5,0)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1,null,-5,0)),o},mxUtils.extend(mxShapeSysMLActivityProbability,mxShape),mxShapeSysMLActivityProbability.prototype.cst={ACT_PROB:"mxgraph.sysml.actProb"},mxShapeSysMLActivityProbability.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),n.begin(),n.rect(0,0,o-10,i),n.fillAndStroke();var s=40;(s=Math.min(s,o))>20&&(n.begin(),n.moveTo(0,20),n.lineTo(s-10,20),n.lineTo(s,10),n.lineTo(s,0),n.lineTo(0,0),n.close(),n.fillAndStroke()),n.setShadow(!1),i>70&&(n.rect(o-15,.25*i-28,15,56),n.fillAndStroke(),n.rect(o-19,.25*i-24,15,20),n.fillAndStroke(),n.rect(o-19,.25*i+4,15,20),n.fillAndStroke(),n.rect(o-15,.75*i-28,15,56),n.fillAndStroke(),n.rect(o-19,.75*i-24,15,20),n.fillAndStroke(),n.rect(o-19,.75*i+4,15,20),n.fillAndStroke())},mxCellRenderer.registerShape(mxShapeSysMLActivityProbability.prototype.cst.ACT_PROB,mxShapeSysMLActivityProbability),mxShapeSysMLActivityProbability.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,.25),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.25),!1,null,0,-14)),o.push(new mxConnectionConstraint(new mxPoint(1,.25),!1,null,0,14)),o.push(new mxConnectionConstraint(new mxPoint(1,.25),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.75),!1,null,0,-14)),o.push(new mxConnectionConstraint(new mxPoint(1,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.75),!1,null,0,14)),o.push(new mxConnectionConstraint(new mxPoint(.25,0),!1,null,-5,0)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1,null,-5,0)),o.push(new mxConnectionConstraint(new mxPoint(.75,0),!1,null,-5,0)),o.push(new mxConnectionConstraint(new mxPoint(.25,1),!1,null,-5,0)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1,null,-5,0)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1,null,-5,0)),o},mxUtils.extend(mxShapeSysMLObjectFlowRight,mxShape),mxShapeSysMLObjectFlowRight.prototype.cst={OBJ_FLOW_R:"mxgraph.sysml.objFlowR"},mxShapeSysMLObjectFlowRight.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),n.roundrect(0,0,o-10,i,10,10),n.fillAndStroke(),n.rect(o-10,.5*i-10,10,20),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLObjectFlowRight.prototype.cst.OBJ_FLOW_R,mxShapeSysMLObjectFlowRight),mxShapeSysMLObjectFlowRight.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1,null,-5,0)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1,null,-5,0)),o},mxUtils.extend(mxShapeSysMLObjectFlowLeft,mxShape),mxShapeSysMLObjectFlowLeft.prototype.cst={OBJ_FLOW_L:"mxgraph.sysml.objFlowL"},mxShapeSysMLObjectFlowLeft.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),n.rect(0,.5*i-10,10,20),n.fillAndStroke(),n.roundrect(10,0,o-10,i,10,10),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLObjectFlowLeft.prototype.cst.OBJ_FLOW_L,mxShapeSysMLObjectFlowLeft),mxShapeSysMLObjectFlowLeft.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1,null,5,0)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1,null,5,0)),o},mxUtils.extend(mxShapeSysMLActivityPartition,mxShape),mxShapeSysMLActivityPartition.prototype.cst={ACT_PART:"mxgraph.sysml.actPart"},mxShapeSysMLActivityPartition.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),n.begin(),n.moveTo(0,0),n.lineTo(0,i),n.moveTo(o,0),n.lineTo(o,i),n.stroke()},mxCellRenderer.registerShape(mxShapeSysMLActivityPartition.prototype.cst.ACT_PART,mxShapeSysMLActivityPartition),mxUtils.extend(mxShapeSysMLContinuation,mxShape),mxShapeSysMLContinuation.prototype.cst={CONT:"mxgraph.sysml.cont"},mxShapeSysMLContinuation.prototype.paintVertexShape=function(n,t,e,o,i){if(n.translate(t,e),o>i){var s=.5*i;n.begin(),n.moveTo(o-s,0),n.arcTo(s,s,0,0,1,o-s,i),n.lineTo(s,i),n.arcTo(s,s,0,0,1,s,0),n.close(),n.fillAndStroke()}else s=.5*o,n.begin(),n.moveTo(0,i-s),n.arcTo(s,s,0,0,0,o,i-s),n.lineTo(o,s),n.arcTo(s,s,0,0,0,0,s),n.close(),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLContinuation.prototype.cst.CONT,mxShapeSysMLContinuation),mxShapeSysMLContinuation.prototype.getConstraints=function(n,t,e){var o=[];if(o.push(new mxConnectionConstraint(new mxPoint(0,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.5),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),t>e){var i=.5*e;t>2*e&&(o.push(new mxConnectionConstraint(new mxPoint(.25,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,0),!1)),o.push(new mxConnectionConstraint(new mxPoint(.25,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1)))}else i=.5*t,e>2*t&&(o.push(new mxConnectionConstraint(new mxPoint(0,.25),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,.75),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.25),!1)),o.push(new mxConnectionConstraint(new mxPoint(1,.75),!1)));return o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.29*i,.29*i)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.29*i,.29*i)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,.29*i,e-.29*i)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-.29*i,e-.29*i)),o},mxUtils.extend(mxShapeSysMLCoregion,mxShape),mxShapeSysMLCoregion.prototype.cst={COREGION:"mxgraph.sysml.coregion"},mxShapeSysMLCoregion.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e);var s=10;s=Math.min(s,i),n.begin(),n.moveTo(0,s),n.lineTo(0,0),n.lineTo(o,0),n.lineTo(o,s),n.moveTo(0,i-s),n.lineTo(0,i),n.lineTo(o,i),n.lineTo(o,i-s),n.stroke()},mxCellRenderer.registerShape(mxShapeSysMLCoregion.prototype.cst.COREGION,mxShapeSysMLCoregion),mxMarker.addMarker("sysMLx",(function(n,t,e,o,i,s,r,a,m,p){var x=i*(r+m+1),l=s*(r+m+1);return function(){n.begin(),n.moveTo(o.x-x/2-l/2,o.y-l/2+x/2),n.lineTo(o.x+x/2+l/2,o.y+l/2-x/2),n.moveTo(o.x+x/2-l/2,o.y+l/2+x/2),n.lineTo(o.x-x/2+l/2,o.y-l/2-x/2),n.stroke()}})),mxUtils.extend(mxShapeSysMLDimension,mxShape),mxShapeSysMLDimension.prototype.cst={DIMENSION:"mxgraph.sysml.dimension"},mxShapeSysMLDimension.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),this.background(n,t,e,o,i)},mxShapeSysMLDimension.prototype.background=function(n,t,e,o,i){n.begin(),n.moveTo(0,20),n.lineTo(o,20),n.moveTo(10,15),n.lineTo(0,20),n.lineTo(10,25),n.moveTo(o-10,15),n.lineTo(o,20),n.lineTo(o-10,25),n.moveTo(0,15),n.lineTo(0,i),n.moveTo(o,15),n.lineTo(o,i),n.stroke()},mxCellRenderer.registerShape(mxShapeSysMLDimension.prototype.cst.DIMENSION,mxShapeSysMLDimension),mxMarker.addMarker("sysMLLost",(function(n,t,e,o,i,s,r,a,m,p){var x=i*(r+m+1),l=s*(r+m+1),h=r/2;return function(){n.begin(),n.moveTo(o.x-1.5*x-l/2,o.y-1.5*l+x/2),n.lineTo(o.x-x/2,o.y-l/2),n.lineTo(o.x-1.5*x+l/2,o.y-1.5*l-x/2),n.stroke(),n.ellipse(o.x-.5*x-h,o.y-.5*l-h,2*h,2*h);var e=mxUtils.getValue(t.style,mxConstants.STYLE_STROKECOLOR,"#000000");n.setFillColor(e),n.fillAndStroke()}})),mxMarker.addMarker("sysMLFound",(function(n,t,e,o,i,s,r,a,m,p){var x=i*(r+m+1),l=s*(r+m+1),h=r/2;return function(){n.ellipse(o.x-.5*x-h,o.y-.5*l-h,2*h,2*h);var e=mxUtils.getValue(t.style,mxConstants.STYLE_STROKECOLOR,"#000000");n.setFillColor(e),n.fillAndStroke()}})),mxUtils.extend(mxShapeSysMLCompositeState,mxShape),mxShapeSysMLCompositeState.prototype.cst={COMP_STATE:"mxgraph.sysml.compState"},mxShapeSysMLCompositeState.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),this.background(n,t,e,o,i)},mxShapeSysMLCompositeState.prototype.background=function(n,t,e,o,i){n.roundrect(0,20,o,i-20,10,10),n.fillAndStroke(),n.rect(15,0,110,20),n.fillAndStroke()},mxCellRenderer.registerShape(mxShapeSysMLCompositeState.prototype.cst.COMP_STATE,mxShapeSysMLCompositeState),mxShapeSysMLCompositeState.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,2.9,22.9)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-2.9,22.9)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,2.9,e-2.9)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-2.9,e-2.9)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.25*(e-20)+20)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(e-20)+20)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.75*(e-20)+20)),o.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,.25*(e-20)+20)),o.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,.5*(e-20)+20)),o.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,.75*(e-20)+20)),o.push(new mxConnectionConstraint(new mxPoint(.25,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,15,0)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,70,0)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,125,0)),.75*t>125&&(o.push(new mxConnectionConstraint(new mxPoint(.75,0),!1,null,0,20)),.5*t>125&&(o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1,null,0,20)),.25*t>125&&o.push(new mxConnectionConstraint(new mxPoint(.25,0),!1,null,0,20)))),o},mxUtils.extend(mxShapeSysMLRegion,mxShape),mxShapeSysMLRegion.prototype.cst={REGION:"mxgraph.sysml.region"},mxShapeSysMLRegion.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),this.background(n,t,e,o,i,20,50),n.setShadow(!1),this.foreground(n,t,e,o,i,20,50)},mxShapeSysMLRegion.prototype.background=function(n,t,e,o,i,s,r){var a=parseInt(mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1"));n.roundrect(0,s,o,i-s,10,10),n.fillAndStroke(),n.setStrokeWidth(2*a),n.rect(15,0,r,s),n.fillAndStroke(),n.setStrokeWidth(a)},mxShapeSysMLRegion.prototype.foreground=function(n,t,e,o,i,s,r){n.setDashed(!0),n.begin(),n.moveTo(.5*o,s),n.lineTo(.5*o,i),n.stroke()},mxCellRenderer.registerShape(mxShapeSysMLRegion.prototype.cst.REGION,mxShapeSysMLRegion),mxShapeSysMLRegion.prototype.getConstraints=function(n,t,e){var o=[];return o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,2.9,22.9)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-2.9,22.9)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,2.9,e-2.9)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,t-2.9,e-2.9)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.25*(e-20)+20)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.5*(e-20)+20)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,0,.75*(e-20)+20)),o.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,.25*(e-20)+20)),o.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,.5*(e-20)+20)),o.push(new mxConnectionConstraint(new mxPoint(1,0),!1,null,0,.75*(e-20)+20)),o.push(new mxConnectionConstraint(new mxPoint(.25,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.5,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(.75,1),!1)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,15,0)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,40,0)),o.push(new mxConnectionConstraint(new mxPoint(0,0),!1,null,65,0)),.75*t>65&&(o.push(new mxConnectionConstraint(new mxPoint(.75,0),!1,null,0,20)),.5*t>65&&(o.push(new mxConnectionConstraint(new mxPoint(.5,0),!1,null,0,20)),.25*t>65&&o.push(new mxConnectionConstraint(new mxPoint(.25,0),!1,null,0,20)))),o},mxUtils.extend(mxShapeSysMLSimpleState,mxShape),mxShapeSysMLSimpleState.prototype.cst={SIMPLE_STATE:"mxgraph.sysml.simpleState"},mxShapeSysMLSimpleState.prototype.paintVertexShape=function(n,t,e,o,i){n.translate(t,e),this.background(n,t,e,o,i),n.setShadow(!1)}