@zklogic/draw.io
Version:
Draw.IO - Graph Editor integration in Angular-cli
1 lines • 33.9 kB
JavaScript
function mxBpmnShape(e,t,n,o){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=n,this.strokewidth=null!=o?o:1}function mxShapeBpmn2SendMarker(e,t,n,o){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=n,this.strokewidth=null!=o?o:1,this.dy=.5,this.dx=.5,this.notch=0}function mxShapeBpmnEvent(e,t,n,o){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=n,this.strokewidth=null!=o?o:1}function mxShapeBpmnGateway(e,t,n,o){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=n,this.strokewidth=null!=o?o:1}function mxShapeBpmn2Task(e,t,n,o){mxCellRenderer.prototype.getShape("mxgraph.basic.rect").call(this),this.bounds=e,this.fill=t,this.stroke=n,this.strokewidth=null!=o?o:1,this.dy=.5,this.dx=.5,this.notch=0}function mxShapeBpmn2Data(e,t,n,o){mxCellRenderer.prototype.getShape("note").call(this),this.bounds=e,this.fill=t,this.stroke=n,this.strokewidth=null!=o?o:1,this.dy=.5,this.dx=.5,this.notch=0}function mxShapeBpmn2Swimlane(e,t,n,o){mxCellRenderer.prototype.getShape("note").call(this),this.bounds=e,this.fill=t,this.stroke=n,this.strokewidth=null!=o?o:1,this.dy=.5,this.dx=.5,this.notch=0}function mxShapeBpmn2Conversation(e,t,n,o){mxShape.call(this),this.bounds=e,this.fill=t,this.stroke=n,this.strokewidth=null!=o?o:1}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,n,o,l){this.redrawPath(e,t,n,o,l,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,n,o,l,mxBpmnShape.prototype.miscEnum.OUTLINE),this.redrawPath(e,t,n,o,l,mxBpmnShape.prototype.miscEnum.SYMBOL)},mxBpmnShape.prototype.redrawPath=function(e,t,n,o,l,i){var a=mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.BACKGROUND,mxBpmnShape.prototype.eventTypeEnum.NONE);if(i==mxBpmnShape.prototype.miscEnum.BACKGROUND)null!=a&&null!=(p=this.backgrounds[a])&&(e.translate(t,n),p.call(this,e,t,n,o,l,i));else if(i==mxBpmnShape.prototype.miscEnum.OUTLINE)a===mxBpmnShape.prototype.eventTypeEnum.GATEWAY?(e.translate(o/4,l/4),l/=2,o/=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!=(T=mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.OUTLINE,mxBpmnShape.prototype.eventTypeEnum.NONE))&&null!=(p=this.outlines[T])&&p.call(this,e,t,n,o,l,a===mxBpmnShape.prototype.eventTypeEnum.GATEWAY);else if(i==mxBpmnShape.prototype.miscEnum.SYMBOL){a===mxBpmnShape.prototype.eventTypeEnum.GATEWAY&&(l/=2,o/=2);var p,s=mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.SYMBOL,null);if(null!=s&&null!=(p=this.symbols[s])){var m=e.state.strokeColor,r=e.state.fillColor,T=mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.OUTLINE,mxBpmnShape.prototype.eventTypeEnum.NONE);s===mxBpmnShape.prototype.eventEnum.MESSAGE?(e.translate(.15*o,.3*l),o*=.7,l*=.4):s===mxBpmnShape.prototype.eventEnum.TIMER?(e.translate(.11*o,.11*l),o*=.78,l*=.78):s===mxBpmnShape.prototype.eventEnum.ESCALATION?(e.translate(.19*o,.15*l),o*=.62,l*=.57):s===mxBpmnShape.prototype.eventEnum.CONDITIONAL?(e.translate(.3*o,.16*l),o*=.4,l*=.68):s===mxBpmnShape.prototype.eventEnum.LINK?(e.translate(.27*o,.33*l),o*=.46,l*=.34):s===mxBpmnShape.prototype.eventEnum.ERROR?(e.translate(.212*o,.243*l),o*=.58,l*=.507):s===mxBpmnShape.prototype.eventEnum.CANCEL?(e.translate(.22*o,.22*l),o*=.56,l*=.56):s===mxBpmnShape.prototype.eventEnum.COMPENSATION?(e.translate(.28*o,.35*l),o*=.44,l*=.3):s===mxBpmnShape.prototype.eventEnum.SIGNAL?(e.translate(.19*o,.15*l),o*=.62,l*=.57):s===mxBpmnShape.prototype.eventEnum.MULTIPLE?(e.translate(.2*o,.19*l),o*=.6,l*=.565):s===mxBpmnShape.prototype.eventEnum.PAR_MULTI?(e.translate(.2*o,.2*l),o*=.6,l*=.6):s===mxBpmnShape.prototype.eventEnum.TERMINATE?(e.translate(.05*o,.05*l),o*=.9,l*=.9):s===mxBpmnShape.prototype.eventEnum.GW_EXCLUSIVE&&(e.translate(.12*o,0),o*=.76);var h=!1;"star"===s?e.setFillColor(m):T!==mxBpmnShape.prototype.eventTypeEnum.THROWING&&T!==mxBpmnShape.prototype.eventTypeEnum.END||(e.setStrokeColor(r),e.setFillColor(m),h=!0),p.call(this,e,t,n,o,l,i,h),"star"===s?e.setFillColor(r):T!==mxBpmnShape.prototype.eventTypeEnum.THROWING&&T!==mxBpmnShape.prototype.eventTypeEnum.END||(e.setStrokeColor(m),e.setFillColor(r))}}},mxBpmnShape.prototype.backgrounds={none:function(e,t,n,o,l){},gateway:function(e,t,n,o,l){e.begin(),e.moveTo(o/2,0),e.lineTo(o,l/2),e.lineTo(o/2,l),e.lineTo(0,l/2),e.close(),e.fillAndStroke()}},mxBpmnShape.prototype.outlines={none:function(e,t,n,o,l,i){i||e.setShadow(!1)},standard:function(e,t,n,o,l,i){e.ellipse(0,0,o,l),e.fillAndStroke(),i||e.setShadow(!1)},eventInt:function(e,t,n,o,l,i){e.ellipse(0,0,o,l),e.fillAndStroke(),i||e.setShadow(!1)},eventNonint:function(e,t,n,o,l,i){var a=e.state.dashed;e.setDashed(!0),e.ellipse(0,0,o,l),e.fillAndStroke(),e.setDashed(a),i||e.setShadow(!1)},catching:function(e,t,n,o,l,i){e.ellipse(0,0,o,l),e.fillAndStroke(),i||e.setShadow(!1),e.ellipse(2,2,o-4,l-4),e.stroke()},boundInt:function(e,t,n,o,l,i){e.ellipse(0,0,o,l),e.fillAndStroke(),i||e.setShadow(!1),e.ellipse(2,2,o-4,l-4),e.stroke()},boundNonint:function(e,t,n,o,l,i){var a=e.state.dashed;e.setDashed(!0),e.ellipse(0,0,o,l),e.fillAndStroke(),i||e.setShadow(!1),e.ellipse(2,2,o-4,l-4),e.stroke(),e.setDashed(a)},throwing:function(e,t,n,o,l,i){e.ellipse(0,0,o,l),e.fillAndStroke(),i||e.setShadow(!1),e.ellipse(.02*o+2,.02*l+2,.96*o-4,.96*l-4),e.stroke()},end:function(e,t,n,o,l,i){var a=e.state.strokeWidth;e.setStrokeWidth(3*a),e.ellipse(0,0,o,l),e.fillAndStroke(),e.setStrokeWidth(a),i||e.setShadow(!1)}},mxBpmnShape.prototype.symbols={general:function(e,t,n,o,l){},message:function(e,t,n,o,l,i,a){e.rect(0,0,o,l),e.fillAndStroke(),"none"===mxUtils.getValue(this.style,"fillColor","none")&&a&&e.setStrokeColor("#ffffff"),e.begin(),e.moveTo(0,0),e.lineTo(.5*o,.5*l),e.lineTo(o,0),e.stroke()},timer:function(e,t,n,o,l){e.ellipse(0,0,o,l),e.fillAndStroke(),e.begin(),e.moveTo(.5*o,0),e.lineTo(.5*o,.0642*l),e.moveTo(.7484*o,.0654*l),e.lineTo(.7126*o,.1281*l),e.moveTo(.93*o,.2471*l),e.lineTo(.8673*o,.2854*l),e.moveTo(o,.5*l),e.lineTo(.9338*o,.5*l),e.moveTo(.93*o,.7509*l),e.lineTo(.8673*o,.7126*l),e.moveTo(.7484*o,.9326*l),e.lineTo(.7126*o,.8699*l),e.moveTo(.5*o,.9338*l),e.lineTo(.5*o,l),e.moveTo(.2496*o,.9325*l),e.lineTo(.2854*o,.8699*l),e.moveTo(.068*o,.7509*l),e.lineTo(.1307*o,.7126*l),e.moveTo(0,.5*l),e.lineTo(.0642*o,.5*l),e.moveTo(.068*o,.2471*l),e.lineTo(.1307*o,.2854*l),e.moveTo(.2496*o,.0654*l),e.lineTo(.2854*o,.1281*l),e.moveTo(.5246*o,.0706*l),e.lineTo(.5*o,.5*l),e.lineTo(.7804*o,.5118*l),e.stroke()},escalation:function(e,t,n,o,l){e.begin(),e.moveTo(0,l),e.lineTo(.5*o,0),e.lineTo(o,l),e.lineTo(.5*o,.5*l),e.close(),e.fillAndStroke()},conditional:function(e,t,n,o,l){e.rect(0,0,o,l),e.fillAndStroke(),e.begin(),e.moveTo(0,.1027*l),e.lineTo(.798*o,.1027*l),e.moveTo(0,.3669*l),e.lineTo(.798*o,.3669*l),e.moveTo(0,.6311*l),e.lineTo(.798*o,.6311*l),e.moveTo(0,.8953*l),e.lineTo(.798*o,.8953*l),e.stroke()},link:function(e,t,n,o,l){e.begin(),e.moveTo(0,.76*l),e.lineTo(0,.24*l),e.lineTo(.63*o,.24*l),e.lineTo(.63*o,0),e.lineTo(o,.5*l),e.lineTo(.63*o,l),e.lineTo(.63*o,.76*l),e.close(),e.fillAndStroke()},error:function(e,t,n,o,l,i,a){e.begin(),e.moveTo(0,l),e.lineTo(.3287*o,.123*l),e.lineTo(.6194*o,.6342*l),e.lineTo(o,0),e.lineTo(.6625*o,.939*l),e.lineTo(.3717*o,.5064*l),e.close(),a?e.fill():e.fillAndStroke()},cancel:function(e,t,n,o,l){e.begin(),e.moveTo(.1051*o,0),e.lineTo(.5*o,.3738*l),e.lineTo(.8909*o,0),e.lineTo(o,.1054*l),e.lineTo(.623*o,.5*l),e.lineTo(o,.8926*l),e.lineTo(.8909*o,l),e.lineTo(.5*o,.6242*l),e.lineTo(.1051*o,l),e.lineTo(0,.8926*l),e.lineTo(.373*o,.5*l),e.lineTo(0,.1054*l),e.close(),e.fillAndStroke()},compensation:function(e,t,n,o,l){e.begin(),e.moveTo(0,.5*l),e.lineTo(.5*o,0),e.lineTo(.5*o,l),e.close(),e.moveTo(.5*o,.5*l),e.lineTo(o,0),e.lineTo(o,l),e.close(),e.fillAndStroke()},signal:function(e,t,n,o,l){e.begin(),e.moveTo(0,l),e.lineTo(.5*o,0),e.lineTo(o,l),e.close(),e.fillAndStroke()},multiple:function(e,t,n,o,l){e.begin(),e.moveTo(0,.39*l),e.lineTo(.5*o,0),e.lineTo(o,.39*l),e.lineTo(.815*o,l),e.lineTo(.185*o,l),e.close(),e.fillAndStroke()},parallelMultiple:function(e,t,n,o,l){e.begin(),e.moveTo(.38*o,0),e.lineTo(.62*o,0),e.lineTo(.62*o,.38*l),e.lineTo(o,.38*l),e.lineTo(o,.62*l),e.lineTo(.62*o,.62*l),e.lineTo(.62*o,l),e.lineTo(.38*o,l),e.lineTo(.38*o,.62*l),e.lineTo(0,.62*l),e.lineTo(0,.38*l),e.lineTo(.38*o,.38*l),e.close(),e.fillAndStroke()},terminate:function(e,t,n,o,l){e.ellipse(0,0,o,l),e.fillAndStroke()},exclusiveGw:function(e,t,n,o,l){var i=e.state.strokeColor,a=e.state.fillColor;e.setStrokeColor(a),e.setFillColor(i),e.begin(),e.moveTo(.105*o,0),e.lineTo(.5*o,.38*l),e.lineTo(.895*o,0*l),e.lineTo(o,.11*l),e.lineTo(.6172*o,.5*l),e.lineTo(o,.89*l),e.lineTo(.895*o,l),e.lineTo(.5*o,.62*l),e.lineTo(.105*o,l),e.lineTo(0,.89*l),e.lineTo(.3808*o,.5*l),e.lineTo(0,.11*l),e.close(),e.fillAndStroke(),e.setStrokeColor(i),e.setFillColor(a)},parallelGw:function(e,t,n,o,l){var i=e.state.strokeColor,a=e.state.fillColor;e.setStrokeColor(a),e.setFillColor(i),e.begin(),e.moveTo(.38*o,0),e.lineTo(.62*o,0),e.lineTo(.62*o,.38*l),e.lineTo(o,.38*l),e.lineTo(o,.62*l),e.lineTo(.62*o,.62*l),e.lineTo(.62*o,l),e.lineTo(.38*o,l),e.lineTo(.38*o,.62*l),e.lineTo(0,.62*l),e.lineTo(0,.38*l),e.lineTo(.38*o,.38*l),e.close(),e.fillAndStroke(),e.setStrokeColor(i),e.setFillColor(a)},complexGw:function(e,t,n,o,l){var i=e.state.strokeColor,a=e.state.fillColor;e.setStrokeColor(a),e.setFillColor(i),e.begin(),e.moveTo(0,.44*l),e.lineTo(.36*o,.44*l),e.lineTo(.1*o,.18*l),e.lineTo(.18*o,.1*l),e.lineTo(.44*o,.36*l),e.lineTo(.44*o,0),e.lineTo(.56*o,0),e.lineTo(.56*o,.36*l),e.lineTo(.82*o,.1*l),e.lineTo(.9*o,.18*l),e.lineTo(.64*o,.44*l),e.lineTo(o,.44*l),e.lineTo(o,.56*l),e.lineTo(.64*o,.56*l),e.lineTo(.9*o,.82*l),e.lineTo(.82*o,.9*l),e.lineTo(.56*o,.64*l),e.lineTo(.56*o,l),e.lineTo(.44*o,l),e.lineTo(.44*o,.64*l),e.lineTo(.18*o,.9*l),e.lineTo(.1*o,.82*l),e.lineTo(.36*o,.56*l),e.lineTo(0,.56*l),e.close(),e.fillAndStroke(),e.setStrokeColor(i),e.setFillColor(a)},star:function(e,t,n,o,l){e.translate(o/5,l/6),l*=2/3,o*=.6,e.begin(),e.moveTo(0,l/4),e.lineTo(o/3,l/4),e.lineTo(o/2,0),e.lineTo(2*o/3,l/4),e.lineTo(o,l/4),e.lineTo(5*o/6,l/2),e.lineTo(o,3*l/4),e.lineTo(2*o/3,3*l/4),e.lineTo(o/2,l),e.lineTo(o/3,3*l/4),e.lineTo(0,3*l/4),e.lineTo(o/6,l/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,n,o,l){e.translate(t,n),e.rect(0,0,o,l),e.fillAndStroke(),e.setShadow(!1),e.begin(),e.moveTo(0,0),e.lineTo(.5*o,.5*l),e.lineTo(o,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,n,o,l){e.translate(t,n),this.strictDrawShape(e,0,0,o,l,null)},mxShapeBpmnEvent.prototype.strictDrawShape=function(e,t,n,o,l,i,a){var p;if(null==i&&(i=mxUtils.getValue(this.style,this.miscEnum.OUTLINE,this.eventTypeEnum.NONE)),null!=i&&null!=(p=mxShapeBpmnEvent.prototype.outlines[i])&&(e.translate(t,n),p.call(this,e,t,n,o,l)),null==a&&(a=mxUtils.getValue(this.style,this.miscEnum.SYMBOL,null)),null!=a&&null!=(p=mxShapeBpmnEvent.prototype.symbols[a])){var s=e.state.strokeColor,m=e.state.fillColor;a===this.eventEnum.MESSAGE?(e.translate(.15*o,.3*l),o*=.7,l*=.4):a===this.eventEnum.TIMER?(e.translate(.11*o,.11*l),o*=.78,l*=.78):a===this.eventEnum.ESCALATION?(e.translate(.19*o,.15*l),o*=.62,l*=.57):a===this.eventEnum.CONDITIONAL?(e.translate(.3*o,.16*l),o*=.4,l*=.68):a===this.eventEnum.LINK?(e.translate(.27*o,.33*l),o*=.46,l*=.34):a===this.eventEnum.ERROR?(e.translate(.212*o,.243*l),o*=.58,l*=.507):a===this.eventEnum.CANCEL?(e.translate(.22*o,.22*l),o*=.56,l*=.56):a===this.eventEnum.COMPENSATION?(e.translate(.28*o,.35*l),o*=.44,l*=.3):a===this.eventEnum.SIGNAL?(e.translate(.19*o,.15*l),o*=.62,l*=.57):a===this.eventEnum.MULTIPLE?(e.translate(.2*o,.19*l),o*=.6,l*=.565):a===this.eventEnum.PAR_MULTI?(e.translate(.2*o,.2*l),o*=.6,l*=.6):a===this.eventEnum.TERMINATE?(e.translate(.05*o,.05*l),o*=.9,l*=.9):a===this.eventEnum.GW_EXCLUSIVE&&(e.translate(.12*o,0),o*=.76);var r=!1;"star"===a?e.setFillColor(s):i!==this.eventTypeEnum.THROWING&&i!==this.eventTypeEnum.END||(e.setStrokeColor(m),e.setFillColor(s),r=!0),p.call(this,e,t,n,o,l,r),"star"===a?e.setFillColor(m):i!==this.eventTypeEnum.THROWING&&i!==this.eventTypeEnum.END||(e.setStrokeColor(s),e.setFillColor(m))}},mxShapeBpmnEvent.prototype.outlines={none:function(e,t,n,o,l){e.setShadow(!1)},standard:function(e,t,n,o,l){e.ellipse(0,0,o,l),e.fillAndStroke(),e.setShadow(!1)},eventInt:function(e,t,n,o,l){e.ellipse(0,0,o,l),e.fillAndStroke(),e.setShadow(!1)},eventNonint:function(e,t,n,o,l){var i=e.state.dashed;e.setDashed(!0),e.ellipse(0,0,o,l),e.fillAndStroke(),e.setDashed(i),e.setShadow(!1)},catching:function(e,t,n,o,l){e.ellipse(0,0,o,l),e.fillAndStroke(),e.setShadow(!1),e.ellipse(2,2,o-4,l-4),e.stroke()},boundInt:function(e,t,n,o,l){e.ellipse(0,0,o,l),e.fillAndStroke(),e.setShadow(!1),e.ellipse(2,2,o-4,l-4),e.stroke()},boundNonint:function(e,t,n,o,l){var i=e.state.dashed;e.setDashed(!0),e.ellipse(0,0,o,l),e.fillAndStroke(),e.setShadow(!1),e.ellipse(2,2,o-4,l-4),e.stroke(),e.setDashed(i)},throwing:function(e,t,n,o,l){e.ellipse(0,0,o,l),e.fillAndStroke(),e.setShadow(!1),e.ellipse(.02*o+2,.02*l+2,.96*o-4,.96*l-4),e.stroke()},end:function(e,t,n,o,l){var i=e.state.strokeWidth;e.setStrokeWidth(3*i),e.ellipse(0,0,o,l),e.fillAndStroke(),e.setStrokeWidth(i),e.setShadow(!1)}},mxShapeBpmnEvent.prototype.symbols={general:function(e,t,n,o,l,i){},message:function(e,t,n,o,l,i){e.rect(0,0,o,l),e.fillAndStroke(),"none"===mxUtils.getValue(this.style,"fillColor","none")&&i&&e.setStrokeColor("#ffffff"),e.begin(),e.moveTo(0,0),e.lineTo(.5*o,.5*l),e.lineTo(o,0),e.stroke()},timer:function(e,t,n,o,l,i){e.ellipse(0,0,o,l),e.fillAndStroke(),e.begin(),e.moveTo(.5*o,0),e.lineTo(.5*o,.0642*l),e.moveTo(.7484*o,.0654*l),e.lineTo(.7126*o,.1281*l),e.moveTo(.93*o,.2471*l),e.lineTo(.8673*o,.2854*l),e.moveTo(o,.5*l),e.lineTo(.9338*o,.5*l),e.moveTo(.93*o,.7509*l),e.lineTo(.8673*o,.7126*l),e.moveTo(.7484*o,.9326*l),e.lineTo(.7126*o,.8699*l),e.moveTo(.5*o,.9338*l),e.lineTo(.5*o,l),e.moveTo(.2496*o,.9325*l),e.lineTo(.2854*o,.8699*l),e.moveTo(.068*o,.7509*l),e.lineTo(.1307*o,.7126*l),e.moveTo(0,.5*l),e.lineTo(.0642*o,.5*l),e.moveTo(.068*o,.2471*l),e.lineTo(.1307*o,.2854*l),e.moveTo(.2496*o,.0654*l),e.lineTo(.2854*o,.1281*l),e.moveTo(.5246*o,.0706*l),e.lineTo(.5*o,.5*l),e.lineTo(.7804*o,.5118*l),e.stroke()},escalation:function(e,t,n,o,l,i){e.setMiterLimit(6),e.begin(),e.moveTo(0,l),e.lineTo(.5*o,0),e.lineTo(o,l),e.lineTo(.5*o,.5*l),e.close(),i?e.fill():e.fillAndStroke()},conditional:function(e,t,n,o,l,i){e.rect(0,0,o,l),e.fillAndStroke(),e.begin(),e.moveTo(0,.1027*l),e.lineTo(.798*o,.1027*l),e.moveTo(0,.3669*l),e.lineTo(.798*o,.3669*l),e.moveTo(0,.6311*l),e.lineTo(.798*o,.6311*l),e.moveTo(0,.8953*l),e.lineTo(.798*o,.8953*l),e.stroke()},link:function(e,t,n,o,l,i){e.begin(),e.moveTo(0,.76*l),e.lineTo(0,.24*l),e.lineTo(.63*o,.24*l),e.lineTo(.63*o,0),e.lineTo(o,.5*l),e.lineTo(.63*o,l),e.lineTo(.63*o,.76*l),e.close(),i?e.fill():e.fillAndStroke()},error:function(e,t,n,o,l,i){e.setMiterLimit(7),e.begin(),e.moveTo(0,l),e.lineTo(.3287*o,.123*l),e.lineTo(.6194*o,.6342*l),e.lineTo(o,0),e.lineTo(.6625*o,.939*l),e.lineTo(.3717*o,.5064*l),e.close(),i?e.fill():e.fillAndStroke()},cancel:function(e,t,n,o,l,i){e.begin(),e.moveTo(.1051*o,0),e.lineTo(.5*o,.3738*l),e.lineTo(.8909*o,0),e.lineTo(o,.1054*l),e.lineTo(.623*o,.5*l),e.lineTo(o,.8926*l),e.lineTo(.8909*o,l),e.lineTo(.5*o,.6242*l),e.lineTo(.1051*o,l),e.lineTo(0,.8926*l),e.lineTo(.373*o,.5*l),e.lineTo(0,.1054*l),e.close(),i?e.fill():e.fillAndStroke()},compensation:function(e,t,n,o,l,i){e.setMiterLimit(1),e.begin(),e.moveTo(0,.5*l),e.lineTo(.5*o,0),e.lineTo(.5*o,l),e.close(),e.moveTo(.5*o,.5*l),e.lineTo(o,0),e.lineTo(o,l),e.close(),i?e.fill():e.fillAndStroke()},signal:function(e,t,n,o,l,i){e.begin(),e.moveTo(0,l),e.lineTo(.5*o,0),e.lineTo(o,l),e.close(),i?e.fill():e.fillAndStroke()},multiple:function(e,t,n,o,l,i){e.begin(),e.moveTo(0,.39*l),e.lineTo(.5*o,0),e.lineTo(o,.39*l),e.lineTo(.815*o,l),e.lineTo(.185*o,l),e.close(),i?e.fill():e.fillAndStroke()},parallelMultiple:function(e,t,n,o,l,i){e.begin(),e.moveTo(.38*o,0),e.lineTo(.62*o,0),e.lineTo(.62*o,.38*l),e.lineTo(o,.38*l),e.lineTo(o,.62*l),e.lineTo(.62*o,.62*l),e.lineTo(.62*o,l),e.lineTo(.38*o,l),e.lineTo(.38*o,.62*l),e.lineTo(0,.62*l),e.lineTo(0,.38*l),e.lineTo(.38*o,.38*l),e.close(),i?e.fill():e.fillAndStroke()},terminate:function(e,t,n,o,l,i){e.ellipse(0,0,o,l),e.fillAndStroke()},star:function(e,t,n,o,l,i){e.translate(o/5,l/6),l*=2/3,o*=.6,e.begin(),e.moveTo(0,l/4),e.lineTo(o/3,l/4),e.lineTo(o/2,0),e.lineTo(2*o/3,l/4),e.lineTo(o,l/4),e.lineTo(5*o/6,l/2),e.lineTo(o,3*l/4),e.lineTo(2*o/3,3*l/4),e.lineTo(o/2,l),e.lineTo(o/3,3*l/4),e.lineTo(0,3*l/4),e.lineTo(o/6,l/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,n,o,l){e.translate(t,n),e.begin(),e.moveTo(.5*o,0),e.lineTo(o,.5*l),e.lineTo(.5*o,l),e.lineTo(0,.5*l),e.close(),e.fillAndStroke(),e.setShadow(!1);var i=.6*o,a=.6*l,p=mxUtils.getValue(this.style,"gwType","event"),s=mxUtils.getValue(this.style,"outline","none"),m=mxUtils.getValue(this.style,"symbol","standard"),r=.5*o,T=.5*l;if("event"===p&&null!==s&&"none"!==s)mxShapeBpmnEvent.prototype.strictDrawShape.call(this,e,.5*(o-i),.5*(l-a),i,a,s,m);else if("exclusive"==p){e.translate(.31*o,.25*l),r*=.76;var h=e.state.strokeColor,S=e.state.fillColor;e.setFillColor(h),e.begin(),e.moveTo(.105*r,0),e.lineTo(.5*r,.38*T),e.lineTo(.895*r,0*T),e.lineTo(r,.11*T),e.lineTo(.6172*r,.5*T),e.lineTo(r,.89*T),e.lineTo(.895*r,T),e.lineTo(.5*r,.62*T),e.lineTo(.105*r,T),e.lineTo(0,.89*T),e.lineTo(.3808*r,.5*T),e.lineTo(0,.11*T),e.close(),e.fillAndStroke(),e.setFillColor(S),e.translate(.12*-r,0)}else"parallel"==p?(e.translate(.25*o,.25*l),h=e.state.strokeColor,S=e.state.fillColor,e.setFillColor(h),e.begin(),e.moveTo(.38*r,0),e.lineTo(.62*r,0),e.lineTo(.62*r,.38*T),e.lineTo(r,.38*T),e.lineTo(r,.62*T),e.lineTo(.62*r,.62*T),e.lineTo(.62*r,T),e.lineTo(.38*r,T),e.lineTo(.38*r,.62*T),e.lineTo(0,.62*T),e.lineTo(0,.38*T),e.lineTo(.38*r,.38*T),e.close(),e.fillAndStroke(),e.setFillColor(S)):"complex"==p&&(e.translate(.25*o,.25*l),h=e.state.strokeColor,S=e.state.fillColor,e.setFillColor(h),e.begin(),e.moveTo(0,.44*T),e.lineTo(.36*r,.44*T),e.lineTo(.1*r,.18*T),e.lineTo(.18*r,.1*T),e.lineTo(.44*r,.36*T),e.lineTo(.44*r,0),e.lineTo(.56*r,0),e.lineTo(.56*r,.36*T),e.lineTo(.82*r,.1*T),e.lineTo(.9*r,.18*T),e.lineTo(.64*r,.44*T),e.lineTo(r,.44*T),e.lineTo(r,.56*T),e.lineTo(.64*r,.56*T),e.lineTo(.9*r,.82*T),e.lineTo(.82*r,.9*T),e.lineTo(.56*r,.64*T),e.lineTo(.56*r,T),e.lineTo(.44*r,T),e.lineTo(.44*r,.64*T),e.lineTo(.18*r,.9*T),e.lineTo(.1*r,.82*T),e.lineTo(.36*r,.56*T),e.lineTo(0,.56*T),e.close(),e.fillAndStroke(),e.setFillColor(S))},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,n,o,l){var i=mxUtils.getValue(this.style,"bpmnShapeType","task"),a=mxUtils.getValue(this.style,"taskMarker","abstract"),p=mxUtils.getValue(this.style,"strokeWidth",1),s=mxUtils.getValue(this.style,"dashed",!1),m=mxUtils.getValue(this.style,"indent",3),r=14;mxUtils.getValue(this.style,"rectOutline","single"),e.translate(t,n);var T=mxCellRenderer.prototype.getShape("mxgraph.basic.rect"),h={};"transaction"==i?(r+=m,h.rectOutline="double",h.indent=3):"subprocess"==i?h.dashed=!0:"call"==i&&(h.strokeWidth=4),T.prototype.strictDrawShape.call(this,e,0,0,o,l,h),e.setStrokeWidth(p),e.setDashed(s),"call"==i&&e.setStrokeWidth(p),e.setDashed(!1),e.setShadow(!1);var S=mxUtils.getValue(this.style,"isLoopSub",!1),u=mxUtils.getValue(this.style,"isLoopStandard",!1),v=mxUtils.getValue(this.style,"isLoopMultiParallel",!1),d=mxUtils.getValue(this.style,"isLoopMultiSeq",!1),c=mxUtils.getValue(this.style,"isLoopComp",!1),x=mxUtils.getValue(this.style,"isAdHoc",!1),y=0;u&&y++,v&&y++,d&&y++,c&&y++,S&&y++,x&&y++;var E=14,N=-14*y*.5;if(u&&null!=(g=mxStencilRegistry.getStencil("mxgraph.bpmn.loop"))&&(g.drawShape(e,this,.5*o+N+1,l-r+1,12,12),N+=E),v&&(e.translate(.5*o+N+1,l-r+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*-o-N-1,r-1-l),N+=E),d&&(e.translate(.5*o+N+1,l-r+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*-o-N-1,r-1-l),N+=E),c&&null!=(g=mxStencilRegistry.getStencil("mxgraph.bpmn.compensation"))&&(g.drawShape(e,this,.5*o+N,l-r+1,14,12),N+=E),S&&(e.translate(.5*o+N,l-r),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*-o-N,r-l),N+=E),x&&null!=(g=mxStencilRegistry.getStencil("mxgraph.bpmn.ad_hoc"))){var f=mxUtils.getValue(this.style,"strokeColor","#000000"),k=mxUtils.getValue(this.style,"fillColor","#ffffff");e.setStrokeColor("none"),e.setFillColor(f),g.drawShape(e,this,.5*o+N+1,l-r+4,12,6),N+=E,e.setStrokeColor(f),e.setFillColor(k)}switch(a){case"abstract":break;case"service":null!=(g=mxStencilRegistry.getStencil("mxgraph.bpmn.service_task"))&&g.drawShape(e,this,2,2,16,16);break;case"send":f=mxUtils.getValue(this.style,"strokeColor","#000000"),k=mxUtils.getValue(this.style,"fillColor","#ffffff"),e.setStrokeColor(k),e.setFillColor(f),mxShapeBpmn2SendMarker.prototype.paintVertexShape(e,4,4,18,13);break;case"receive":mxShapeBpmn2SendMarker.prototype.paintVertexShape(e,4,4,18,13);break;case"user":null!=(g=mxStencilRegistry.getStencil("mxgraph.bpmn.user_task"))&&g.drawShape(e,this,2,2,16,16);break;case"manual":null!=(g=mxStencilRegistry.getStencil("mxgraph.bpmn.manual_task"))&&g.drawShape(e,this,3,3,18,14);break;case"businessRule":null!=(g=mxStencilRegistry.getStencil("mxgraph.bpmn.business_rule_task"))&&g.drawShape(e,this,4,4,18,14);break;case"script":var g;null!=(g=mxStencilRegistry.getStencil("mxgraph.bpmn.script_task"))&&g.drawShape(e,this,3,3,19,18)}var C=mxUtils.getValue(this.style,"outline","none"),B=mxUtils.getValue(this.style,"symbol","standard");mxShapeBpmnEvent.prototype.strictDrawShape.call(this,e,0,0,20,20,C,B)},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,n,o,l){mxCellRenderer.prototype.getShape("note").prototype.paintVertexShape.call(this,e,t,n,o,l);var i=mxUtils.getValue(this.style,"bpmnTransferType","none"),a=mxUtils.getValue(this.style,"isCollection",!1);if(e.setShadow(!1),"input"===i||"output"===i){if(e.translate(3,3),e.begin(),e.moveTo(0,.3*12),e.lineTo(14*.55,.3*12),e.lineTo(14*.55,0),e.lineTo(14,6),e.lineTo(14*.55,12),e.lineTo(14*.55,.7*12),e.lineTo(0,.7*12),e.close(),e.translate(-3,-3),"input"===i)e.stroke();else{var p=mxUtils.getValue(this.style,"fillColor","#ffffff"),s=mxUtils.getValue(this.style,"strokeColor","#000000");e.setFillColor(s),e.fillAndStroke(),e.setFillColor(p)}}a&&(e.translate(.5*o-6,l-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*-o+6,12-l))},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,n,o,l){mxSwimlane.prototype.paintVertexShape.call(this,e,t,n,o,l);var i=mxUtils.getValue(this.style,"isCollection",!1);e.setShadow(!1),i&&(e.translate(.5*o-6,l-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*-o+6,12-l))},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,n,o,l){var i=mxUtils.getValue(this.style,"bpmnConversationType","conv"),a=mxUtils.getValue(this.style,"strokeWidth",1);"call"==i&&e.setStrokeWidth(4*a),e.translate(t,n),e.begin(),e.moveTo(0,.5*l),e.lineTo(.25*o,0),e.lineTo(.75*o,0),e.lineTo(o,.5*l),e.lineTo(.75*o,l),e.lineTo(.25*o,l),e.close(),e.fillAndStroke(),"call"==i&&e.setStrokeWidth(a),mxUtils.getValue(this.style,"isLoopSub",!1)&&(e.translate(.5*o-7,l-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);