UNPKG

@zklogic/draw.io

Version:

Draw.IO - Graph Editor integration in Angular-cli

1 lines 1.23 MB
function mxBpmnShape(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeBpmn2SendMarker(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1,this.dx=this.dy=.5,this.notch=0}function mxShapeBpmnEvent(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeBpmnGateway(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeBpmn2Task(e,t,o,n){mxCellRenderer.prototype.getShape("mxgraph.basic.rect").call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1,this.dx=this.dy=.5,this.notch=0}function mxShapeBpmn2Data(e,t,o,n){mxCellRenderer.prototype.getShape("note").call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1,this.dx=this.dy=.5,this.notch=0}function mxShapeBpmn2Swimlane(e,t,o,n){mxCellRenderer.prototype.getShape("note").call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1,this.dx=this.dy=.5,this.notch=0}function mxShapeBpmn2Conversation(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeEREntity(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeEREntityExt(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeERAttribute(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeERHas(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeERCloud(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeERHierarchy(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeERNote(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeERChen(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeERBachman(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeERInfEng(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeERRRect(e,t,o,n){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=o,this.strokewidth=null!=n?n:1}function mxShapeERAnchor(e,t,o,n){mxShape.call(this),this.bounds=e}mxUtils.extend(mxBpmnShape,mxShape),mxBpmnShape.prototype.customProperties=[{name:"symbol",dispName:"Event",type:"enum",defVal:"general",enumList:[{val:"general",dispName:"General"},{val:"message",dispName:"Message"},{val:"timer",dispName:"Timer"},{val:"escalation",dispName:"Escalation"},{val:"conditional",dispName:"Conditional"},{val:"link",dispName:"Link"},{val:"error",dispName:"Error"},{val:"cancel",dispName:"Cancel"},{val:"compensation",dispName:"Compensation"},{val:"signal",dispName:"Signal"},{val:"multiple",dispName:"Multiple"},{val:"parallelMultiple",dispName:"Parallel Multiple"},{val:"terminate",dispName:"Terminate"},{val:"exclusiveGw",dispName:"Exclusive Gw"},{val:"parallelGw",dispName:"Parallel Gw"},{val:"complexGw",dispName:"Complex Gw"}]},{name:"outline",dispName:"Event Type",type:"enum",defVal:"standard",enumList:[{val:"standard",dispName:"Standard"},{val:"eventInt",dispName:"Interrupting"},{val:"eventNonint",dispName:"Non-Interrupting"},{val:"catching",dispName:"Catching"},{val:"boundInt",dispName:"Bound Interrupting"},{val:"boundNonint",dispName:"Bound Non-Interrupting"},{val:"throwing",dispName:"Throwing"},{val:"end",dispName:"End"},{val:"none",dispName:"None"}]},{name:"background",dispName:"Background",type:"enum",defVal:"none",enumList:[{val:"gateway",dispName:"Gateway"},{val:"none",dispName:"None"}]}],mxBpmnShape.prototype.eventTypeEnum={START_STANDARD:"standard",EVENT_SP_INT:"eventInt",EVENT_SP_NONINT:"eventNonint",CATCHING:"catching",BOUND_INT:"boundInt",BOUND_NONINT:"boundNonint",THROWING:"throwing",END:"end",NONE:"none",GATEWAY:"gateway"},mxBpmnShape.prototype.eventEnum={GENERAL:"general",MESSAGE:"message",TIMER:"timer",ESCALATION:"escalation",CONDITIONAL:"conditional",LINK:"link",ERROR:"error",CANCEL:"cancel",COMPENSATION:"compensation",SIGNAL:"signal",MULTIPLE:"multiple",PAR_MULTI:"parallelMultiple",TERMINATE:"terminate",GW_EXCLUSIVE:"exclusiveGw",GW_PARALLEL:"parallelGw",GW_COMPLEX:"complexGw"},mxBpmnShape.prototype.miscEnum={OUTLINE:"outline",BACKGROUND:"background",SYMBOL:"symbol",GATEWAY:"gateway"},mxBpmnShape.prototype.paintVertexShape=function(e,t,o,n,i){this.redrawPath(e,t,o,n,i,mxBpmnShape.prototype.miscEnum.BACKGROUND),mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.BACKGROUND,mxBpmnShape.prototype.eventTypeEnum.NONE)===mxBpmnShape.prototype.eventTypeEnum.GATEWAY&&e.setShadow(!1),this.redrawPath(e,t,o,n,i,mxBpmnShape.prototype.miscEnum.OUTLINE),this.redrawPath(e,t,o,n,i,mxBpmnShape.prototype.miscEnum.SYMBOL)},mxBpmnShape.prototype.redrawPath=function(e,t,o,n,i,a){var s=mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.BACKGROUND,mxBpmnShape.prototype.eventTypeEnum.NONE);if(a==mxBpmnShape.prototype.miscEnum.BACKGROUND){if(null!=s){var l=this.backgrounds[s];null!=l&&(e.translate(t,o),l.call(this,e,t,o,n,i,a))}}else if(a==mxBpmnShape.prototype.miscEnum.OUTLINE)s===mxBpmnShape.prototype.eventTypeEnum.GATEWAY?(e.translate(n/4,i/4),i/=2,n/=2,this.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(.25,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.75),!1),new mxConnectionConstraint(new mxPoint(.75,.25),!1),new mxConnectionConstraint(new mxPoint(.75,.75),!1)]):this.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(.145,.145),!1),new mxConnectionConstraint(new mxPoint(.145,.855),!1),new mxConnectionConstraint(new mxPoint(.855,.145),!1),new mxConnectionConstraint(new mxPoint(.855,.855),!1)],null!=(m=mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.OUTLINE,mxBpmnShape.prototype.eventTypeEnum.NONE))&&null!=(l=this.outlines[m])&&l.call(this,e,t,o,n,i,s===mxBpmnShape.prototype.eventTypeEnum.GATEWAY);else if(a==mxBpmnShape.prototype.miscEnum.SYMBOL&&(s===mxBpmnShape.prototype.eventTypeEnum.GATEWAY&&(i/=2,n/=2),null!=(s=mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.SYMBOL,null))&&null!=(l=this.symbols[s]))){var r=e.state.strokeColor,p=e.state.fillColor,m=mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.OUTLINE,mxBpmnShape.prototype.eventTypeEnum.NONE);s===mxBpmnShape.prototype.eventEnum.MESSAGE?(e.translate(.15*n,.3*i),n*=.7,i*=.4):s===mxBpmnShape.prototype.eventEnum.TIMER?(e.translate(.11*n,.11*i),n*=.78,i*=.78):s===mxBpmnShape.prototype.eventEnum.ESCALATION?(e.translate(.19*n,.15*i),n*=.62,i*=.57):s===mxBpmnShape.prototype.eventEnum.CONDITIONAL?(e.translate(.3*n,.16*i),n*=.4,i*=.68):s===mxBpmnShape.prototype.eventEnum.LINK?(e.translate(.27*n,.33*i),n*=.46,i*=.34):s===mxBpmnShape.prototype.eventEnum.ERROR?(e.translate(.212*n,.243*i),n*=.58,i*=.507):s===mxBpmnShape.prototype.eventEnum.CANCEL?(e.translate(.22*n,.22*i),n*=.56,i*=.56):s===mxBpmnShape.prototype.eventEnum.COMPENSATION?(e.translate(.28*n,.35*i),n*=.44,i*=.3):s===mxBpmnShape.prototype.eventEnum.SIGNAL?(e.translate(.19*n,.15*i),n*=.62,i*=.57):s===mxBpmnShape.prototype.eventEnum.MULTIPLE?(e.translate(.2*n,.19*i),n*=.6,i*=.565):s===mxBpmnShape.prototype.eventEnum.PAR_MULTI?(e.translate(.2*n,.2*i),n*=.6,i*=.6):s===mxBpmnShape.prototype.eventEnum.TERMINATE?(e.translate(.05*n,.05*i),n*=.9,i*=.9):s===mxBpmnShape.prototype.eventEnum.GW_EXCLUSIVE&&(e.translate(.12*n,0),n*=.76);var h=!1;"star"===s?e.setFillColor(r):m!==mxBpmnShape.prototype.eventTypeEnum.THROWING&&m!==mxBpmnShape.prototype.eventTypeEnum.END||(e.setStrokeColor(p),e.setFillColor(r),h=!0),l.call(this,e,t,o,n,i,a,h),"star"===s?e.setFillColor(p):m!==mxBpmnShape.prototype.eventTypeEnum.THROWING&&m!==mxBpmnShape.prototype.eventTypeEnum.END||(e.setStrokeColor(r),e.setFillColor(p))}},mxBpmnShape.prototype.backgrounds={none:function(e,t,o,n,i){},gateway:function(e,t,o,n,i){e.begin(),e.moveTo(n/2,0),e.lineTo(n,i/2),e.lineTo(n/2,i),e.lineTo(0,i/2),e.close(),e.fillAndStroke()}},mxBpmnShape.prototype.outlines={none:function(e,t,o,n,i,a){a||e.setShadow(!1)},standard:function(e,t,o,n,i,a){e.ellipse(0,0,n,i),e.fillAndStroke(),a||e.setShadow(!1)},eventInt:function(e,t,o,n,i,a){e.ellipse(0,0,n,i),e.fillAndStroke(),a||e.setShadow(!1)},eventNonint:function(e,t,o,n,i,a){t=e.state.dashed,e.setDashed(!0),e.ellipse(0,0,n,i),e.fillAndStroke(),e.setDashed(t),a||e.setShadow(!1)},catching:function(e,t,o,n,i,a){e.ellipse(0,0,n,i),e.fillAndStroke(),a||e.setShadow(!1),e.ellipse(2,2,n-4,i-4),e.stroke()},boundInt:function(e,t,o,n,i,a){e.ellipse(0,0,n,i),e.fillAndStroke(),a||e.setShadow(!1),e.ellipse(2,2,n-4,i-4),e.stroke()},boundNonint:function(e,t,o,n,i,a){t=e.state.dashed,e.setDashed(!0),e.ellipse(0,0,n,i),e.fillAndStroke(),a||e.setShadow(!1),e.ellipse(2,2,n-4,i-4),e.stroke(),e.setDashed(t)},throwing:function(e,t,o,n,i,a){e.ellipse(0,0,n,i),e.fillAndStroke(),a||e.setShadow(!1),e.ellipse(.02*n+2,.02*i+2,.96*n-4,.96*i-4),e.stroke()},end:function(e,t,o,n,i,a){t=e.state.strokeWidth,e.setStrokeWidth(3*t),e.ellipse(0,0,n,i),e.fillAndStroke(),e.setStrokeWidth(t),a||e.setShadow(!1)}},mxBpmnShape.prototype.symbols={general:function(e,t,o,n,i){},message:function(e,t,o,n,i,a,s){e.rect(0,0,n,i),e.fillAndStroke(),"none"===mxUtils.getValue(this.style,"fillColor","none")&&s&&e.setStrokeColor("#ffffff"),e.begin(),e.moveTo(0,0),e.lineTo(.5*n,.5*i),e.lineTo(n,0),e.stroke()},timer:function(e,t,o,n,i){e.ellipse(0,0,n,i),e.fillAndStroke(),e.begin(),e.moveTo(.5*n,0),e.lineTo(.5*n,.0642*i),e.moveTo(.7484*n,.0654*i),e.lineTo(.7126*n,.1281*i),e.moveTo(.93*n,.2471*i),e.lineTo(.8673*n,.2854*i),e.moveTo(n,.5*i),e.lineTo(.9338*n,.5*i),e.moveTo(.93*n,.7509*i),e.lineTo(.8673*n,.7126*i),e.moveTo(.7484*n,.9326*i),e.lineTo(.7126*n,.8699*i),e.moveTo(.5*n,.9338*i),e.lineTo(.5*n,i),e.moveTo(.2496*n,.9325*i),e.lineTo(.2854*n,.8699*i),e.moveTo(.068*n,.7509*i),e.lineTo(.1307*n,.7126*i),e.moveTo(0,.5*i),e.lineTo(.0642*n,.5*i),e.moveTo(.068*n,.2471*i),e.lineTo(.1307*n,.2854*i),e.moveTo(.2496*n,.0654*i),e.lineTo(.2854*n,.1281*i),e.moveTo(.5246*n,.0706*i),e.lineTo(.5*n,.5*i),e.lineTo(.7804*n,.5118*i),e.stroke()},escalation:function(e,t,o,n,i){e.begin(),e.moveTo(0,i),e.lineTo(.5*n,0),e.lineTo(n,i),e.lineTo(.5*n,.5*i),e.close(),e.fillAndStroke()},conditional:function(e,t,o,n,i){e.rect(0,0,n,i),e.fillAndStroke(),e.begin(),e.moveTo(0,.1027*i),e.lineTo(.798*n,.1027*i),e.moveTo(0,.3669*i),e.lineTo(.798*n,.3669*i),e.moveTo(0,.6311*i),e.lineTo(.798*n,.6311*i),e.moveTo(0,.8953*i),e.lineTo(.798*n,.8953*i),e.stroke()},link:function(e,t,o,n,i){e.begin(),e.moveTo(0,.76*i),e.lineTo(0,.24*i),e.lineTo(.63*n,.24*i),e.lineTo(.63*n,0),e.lineTo(n,.5*i),e.lineTo(.63*n,i),e.lineTo(.63*n,.76*i),e.close(),e.fillAndStroke()},error:function(e,t,o,n,i,a,s){e.begin(),e.moveTo(0,i),e.lineTo(.3287*n,.123*i),e.lineTo(.6194*n,.6342*i),e.lineTo(n,0),e.lineTo(.6625*n,.939*i),e.lineTo(.3717*n,.5064*i),e.close(),s?e.fill():e.fillAndStroke()},cancel:function(e,t,o,n,i){e.begin(),e.moveTo(.1051*n,0),e.lineTo(.5*n,.3738*i),e.lineTo(.8909*n,0),e.lineTo(n,.1054*i),e.lineTo(.623*n,.5*i),e.lineTo(n,.8926*i),e.lineTo(.8909*n,i),e.lineTo(.5*n,.6242*i),e.lineTo(.1051*n,i),e.lineTo(0,.8926*i),e.lineTo(.373*n,.5*i),e.lineTo(0,.1054*i),e.close(),e.fillAndStroke()},compensation:function(e,t,o,n,i){e.begin(),e.moveTo(0,.5*i),e.lineTo(.5*n,0),e.lineTo(.5*n,i),e.close(),e.moveTo(.5*n,.5*i),e.lineTo(n,0),e.lineTo(n,i),e.close(),e.fillAndStroke()},signal:function(e,t,o,n,i){e.begin(),e.moveTo(0,i),e.lineTo(.5*n,0),e.lineTo(n,i),e.close(),e.fillAndStroke()},multiple:function(e,t,o,n,i){e.begin(),e.moveTo(0,.39*i),e.lineTo(.5*n,0),e.lineTo(n,.39*i),e.lineTo(.815*n,i),e.lineTo(.185*n,i),e.close(),e.fillAndStroke()},parallelMultiple:function(e,t,o,n,i){e.begin(),e.moveTo(.38*n,0),e.lineTo(.62*n,0),e.lineTo(.62*n,.38*i),e.lineTo(n,.38*i),e.lineTo(n,.62*i),e.lineTo(.62*n,.62*i),e.lineTo(.62*n,i),e.lineTo(.38*n,i),e.lineTo(.38*n,.62*i),e.lineTo(0,.62*i),e.lineTo(0,.38*i),e.lineTo(.38*n,.38*i),e.close(),e.fillAndStroke()},terminate:function(e,t,o,n,i){e.ellipse(0,0,n,i),e.fillAndStroke()},exclusiveGw:function(e,t,o,n,i){t=e.state.strokeColor,o=e.state.fillColor,e.setStrokeColor(o),e.setFillColor(t),e.begin(),e.moveTo(.105*n,0),e.lineTo(.5*n,.38*i),e.lineTo(.895*n,0*i),e.lineTo(n,.11*i),e.lineTo(.6172*n,.5*i),e.lineTo(n,.89*i),e.lineTo(.895*n,i),e.lineTo(.5*n,.62*i),e.lineTo(.105*n,i),e.lineTo(0,.89*i),e.lineTo(.3808*n,.5*i),e.lineTo(0,.11*i),e.close(),e.fillAndStroke(),e.setStrokeColor(t),e.setFillColor(o)},parallelGw:function(e,t,o,n,i){t=e.state.strokeColor,o=e.state.fillColor,e.setStrokeColor(o),e.setFillColor(t),e.begin(),e.moveTo(.38*n,0),e.lineTo(.62*n,0),e.lineTo(.62*n,.38*i),e.lineTo(n,.38*i),e.lineTo(n,.62*i),e.lineTo(.62*n,.62*i),e.lineTo(.62*n,i),e.lineTo(.38*n,i),e.lineTo(.38*n,.62*i),e.lineTo(0,.62*i),e.lineTo(0,.38*i),e.lineTo(.38*n,.38*i),e.close(),e.fillAndStroke(),e.setStrokeColor(t),e.setFillColor(o)},complexGw:function(e,t,o,n,i){t=e.state.strokeColor,o=e.state.fillColor,e.setStrokeColor(o),e.setFillColor(t),e.begin(),e.moveTo(0,.44*i),e.lineTo(.36*n,.44*i),e.lineTo(.1*n,.18*i),e.lineTo(.18*n,.1*i),e.lineTo(.44*n,.36*i),e.lineTo(.44*n,0),e.lineTo(.56*n,0),e.lineTo(.56*n,.36*i),e.lineTo(.82*n,.1*i),e.lineTo(.9*n,.18*i),e.lineTo(.64*n,.44*i),e.lineTo(n,.44*i),e.lineTo(n,.56*i),e.lineTo(.64*n,.56*i),e.lineTo(.9*n,.82*i),e.lineTo(.82*n,.9*i),e.lineTo(.56*n,.64*i),e.lineTo(.56*n,i),e.lineTo(.44*n,i),e.lineTo(.44*n,.64*i),e.lineTo(.18*n,.9*i),e.lineTo(.1*n,.82*i),e.lineTo(.36*n,.56*i),e.lineTo(0,.56*i),e.close(),e.fillAndStroke(),e.setStrokeColor(t),e.setFillColor(o)},star:function(e,t,o,n,i){e.translate(n/5,i/6),i*=2/3,n*=.6,e.begin(),e.moveTo(0,i/4),e.lineTo(n/3,i/4),e.lineTo(n/2,0),e.lineTo(2*n/3,i/4),e.lineTo(n,i/4),e.lineTo(5*n/6,i/2),e.lineTo(n,3*i/4),e.lineTo(2*n/3,3*i/4),e.lineTo(n/2,i),e.lineTo(n/3,3*i/4),e.lineTo(0,3*i/4),e.lineTo(n/6,i/2),e.close(),e.fillAndStroke()}},mxCellRenderer.registerShape("mxgraph.bpmn.shape",mxBpmnShape),mxUtils.extend(mxShapeBpmn2SendMarker,mxActor),mxShapeBpmn2SendMarker.prototype.cst={SEND:"mxgraph.bpmn.sendMarker"},mxShapeBpmn2SendMarker.prototype.paintVertexShape=function(e,t,o,n,i){e.translate(t,o),e.rect(0,0,n,i),e.fillAndStroke(),e.setShadow(!1),e.begin(),e.moveTo(0,0),e.lineTo(.5*n,.5*i),e.lineTo(n,0),e.stroke()},mxCellRenderer.registerShape(mxShapeBpmn2SendMarker.prototype.cst.SEND,mxShapeBpmn2SendMarker),mxUtils.extend(mxShapeBpmnEvent,mxShape),mxShapeBpmnEvent.prototype.eventTypeEnum={START_STANDARD:"standard",EVENT_SP_INT:"eventInt",EVENT_SP_NONINT:"eventNonint",CATCHING:"catching",BOUND_INT:"boundInt",BOUND_NONINT:"boundNonint",THROWING:"throwing",END:"end",NONE:"none"},mxShapeBpmnEvent.prototype.eventEnum={GENERAL:"general",MESSAGE:"message",TIMER:"timer",ESCALATION:"escalation",CONDITIONAL:"conditional",LINK:"link",ERROR:"error",CANCEL:"cancel",COMPENSATION:"compensation",SIGNAL:"signal",MULTIPLE:"multiple",PAR_MULTI:"parallelMultiple",TERMINATE:"terminate"},mxShapeBpmnEvent.prototype.miscEnum={OUTLINE:"outline",SYMBOL:"symbol"},mxShapeBpmnEvent.prototype.customProperties=[{name:mxShapeBpmnEvent.prototype.miscEnum.SYMBOL,dispName:"Event",type:"enum",defVal:mxShapeBpmnEvent.prototype.eventEnum.GENERAL,enumList:[{val:mxShapeBpmnEvent.prototype.eventEnum.GENERAL,dispName:"General"},{val:mxShapeBpmnEvent.prototype.eventEnum.MESSAGE,dispName:"Message"},{val:mxShapeBpmnEvent.prototype.eventEnum.TIMER,dispName:"Timer"},{val:mxShapeBpmnEvent.prototype.eventEnum.ESCALATION,dispName:"Escalation"},{val:mxShapeBpmnEvent.prototype.eventEnum.CONDITIONAL,dispName:"Conditional"},{val:mxShapeBpmnEvent.prototype.eventEnum.LINK,dispName:"Link"},{val:mxShapeBpmnEvent.prototype.eventEnum.ERROR,dispName:"Error"},{val:mxShapeBpmnEvent.prototype.eventEnum.CANCEL,dispName:"Cancel"},{val:mxShapeBpmnEvent.prototype.eventEnum.COMPENSATION,dispName:"Compensation"},{val:mxShapeBpmnEvent.prototype.eventEnum.SIGNAL,dispName:"Signal"},{val:mxShapeBpmnEvent.prototype.eventEnum.MULTIPLE,dispName:"Multiple"},{val:mxShapeBpmnEvent.prototype.eventEnum.PAR_MULTI,dispName:"Parallel Multiple"},{val:mxShapeBpmnEvent.prototype.eventEnum.TERMINATE,dispName:"Terminate"}]},{name:mxShapeBpmnEvent.prototype.miscEnum.OUTLINE,dispName:"Event Type",type:"enum",defVal:mxShapeBpmnEvent.prototype.eventTypeEnum.START_STANDARD,enumList:[{val:mxShapeBpmnEvent.prototype.eventTypeEnum.START_STANDARD,dispName:"Standard"},{val:mxShapeBpmnEvent.prototype.eventTypeEnum.EVENT_SP_INT,dispName:"Interrupting"},{val:mxShapeBpmnEvent.prototype.eventTypeEnum.EVENT_SP_NONINT,dispName:"Non-Interrupting"},{val:mxShapeBpmnEvent.prototype.eventTypeEnum.CATCHING,dispName:"Catching"},{val:mxShapeBpmnEvent.prototype.eventTypeEnum.BOUND_INT,dispName:"Bound Interrupting"},{val:mxShapeBpmnEvent.prototype.eventTypeEnum.BOUND_NONINT,dispName:"Bound Non-Interrupting"},{val:mxShapeBpmnEvent.prototype.eventTypeEnum.THROWING,dispName:"Throwing"},{val:mxShapeBpmnEvent.prototype.eventTypeEnum.END,dispName:"End"},{val:mxShapeBpmnEvent.prototype.eventTypeEnum.NONE,dispName:"None"}]}],mxShapeBpmnEvent.prototype.paintVertexShape=function(e,t,o,n,i){e.translate(t,o),this.strictDrawShape(e,0,0,n,i,null)},mxShapeBpmnEvent.prototype.strictDrawShape=function(e,t,o,n,i,a,s){if(null==a&&(a=mxUtils.getValue(this.style,this.miscEnum.OUTLINE,this.eventTypeEnum.NONE)),null!=a){var l=mxShapeBpmnEvent.prototype.outlines[a];null!=l&&(e.translate(t,o),l.call(this,e,t,o,n,i))}if(null==s&&(s=mxUtils.getValue(this.style,this.miscEnum.SYMBOL,null)),null!=s&&null!=(l=mxShapeBpmnEvent.prototype.symbols[s])){var r=e.state.strokeColor,p=e.state.fillColor;s===this.eventEnum.MESSAGE?(e.translate(.15*n,.3*i),n*=.7,i*=.4):s===this.eventEnum.TIMER?(e.translate(.11*n,.11*i),n*=.78,i*=.78):s===this.eventEnum.ESCALATION?(e.translate(.19*n,.15*i),n*=.62,i*=.57):s===this.eventEnum.CONDITIONAL?(e.translate(.3*n,.16*i),n*=.4,i*=.68):s===this.eventEnum.LINK?(e.translate(.27*n,.33*i),n*=.46,i*=.34):s===this.eventEnum.ERROR?(e.translate(.212*n,.243*i),n*=.58,i*=.507):s===this.eventEnum.CANCEL?(e.translate(.22*n,.22*i),n*=.56,i*=.56):s===this.eventEnum.COMPENSATION?(e.translate(.28*n,.35*i),n*=.44,i*=.3):s===this.eventEnum.SIGNAL?(e.translate(.19*n,.15*i),n*=.62,i*=.57):s===this.eventEnum.MULTIPLE?(e.translate(.2*n,.19*i),n*=.6,i*=.565):s===this.eventEnum.PAR_MULTI?(e.translate(.2*n,.2*i),n*=.6,i*=.6):s===this.eventEnum.TERMINATE?(e.translate(.05*n,.05*i),n*=.9,i*=.9):s===this.eventEnum.GW_EXCLUSIVE&&(e.translate(.12*n,0),n*=.76);var m=!1;"star"===s?e.setFillColor(r):a!==this.eventTypeEnum.THROWING&&a!==this.eventTypeEnum.END||(e.setStrokeColor(p),e.setFillColor(r),m=!0),l.call(this,e,t,o,n,i,m),"star"===s?e.setFillColor(p):a!==this.eventTypeEnum.THROWING&&a!==this.eventTypeEnum.END||(e.setStrokeColor(r),e.setFillColor(p))}},mxShapeBpmnEvent.prototype.outlines={none:function(e,t,o,n,i){e.setShadow(!1)},standard:function(e,t,o,n,i){e.ellipse(0,0,n,i),e.fillAndStroke(),e.setShadow(!1)},eventInt:function(e,t,o,n,i){e.ellipse(0,0,n,i),e.fillAndStroke(),e.setShadow(!1)},eventNonint:function(e,t,o,n,i){t=e.state.dashed,e.setDashed(!0),e.ellipse(0,0,n,i),e.fillAndStroke(),e.setDashed(t),e.setShadow(!1)},catching:function(e,t,o,n,i){e.ellipse(0,0,n,i),e.fillAndStroke(),e.setShadow(!1),e.ellipse(2,2,n-4,i-4),e.stroke()},boundInt:function(e,t,o,n,i){e.ellipse(0,0,n,i),e.fillAndStroke(),e.setShadow(!1),e.ellipse(2,2,n-4,i-4),e.stroke()},boundNonint:function(e,t,o,n,i){t=e.state.dashed,e.setDashed(!0),e.ellipse(0,0,n,i),e.fillAndStroke(),e.setShadow(!1),e.ellipse(2,2,n-4,i-4),e.stroke(),e.setDashed(t)},throwing:function(e,t,o,n,i){e.ellipse(0,0,n,i),e.fillAndStroke(),e.setShadow(!1),e.ellipse(.02*n+2,.02*i+2,.96*n-4,.96*i-4),e.stroke()},end:function(e,t,o,n,i){t=e.state.strokeWidth,e.setStrokeWidth(3*t),e.ellipse(0,0,n,i),e.fillAndStroke(),e.setStrokeWidth(t),e.setShadow(!1)}},mxShapeBpmnEvent.prototype.symbols={general:function(e,t,o,n,i,a){},message:function(e,t,o,n,i,a){e.rect(0,0,n,i),e.fillAndStroke(),"none"===mxUtils.getValue(this.style,"fillColor","none")&&a&&e.setStrokeColor("#ffffff"),e.begin(),e.moveTo(0,0),e.lineTo(.5*n,.5*i),e.lineTo(n,0),e.stroke()},timer:function(e,t,o,n,i,a){e.ellipse(0,0,n,i),e.fillAndStroke(),e.begin(),e.moveTo(.5*n,0),e.lineTo(.5*n,.0642*i),e.moveTo(.7484*n,.0654*i),e.lineTo(.7126*n,.1281*i),e.moveTo(.93*n,.2471*i),e.lineTo(.8673*n,.2854*i),e.moveTo(n,.5*i),e.lineTo(.9338*n,.5*i),e.moveTo(.93*n,.7509*i),e.lineTo(.8673*n,.7126*i),e.moveTo(.7484*n,.9326*i),e.lineTo(.7126*n,.8699*i),e.moveTo(.5*n,.9338*i),e.lineTo(.5*n,i),e.moveTo(.2496*n,.9325*i),e.lineTo(.2854*n,.8699*i),e.moveTo(.068*n,.7509*i),e.lineTo(.1307*n,.7126*i),e.moveTo(0,.5*i),e.lineTo(.0642*n,.5*i),e.moveTo(.068*n,.2471*i),e.lineTo(.1307*n,.2854*i),e.moveTo(.2496*n,.0654*i),e.lineTo(.2854*n,.1281*i),e.moveTo(.5246*n,.0706*i),e.lineTo(.5*n,.5*i),e.lineTo(.7804*n,.5118*i),e.stroke()},escalation:function(e,t,o,n,i,a){e.setMiterLimit(6),e.begin(),e.moveTo(0,i),e.lineTo(.5*n,0),e.lineTo(n,i),e.lineTo(.5*n,.5*i),e.close(),a?e.fill():e.fillAndStroke()},conditional:function(e,t,o,n,i,a){e.rect(0,0,n,i),e.fillAndStroke(),e.begin(),e.moveTo(0,.1027*i),e.lineTo(.798*n,.1027*i),e.moveTo(0,.3669*i),e.lineTo(.798*n,.3669*i),e.moveTo(0,.6311*i),e.lineTo(.798*n,.6311*i),e.moveTo(0,.8953*i),e.lineTo(.798*n,.8953*i),e.stroke()},link:function(e,t,o,n,i,a){e.begin(),e.moveTo(0,.76*i),e.lineTo(0,.24*i),e.lineTo(.63*n,.24*i),e.lineTo(.63*n,0),e.lineTo(n,.5*i),e.lineTo(.63*n,i),e.lineTo(.63*n,.76*i),e.close(),a?e.fill():e.fillAndStroke()},error:function(e,t,o,n,i,a){e.setMiterLimit(7),e.begin(),e.moveTo(0,i),e.lineTo(.3287*n,.123*i),e.lineTo(.6194*n,.6342*i),e.lineTo(n,0),e.lineTo(.6625*n,.939*i),e.lineTo(.3717*n,.5064*i),e.close(),a?e.fill():e.fillAndStroke()},cancel:function(e,t,o,n,i,a){e.begin(),e.moveTo(.1051*n,0),e.lineTo(.5*n,.3738*i),e.lineTo(.8909*n,0),e.lineTo(n,.1054*i),e.lineTo(.623*n,.5*i),e.lineTo(n,.8926*i),e.lineTo(.8909*n,i),e.lineTo(.5*n,.6242*i),e.lineTo(.1051*n,i),e.lineTo(0,.8926*i),e.lineTo(.373*n,.5*i),e.lineTo(0,.1054*i),e.close(),a?e.fill():e.fillAndStroke()},compensation:function(e,t,o,n,i,a){e.setMiterLimit(1),e.begin(),e.moveTo(0,.5*i),e.lineTo(.5*n,0),e.lineTo(.5*n,i),e.close(),e.moveTo(.5*n,.5*i),e.lineTo(n,0),e.lineTo(n,i),e.close(),a?e.fill():e.fillAndStroke()},signal:function(e,t,o,n,i,a){e.begin(),e.moveTo(0,i),e.lineTo(.5*n,0),e.lineTo(n,i),e.close(),a?e.fill():e.fillAndStroke()},multiple:function(e,t,o,n,i,a){e.begin(),e.moveTo(0,.39*i),e.lineTo(.5*n,0),e.lineTo(n,.39*i),e.lineTo(.815*n,i),e.lineTo(.185*n,i),e.close(),a?e.fill():e.fillAndStroke()},parallelMultiple:function(e,t,o,n,i,a){e.begin(),e.moveTo(.38*n,0),e.lineTo(.62*n,0),e.lineTo(.62*n,.38*i),e.lineTo(n,.38*i),e.lineTo(n,.62*i),e.lineTo(.62*n,.62*i),e.lineTo(.62*n,i),e.lineTo(.38*n,i),e.lineTo(.38*n,.62*i),e.lineTo(0,.62*i),e.lineTo(0,.38*i),e.lineTo(.38*n,.38*i),e.close(),a?e.fill():e.fillAndStroke()},terminate:function(e,t,o,n,i,a){e.ellipse(0,0,n,i),e.fillAndStroke()},star:function(e,t,o,n,i,a){e.translate(n/5,i/6),i*=2/3,n*=.6,e.begin(),e.moveTo(0,i/4),e.lineTo(n/3,i/4),e.lineTo(n/2,0),e.lineTo(2*n/3,i/4),e.lineTo(n,i/4),e.lineTo(5*n/6,i/2),e.lineTo(n,3*i/4),e.lineTo(2*n/3,3*i/4),e.lineTo(n/2,i),e.lineTo(n/3,3*i/4),e.lineTo(0,3*i/4),e.lineTo(n/6,i/2),e.close(),e.fillAndStroke()}},mxCellRenderer.registerShape("mxgraph.bpmn.event",mxShapeBpmnEvent),mxUtils.extend(mxShapeBpmnGateway,mxShape),mxShapeBpmnGateway.prototype.customProperties=mxShapeBpmnEvent.prototype.customProperties,mxShapeBpmnGateway.prototype.eventTypeEnum=mxShapeBpmnEvent.prototype.eventTypeEnum,mxShapeBpmnGateway.prototype.eventEnum=mxShapeBpmnEvent.prototype.eventEnum,mxShapeBpmnGateway.prototype.miscEnum=mxShapeBpmnEvent.prototype.miscEnum,mxShapeBpmnGateway.prototype.customProperties=mxShapeBpmnGateway.prototype.customProperties.concat({name:"gwType",dispName:"Gateway type",type:"enum",defVal:"event",enumList:[{val:"event",dispName:"Event-based"},{val:"exclusive",dispName:"Exclusive"},{val:"parallel",dispName:"Parallel"},{val:"complex",dispName:"Complex"}]}),mxShapeBpmnGateway.prototype.paintVertexShape=function(e,t,o,n,i){e.translate(t,o),e.begin(),e.moveTo(.5*n,0),e.lineTo(n,.5*i),e.lineTo(.5*n,i),e.lineTo(0,.5*i),e.close(),e.fillAndStroke(),e.setShadow(!1);var a=.6*n,s=.6*i,l=mxUtils.getValue(this.style,"gwType","event"),r=mxUtils.getValue(this.style,"outline","none"),p=mxUtils.getValue(this.style,"symbol","standard");t=.5*n,o=.5*i,"event"===l&&null!==r&&"none"!==r?mxShapeBpmnEvent.prototype.strictDrawShape.call(this,e,.5*(n-a),.5*(i-s),a,s,r,p):"exclusive"==l?(e.translate(.31*n,.25*i),t*=.76,n=e.state.strokeColor,i=e.state.fillColor,e.setFillColor(n),e.begin(),e.moveTo(.105*t,0),e.lineTo(.5*t,.38*o),e.lineTo(.895*t,0*o),e.lineTo(t,.11*o),e.lineTo(.6172*t,.5*o),e.lineTo(t,.89*o),e.lineTo(.895*t,o),e.lineTo(.5*t,.62*o),e.lineTo(.105*t,o),e.lineTo(0,.89*o),e.lineTo(.3808*t,.5*o),e.lineTo(0,.11*o),e.close(),e.fillAndStroke(),e.setFillColor(i),e.translate(.12*-t,0)):"parallel"==l?(e.translate(.25*n,.25*i),n=e.state.strokeColor,i=e.state.fillColor,e.setFillColor(n),e.begin(),e.moveTo(.38*t,0),e.lineTo(.62*t,0),e.lineTo(.62*t,.38*o),e.lineTo(t,.38*o),e.lineTo(t,.62*o),e.lineTo(.62*t,.62*o),e.lineTo(.62*t,o),e.lineTo(.38*t,o),e.lineTo(.38*t,.62*o),e.lineTo(0,.62*o),e.lineTo(0,.38*o),e.lineTo(.38*t,.38*o),e.close(),e.fillAndStroke(),e.setFillColor(i)):"complex"==l&&(e.translate(.25*n,.25*i),n=e.state.strokeColor,i=e.state.fillColor,e.setFillColor(n),e.begin(),e.moveTo(0,.44*o),e.lineTo(.36*t,.44*o),e.lineTo(.1*t,.18*o),e.lineTo(.18*t,.1*o),e.lineTo(.44*t,.36*o),e.lineTo(.44*t,0),e.lineTo(.56*t,0),e.lineTo(.56*t,.36*o),e.lineTo(.82*t,.1*o),e.lineTo(.9*t,.18*o),e.lineTo(.64*t,.44*o),e.lineTo(t,.44*o),e.lineTo(t,.56*o),e.lineTo(.64*t,.56*o),e.lineTo(.9*t,.82*o),e.lineTo(.82*t,.9*o),e.lineTo(.56*t,.64*o),e.lineTo(.56*t,o),e.lineTo(.44*t,o),e.lineTo(.44*t,.64*o),e.lineTo(.18*t,.9*o),e.lineTo(.1*t,.82*o),e.lineTo(.36*t,.56*o),e.lineTo(0,.56*o),e.close(),e.fillAndStroke(),e.setFillColor(i))},mxCellRenderer.registerShape("mxgraph.bpmn.gateway2",mxShapeBpmnGateway),mxUtils.extend(mxShapeBpmn2Task,mxCellRenderer.prototype.getShape("mxgraph.basic.rect")),mxShapeBpmn2Task.prototype.customProperties=[{name:"bpmnShapeType",dispName:"Type",defVal:"task",type:"enum",enumList:[{val:"task",dispName:"Task"},{val:"transaction",dispName:"Transaction"},{val:"call",dispName:"Call"},{val:"subprocess",dispName:"Sub-Process"}]},{name:"taskMarker",dispName:"Task Marker",defVal:"abstract",type:"enum",enumList:[{val:"abstract",dispName:"Abstract"},{val:"service",dispName:"Service"},{val:"send",dispName:"Send"},{val:"receive",dispName:"Receive"},{val:"user",dispName:"User"},{val:"nime",dispName:"Non-Interrupting Message Event"},{val:"manual",dispName:"Manual"},{val:"businessRule",dispName:"Business Rule"},{val:"script",dispName:"Script"}]},{name:"isLoopSub",dispName:"Subprocess",type:"bool"},{name:"isLoopStandard",dispName:"Standard Loop",type:"bool"},{name:"isLoopMultiParallel",dispName:"Multi-Instance Parallel Loop",type:"bool"},{name:"isLoopMultiSeq",dispName:"Multi-Instance Sequential Loop",type:"bool"},{name:"isLoopComp",dispName:"Compensation Loop",type:"bool"},{name:"isAdHoc",dispName:"Ad Hoc",type:"bool"}],mxShapeBpmn2Task.prototype.customProperties=mxShapeBpmn2Task.prototype.customProperties.concat(mxShapeBpmnEvent.prototype.customProperties),mxShapeBpmn2Task.prototype.customProperties=mxShapeBpmn2Task.prototype.customProperties.concat(mxCellRenderer.prototype.getShape("mxgraph.basic.rect").prototype.customProperties),mxShapeBpmn2Task.prototype.eventTypeEnum=mxShapeBpmnEvent.prototype.eventTypeEnum,mxShapeBpmn2Task.prototype.eventEnum=mxShapeBpmnEvent.prototype.eventEnum,mxShapeBpmn2Task.prototype.miscEnum=mxShapeBpmnEvent.prototype.miscEnum,mxShapeBpmn2Task.prototype.cst={TASK:"mxgraph.bpmn.task"},mxShapeBpmn2Task.prototype.paintVertexShape=function(e,t,o,n,i){var a=mxUtils.getValue(this.style,"bpmnShapeType","task"),s=mxUtils.getValue(this.style,"taskMarker","abstract"),l=mxUtils.getValue(this.style,"strokeWidth",1),r=mxUtils.getValue(this.style,"dashed",!1),p=mxUtils.getValue(this.style,"indent",3),m=14;mxUtils.getValue(this.style,"rectOutline","single"),e.translate(t,o),t=mxCellRenderer.prototype.getShape("mxgraph.basic.rect"),o={},"transaction"==a?(m+=p,o.rectOutline="double",o.indent=3):"subprocess"==a?o.dashed=!0:"call"==a&&(o.strokeWidth=4),t.prototype.strictDrawShape.call(this,e,0,0,n,i,o),e.setStrokeWidth(l),e.setDashed(r),"call"==a&&e.setStrokeWidth(l),e.setDashed(!1),e.setShadow(!1),l=mxUtils.getValue(this.style,"isLoopSub",!1);var h=mxUtils.getValue(this.style,"isLoopStandard",!1);switch(a=0,h&&a++,(r=mxUtils.getValue(this.style,"isLoopMultiParallel",!1))&&a++,(p=mxUtils.getValue(this.style,"isLoopMultiSeq",!1))&&a++,(t=mxUtils.getValue(this.style,"isLoopComp",!1))&&a++,l&&a++,(o=mxUtils.getValue(this.style,"isAdHoc",!1))&&a++,a*=-7,h&&null!=(h=mxStencilRegistry.getStencil("mxgraph.bpmn.loop"))&&(h.drawShape(e,this,.5*n+a+1,i-m+1,12,12),a+=14),r&&(e.translate(.5*n+a+1,i-m+1),e.begin(),e.moveTo(2.4,0),e.lineTo(2.4,12),e.moveTo(6,0),e.lineTo(6,12),e.moveTo(9.6,0),e.lineTo(9.6,12),e.stroke(),e.translate(.5*-n-a-1,m-1-i),a+=14),p&&(e.translate(.5*n+a+1,i-m+1),e.begin(),e.moveTo(0,2.4),e.lineTo(12,2.4),e.moveTo(0,6),e.lineTo(12,6),e.moveTo(0,9.6),e.lineTo(12,9.6),e.stroke(),e.translate(.5*-n-a-1,m-1-i),a+=14),t&&null!=(h=mxStencilRegistry.getStencil("mxgraph.bpmn.compensation"))&&(h.drawShape(e,this,.5*n+a,i-m+1,14,12),a+=14),l&&(e.translate(.5*n+a,i-m),e.rect(0,0,14,14),e.stroke(),e.begin(),e.moveTo(4,7),e.lineTo(10,7),e.moveTo(7,4),e.lineTo(7,10),e.stroke(),e.translate(.5*-n-a,m-i),a+=14),o&&null!=(h=mxStencilRegistry.getStencil("mxgraph.bpmn.ad_hoc"))&&(l=mxUtils.getValue(this.style,"strokeColor","#000000"),r=mxUtils.getValue(this.style,"fillColor","#ffffff"),e.setStrokeColor("none"),e.setFillColor(l),h.drawShape(e,this,.5*n+a+1,i-m+4,12,6),e.setStrokeColor(l),e.setFillColor(r)),s){case"service":null!=(h=mxStencilRegistry.getStencil("mxgraph.bpmn.service_task"))&&h.drawShape(e,this,2,2,16,16);break;case"send":l=mxUtils.getValue(this.style,"strokeColor","#000000"),r=mxUtils.getValue(this.style,"fillColor","#ffffff"),e.setStrokeColor(r),e.setFillColor(l),mxShapeBpmn2SendMarker.prototype.paintVertexShape(e,4,4,18,13);break;case"receive":mxShapeBpmn2SendMarker.prototype.paintVertexShape(e,4,4,18,13);break;case"user":null!=(h=mxStencilRegistry.getStencil("mxgraph.bpmn.user_task"))&&h.drawShape(e,this,2,2,16,16);break;case"manual":null!=(h=mxStencilRegistry.getStencil("mxgraph.bpmn.manual_task"))&&h.drawShape(e,this,3,3,18,14);break;case"businessRule":null!=(h=mxStencilRegistry.getStencil("mxgraph.bpmn.business_rule_task"))&&h.drawShape(e,this,4,4,18,14);break;case"script":null!=(h=mxStencilRegistry.getStencil("mxgraph.bpmn.script_task"))&&h.drawShape(e,this,3,3,19,18)}n=mxUtils.getValue(this.style,"outline","none"),i=mxUtils.getValue(this.style,"symbol","standard"),mxShapeBpmnEvent.prototype.strictDrawShape.call(this,e,0,0,20,20,n,i)},mxCellRenderer.registerShape(mxShapeBpmn2Task.prototype.cst.TASK,mxShapeBpmn2Task),mxUtils.extend(mxShapeBpmn2Data,mxCellRenderer.prototype.getShape("note")),mxShapeBpmn2Data.prototype.cst={DATA:"mxgraph.bpmn.data"},mxShapeBpmn2Data.prototype.customProperties=[{name:"bpmnTransferType",dispName:"Transfer Type",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"input",dispName:"Input"},{val:"output",dispName:"Output"}]},{name:"isCollection",dispName:"Collection",type:"bool"}],mxShapeBpmn2Data.prototype.paintVertexShape=function(e,t,o,n,i){if(mxCellRenderer.prototype.getShape("note").prototype.paintVertexShape.call(this,e,t,o,n,i),o=mxUtils.getValue(this.style,"bpmnTransferType","none"),t=mxUtils.getValue(this.style,"isCollection",!1),e.setShadow(!1),"input"===o||"output"===o)if(e.translate(3,3),e.begin(),e.moveTo(0,12*.3),e.lineTo(14*.55,12*.3),e.lineTo(14*.55,0),e.lineTo(14,6),e.lineTo(14*.55,12),e.lineTo(14*.55,12*.7),e.lineTo(0,12*.7),e.close(),e.translate(-3,-3),"input"===o)e.stroke();else{o=mxUtils.getValue(this.style,"fillColor","#ffffff");var a=mxUtils.getValue(this.style,"strokeColor","#000000");e.setFillColor(a),e.fillAndStroke(),e.setFillColor(o)}t&&(e.translate(.5*n-6,i-12),e.begin(),e.moveTo(2.4,0),e.lineTo(2.4,12),e.moveTo(6,0),e.lineTo(6,12),e.moveTo(9.6,0),e.lineTo(9.6,12),e.stroke(),e.translate(.5*-n+6,12-i))},mxCellRenderer.registerShape(mxShapeBpmn2Data.prototype.cst.DATA,mxShapeBpmn2Data),Graph.handleFactory[mxShapeBpmn2Data.prototype.cst.DATA]=Graph.handleFactory.note,mxUtils.extend(mxShapeBpmn2Swimlane,mxSwimlane),mxShapeBpmn2Swimlane.prototype.cst={SWIMLANE:"mxgraph.bpmn.swimlane"},mxShapeBpmn2Swimlane.prototype.customProperties=[{name:"isCollection",dispName:"Collection",type:"bool"}],mxShapeBpmn2Swimlane.prototype.paintVertexShape=function(e,t,o,n,i){mxSwimlane.prototype.paintVertexShape.call(this,e,t,o,n,i),t=mxUtils.getValue(this.style,"isCollection",!1),e.setShadow(!1),t&&(e.translate(.5*n-6,i-12),e.begin(),e.moveTo(2.4,0),e.lineTo(2.4,12),e.moveTo(6,0),e.lineTo(6,12),e.moveTo(9.6,0),e.lineTo(9.6,12),e.stroke(),e.translate(.5*-n+6,12-i))},mxCellRenderer.registerShape(mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE,mxShapeBpmn2Swimlane),Graph.handleFactory[mxShapeBpmn2Swimlane.prototype.cst.SWIMLANE]=Graph.handleFactory.swimlane,mxUtils.extend(mxShapeBpmn2Conversation,mxHexagon),mxShapeBpmn2Conversation.prototype.customProperties=[{name:"bpmnConversationType",dispName:"Type",defVal:"conv",type:"enum",enumList:[{val:"conv",dispName:"Conversation"},{val:"call",dispName:"Call"}]},{name:"isLoopSub",dispName:"Subprocess",type:"bool"}],mxShapeBpmn2Conversation.prototype.cst={CONVERSATION:"mxgraph.bpmn.conversation"},mxShapeBpmn2Conversation.prototype.paintVertexShape=function(e,t,o,n,i){var a=mxUtils.getValue(this.style,"bpmnConversationType","conv"),s=mxUtils.getValue(this.style,"strokeWidth",1);"call"==a&&e.setStrokeWidth(4*s),e.translate(t,o),e.begin(),e.moveTo(0,.5*i),e.lineTo(.25*n,0),e.lineTo(.75*n,0),e.lineTo(n,.5*i),e.lineTo(.75*n,i),e.lineTo(.25*n,i),e.close(),e.fillAndStroke(),"call"==a&&e.setStrokeWidth(s),mxUtils.getValue(this.style,"isLoopSub",!1)&&(e.translate(.5*n-7,i-14),e.rect(0,0,14,14),e.stroke(),e.begin(),e.moveTo(4,7),e.lineTo(10,7),e.moveTo(7,4),e.lineTo(7,10),e.stroke())},mxCellRenderer.registerShape(mxShapeBpmn2Conversation.prototype.cst.CONVERSATION,mxShapeBpmn2Conversation),mxUtils.extend(mxShapeEREntity,mxShape),mxShapeEREntity.prototype.paintVertexShape=function(e,t,o,n,i){var a=mxUtils.getValue(this.style,"buttonText","Entity"),s=mxUtils.getValue(this.style,"textColor","#666666"),l=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17");e.translate(t,o),n=Math.max(n,20),i=Math.max(i,20),this.background(e,t,o,n,i,10,s),e.setShadow(!1),this.mainText(e,t,o,n,i,a,l,s)},mxShapeEREntity.prototype.background=function(e,t,o,n,i,a,s){"round"===(t=mxUtils.getValue(this.style,"buttonStyle","round").toString())?(e.begin(),e.moveTo(0,a),e.arcTo(a,a,0,0,1,a,0),e.lineTo(n-a,0),e.arcTo(a,a,0,0,1,n,a),e.lineTo(n,i-a),e.arcTo(a,a,0,0,1,n-a,i),e.lineTo(a,i),e.arcTo(a,a,0,0,1,0,i-a),e.close(),e.fillAndStroke()):"rect"===t?(e.begin(),e.moveTo(0,0),e.lineTo(n,0),e.lineTo(n,i),e.lineTo(0,i),e.close(),e.fillAndStroke()):"dblFrame"===t&&(a=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),e.setFillColor(a),e.begin(),e.moveTo(0,0),e.lineTo(n,0),e.lineTo(n,i),e.lineTo(0,i),e.close(),e.fillAndStroke(),a=Math.min(n,i),e.begin(),e.moveTo(.1*a,.1*a),e.lineTo(n-.1*a,.1*a),e.lineTo(n-.1*a,i-.1*a),e.lineTo(.1*a,i-.1*a),e.close(),e.stroke())},mxShapeEREntity.prototype.mainText=function(e,t,o,n,i,a,s,l){e.begin(),e.setFontSize(s),e.setFontColor(l),e.text(.5*n,.5*i,0,0,a,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)},mxCellRenderer.registerShape("mxgraph.er.entity",mxShapeEREntity),mxShapeEREntity.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)],mxUtils.extend(mxShapeEREntityExt,mxShape),mxShapeEREntityExt.prototype.paintVertexShape=function(e,t,o,n,i){var a=mxUtils.getValue(this.style,"buttonText","Entity"),s=mxUtils.getValue(this.style,"subText","+ attribute 1,+ attribute 2,+ attribute 3").toString().split(","),l=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#666666"),r=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17"),p=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#008cff"),m=mxUtils.getValue(this.style,"fillColor2","#ffffff"),h=0;e.translate(t,o);for(var x=1.25*r,c=0;c<s.length;c++){var u=mxUtils.getSizeForString(s[c],r,mxConstants.DEFAULT_FONTFAMILY).width;u>h&&(h=u)}n=Math.max(n,20,h+10),i=Math.max(i,20,(s.length+1)*x),this.background(e,t,o,n,i,10),e.setShadow(!1),this.shapes(e,t,o,n,i,r,p,m,10,x),this.mainText(e,t,o,n,i,a,r,m),this.attrText(e,t,o,n,i,s,r,l,x,10)},mxShapeEREntityExt.prototype.background=function(e,t,o,n,i,a){t=mxUtils.getValue(this.style,"buttonStyle","round").toString(),e.begin(),"round"===t?(e.moveTo(0,a),e.arcTo(a,a,0,0,1,a,0),e.lineTo(n-a,0),e.arcTo(a,a,0,0,1,n,a),e.lineTo(n,i-a),e.arcTo(a,a,0,0,1,n-a,i),e.lineTo(a,i),e.arcTo(a,a,0,0,1,0,i-a)):"rect"===t&&(e.moveTo(0,0),e.lineTo(n,0),e.lineTo(n,i),e.lineTo(0,i)),e.close(),e.fillAndStroke()},mxShapeEREntityExt.prototype.mainText=function(e,t,o,n,i,a,s,l){e.begin(),e.setFontSize(s),e.setFontColor(l),e.text(.5*n,.5*s,0,0,a,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)},mxShapeEREntityExt.prototype.shapes=function(e,t,o,n,i,a,s,l,r,p){"round"===(t=mxUtils.getValue(this.style,"buttonStyle","round").toString())?(e.begin(),e.moveTo(0,r),e.arcTo(r,r,0,0,1,r,0),e.lineTo(n-r,0),e.arcTo(r,r,0,0,1,n,r),e.lineTo(n,p),e.lineTo(0,p),e.close(),e.fill(),e.setFillColor(l),e.begin(),e.moveTo(n,p),e.lineTo(n,i-r),e.arcTo(r,r,0,0,1,n-r,i),e.lineTo(r,i),e.arcTo(r,r,0,0,1,0,i-r),e.lineTo(0,p),e.close(),e.fill()):"rect"===t&&(e.begin(),e.moveTo(0,0),e.lineTo(n,0),e.lineTo(n,p),e.lineTo(0,p),e.close(),e.fill(),e.setFillColor(l),e.begin(),e.moveTo(0,p),e.lineTo(n,p),e.lineTo(n,i),e.lineTo(0,i),e.close(),e.fill()),e.begin(),"round"===t?(e.moveTo(0,r),e.arcTo(r,r,0,0,1,r,0),e.lineTo(n-r,0),e.arcTo(r,r,0,0,1,n,r),e.lineTo(n,i-r),e.arcTo(r,r,0,0,1,n-r,i),e.lineTo(r,i),e.arcTo(r,r,0,0,1,0,i-r)):"rect"===t&&(e.moveTo(0,0),e.lineTo(n,0),e.lineTo(n,i),e.lineTo(0,i)),e.close(),e.stroke()},mxShapeEREntityExt.prototype.attrText=function(e,t,o,n,i,a,s,l,r,p){for(t=0;t<a.length;t++)e.begin(),e.setFontSize(s),e.setFontColor(l),e.text(.5*p,(t+1.5)*r,0,0,a[t],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)},mxCellRenderer.registerShape("mxgraph.er.entityExt",mxShapeEREntityExt),mxShapeEREntityExt.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)],mxUtils.extend(mxShapeERAttribute,mxShape),mxShapeERAttribute.prototype.paintVertexShape=function(e,t,o,n,i){var a=mxUtils.getValue(this.style,"buttonText","Entity"),s=mxUtils.getValue(this.style,"textColor","#666666"),l=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17");e.translate(t,o),n=Math.max(n,20),i=Math.max(i,20),this.background(e,t,o,n,i,10,s),e.setShadow(!1),this.mainText(e,t,o,n,i,a,l,s)},mxShapeERAttribute.prototype.background=function(e,t,o,n,i,a,s){"simple"===(t=mxUtils.getValue(this.style,"buttonStyle","simple").toString())?(e.begin(),e.ellipse(0,0,n,i),e.fillAndStroke()):"dblFrame"===t&&(t=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#666666"),e.setFillColor(t),e.begin(),e.ellipse(0,0,n,i),e.fillAndStroke(),a=Math.min(n,i),e.begin(),e.ellipse(.1*a,.1*a,n-.2*a,i-.2*a),e.stroke())},mxShapeERAttribute.prototype.mainText=function(e,t,o,n,i,a,s,l){e.begin(),e.setFontSize(s),e.setFontColor(l),e.text(.5*n,.5*i,0,0,a,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)},mxCellRenderer.registerShape("mxgraph.er.attribute",mxShapeERAttribute),mxShapeERAttribute.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.144,.144),!1),new mxConnectionConstraint(new mxPoint(.856,.144),!1),new mxConnectionConstraint(new mxPoint(.856,.856),!1),new mxConnectionConstraint(new mxPoint(.144,.856),!1),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0)],mxUtils.extend(mxShapeERHas,mxShape),mxShapeERHas.prototype.paintVertexShape=function(e,t,o,n,i){var a=mxUtils.getValue(this.style,"buttonText","Entity"),s=mxUtils.getValue(this.style,"textColor","#666666"),l=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17");e.translate(t,o),n=Math.max(n,20),i=Math.max(i,20),this.background(e,t,o,n,i,10,s),e.setShadow(!1),this.mainText(e,t,o,n,i,a,l,s)},mxShapeERHas.prototype.background=function(e,t,o,n,i,a,s){"rhombus"===(t=mxUtils.getValue(this.style,"buttonStyle","rhombus").toString())?(e.begin(),e.moveTo(0,.5*i),e.lineTo(.5*n,0),e.lineTo(n,.5*i),e.lineTo(.5*n,i),e.close(),e.fillAndStroke()):"dblFrame"===t&&(t=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#666666"),e.setFillColor(t),e.begin(),e.moveTo(0,.5*i),e.lineTo(.5*n,0),e.lineTo(n,.5*i),e.lineTo(.5*n,i),e.close(),e.fillAndStroke(),e.begin(),e.moveTo(.1*n,.5*i),e.lineTo(.5*n,.1*i),e.lineTo(.9*n,.5*i),e.lineTo(.5*n,.9*i),e.close(),e.stroke())},mxShapeERHas.prototype.mainText=function(e,t,o,n,i,a,s,l){e.begin(),e.setFontSize(s),e.setFontColor(l),e.text(.5*n,.5*i,0,0,a,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)},mxCellRenderer.registerShape("mxgraph.er.has",mxShapeERHas),mxShapeERHas.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(.25,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.75),!1),new mxConnectionConstraint(new mxPoint(.75,.25),!1),new mxConnectionConstraint(new mxPoint(.75,.75),!1)],mxUtils.extend(mxShapeERCloud,mxShape),mxShapeERCloud.prototype.paintVertexShape=function(e,t,o,n,i){var a=mxUtils.getValue(this.style,"buttonText","Entity"),s=mxUtils.getValue(this.style,"textColor","#666666"),l=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17");e.translate(t,o),n=Math.max(n,20),i=Math.max(i,20),this.background(e,t,o,n,i,10,s),e.setShadow(!1),this.mainText(e,t,o,n,i,a,l,s)},mxShapeERCloud.prototype.background=function(e,t,o,n,i,a,s){e.begin(),e.moveTo(.25*n,.25*i),e.curveTo(.05*n,.25*i,0,.5*i,.16*n,.55*i),e.curveTo(0,.66*i,.18*n,.9*i,.31*n,.8*i),e.curveTo(.4*n,i,.7*n,i,.8*n,.8*i),e.curveTo(n,.8*i,n,.6*i,.875*n,.5*i),e.curveTo(n,.3*i,.8*n,.1*i,.625*n,.2*i),e.curveTo(.5*n,.05*i,.3*n,.05*i,.25*n,.25*i),e.fillAndStroke()},mxShapeERCloud.prototype.mainText=function(e,t,o,n,i,a,s,l){e.begin(),e.setFontSize(s),e.setFontColor(l),e.text(.5*n,.5*i,0,0,a,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)},mxCellRenderer.registerShape("mxgraph.er.cloud",mxShapeERCloud),mxShapeERCloud.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.08,.5),!1),new mxConnectionConstraint(new mxPoint(.9,.5),!1),new mxConnectionConstraint(new mxPoint(.5,.1),!1),new mxConnectionConstraint(new mxPoint(.5,.92),!1),new mxConnectionConstraint(new mxPoint(.24,.24),!1),new mxConnectionConstraint(new mxPoint(.22,.8),!1),new mxConnectionConstraint(new mxPoint(.81,.2),!1),new mxConnectionConstraint(new mxPoint(.78,.78),!1)],mxUtils.extend(mxShapeERHierarchy,mxShape),mxShapeERHierarchy.prototype.paintVertexShape=function(e,t,o,n,i){var a=mxUtils.getValue(this.style,"buttonText","main").toString().split(","),s=mxUtils.getValue(this.style,"subText","sub").toString().split(","),l=mxUtils.getValue(this.style,"textColor","#666666"),r=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17");e.translate(t,o),n=Math.max(n,20),i=Math.max(i,20),this.background(e,t,o,n,i,10,l),e.setShadow(!1),this.shapeText(e,t,o,n,i,a,s,r,l)},mxShapeERHierarchy.prototype.background=function(e,t,o,n,i,a,s){"round"===(t=mxUtils.getValue(this.style,"buttonStyle","round").toString())?(e.begin(),e.moveTo(0,a),e.arcTo(a,a,0,0,1,a,0),e.lineTo(n-a,0),e.arcTo(a,a,0,0,1,n,a),e.lineTo(n,i-a),e.arcTo(a,a,0,0,1,n-a,i),e.lineTo(a,i),e.arcTo(a,a,0,0,1,0,i-a),e.close(),e.fillAndStroke()):"rect"===t?(e.begin(),e.moveTo(0,0),e.lineTo(n,0),e.lineTo(n,i),e.lineTo(0,i),e.close(),e.fillAndStroke()):"dblFrame"===t&&(a=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#666666"),e.setFillColor(a),e.begin(),e.moveTo(0,0),e.lineTo(n,0),e.lineTo(n,i),e.lineTo(0,i),e.close(),e.fillAndStroke(),a=Math.min(n,i),e.begin(),e.moveTo(.1*a,.1*a),e.lineTo(n-.1*a,.1*a),e.lineTo(n-.1*a,i-.1*a),e.lineTo(.1*a,i-.1*a),e.close(),e.stroke()),s=o=0,"round"===t?(o=.5*n,s=a,e.translate(o,s),n=.5*n-a,i-=2*a,e.begin(),e.moveTo(0,a),e.arcTo(a,a,0,0,1,a,0),e.lineTo(n-a,0),e.arcTo(a,a,0,0,1,n,a),e.lineTo(n,i-a),e.arcTo(a,a,0,0,1,n-a,i),e.lineTo(a,i),e.arcTo(a,a,0,0,1,0,i-a),e.close(),e.fillAndStroke()):"rect"===t?(o=.5*n,s=a,e.translate(o,s),n=.5*n-a,i-=2*a,e.begin(),e.moveTo(0,0),e.lineTo(n,0),e.lineTo(n,i),e.lineTo(0,i),e.close(),e.fillAndStroke()):"dblFrame"===t&&(o=.5*n,s=.15*a,e.translate(o,s),n=.5*n-.15*a,i-=.3*a,a=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#666666"),e.setFillColor(a),e.begin(),e.moveTo(0,0),e.lineTo(n,0),e.lineTo(n,i),e.lineTo(0,i),e.close(),e.fillAndStroke(),a=Math.min(n,i),e.begin(),e.moveTo(.1*a,.1*a),e.lineTo(n-.1*a,.1*a),e.lineTo(n-.1*a,i-.1*a),e.lineTo(.1*a,i-.1*a),e.close(),e.stroke()),e.translate(-o,-s)},mxShapeERHierarchy.prototype.shapeText=function(e,t,o,n,i,a,s,l,r,p){e.begin(),e.setFontSize(l),e.setFontColor(r),e.text(.25*n,.5*(i-l),0,0,a[0],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),e.text(.25*n,.5*(i+l),0,0,a[1],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),e.text(.7*n,.5*(i-l),0,0,s[0],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),e.text(.7*n,.5*(i+l),0,0,s[1],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)},mxCellRenderer.registerShape("mxgraph.er.hierarchy",mxShapeERHierarchy),mxShapeERHierarchy.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(1,.25),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(1,.75),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)],mxUtils.extend(mxShapeERNote,mxShape),mxShapeERNote.prototype.paintVertexShape=function(e,t,o,n,i){var a=mxUtils.getValue(this.style,"buttonText","Entity"),s=mxUtils.getValue(this.style,"textColor","#666666"),l=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17"),r=mxUtils.getValue(this.style,"fillColor2","#ffffff");e.translate(t,o),n=Math.max(n,40),i=Math.max(i,40),this.background(e,t,o,n,i,20),e.setShadow(!1),this.flipShape(e,t,o,n,i,20,r),this.mainText(e,t,o,n,i,a,l,s)},mxShapeERNote.prototype.background=function(e,t,o,n,i,a){e.begin(),e.moveTo(0,0),e.lineTo(n-a,0),e.lineTo(n,a),e.lineTo(n,i),e.lineTo(0,i),e.close(),e.fillAndStroke()},mxShapeERNote.prototype.flipShape=function(e,t,o,n,i,a,s){e.setLineJoin("round"),e.setFillColor(s),e.begin(),e.moveTo(n-a,0),e.lineTo(n,a),e.lineTo(n-a,a),e.close(),e.fillAndStroke()},mxShapeERNote.prototype.mainText=function(e,t,o,n,i,a,s,l){e.begin(),e.setFontSize(s),e.setFontColor(l),e.text(.5*n,.5*i,0,0,a,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)},mxCellRenderer.registerShape("mxgraph.er.note",mxShapeERNote),mxShapeERNote.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.25),!0),new mxConnec