0006b5eae2
Former-commit-id: c61cdfff95
2024 lines
No EOL
848 KiB
JavaScript
2024 lines
No EOL
848 KiB
JavaScript
function mxBpmnShape(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxBpmnShape,mxShape);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(a,d,e,b,c){this.redrawPath(a,d,e,b,c,mxBpmnShape.prototype.miscEnum.BACKGROUND);mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.BACKGROUND,mxBpmnShape.prototype.eventTypeEnum.NONE)===mxBpmnShape.prototype.eventTypeEnum.GATEWAY&&a.setShadow(!1);this.redrawPath(a,d,e,b,c,mxBpmnShape.prototype.miscEnum.OUTLINE);this.redrawPath(a,d,e,b,c,mxBpmnShape.prototype.miscEnum.SYMBOL)};
|
|
mxBpmnShape.prototype.redrawPath=function(a,d,e,b,c,f){var g=mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.BACKGROUND,mxBpmnShape.prototype.eventTypeEnum.NONE);if(f==mxBpmnShape.prototype.miscEnum.BACKGROUND){if(null!=g){var h=this.backgrounds[g];null!=h&&(a.translate(d,e),h.call(this,a,d,e,b,c,f))}}else if(f==mxBpmnShape.prototype.miscEnum.OUTLINE){g===mxBpmnShape.prototype.eventTypeEnum.GATEWAY?(a.translate(b/4,c/4),c/=2,b/=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)];var k=mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.OUTLINE,mxBpmnShape.prototype.eventTypeEnum.NONE);null!=k&&(h=this.outlines[k],null!=h&&h.call(this,a,d,e,b,c,g===mxBpmnShape.prototype.eventTypeEnum.GATEWAY))}else if(f==
|
|
mxBpmnShape.prototype.miscEnum.SYMBOL&&(g===mxBpmnShape.prototype.eventTypeEnum.GATEWAY&&(c/=2,b/=2),g=mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.SYMBOL,null),null!=g&&(h=this.symbols[g],null!=h))){var l=a.state.strokeColor,n=a.state.fillColor,k=mxUtils.getValue(this.style,mxBpmnShape.prototype.miscEnum.OUTLINE,mxBpmnShape.prototype.eventTypeEnum.NONE);g===mxBpmnShape.prototype.eventEnum.MESSAGE?(a.translate(.15*b,.3*c),b*=.7,c*=.4):g===mxBpmnShape.prototype.eventEnum.TIMER?(a.translate(.11*
|
|
b,.11*c),b*=.78,c*=.78):g===mxBpmnShape.prototype.eventEnum.ESCALATION?(a.translate(.19*b,.15*c),b*=.62,c*=.57):g===mxBpmnShape.prototype.eventEnum.CONDITIONAL?(a.translate(.3*b,.16*c),b*=.4,c*=.68):g===mxBpmnShape.prototype.eventEnum.LINK?(a.translate(.27*b,.33*c),b*=.46,c*=.34):g===mxBpmnShape.prototype.eventEnum.ERROR?(a.translate(.212*b,.243*c),b*=.58,c*=.507):g===mxBpmnShape.prototype.eventEnum.CANCEL?(a.translate(.22*b,.22*c),b*=.56,c*=.56):g===mxBpmnShape.prototype.eventEnum.COMPENSATION?(a.translate(.28*
|
|
b,.35*c),b*=.44,c*=.3):g===mxBpmnShape.prototype.eventEnum.SIGNAL?(a.translate(.19*b,.15*c),b*=.62,c*=.57):g===mxBpmnShape.prototype.eventEnum.MULTIPLE?(a.translate(.2*b,.19*c),b*=.6,c*=.565):g===mxBpmnShape.prototype.eventEnum.PAR_MULTI?(a.translate(.2*b,.2*c),b*=.6,c*=.6):g===mxBpmnShape.prototype.eventEnum.TERMINATE?(a.translate(.05*b,.05*c),b*=.9,c*=.9):g===mxBpmnShape.prototype.eventEnum.GW_EXCLUSIVE&&(a.translate(.12*b,0),b*=.76);if(k===mxBpmnShape.prototype.eventTypeEnum.THROWING||k===mxBpmnShape.prototype.eventTypeEnum.END)a.setStrokeColor(n),
|
|
a.setFillColor(l);h.call(this,a,d,e,b,c,f);if(k===mxBpmnShape.prototype.eventTypeEnum.THROWING||k===mxBpmnShape.prototype.eventTypeEnum.END)a.setStrokeColor(l),a.setFillColor(n)}};mxBpmnShape.prototype.backgrounds={none:function(a,d,e,b,c){},gateway:function(a,d,e,b,c){a.begin();a.moveTo(b/2,0);a.lineTo(b,c/2);a.lineTo(b/2,c);a.lineTo(0,c/2);a.close();a.fillAndStroke()}};
|
|
mxBpmnShape.prototype.outlines={none:function(a,d,e,b,c,f){f||a.setShadow(!1)},standard:function(a,d,e,b,c,f){a.ellipse(0,0,b,c);a.fillAndStroke();f||a.setShadow(!1)},eventInt:function(a,d,e,b,c,f){a.ellipse(0,0,b,c);a.fillAndStroke();f||a.setShadow(!1)},eventNonint:function(a,d,e,b,c,f){d=a.state.dashed;a.setDashed(!0);a.ellipse(0,0,b,c);a.fillAndStroke();a.setDashed(d);f||a.setShadow(!1)},catching:function(a,d,e,b,c,f){a.ellipse(0,0,b,c);a.fillAndStroke();f||a.setShadow(!1);a.ellipse(2,2,b-4,c-
|
|
4);a.stroke()},boundInt:function(a,d,e,b,c,f){a.ellipse(0,0,b,c);a.fillAndStroke();f||a.setShadow(!1);a.ellipse(2,2,b-4,c-4);a.stroke()},boundNonint:function(a,d,e,b,c,f){d=a.state.dashed;a.setDashed(!0);a.ellipse(0,0,b,c);a.fillAndStroke();f||a.setShadow(!1);a.ellipse(2,2,b-4,c-4);a.stroke();a.setDashed(d)},throwing:function(a,d,e,b,c,f){a.ellipse(0,0,b,c);a.fillAndStroke();f||a.setShadow(!1);a.ellipse(.02*b+2,.02*c+2,.96*b-4,.96*c-4);a.stroke()},end:function(a,d,e,b,c,f){d=a.state.strokeWidth;a.setStrokeWidth(3*
|
|
d);a.ellipse(0,0,b,c);a.fillAndStroke();a.setStrokeWidth(d);f||a.setShadow(!1)}};
|
|
mxBpmnShape.prototype.symbols={general:function(a,d,e,b,c){},message:function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke();a.begin();a.moveTo(0,0);a.lineTo(.5*b,.5*c);a.lineTo(b,0);a.stroke()},timer:function(a,d,e,b,c){a.ellipse(0,0,b,c);a.fillAndStroke();a.begin();a.moveTo(.5*b,0);a.lineTo(.5*b,.0642*c);a.moveTo(.7484*b,.0654*c);a.lineTo(.7126*b,.1281*c);a.moveTo(.93*b,.2471*c);a.lineTo(.8673*b,.2854*c);a.moveTo(b,.5*c);a.lineTo(.9338*b,.5*c);a.moveTo(.93*b,.7509*c);a.lineTo(.8673*b,.7126*c);a.moveTo(.7484*
|
|
b,.9326*c);a.lineTo(.7126*b,.8699*c);a.moveTo(.5*b,.9338*c);a.lineTo(.5*b,c);a.moveTo(.2496*b,.9325*c);a.lineTo(.2854*b,.8699*c);a.moveTo(.068*b,.7509*c);a.lineTo(.1307*b,.7126*c);a.moveTo(0,.5*c);a.lineTo(.0642*b,.5*c);a.moveTo(.068*b,.2471*c);a.lineTo(.1307*b,.2854*c);a.moveTo(.2496*b,.0654*c);a.lineTo(.2854*b,.1281*c);a.moveTo(.5246*b,.0706*c);a.lineTo(.5*b,.5*c);a.lineTo(.7804*b,.5118*c);a.stroke()},escalation:function(a,d,e,b,c){a.begin();a.moveTo(0,c);a.lineTo(.5*b,0);a.lineTo(b,c);a.lineTo(.5*
|
|
b,.5*c);a.close();a.fillAndStroke()},conditional:function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke();a.begin();a.moveTo(0,.1027*c);a.lineTo(.798*b,.1027*c);a.moveTo(0,.3669*c);a.lineTo(.798*b,.3669*c);a.moveTo(0,.6311*c);a.lineTo(.798*b,.6311*c);a.moveTo(0,.8953*c);a.lineTo(.798*b,.8953*c);a.stroke()},link:function(a,d,e,b,c){a.begin();a.moveTo(0,.76*c);a.lineTo(0,.24*c);a.lineTo(.63*b,.24*c);a.lineTo(.63*b,0);a.lineTo(b,.5*c);a.lineTo(.63*b,c);a.lineTo(.63*b,.76*c);a.close();a.fillAndStroke()},
|
|
error:function(a,d,e,b,c){a.begin();a.moveTo(0,c);a.lineTo(.3287*b,.123*c);a.lineTo(.6194*b,.6342*c);a.lineTo(b,0);a.lineTo(.6625*b,.939*c);a.lineTo(.3717*b,.5064*c);a.close();a.fillAndStroke()},cancel:function(a,d,e,b,c){a.begin();a.moveTo(.1051*b,0);a.lineTo(.5*b,.3738*c);a.lineTo(.8909*b,0);a.lineTo(b,.1054*c);a.lineTo(.623*b,.5*c);a.lineTo(b,.8926*c);a.lineTo(.8909*b,c);a.lineTo(.5*b,.6242*c);a.lineTo(.1051*b,c);a.lineTo(0,.8926*c);a.lineTo(.373*b,.5*c);a.lineTo(0,.1054*c);a.close();a.fillAndStroke()},
|
|
compensation:function(a,d,e,b,c){a.begin();a.moveTo(0,.5*c);a.lineTo(.5*b,0);a.lineTo(.5*b,c);a.close();a.stroke();a.moveTo(.5*b,.5*c);a.lineTo(b,0);a.lineTo(b,c);a.close();a.fillAndStroke()},signal:function(a,d,e,b,c){a.begin();a.moveTo(0,c);a.lineTo(.5*b,0);a.lineTo(b,c);a.close();a.fillAndStroke()},multiple:function(a,d,e,b,c){a.begin();a.moveTo(0,.39*c);a.lineTo(.5*b,0);a.lineTo(b,.39*c);a.lineTo(.815*b,c);a.lineTo(.185*b,c);a.close();a.fillAndStroke()},parallelMultiple:function(a,d,e,b,c){a.begin();
|
|
a.moveTo(.38*b,0);a.lineTo(.62*b,0);a.lineTo(.62*b,.38*c);a.lineTo(b,.38*c);a.lineTo(b,.62*c);a.lineTo(.62*b,.62*c);a.lineTo(.62*b,c);a.lineTo(.38*b,c);a.lineTo(.38*b,.62*c);a.lineTo(0,.62*c);a.lineTo(0,.38*c);a.lineTo(.38*b,.38*c);a.close();a.fillAndStroke()},terminate:function(a,d,e,b,c){a.ellipse(0,0,b,c);a.fillAndStroke()},exclusiveGw:function(a,d,e,b,c){d=a.state.strokeColor;e=a.state.fillColor;a.setStrokeColor(e);a.setFillColor(d);a.begin();a.moveTo(.105*b,0);a.lineTo(.5*b,.38*c);a.lineTo(.895*
|
|
b,0*c);a.lineTo(b,.11*c);a.lineTo(.6172*b,.5*c);a.lineTo(b,.89*c);a.lineTo(.895*b,c);a.lineTo(.5*b,.62*c);a.lineTo(.105*b,c);a.lineTo(0,.89*c);a.lineTo(.3808*b,.5*c);a.lineTo(0,.11*c);a.close();a.fillAndStroke();a.setStrokeColor(d);a.setFillColor(e)},parallelGw:function(a,d,e,b,c){d=a.state.strokeColor;e=a.state.fillColor;a.setStrokeColor(e);a.setFillColor(d);a.begin();a.moveTo(.38*b,0);a.lineTo(.62*b,0);a.lineTo(.62*b,.38*c);a.lineTo(b,.38*c);a.lineTo(b,.62*c);a.lineTo(.62*b,.62*c);a.lineTo(.62*
|
|
b,c);a.lineTo(.38*b,c);a.lineTo(.38*b,.62*c);a.lineTo(0,.62*c);a.lineTo(0,.38*c);a.lineTo(.38*b,.38*c);a.close();a.fillAndStroke();a.setStrokeColor(d);a.setFillColor(e)},complexGw:function(a,d,e,b,c){d=a.state.strokeColor;e=a.state.fillColor;a.setStrokeColor(e);a.setFillColor(d);a.begin();a.moveTo(0,.44*c);a.lineTo(.36*b,.44*c);a.lineTo(.1*b,.18*c);a.lineTo(.18*b,.1*c);a.lineTo(.44*b,.36*c);a.lineTo(.44*b,0);a.lineTo(.56*b,0);a.lineTo(.56*b,.36*c);a.lineTo(.82*b,.1*c);a.lineTo(.9*b,.18*c);a.lineTo(.64*
|
|
b,.44*c);a.lineTo(b,.44*c);a.lineTo(b,.56*c);a.lineTo(.64*b,.56*c);a.lineTo(.9*b,.82*c);a.lineTo(.82*b,.9*c);a.lineTo(.56*b,.64*c);a.lineTo(.56*b,c);a.lineTo(.44*b,c);a.lineTo(.44*b,.64*c);a.lineTo(.18*b,.9*c);a.lineTo(.1*b,.82*c);a.lineTo(.36*b,.56*c);a.lineTo(0,.56*c);a.close();a.fillAndStroke();a.setStrokeColor(d);a.setFillColor(e)}};mxCellRenderer.prototype.defaultShapes["mxgraph.bpmn.shape"]=mxBpmnShape;
|
|
function mxShapeEREntity(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEREntity,mxShape);
|
|
mxShapeEREntity.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"buttonText","Entity"),g=mxUtils.getValue(this.style,"textColor","#666666"),h=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17");a.translate(d,e);b=Math.max(b,20);c=Math.max(c,20);this.background(a,d,e,b,c,10,g);a.setShadow(!1);this.mainText(a,d,e,b,c,f,h,g)};
|
|
mxShapeEREntity.prototype.background=function(a,d,e,b,c,f,g){d=mxUtils.getValue(this.style,"buttonStyle","round").toString();"round"===d?(a.begin(),a.moveTo(0,f),a.arcTo(f,f,0,0,1,f,0),a.lineTo(b-f,0),a.arcTo(f,f,0,0,1,b,f),a.lineTo(b,c-f),a.arcTo(f,f,0,0,1,b-f,c),a.lineTo(f,c),a.arcTo(f,f,0,0,1,0,c-f),a.close(),a.fillAndStroke()):"rect"===d?(a.begin(),a.moveTo(0,0),a.lineTo(b,0),a.lineTo(b,c),a.lineTo(0,c),a.close(),a.fillAndStroke()):"dblFrame"===d&&(f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,
|
|
"#ffffff"),a.setFillColor(f),a.begin(),a.moveTo(0,0),a.lineTo(b,0),a.lineTo(b,c),a.lineTo(0,c),a.close(),a.fillAndStroke(),f=Math.min(b,c),a.begin(),a.moveTo(.1*f,.1*f),a.lineTo(b-.1*f,.1*f),a.lineTo(b-.1*f,c-.1*f),a.lineTo(.1*f,c-.1*f),a.close(),a.stroke())};mxShapeEREntity.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.text(.5*b,.5*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxCellRenderer.prototype.defaultShapes["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)];function mxShapeEREntityExt(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEREntityExt,mxShape);
|
|
mxShapeEREntityExt.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"buttonText","Entity"),g=mxUtils.getValue(this.style,"subText","+ attribute 1,+ attribute 2,+ attribute 3").toString().split(","),h=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#666666"),k=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17"),l=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#008cff"),n=mxUtils.getValue(this.style,"fillColor2","#ffffff"),m=0;a.translate(d,
|
|
e);for(var p=1.25*k,q=0;q<g.length;q++){var u=mxUtils.getSizeForString(g[q],k,mxConstants.DEFAULT_FONTFAMILY).width;u>m&&(m=u)}b=Math.max(b,20,m+10);c=Math.max(c,20,(g.length+1)*p);this.background(a,d,e,b,c,10);a.setShadow(!1);this.shapes(a,d,e,b,c,k,l,n,10,p);this.mainText(a,d,e,b,c,f,k,n);this.attrText(a,d,e,b,c,g,k,h,p,10)};
|
|
mxShapeEREntityExt.prototype.background=function(a,d,e,b,c,f){d=mxUtils.getValue(this.style,"buttonStyle","round").toString();a.begin();"round"===d?(a.moveTo(0,f),a.arcTo(f,f,0,0,1,f,0),a.lineTo(b-f,0),a.arcTo(f,f,0,0,1,b,f),a.lineTo(b,c-f),a.arcTo(f,f,0,0,1,b-f,c),a.lineTo(f,c),a.arcTo(f,f,0,0,1,0,c-f)):"rect"===d&&(a.moveTo(0,0),a.lineTo(b,0),a.lineTo(b,c),a.lineTo(0,c));a.close();a.fillAndStroke()};
|
|
mxShapeEREntityExt.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.text(.5*b,.5*g,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxShapeEREntityExt.prototype.shapes=function(a,d,e,b,c,f,g,h,k,l){d=mxUtils.getValue(this.style,"buttonStyle","round").toString();"round"===d?(a.begin(),a.moveTo(0,k),a.arcTo(k,k,0,0,1,k,0),a.lineTo(b-k,0),a.arcTo(k,k,0,0,1,b,k),a.lineTo(b,l),a.lineTo(0,l),a.close(),a.fill(),a.setFillColor(h),a.begin(),a.moveTo(b,l),a.lineTo(b,c-k),a.arcTo(k,k,0,0,1,b-k,c),a.lineTo(k,c),a.arcTo(k,k,0,0,1,0,c-k),a.lineTo(0,l),a.close(),a.fill()):"rect"===d&&(a.begin(),a.moveTo(0,0),a.lineTo(b,0),a.lineTo(b,l),a.lineTo(0,
|
|
l),a.close(),a.fill(),a.setFillColor(h),a.begin(),a.moveTo(0,l),a.lineTo(b,l),a.lineTo(b,c),a.lineTo(0,c),a.close(),a.fill());a.begin();"round"===d?(a.moveTo(0,k),a.arcTo(k,k,0,0,1,k,0),a.lineTo(b-k,0),a.arcTo(k,k,0,0,1,b,k),a.lineTo(b,c-k),a.arcTo(k,k,0,0,1,b-k,c),a.lineTo(k,c),a.arcTo(k,k,0,0,1,0,c-k)):"rect"===d&&(a.moveTo(0,0),a.lineTo(b,0),a.lineTo(b,c),a.lineTo(0,c));a.close();a.stroke()};
|
|
mxShapeEREntityExt.prototype.attrText=function(a,d,e,b,c,f,g,h,k,l){for(d=0;d<f.length;d++)a.begin(),a.setFontSize(g),a.setFontColor(h),a.text(.5*l,(d+1.5)*k,0,0,f[d],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes["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)];function mxShapeERAttribute(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeERAttribute,mxShape);
|
|
mxShapeERAttribute.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"buttonText","Entity"),g=mxUtils.getValue(this.style,"textColor","#666666"),h=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17");a.translate(d,e);b=Math.max(b,20);c=Math.max(c,20);this.background(a,d,e,b,c,10,g);a.setShadow(!1);this.mainText(a,d,e,b,c,f,h,g)};
|
|
mxShapeERAttribute.prototype.background=function(a,d,e,b,c,f,g){d=mxUtils.getValue(this.style,"buttonStyle","simple").toString();"simple"===d?(a.begin(),a.ellipse(0,0,b,c),a.fillAndStroke()):"dblFrame"===d&&(d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#666666"),a.setFillColor(d),a.begin(),a.ellipse(0,0,b,c),a.fillAndStroke(),f=Math.min(b,c),a.begin(),a.ellipse(.1*f,.1*f,b-.2*f,c-.2*f),a.stroke())};
|
|
mxShapeERAttribute.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.text(.5*b,.5*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes["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)];
|
|
function mxShapeERHas(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeERHas,mxShape);
|
|
mxShapeERHas.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"buttonText","Entity"),g=mxUtils.getValue(this.style,"textColor","#666666"),h=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17");a.translate(d,e);b=Math.max(b,20);c=Math.max(c,20);this.background(a,d,e,b,c,10,g);a.setShadow(!1);this.mainText(a,d,e,b,c,f,h,g)};
|
|
mxShapeERHas.prototype.background=function(a,d,e,b,c,f,g){d=mxUtils.getValue(this.style,"buttonStyle","rhombus").toString();"rhombus"===d?(a.begin(),a.moveTo(0,.5*c),a.lineTo(.5*b,0),a.lineTo(b,.5*c),a.lineTo(.5*b,c),a.close(),a.fillAndStroke()):"dblFrame"===d&&(d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#666666"),a.setFillColor(d),a.begin(),a.moveTo(0,.5*c),a.lineTo(.5*b,0),a.lineTo(b,.5*c),a.lineTo(.5*b,c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.1*b,.5*c),a.lineTo(.5*b,.1*
|
|
c),a.lineTo(.9*b,.5*c),a.lineTo(.5*b,.9*c),a.close(),a.stroke())};mxShapeERHas.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.text(.5*b,.5*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes["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)];
|
|
function mxShapeERCloud(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeERCloud,mxShape);
|
|
mxShapeERCloud.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"buttonText","Entity"),g=mxUtils.getValue(this.style,"textColor","#666666"),h=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17");a.translate(d,e);b=Math.max(b,20);c=Math.max(c,20);this.background(a,d,e,b,c,10,g);a.setShadow(!1);this.mainText(a,d,e,b,c,f,h,g)};
|
|
mxShapeERCloud.prototype.background=function(a,d,e,b,c,f,g){a.begin();a.moveTo(.25*b,.25*c);a.curveTo(.05*b,.25*c,0,.5*c,.16*b,.55*c);a.curveTo(0,.66*c,.18*b,.9*c,.31*b,.8*c);a.curveTo(.4*b,c,.7*b,c,.8*b,.8*c);a.curveTo(b,.8*c,b,.6*c,.875*b,.5*c);a.curveTo(b,.3*c,.8*b,.1*c,.625*b,.2*c);a.curveTo(.5*b,.05*c,.3*b,.05*c,.25*b,.25*c);a.fillAndStroke()};
|
|
mxShapeERCloud.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.text(.5*b,.5*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes["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)];
|
|
function mxShapeERHierarchy(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeERHierarchy,mxShape);
|
|
mxShapeERHierarchy.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"buttonText","main").toString().split(","),g=mxUtils.getValue(this.style,"subText","sub").toString().split(","),h=mxUtils.getValue(this.style,"textColor","#666666"),k=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17");a.translate(d,e);b=Math.max(b,20);c=Math.max(c,20);this.background(a,d,e,b,c,10,h);a.setShadow(!1);this.shapeText(a,d,e,b,c,f,g,k,h)};
|
|
mxShapeERHierarchy.prototype.background=function(a,d,e,b,c,f,g){d=mxUtils.getValue(this.style,"buttonStyle","round").toString();"round"===d?(a.begin(),a.moveTo(0,f),a.arcTo(f,f,0,0,1,f,0),a.lineTo(b-f,0),a.arcTo(f,f,0,0,1,b,f),a.lineTo(b,c-f),a.arcTo(f,f,0,0,1,b-f,c),a.lineTo(f,c),a.arcTo(f,f,0,0,1,0,c-f),a.close(),a.fillAndStroke()):"rect"===d?(a.begin(),a.moveTo(0,0),a.lineTo(b,0),a.lineTo(b,c),a.lineTo(0,c),a.close(),a.fillAndStroke()):"dblFrame"===d&&(f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,
|
|
"#666666"),a.setFillColor(f),a.begin(),a.moveTo(0,0),a.lineTo(b,0),a.lineTo(b,c),a.lineTo(0,c),a.close(),a.fillAndStroke(),f=Math.min(b,c),a.begin(),a.moveTo(.1*f,.1*f),a.lineTo(b-.1*f,.1*f),a.lineTo(b-.1*f,c-.1*f),a.lineTo(.1*f,c-.1*f),a.close(),a.stroke());g=e=0;"round"===d?(e=.5*b,g=f,a.translate(e,g),b=.5*b-f,c-=2*f,a.begin(),a.moveTo(0,f),a.arcTo(f,f,0,0,1,f,0),a.lineTo(b-f,0),a.arcTo(f,f,0,0,1,b,f),a.lineTo(b,c-f),a.arcTo(f,f,0,0,1,b-f,c),a.lineTo(f,c),a.arcTo(f,f,0,0,1,0,c-f),a.close(),a.fillAndStroke()):
|
|
"rect"===d?(e=.5*b,g=f,a.translate(e,g),b=.5*b-f,c-=2*f,a.begin(),a.moveTo(0,0),a.lineTo(b,0),a.lineTo(b,c),a.lineTo(0,c),a.close(),a.fillAndStroke()):"dblFrame"===d&&(e=.5*b,g=.15*f,a.translate(e,g),b=.5*b-.15*f,c-=.3*f,f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#666666"),a.setFillColor(f),a.begin(),a.moveTo(0,0),a.lineTo(b,0),a.lineTo(b,c),a.lineTo(0,c),a.close(),a.fillAndStroke(),f=Math.min(b,c),a.begin(),a.moveTo(.1*f,.1*f),a.lineTo(b-.1*f,.1*f),a.lineTo(b-.1*f,c-.1*f),a.lineTo(.1*
|
|
f,c-.1*f),a.close(),a.stroke());a.translate(-e,-g)};
|
|
mxShapeERHierarchy.prototype.shapeText=function(a,d,e,b,c,f,g,h,k,l){a.begin();a.setFontSize(h);a.setFontColor(k);a.text(.25*b,.5*(c-h),0,0,f[0],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.25*b,.5*(c+h),0,0,f[1],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.7*b,.5*(c-h),0,0,g[0],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.7*b,.5*(c+h),0,0,g[1],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxCellRenderer.prototype.defaultShapes["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)];function mxShapeERNote(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeERNote,mxShape);
|
|
mxShapeERNote.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"buttonText","Entity"),g=mxUtils.getValue(this.style,"textColor","#666666"),h=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17"),k=mxUtils.getValue(this.style,"fillColor2","#ffffff");a.translate(d,e);b=Math.max(b,40);c=Math.max(c,40);this.background(a,d,e,b,c,20);a.setShadow(!1);this.flipShape(a,d,e,b,c,20,k);this.mainText(a,d,e,b,c,f,h,g)};
|
|
mxShapeERNote.prototype.background=function(a,d,e,b,c,f){a.begin();a.moveTo(0,0);a.lineTo(b-f,0);a.lineTo(b,f);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};mxShapeERNote.prototype.flipShape=function(a,d,e,b,c,f,g){a.setLineJoin("round");a.setFillColor(g);a.begin();a.moveTo(b-f,0);a.lineTo(b,f);a.lineTo(b-f,f);a.close();a.fillAndStroke()};
|
|
mxShapeERNote.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.text(.5*b,.5*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes["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 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)];function mxShapeERChen(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeERChen,mxShape);
|
|
mxShapeERChen.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"textColor","#666666"),g=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17");a.translate(d,e);b=Math.max(b,40);c=Math.max(c,40);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c,g,f)};mxShapeERChen.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};
|
|
mxShapeERChen.prototype.foreground=function(a,d,e,b,c,f,g){a.begin();a.moveTo(0,.25*c);a.lineTo(b,.25*c);a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.moveTo(0,.75*c);a.lineTo(b,.75*c);a.moveTo(.25*b,.5*c);a.lineTo(.25*b,c);a.moveTo(.5*b,.25*c);a.lineTo(.5*b,c);a.moveTo(.75*b,.5*c);a.lineTo(.75*b,c);a.stroke();a.begin();a.setFontSize(f);a.setFontColor(g);a.text(.5*b,.125*c,0,0,"ERD Peter Chen's Notation",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFontSize(.85*f);a.text(.25*b,.375*
|
|
c,0,0,"Cardinality",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.75*b,.375*c,0,0,"Optionality",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFontSize(.7*f);a.text(.125*b,.625*c,0,0,"1",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.375*b,.625*c,0,0,"One",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.625*b,.625*c,0,0,"0",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.875*b,
|
|
.625*c,0,0,"Optional",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.125*b,.875*c,0,0,"N",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.375*b,.875*c,0,0,"Many",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.625*b,.875*c,0,0,"1",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.875*b,.875*c,0,0,"Mandatory",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxCellRenderer.prototype.defaultShapes["mxgraph.er.chens"]=mxShapeERChen;
|
|
mxShapeERChen.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,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 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)];function mxShapeERBachman(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeERBachman,mxShape);
|
|
mxShapeERBachman.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"textColor","#666666"),g=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17");a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c,g,f)};mxShapeERBachman.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};
|
|
mxShapeERBachman.prototype.foreground=function(a,d,e,b,c,f,g){a.begin();a.moveTo(0,.125*c);a.lineTo(b,.125*c);a.moveTo(0,.25*c);a.lineTo(b,.25*c);a.moveTo(0,.375*c);a.lineTo(b,.375*c);a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.moveTo(0,.625*c);a.lineTo(b,.625*c);a.moveTo(0,.75*c);a.lineTo(b,.75*c);a.moveTo(0,.875*c);a.lineTo(b,.875*c);a.moveTo(.5*b,.125*c);a.lineTo(.5*b,c);a.stroke();a.begin();a.setFontSize(f);a.setFontColor(g);a.text(.5*b,.0625*c,0,0,"ERD Bachman's Notation",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,
|
|
0,null,0,0,0);a.setFontSize(.85*f);a.text(.52*b,.1875*c,0,0,"Relationship",mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.52*b,.3125*c,0,0,"Cardinality (One)",mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.52*b,.4375*c,0,0,"Cardinality (Many)",mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.52*b,.5625*c,0,0,"Mandatory, One",mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.52*b,.6875*c,0,0,"Mandatory, Many",mxConstants.ALIGN_LEFT,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.52*b,.8125*c,0,0,"Optional, One",mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.52*b,.9375*c,0,0,"Optional, Many",mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);d=mxUtils.getSizeForString("has/forms",f,mxConstants.DEFAULT_FONTFAMILY).width;a.begin();a.moveTo(.04*b,.1875*c);a.lineTo(.25*b-.5*d,.1875*c);a.moveTo(.25*b+.5*d,.1875*c);a.lineTo(.46*b,.1875*c);a.text(.25*b,.1875*c,0,0,"has/forms",mxConstants.ALIGN_CENTER,
|
|
mxConstants.ALIGN_MIDDLE,0,null,!0,0,0);a.moveTo(.04*b,.3125*c);a.lineTo(.46*b,.3125*c);a.moveTo(.04*b,.4375*c);a.lineTo(.46*b,.4375*c);a.moveTo(.46*b,.405*c);a.lineTo(.4*b,.4375*c);a.lineTo(.46*b,.47*c);a.moveTo(.04*b,.5625*c);a.lineTo(.46*b,.5625*c);a.moveTo(.38*b,.53*c);a.lineTo(.38*b,.595*c);a.moveTo(.04*b,.6875*c);a.lineTo(.46*b,.6875*c);a.moveTo(.46*b,.655*c);a.lineTo(.4*b,.6875*c);a.lineTo(.46*b,.72*c);a.moveTo(.38*b,.655*c);a.lineTo(.38*b,.72*c);a.moveTo(.04*b,.8125*c);a.lineTo(.46*b,.8125*
|
|
c);a.moveTo(.04*b,.9375*c);a.lineTo(.46*b,.9375*c);a.moveTo(.46*b,.905*c);a.lineTo(.4*b,.9375*c);a.lineTo(.46*b,.97*c);a.stroke();d=c/15;a.begin();a.ellipse(.46*b-d,.8125*c-.5*d,d,d);a.fillAndStroke();a.begin();a.ellipse(.4*b-d,.9375*c-.5*d,d,d);a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes["mxgraph.er.bachmans"]=mxShapeERBachman;
|
|
mxShapeERBachman.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,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 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)];function mxShapeERInfEng(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeERInfEng,mxShape);
|
|
mxShapeERInfEng.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"textColor","#666666"),g=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17");a.translate(d,e);b=Math.max(b,c/1.5);c=Math.max(c,5*g);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c,g,f)};mxShapeERInfEng.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};
|
|
mxShapeERInfEng.prototype.foreground=function(a,d,e,b,c,f,g){a.begin();a.moveTo(0,.2*c);a.lineTo(b,.2*c);a.moveTo(0,.4*c);a.lineTo(b,.4*c);a.moveTo(0,.6*c);a.lineTo(b,.6*c);a.moveTo(0,.8*c);a.lineTo(b,.8*c);a.moveTo(.5*b,.2*c);a.lineTo(.5*b,c);a.stroke();a.begin();a.setFontSize(f);a.setFontColor(g);a.text(.5*b,.1*c,0,0,"ERD Information Engineering Notation",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFontSize(.85*f);a.text(.52*b,.3*c,0,0,"Zero or one",mxConstants.ALIGN_LEFT,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.52*b,.5*c,0,0,"One only",mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.52*b,.7*c,0,0,"Zero or more",mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.52*b,.9*c,0,0,"One or more",mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);d=c/12;a.begin();a.moveTo(.04*b,.3*c);a.lineTo(.46*b,.3*c);a.moveTo(.46*b-d,.25*c);a.lineTo(.46*b-d,.35*c);a.moveTo(.04*b,.5*c);a.lineTo(.46*b,.5*c);a.moveTo(.46*b-2*d,.45*
|
|
c);a.lineTo(.46*b-2*d,.55*c);a.moveTo(.46*b-2.5*d,.45*c);a.lineTo(.46*b-2.5*d,.55*c);a.moveTo(.04*b,.7*c);a.lineTo(.46*b,.7*c);a.moveTo(.46*b,.65*c);a.lineTo(.46*b-2*d,.7*c);a.lineTo(.46*b,.75*c);a.stroke();a.moveTo(.04*b,.9*c);a.lineTo(.46*b,.9*c);a.moveTo(.46*b,.85*c);a.lineTo(.46*b-2*d,.9*c);a.lineTo(.46*b,.95*c);a.moveTo(.46*b-2.5*d,.85*c);a.lineTo(.46*b-2.5*d,.95*c);a.stroke();a.begin();a.ellipse(.46*b-3*d,.3*c-.5*d,d,d);a.fillAndStroke();a.begin();a.ellipse(.46*b-3*d,.7*c-.5*d,d,d);a.fillAndStroke()};
|
|
mxCellRenderer.prototype.defaultShapes["mxgraph.er.ie"]=mxShapeERInfEng;
|
|
mxShapeERInfEng.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,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 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)];mxMarker.addMarker("ERone",function(a,d,e,b,c,f,g,h,k,l){var n=c*(g+k+1),m=f*(g+k+1);return function(){a.begin();a.moveTo(b.x-n/2-m/2,b.y-m/2+n/2);a.lineTo(b.x-n/2+m/2,b.y-m/2-n/2);a.stroke()}});
|
|
mxMarker.addMarker("ERmandOne",function(a,d,e,b,c,f,g,h,k,l){var n=c*(g+k+1),m=f*(g+k+1);return function(){a.begin();a.moveTo(b.x-n/2-m/2,b.y-m/2+n/2);a.lineTo(b.x-n/2+m/2,b.y-m/2-n/2);a.moveTo(b.x-n-m/2,b.y-m+n/2);a.lineTo(b.x-n+m/2,b.y-m-n/2);a.stroke()}});mxMarker.addMarker("ERmany",function(a,d,e,b,c,f,g,h,k,l){var n=c*(g+k+1),m=f*(g+k+1);return function(){a.begin();a.moveTo(b.x+m/2,b.y-n/2);a.lineTo(b.x-n,b.y-m);a.lineTo(b.x-m/2,b.y+n/2);a.stroke()}});
|
|
mxMarker.addMarker("ERoneToMany",function(a,d,e,b,c,f,g,h,k,l){var n=c*(g+k+1),m=f*(g+k+1);return function(){a.begin();a.moveTo(b.x-n-m/2,b.y-m+n/2);a.lineTo(b.x-n+m/2,b.y-m-n/2);a.moveTo(b.x+m/2,b.y-n/2);a.lineTo(b.x-n,b.y-m);a.lineTo(b.x-m/2,b.y+n/2);a.stroke()}});
|
|
mxMarker.addMarker("ERzeroToMany",function(a,d,e,b,c,f,g,h,k,l){var n=c*(g+k+1),m=f*(g+k+1),p=g/2;return function(){a.begin();a.ellipse(b.x-1.5*n-p,b.y-1.5*m-p,2*p,2*p);if(l){var c=mxUtils.getValue(d.style,mxConstants.STYLE_STROKECOLOR,"#666666");a.setFillColor("#ffffff");a.fillAndStroke();a.setFillColor(c)}else a.stroke();a.begin();a.moveTo(b.x+m/2,b.y-n/2);a.lineTo(b.x-n,b.y-m);a.lineTo(b.x-m/2,b.y+n/2);a.stroke()}});
|
|
mxMarker.addMarker("ERzeroToOne",function(a,d,e,b,c,f,g,h,k,l){var n=c*(g+k+1),m=f*(g+k+1),p=g/2;return function(){a.begin();a.ellipse(b.x-1.5*n-p,b.y-1.5*m-p,2*p,2*p);if(l){var c=mxUtils.getValue(d.style,mxConstants.STYLE_STROKECOLOR,"#666666");a.setFillColor("#ffffff");a.fillAndStroke();a.setFillColor(c)}else a.stroke();a.begin();a.moveTo(b.x-n/2-m/2,b.y-m/2+n/2);a.lineTo(b.x-n/2+m/2,b.y-m/2-n/2);a.stroke()}});
|
|
function mxShapeERRRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeERRRect,mxShape);mxShapeERRRect.prototype.cst={RRECT:"mxgraph.er.rrect",R_SIZE:"rSize"};mxShapeERRRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeERRRect.prototype.cst.R_SIZE,"10"));a.roundrect(0,0,b,c,d);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeERRRect.prototype.cst.RRECT,mxShapeERRRect);
|
|
mxShapeERRRect.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)];function mxShapeERAnchor(a,d,e,b){mxShape.call(this);this.bounds=a}mxUtils.extend(mxShapeERAnchor,mxShape);mxShapeERAnchor.prototype.cst={ANCHOR:"mxgraph.er.anchor"};mxShapeERAnchor.prototype.paintVertexShape=function(a,d,e,b,c){};mxCellRenderer.registerShape(mxShapeERAnchor.prototype.cst.ANCHOR,mxShapeERAnchor);
|
|
var mxIOS7C={MAIN_TEXT:"mainText",SUB_TEXT:"subText",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",BAR_POS:"barPos",BUTTON_TEXT:"buttonText",BUTTON_STATE:"buttonState",SELECTED:"+",STATE_ON:"on",STATE_OFF:"off",GRID_SIZE:"gridSize",SHAPE_IOS7_APP_BAR:"mxgraph.ios7ui.appBar",SHAPE_IOS7_ON_OFF_BUTTON:"mxgraph.ios7ui.onOffButton",SHAPE_IOS7_SLIDER:"mxgraph.ios7ui.slider",SHAPE_IOS7_DOWNLOAD_BAR:"mxgraph.ios7ui.downloadBar",SHAPE_IOS7_ICON:"mxgraph.ios7ui.icon",SHAPE_IOS7_HOR_BUTTON_BAR:"mxgraph.ios7ui.horButtonBar",
|
|
SHAPE_IOS7_PAGE_CONTROL:"mxgraph.ios7ui.pageControl",SHAPE_IOS7_EXPAND:"mxgraph.ios7ui.expand",SHAPE_IOS7_ICON_GRID:"mxgraph.ios7ui.iconGrid",SHAPE_IOS7_PHONE:"mxgraph.ios7ui.phone",SHAPE_IOS7_SEARCH_BOX:"mxgraph.ios7ui.searchBox",SHAPE_IOS7_URL:"mxgraph.ios7ui.url",SHAPE_IOS7_ACTION_DIALOG:"mxgraph.ios7ui.actionDialog",STYLE_FILLCOLOR2:"fillColor2",STYLE_FILLCOLOR3:"fillColor3",STYLE_TEXTCOLOR:"textColor",STYLE_TEXTCOLOR2:"textColor2",STYLE_STROKECOLOR2:"strokeColor2",STYLE_STROKECOLOR3:"strokeColor3",
|
|
STYLE_TEXTSIZE:"textSize"};function mxShapeIOS7AppBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7AppBar,mxShape);mxShapeIOS7AppBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeIOS7AppBar.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fill()};
|
|
mxShapeIOS7AppBar.prototype.foreground=function(a,d,e,b,c){a.setFillColor(mxUtils.getValue(this.style,mxIOS7C.STYLE_FILLCOLOR2,"#222222"));a.ellipse(5,.5*c-1.5,3,3);a.fill();a.ellipse(9,.5*c-1.5,3,3);a.fill();a.ellipse(13,.5*c-1.5,3,3);a.fill();a.ellipse(17,.5*c-1.5,3,3);a.fill();a.ellipse(21,.5*c-1.5,3,3);a.fill();a.ellipse(54,.5*c+2,2,2);a.fillAndStroke();a.setStrokeWidth(2);a.begin();a.moveTo(52,.5*c+1);a.arcTo(3.5,3.5,0,0,1,58,.5*c+1);a.stroke();a.begin();a.moveTo(50,.5*c-1);a.arcTo(6,6,0,0,1,
|
|
60,.5*c-1);a.stroke();a.begin();a.moveTo(b-19,.5*c-2);a.lineTo(b-6,.5*c-2);a.lineTo(b-6,.5*c+2);a.lineTo(b-19,.5*c+2);a.close();a.fill();a.setStrokeWidth(1);a.begin();a.moveTo(b-44,.5*c-2.5);a.lineTo(b-36,.5*c+2.5);a.lineTo(b-40,.5*c+5);a.lineTo(b-40,.5*c-5);a.lineTo(b-36,.5*c-2.5);a.lineTo(b-44,.5*c+2.5);a.stroke();a.begin();a.moveTo(b-20,.5*c-3);a.lineTo(b-5,.5*c-3);a.lineTo(b-5,.5*c-1);a.lineTo(b-3.5,.5*c-1);a.lineTo(b-3.5,.5*c+1);a.lineTo(b-5,.5*c+1);a.lineTo(b-5,.5*c+3);a.lineTo(b-20,.5*c+3);
|
|
a.close();a.stroke()};mxCellRenderer.prototype.defaultShapes[mxIOS7C.SHAPE_IOS7_APP_BAR]=mxShapeIOS7AppBar;function mxShapeIOS7OnOffButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7OnOffButton,mxShape);
|
|
mxShapeIOS7OnOffButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);b=Math.max(b,2*c);var f=mxUtils.getValue(this.style,mxIOS7C.BUTTON_STATE,mxIOS7C.STATE_ON);this.background(a,d,e,b,c,f);a.setShadow(!1);this.foreground(a,d,e,b,c,f)};
|
|
mxShapeIOS7OnOffButton.prototype.background=function(a,d,e,b,c,f){f===mxIOS7C.STATE_ON?(a.roundrect(0,0,b,c,.5*c,.5*c),a.fillAndStroke()):f===mxIOS7C.STATE_OFF&&(a.setStrokeColor(mxUtils.getValue(this.style,mxIOS7C.STYLE_STROKECOLOR2,"#aaaaaa")),a.setFillColor(mxUtils.getValue(this.style,mxIOS7C.STYLE_FILLCOLOR2,"#ffffff")),a.roundrect(0,0,b,c,.5*c,.5*c),a.fillAndStroke())};
|
|
mxShapeIOS7OnOffButton.prototype.foreground=function(a,d,e,b,c,f){a.setFillColor("#ffffff");f===mxIOS7C.STATE_ON?(a.ellipse(b-c+1,1,c-2,c-2),a.fill()):(a.ellipse(0,0,c,c),a.stroke())};mxCellRenderer.prototype.defaultShapes[mxIOS7C.SHAPE_IOS7_ON_OFF_BUTTON]=mxShapeIOS7OnOffButton;function mxShapeIOS7Slider(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.barPos=80}mxUtils.extend(mxShapeIOS7Slider,mxShape);
|
|
mxShapeIOS7Slider.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setShadow(!1);this.foreground(a,b,c)};mxShapeIOS7Slider.prototype.foreground=function(a,d,e){a.setStrokeWidth(2);a.begin();a.moveTo(0,.5*e);a.lineTo(d,.5*e);a.stroke();var b=mxUtils.getValue(this.style,mxIOS7C.BAR_POS,"80"),b=Math.min(b,100),b=Math.max(b,0);d=0+(d-0)*b/100;a.setStrokeColor(mxUtils.getValue(this.style,mxIOS7C.STYLE_STROKECOLOR2,"#a0a0a0"));a.ellipse(d-5,.5*e-5,10,10);a.fillAndStroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxIOS7C.SHAPE_IOS7_SLIDER]=mxShapeIOS7Slider;Graph.handleFactory[mxIOS7C.SHAPE_IOS7_SLIDER]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"barPos",this.barPos))));return new mxPoint(a.x+d/100*a.width,a.y+a.height/2)},function(a,e){this.state.style.barPos=Math.round(1E3*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/1E3})]};
|
|
function mxShapeIOS7DownloadBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.barPos=80}mxUtils.extend(mxShapeIOS7DownloadBar,mxShape);mxShapeIOS7DownloadBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.foreground(a,b,c)};
|
|
mxShapeIOS7DownloadBar.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxIOS7C.BUTTON_TEXT,"");a.setFontStyle(mxConstants.FONT_BOLD);a.text(.5*d,.2*e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);b=mxUtils.getValue(this.style,mxIOS7C.BAR_POS,"80");b=Math.min(b,100);b=Math.max(b,0);b=d*b/100;a.setStrokeWidth(2);a.setStrokeColor(mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,""));a.begin();a.moveTo(0,.5*e);a.lineTo(d,.5*e);a.stroke();a.setStrokeColor(mxUtils.getValue(this.style,
|
|
mxConstants.STYLE_STROKECOLOR,""));a.begin();a.moveTo(0,.5*e);a.lineTo(b,.5*e);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxIOS7C.SHAPE_IOS7_DOWNLOAD_BAR]=mxShapeIOS7DownloadBar;
|
|
Graph.handleFactory[mxIOS7C.SHAPE_IOS7_DOWNLOAD_BAR]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"barPos",this.barPos))));return new mxPoint(a.x+d/100*a.width,a.y+a.height/2)},function(a,e){this.state.style.barPos=Math.round(1E3*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/1E3})]};
|
|
function mxShapeIOS7Icon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7Icon,mxShape);mxShapeIOS7Icon.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.foreground(a,b,c)};
|
|
mxShapeIOS7Icon.prototype.foreground=function(a,d,e){a.setGradient("#00D0F0","#0080F0",.325*d,0,.675*d,.5*e,mxConstants.DIRECTION_SOUTH,1,1);a.roundrect(0,0,d,e,.1*d,.1*e);a.fill();var b=mxUtils.getValue(this.style,mxIOS7C.BUTTON_TEXT,"");a.setFontColor("#ffffff");a.setFontStyle(mxConstants.FONT_BOLD);a.setFontSize(8);a.text(.5*d,.5*e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxIOS7C.SHAPE_IOS7_ICON]=mxShapeIOS7Icon;
|
|
function mxShapeIOS7horButtonBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7horButtonBar,mxShape);
|
|
mxShapeIOS7horButtonBar.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxIOS7C.BUTTON_TEXT,"+Button 1, Button 2, Button 3").toString().split(","),g=mxUtils.getValue(this.style,mxIOS7C.STYLE_TEXTCOLOR,"#666666"),h=mxUtils.getValue(this.style,mxIOS7C.STYLE_TEXTCOLOR2,"#ffffff"),k=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"8.5").toString(),l=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#666666"),n=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,
|
|
"#ffffff"),m=mxUtils.getValue(this.style,mxIOS7C.STYLE_FILLCOLOR2,"#008cff"),p=f.length,q=Array(p),u=0,t=-1,v=0;v<p;v++){var r=f[v];r.charAt(0)===mxIOS7C.SELECTED&&(r=f[v].substring(1),t=v);q[v]=mxUtils.getSizeForString(r,k,mxConstants.DEFAULT_FONTFAMILY).width;u+=q[v]}c=Math.max(c,1.5*k,10);u=5*p+u;b=Math.max(b,u);a.translate(d,e);this.background(a,b,c,2.5,p,q,2.5,u,l,n,m,t);a.setShadow(!1);for(v=d=0;v<p;v++)v===t?a.setFontColor(h):a.setFontColor(g),d+=2.5,this.buttonText(a,d,c,f[v],q[v],k,u,b),
|
|
d=d+q[v]+2.5};
|
|
mxShapeIOS7horButtonBar.prototype.background=function(a,d,e,b,c,f,g,h,k,l,n,m){a.begin();a.setStrokeColor(k);a.setFillColor(l);a.moveTo(0,b);a.arcTo(b,b,0,0,1,b,0);a.lineTo(d-b,0);a.arcTo(b,b,0,0,1,d,b);a.lineTo(d,e-b);a.arcTo(b,b,0,0,1,d-b,e);a.lineTo(b,e);a.arcTo(b,b,0,0,1,0,e-b);a.close();a.fillAndStroke();a.setStrokeColor(k);a.begin();for(n=1;n<c;n++)if(n!==m&&n!==m+1){for(var p=0,q=0;q<n;q++)p+=f[q]+2*g;p=p*d/h;a.moveTo(p,0);a.lineTo(p,e)}a.stroke();p=0;a.setStrokeColor(mxConstants.NONE);for(n=
|
|
0;n<m;n++)p+=f[n]+2*g;p=p*d/h;f=(f[m]+2*g)*d/h;f+=p;a.setFillColor("#0080F0");0===m?(a.begin(),a.moveTo(0,b),a.arcTo(b,b,0,0,1,b,0),a.lineTo(f,0),a.lineTo(f,e),a.lineTo(b,e),a.arcTo(b,b,0,0,1,0,e-b),a.close(),a.fill()):m===c-1?(a.begin(),a.moveTo(p,0),a.lineTo(f-b,0),a.arcTo(b,b,0,0,1,f,b),a.lineTo(f,e-b),a.arcTo(b,b,0,0,1,f-b,e),a.lineTo(p,e),a.close(),a.fill()):-1!==m&&(a.begin(),a.moveTo(p,0),a.lineTo(f,0),a.lineTo(f,e),a.lineTo(p,e),a.close(),a.fill());a.setStrokeColor(k);a.setFillColor(l);a.begin();
|
|
a.moveTo(0,b);a.arcTo(b,b,0,0,1,b,0);a.lineTo(d-b,0);a.arcTo(b,b,0,0,1,d,b);a.lineTo(d,e-b);a.arcTo(b,b,0,0,1,d-b,e);a.lineTo(b,e);a.arcTo(b,b,0,0,1,0,e-b);a.close();a.stroke()};mxShapeIOS7horButtonBar.prototype.buttonText=function(a,d,e,b,c,f,g,h){b.charAt(0)===mxIOS7C.SELECTED&&(b=b.substring(1));a.begin();a.setFontSize(f);a.text((d+.5*c)*h/g,.5*e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxIOS7C.SHAPE_IOS7_HOR_BUTTON_BAR]=mxShapeIOS7horButtonBar;
|
|
function mxShapeIOS7pageControl(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7pageControl,mxShape);
|
|
mxShapeIOS7pageControl.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#000000");e=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");var f=Math.min(.5*c,.05*b);a.setFillColor(e);a.ellipse(0,.5*c-f,2*f,2*f);a.fill();a.ellipse(.25*b-.5*f,.5*c-f,2*f,2*f);a.fill();a.ellipse(.5*b-f,.5*c-f,2*f,2*f);a.fill();a.ellipse(.75*b-1.5*f,.5*c-f,2*f,2*f);a.fill();a.setFillColor(d);a.ellipse(b-2*f,.5*c-f,2*f,2*f);a.fill()};
|
|
mxCellRenderer.prototype.defaultShapes[mxIOS7C.SHAPE_IOS7_PAGE_CONTROL]=mxShapeIOS7pageControl;function mxShapeIOS7iconGrid(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7iconGrid,mxShape);
|
|
mxShapeIOS7iconGrid.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=mxUtils.getValue(this.style,mxIOS7C.GRID_SIZE,"4,7").toString().split(",");b/=parseInt(d[0],10)+.1*(d[0]-1);c/=parseInt(d[1],10)+.1*(d[1]-1);for(e=0;e<d[0];e++)for(var f=0;f<d[1];f++)a.rect(1.1*b*e,1.1*c*f,b,c),a.fill()};mxCellRenderer.prototype.defaultShapes[mxIOS7C.SHAPE_IOS7_ICON_GRID]=mxShapeIOS7iconGrid;
|
|
function mxShapeIOS7phone(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7phone,mxShape);mxShapeIOS7phone.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.roundrect(0,0,b,c,25,25);a.fillAndStroke();a.setShadow(!1);this.foreground(a,d,e,b,c,25)};
|
|
mxShapeIOS7phone.prototype.foreground=function(a,d,e,b,c,f){a.rect(.0625*b,.15*c,.875*b,.7*c);a.stroke();a.ellipse(.4875*b,.04125*c,.025*b,.0125*c);a.stroke();a.roundrect(.375*b,.075*c,.25*b,.01875*c,.02*b,.01*c);a.stroke();a.ellipse(.4*b,.875*c,.2*b,.1*c);a.stroke();a.roundrect(.4575*b,.905*c,.085*b,.04375*c,.00625*c,.00625*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxIOS7C.SHAPE_IOS7_PHONE]=mxShapeIOS7phone;
|
|
function mxShapeIOS7searchBox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7searchBox,mxShape);mxShapeIOS7searchBox.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxShapeIOS7searchBox.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fill()};
|
|
mxShapeIOS7searchBox.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxIOS7C.BUTTON_TEXT,"Search"),c=mxUtils.getValue(this.style,mxIOS7C.STYLE_TEXTCOLOR,"#666666"),f=mxUtils.getValue(this.style,mxIOS7C.STYLE_STROKECOLOR2,"#008cff");mxUtils.getValue(this.style,mxIOS7C.STYLE_TEXTSIZE,"17");var g=.1*Math.min(d,e);a.setFillColor("#ffffff");a.roundrect(.05*d,.15*e,.5*d,.7*e,g,g);a.fillAndStroke();a.setFontColor(c);a.setFontSize(Math.min(.7*e,.1*d));a.text(5,.5*e,0,0,b,mxConstants.ALIGN_LEFT,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setStrokeColor(f);a.ellipse(.05*d+3,.5*e-3,4,4);a.stroke();a.begin();a.moveTo(.05*d+8,.5*e+3.5);a.lineTo(.05*d+6,.5*e+.5);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxIOS7C.SHAPE_IOS7_SEARCH_BOX]=mxShapeIOS7searchBox;function mxShapeIOS7URL(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7URL,mxShape);
|
|
mxShapeIOS7URL.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxShapeIOS7URL.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fill()};
|
|
mxShapeIOS7URL.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxIOS7C.BUTTON_TEXT,"draw.io"),c=mxUtils.getValue(this.style,mxIOS7C.STYLE_TEXTCOLOR,"#666666"),f=mxUtils.getValue(this.style,mxIOS7C.STYLE_STROKECOLOR2,"#008cff");mxUtils.getValue(this.style,mxIOS7C.STYLE_TEXTSIZE,"17");var g=.1*Math.min(d,e);a.setFillColor("#d8d8d8");a.roundrect(.05*d,.15*e,.9*d,.7*e,g,g);a.fill();a.setFontColor(c);a.setFontSize(Math.min(.7*e,.1*d));a.text(.5*d,.5*e,0,0,b,mxConstants.ALIGN_LEFT,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setStrokeColor(f);a.begin();a.moveTo(.95*d-5,.5*e);a.arcTo(3,3,0,1,1,.95*d-8,.5*e-3);a.stroke();a.setFillColor(f);a.begin();a.moveTo(.95*d-8,.5*e-4);a.lineTo(.95*d-6,.5*e-3);a.lineTo(.95*d-8,.5*e-2);a.close();a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxIOS7C.SHAPE_IOS7_URL]=mxShapeIOS7URL;function mxShapeIOS7Actiondialog(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeIOS7Actiondialog,mxShape);
|
|
mxShapeIOS7Actiondialog.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxIOS7C.MAIN_TEXT,"Main Text"),g=mxUtils.getValue(this.style,mxIOS7C.SUB_TEXT,"Sub Text"),h=mxUtils.getValue(this.style,mxIOS7C.STYLE_TEXTCOLOR,"#666666"),k=mxUtils.getValue(this.style,mxIOS7C.STYLE_TEXTSIZE,"17");a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);a.setFillColor("#e0e0e0");a.roundrect(.05*b,.1*c,.9*b,.35*c,.025*b,.05*c);a.fill();a.roundrect(.05*b,.55*c,.9*b,.35*c,.025*
|
|
b,.05*c);a.fill();a.setFontStyle(mxConstants.FONT_BOLD);this.mainText(a,d,e,b,c,f,k,h);this.subText(a,d,e,b,c,g,k/1.4,h)};mxShapeIOS7Actiondialog.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fill()};mxShapeIOS7Actiondialog.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.text(.5*b,.4*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxShapeIOS7Actiondialog.prototype.subText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.text(.5*b,.7*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxIOS7C.SHAPE_IOS7_ACTION_DIALOG]=mxShapeIOS7Actiondialog;function mxShapeIOS7Anchor(a,d,e,b){mxShape.call(this);this.bounds=a}mxUtils.extend(mxShapeIOS7Anchor,mxShape);mxShapeIOS7Anchor.prototype.cst={ANCHOR:"mxgraph.ios7ui.anchor"};
|
|
mxShapeIOS7Anchor.prototype.paintVertexShape=function(a,d,e,b,c){};mxCellRenderer.registerShape(mxShapeIOS7Anchor.prototype.cst.ANCHOR,mxShapeIOS7Anchor);function mxShapeIOS7RRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7RRect,mxShape);mxShapeIOS7RRect.prototype.cst={RRECT:"mxgraph.ios7ui.rrect",R_SIZE:"rSize"};
|
|
mxShapeIOS7RRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeIOS7RRect.prototype.cst.R_SIZE,"10"));a.roundrect(0,0,b,c,d);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeIOS7RRect.prototype.cst.RRECT,mxShapeIOS7RRect);function mxShapeIOS7LeftButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7LeftButton,mxShape);
|
|
mxShapeIOS7LeftButton.prototype.cst={LEFT_BUTTON:"mxgraph.ios7ui.leftButton",R_SIZE:"rSize"};mxShapeIOS7LeftButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeIOS7LeftButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(b,0);a.lineTo(b,c);a.lineTo(d,c);a.arcTo(d,d,0,0,1,0,c-d);a.lineTo(0,d);a.arcTo(d,d,0,0,1,d,0);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeIOS7LeftButton.prototype.cst.LEFT_BUTTON,mxShapeIOS7LeftButton);
|
|
function mxShapeIOS7RightButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7RightButton,mxShape);mxShapeIOS7RightButton.prototype.cst={RIGHT_BUTTON:"mxgraph.ios7ui.rightButton",R_SIZE:"rSize"};
|
|
mxShapeIOS7RightButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeIOS7RightButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(0,0);a.lineTo(b-d,0);a.arcTo(d,d,0,0,1,b,d);a.lineTo(b,c-d);a.arcTo(d,d,0,0,1,b-d,c);a.lineTo(0,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeIOS7RightButton.prototype.cst.RIGHT_BUTTON,mxShapeIOS7RightButton);
|
|
function mxShapeIOS7TopButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7TopButton,mxShape);mxShapeIOS7TopButton.prototype.cst={TOP_BUTTON:"mxgraph.ios7ui.topButton",R_SIZE:"rSize"};
|
|
mxShapeIOS7TopButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeIOS7TopButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(b,c);a.lineTo(0,c);a.lineTo(0,d);a.arcTo(d,d,0,0,1,d,0);a.lineTo(b-d,0);a.arcTo(d,d,0,0,1,b,d);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeIOS7TopButton.prototype.cst.TOP_BUTTON,mxShapeIOS7TopButton);
|
|
function mxShapeIOS7BottomButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7BottomButton,mxShape);mxShapeIOS7BottomButton.prototype.cst={BOTTOM_BUTTON:"mxgraph.ios7ui.bottomButton",R_SIZE:"rSize"};
|
|
mxShapeIOS7BottomButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeIOS7BottomButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(b,0);a.lineTo(0,0);a.lineTo(0,c-d);a.arcTo(d,d,0,0,0,d,c);a.lineTo(b-d,c);a.arcTo(d,d,0,0,0,b,c-d);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeIOS7BottomButton.prototype.cst.BOTTOM_BUTTON,mxShapeIOS7BottomButton);
|
|
function mxShapeIOS7HorLines(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7HorLines,mxShape);mxShapeIOS7HorLines.prototype.cst={HOR_LINES:"mxgraph.ios7ui.horLines"};mxShapeIOS7HorLines.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,0,b,c);a.fill();a.begin();a.moveTo(0,0);a.lineTo(b,0);a.moveTo(0,c);a.lineTo(b,c);a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeIOS7HorLines.prototype.cst.HOR_LINES,mxShapeIOS7HorLines);function mxShapeIOS7MarginRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7MarginRect,mxShape);mxShapeIOS7MarginRect.prototype.cst={SHAPE_MARGIN_RECT:"mxgraph.ios7ui.marginRect",MARGIN:"rectMargin",RX:"rx",RY:"ry",MARGIN_TOP:"rectMarginTop",MARGIN_LEFT:"rectMarginLeft",MARGIN_BOTTOM:"rectMarginBottom",MARGIN_RIGHT:"rectMarginRight"};
|
|
mxShapeIOS7MarginRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxShapeIOS7MarginRect.prototype.background=function(a,d,e,b,c,f){f=parseFloat(mxUtils.getValue(this.style,mxShapeIOS7MarginRect.prototype.cst.MARGIN,"0"));var g=parseFloat(mxUtils.getValue(this.style,mxShapeIOS7MarginRect.prototype.cst.MARGIN_TOP,"0")),h=parseFloat(mxUtils.getValue(this.style,mxShapeIOS7MarginRect.prototype.cst.MARGIN_LEFT,"0")),k=parseFloat(mxUtils.getValue(this.style,mxShapeIOS7MarginRect.prototype.cst.MARGIN_BOTTOM,"0")),l=parseFloat(mxUtils.getValue(this.style,mxShapeIOS7MarginRect.prototype.cst.MARGIN_RIGHT,
|
|
"0"));d=parseFloat(mxUtils.getValue(this.style,mxShapeIOS7MarginRect.prototype.cst.RX,"0"));e=parseFloat(mxUtils.getValue(this.style,mxShapeIOS7MarginRect.prototype.cst.RY,"0"));h=f+h;g=f+g;b=b-l-h-f;c=c-k-g-f;0<b&&0<c&&(a.begin(),a.roundrect(h,g,b,c,d,e),a.fillAndStroke())};mxCellRenderer.prototype.defaultShapes[mxShapeIOS7MarginRect.prototype.cst.SHAPE_MARGIN_RECT]=mxShapeIOS7MarginRect;
|
|
function mxShapeIOS7Callout(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIOS7Callout,mxShape);mxShapeIOS7Callout.prototype.cst={SHAPE_CALLOUT:"mxgraph.ios7ui.callout"};mxShapeIOS7Callout.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxShapeIOS7Callout.prototype.background=function(a,d,e,b,c,f){30<=b&&20<=c&&(a.begin(),a.moveTo(15,c-3),a.arcTo(20,10,0,0,1,0,c),a.arcTo(15,15,0,0,0,10,c-10),a.lineTo(10,10),a.arcTo(10,10,0,0,1,20,0),a.lineTo(b-10,0),a.arcTo(10,10,0,0,1,b,10),a.lineTo(b,c-10),a.arcTo(10,10,0,0,1,b-10,c),a.lineTo(20,c),a.arcTo(10,10,0,0,1,15,c-3),a.close(),a.fillAndStroke())};mxCellRenderer.prototype.defaultShapes[mxShapeIOS7Callout.prototype.cst.SHAPE_CALLOUT]=mxShapeIOS7Callout;
|
|
function mxShapeIOS7SelectBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.dx2=70;this.size=10}mxUtils.extend(mxShapeIOS7SelectBar,mxActor);mxShapeIOS7SelectBar.prototype.cst={SELECT_BAR:"mxgraph.ios7ui.selectBar"};
|
|
mxShapeIOS7SelectBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx2",this.dx2))));e=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"size",this.size))));var g=Math.max(0,Math.min(c,(b-Math.max(20,e)-e)/2,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.min(c/2,b/2,e);f=Math.max(e+g,f);f=Math.min(b-e-g,b-
|
|
20-g,f);a.begin();a.moveTo(f-g,c);a.lineTo(e,c);a.arcTo(e,e,0,0,1,0,c-e);a.lineTo(0,e);a.arcTo(e,e,0,0,1,e,0);a.lineTo(b-e,0);a.arcTo(e,e,0,0,1,b,e);a.lineTo(b,c-e);a.arcTo(e,e,0,0,1,b-e,c);a.lineTo(f+g,c);a.lineTo(f,c+g);a.close();a.fillAndStroke();a.setShadow(!1);a.begin();a.moveTo(b-Math.max(20,e),0);a.lineTo(b-Math.max(20,e),c);a.stroke();f=d;for(a.begin();f<b-Math.max(20,e);)a.moveTo(f,0),a.lineTo(f,c),f+=d;a.stroke();d=Math.min(Math.max(20,e),c);b-=.5*d;c*=.5;a.setFillColor(mxUtils.getValue(this.style,
|
|
mxConstants.STYLE_STROKECOLOR,""));a.begin();a.moveTo(b-.15*d,c-.225*d);a.lineTo(b+.25*d,c);a.lineTo(b-.15*d,c+.225*d);a.close();a.fill()};mxCellRenderer.registerShape(mxShapeIOS7SelectBar.prototype.cst.SELECT_BAR,mxShapeIOS7SelectBar);mxShapeIOS7SelectBar.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeIOS7SelectBar.prototype.cst.SELECT_BAR]=function(a){var d=[Graph.createHandle(a,["dx"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx))));return new mxPoint(a.x+b,a.y+a.height)},function(a,c){var b=.6*parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy));this.state.style.dx=Math.round(100*Math.max(b,Math.min(a.width-b,c.x-a.x)))/100})],e=Graph.createHandle(a,["dy"],function(a){var b=Math.max(0,Math.min(a.height,
|
|
parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)),a.y+a.height+b)},function(a,c){this.state.style.dy=Math.round(100*Math.max(0,Math.min(a.height,c.y-a.y-a.height)))/100});d.push(e);e=Graph.createHandle(a,["size"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));return new mxPoint(a.x+a.width-b,a.y+10)},function(a,c){this.state.style.size=Math.round(100*
|
|
Math.max(0,Math.min(a.width/2,a.height/2,a.x+a.width-c.x)))/100});d.push(e);a=Graph.createHandle(a,["dx2"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx2",this.dx2))));return new mxPoint(a.x+b,a.y+a.height/2)},function(a,c){this.state.style.dx2=Math.round(100*Math.max(0,Math.min(a.width,c.x-a.x)))/100});d.push(a);return d};function mxShapeIOS7Slider2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeIOS7Slider2,mxShape);mxShapeIOS7Slider2.prototype.cst={SHAPE_SLIDER:"mxgraph.ios7ui.slider",BAR_POS:"barPos",HANDLE_SIZE:"handleSize"};mxShapeIOS7Slider2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!0)};
|
|
mxShapeIOS7Slider2.prototype.background=function(a,d,e,b,c){d=parseFloat(mxUtils.getValue(this.style,mxShapeIOS7Slider2.prototype.cst.HANDLE_SIZE,"10"));e=parseFloat(mxUtils.getValue(this.style,mxShapeIOS7Slider2.prototype.cst.BAR_POS,"40"))/100;e=Math.max(0,Math.min(1,e));a.save();a.setStrokeColor("#bbbbbb");a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.fillAndStroke();a.restore();a.begin();a.moveTo(0,.5*c);a.lineTo(e*b,.5*c);a.fillAndStroke();a.setStrokeColor("#bbbbbb");a.begin();a.ellipse(e*b-
|
|
.5*d,.5*c-.5*d,d,d);a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeIOS7Slider2.prototype.cst.SHAPE_SLIDER]=mxShapeIOS7Slider2;mxShapeIOS7Slider2.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeIOS7Slider2.prototype.cst.SHAPE_SLIDER]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"barPos",.4))));return new mxPoint(a.x+d*a.width/100,a.y+a.height/2)},function(a,e){this.state.style.barPos=Math.round(100*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/100})]};
|
|
function mxShapeMockupMultiButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupMultiButton,mxShape);mxShapeMockupMultiButton.prototype.cst={MAIN_TEXT:"mainText",SHAPE_MULTILINE_BUTTON:"mxgraph.mockup.buttons.multiButton",SUB_TEXT:"subText",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",BUTTON_STYLE:"buttonStyle",ROUND:"round",CHEVRON:"chevron"};
|
|
mxShapeMockupMultiButton.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupMultiButton.prototype.cst.MAIN_TEXT,"Main Text"),g=mxUtils.getValue(this.style,mxShapeMockupMultiButton.prototype.cst.SUB_TEXT,"Sub Text"),h=mxUtils.getValue(this.style,mxShapeMockupMultiButton.prototype.cst.TEXT_COLOR,"#666666"),k=mxUtils.getValue(this.style,mxShapeMockupMultiButton.prototype.cst.TEXT_SIZE,"17");a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);a.setFontStyle(mxConstants.FONT_BOLD);
|
|
this.mainText(a,d,e,b,c,f,k,h);this.subText(a,d,e,b,c,g,k/1.4,h)};
|
|
mxShapeMockupMultiButton.prototype.background=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapeMockupMultiButton.prototype.cst.BUTTON_STYLE,mxShapeMockupMultiButton.prototype.cst.ROUND).toString();a.begin();d===mxShapeMockupMultiButton.prototype.cst.ROUND?(a.moveTo(0,10),a.arcTo(10,10,0,0,1,10,0),a.lineTo(b-10,0),a.arcTo(10,10,0,0,1,b,10),a.lineTo(b,c-10),a.arcTo(10,10,0,0,1,b-10,c),a.lineTo(10,c),a.arcTo(10,10,0,0,1,0,c-10)):d===mxShapeMockupMultiButton.prototype.cst.CHEVRON&&(a.moveTo(0,
|
|
.1*c),a.arcTo(.0372*b,.1111*c,0,0,1,.0334*b,0),a.lineTo(.768*b,0),a.arcTo(.0722*b,.216*c,0,0,1,.8014*b,.0399*c),a.lineTo(.99*b,.4585*c),a.arcTo(.09*b,.1*c,0,0,1,.99*b,.5415*c),a.lineTo(.8014*b,.9568*c),a.arcTo(.0722*b,.216*c,0,0,1,.768*b,c),a.lineTo(.0334*b,c),a.arcTo(.0372*b,.1111*c,0,0,1,0,.9*c));a.close();a.fillAndStroke()};
|
|
mxShapeMockupMultiButton.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.text(.5*b,.4*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxShapeMockupMultiButton.prototype.subText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.text(.5*b,.7*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupMultiButton.prototype.cst.SHAPE_MULTILINE_BUTTON]=mxShapeMockupMultiButton;
|
|
function mxShapeMockupButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupButton,mxShape);mxShapeMockupButton.prototype.cst={MAIN_TEXT:"mainText",SHAPE_BUTTON:"mxgraph.mockup.buttons.button",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",BUTTON_STYLE:"buttonStyle",ROUND:"round",CHEVRON:"chevron"};
|
|
mxShapeMockupButton.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupButton.prototype.cst.MAIN_TEXT,"Main Text"),g=mxUtils.getValue(this.style,mxShapeMockupButton.prototype.cst.TEXT_COLOR,"#666666").toString(),h=mxUtils.getValue(this.style,mxShapeMockupButton.prototype.cst.TEXT_SIZE,"17").toString();a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.mainText(a,d,e,b,c,f,h,g)};
|
|
mxShapeMockupButton.prototype.background=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapeMockupButton.prototype.cst.BUTTON_STYLE,mxShapeMockupButton.prototype.cst.ROUND).toString();a.begin();d===mxShapeMockupButton.prototype.cst.ROUND?(a.moveTo(0,10),a.arcTo(10,10,0,0,1,10,0),a.lineTo(b-10,0),a.arcTo(10,10,0,0,1,b,10),a.lineTo(b,c-10),a.arcTo(10,10,0,0,1,b-10,c),a.lineTo(10,c),a.arcTo(10,10,0,0,1,0,c-10)):d===mxShapeMockupButton.prototype.cst.CHEVRON&&(a.moveTo(0,.1*c),a.arcTo(.0372*b,.1111*
|
|
c,0,0,1,.0334*b,0),a.lineTo(.768*b,0),a.arcTo(.0722*b,.216*c,0,0,1,.8014*b,.0399*c),a.lineTo(.99*b,.4585*c),a.arcTo(.09*b,.1*c,0,0,1,.99*b,.5415*c),a.lineTo(.8014*b,.9568*c),a.arcTo(.0722*b,.216*c,0,0,1,.768*b,c),a.lineTo(.0334*b,c),a.arcTo(.0372*b,.1111*c,0,0,1,0,.9*c));a.close();a.fillAndStroke()};
|
|
mxShapeMockupButton.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.setFontStyle(mxConstants.FONT_BOLD);a.text(b/2,c/2,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupButton.prototype.cst.SHAPE_BUTTON]=mxShapeMockupButton;function mxShapeMockupHorButtonBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupHorButtonBar,mxShape);mxShapeMockupHorButtonBar.prototype.cst={MAIN_TEXT:"mainText",SHAPE_HOR_BUTTON_BAR:"mxgraph.mockup.buttons.horButtonBar",TEXT_COLOR:"textColor",TEXT_COLOR2:"textColor2",STROKE_COLOR2:"strokeColor2",FILL_COLOR2:"fillColor2",SELECTED:"+",TEXT_SIZE:"textSize"};
|
|
mxShapeMockupHorButtonBar.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxShapeMockupHorButtonBar.prototype.cst.MAIN_TEXT,"+Button 1, Button 2, Button 3").toString().split(","),g=mxUtils.getValue(this.style,mxShapeMockupHorButtonBar.prototype.cst.TEXT_COLOR,"#666666"),h=mxUtils.getValue(this.style,mxShapeMockupHorButtonBar.prototype.cst.TEXT_COLOR2,"#ffffff"),k=mxUtils.getValue(this.style,mxShapeMockupHorButtonBar.prototype.cst.TEXT_SIZE,"17").toString(),l=mxUtils.getValue(this.style,
|
|
mxConstants.STYLE_STROKECOLOR,"#666666"),n=mxUtils.getValue(this.style,mxShapeMockupHorButtonBar.prototype.cst.STROKE_COLOR2,"#c4c4c4"),m=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),p=mxUtils.getValue(this.style,mxShapeMockupHorButtonBar.prototype.cst.FILL_COLOR2,"#008cff"),q=f.length,u=Array(q),t=0,v=-1,r=0;r<q;r++){var w=f[r];w.charAt(0)===mxShapeMockupHorButtonBar.prototype.cst.SELECTED&&(w=f[r].substring(1),v=r);u[r]=mxUtils.getSizeForString(w,k,mxConstants.DEFAULT_FONTFAMILY).width;
|
|
t+=u[r]}c=Math.max(c,1.5*k,20);t=10*q+t;b=Math.max(b,t);a.translate(d,e);this.background(a,b,c,10,q,u,5,t,l,n,m,p,v);a.setShadow(!1);a.setFontStyle(mxConstants.FONT_BOLD);for(r=d=0;r<q;r++)r===v?a.setFontColor(h):a.setFontColor(g),d+=5,this.buttonText(a,d,c,f[r],u[r],k,t,b),d=d+u[r]+5};
|
|
mxShapeMockupHorButtonBar.prototype.background=function(a,d,e,b,c,f,g,h,k,l,n,m,p){a.begin();a.setStrokeColor(k);a.setFillColor(n);a.moveTo(0,b);a.arcTo(b,b,0,0,1,b,0);a.lineTo(d-b,0);a.arcTo(b,b,0,0,1,d,b);a.lineTo(d,e-b);a.arcTo(b,b,0,0,1,d-b,e);a.lineTo(b,e);a.arcTo(b,b,0,0,1,0,e-b);a.close();a.fillAndStroke();a.setStrokeColor(l);a.begin();for(l=1;l<c;l++)if(l!==p&&l!==p+1){for(var q=0,u=0;u<l;u++)q+=f[u]+2*g;q=q*d/h;a.moveTo(q,0);a.lineTo(q,e)}a.stroke();q=0;a.setFillColor(m);for(l=0;l<p;l++)q+=
|
|
f[l]+2*g;q=q*d/h;f=(f[p]+2*g)*d/h;f+=q;0===p?(a.begin(),a.moveTo(0,b),a.arcTo(b,b,0,0,1,b,0),a.lineTo(f,0),a.lineTo(f,e),a.lineTo(b,e),a.arcTo(b,b,0,0,1,0,e-b),a.close(),a.fill()):p===c-1?(a.begin(),a.moveTo(q,0),a.lineTo(f-b,0),a.arcTo(b,b,0,0,1,f,b),a.lineTo(f,e-b),a.arcTo(b,b,0,0,1,f-b,e),a.lineTo(q,e),a.close(),a.fill()):-1!==p&&(a.begin(),a.moveTo(q,0),a.lineTo(f,0),a.lineTo(f,e),a.lineTo(q,e),a.close(),a.fill());a.setStrokeColor(k);a.setFillColor(n);a.begin();a.moveTo(0,b);a.arcTo(b,b,0,0,1,
|
|
b,0);a.lineTo(d-b,0);a.arcTo(b,b,0,0,1,d,b);a.lineTo(d,e-b);a.arcTo(b,b,0,0,1,d-b,e);a.lineTo(b,e);a.arcTo(b,b,0,0,1,0,e-b);a.close();a.stroke()};mxShapeMockupHorButtonBar.prototype.buttonText=function(a,d,e,b,c,f,g,h){b.charAt(0)===mxShapeMockupHorButtonBar.prototype.cst.SELECTED&&(b=b.substring(1));a.begin();a.setFontSize(f);a.text((d+.5*c)*h/g,.5*e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupHorButtonBar.prototype.cst.SHAPE_HOR_BUTTON_BAR]=mxShapeMockupHorButtonBar;function mxShapeMockupVerButtonBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupVerButtonBar,mxShape);
|
|
mxShapeMockupVerButtonBar.prototype.cst={MAIN_TEXT:"mainText",SHAPE_VER_BUTTON_BAR:"mxgraph.mockup.buttons.verButtonBar",TEXT_COLOR:"textColor",TEXT_COLOR2:"textColor2",STROKE_COLOR2:"strokeColor2",FILL_COLOR2:"fillColor2",SELECTED:"+",TEXT_SIZE:"textSize"};
|
|
mxShapeMockupVerButtonBar.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxShapeMockupVerButtonBar.prototype.cst.MAIN_TEXT,"+Button 1, Button 2, Button 3").toString().split(","),g=mxUtils.getValue(this.style,mxShapeMockupVerButtonBar.prototype.cst.TEXT_COLOR,"#666666"),h=mxUtils.getValue(this.style,mxShapeMockupVerButtonBar.prototype.cst.TEXT_COLOR2,"#ffffff"),k=mxUtils.getValue(this.style,mxShapeMockupVerButtonBar.prototype.cst.TEXT_SIZE,"17").toString(),l=mxUtils.getValue(this.style,
|
|
mxConstants.STYLE_STROKECOLOR,"#666666"),n=mxUtils.getValue(this.style,mxShapeMockupVerButtonBar.prototype.cst.STROKE_COLOR2,"#c4c4c4"),m=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),p=mxUtils.getValue(this.style,mxShapeMockupVerButtonBar.prototype.cst.FILL_COLOR2,"#008cff"),q=f.length,u=0,t=-1,v=0;v<q;v++){var r=f[v];r.charAt(0)===mxShapeMockupVerButtonBar.prototype.cst.SELECTED&&(r=f[v].substring(1),t=v);r=mxUtils.getSizeForString(r,k,mxConstants.DEFAULT_FONTFAMILY).width;
|
|
r>u&&(u=r)}var w=1.5*k,x=q*w;c=Math.max(c,x);b=Math.max(b,10+u);a.translate(d,e);this.background(a,b,c,10,q,5,q*w,l,n,m,p,t,w);a.setShadow(!1);r=0;a.setFontStyle(mxConstants.FONT_BOLD);for(v=0;v<q;v++)v===t?a.setFontColor(h):a.setFontColor(g),r+=5,this.buttonText(a,b,(v*w+.5*w)*c/x,f[v],k)};
|
|
mxShapeMockupVerButtonBar.prototype.background=function(a,d,e,b,c,f,g,h,k,l,n,m,p){a.begin();a.setStrokeColor(h);a.setFillColor(l);a.moveTo(0,b);a.arcTo(b,b,0,0,1,b,0);a.lineTo(d-b,0);a.arcTo(b,b,0,0,1,d,b);a.lineTo(d,e-b);a.arcTo(b,b,0,0,1,d-b,e);a.lineTo(b,e);a.arcTo(b,b,0,0,1,0,e-b);a.close();a.fillAndStroke();a.setStrokeColor(k);a.begin();for(f=1;f<c;f++)f!==m&&f!==m+1&&(k=f*p*e/g,a.moveTo(0,k),a.lineTo(d,k));a.stroke();a.setFillColor(n);0===m?(a.begin(),g=p*e/g,a.moveTo(0,b),a.arcTo(b,b,0,0,
|
|
1,b,0),a.lineTo(d-b,0),a.arcTo(b,b,0,0,1,d,b),a.lineTo(d,g),a.lineTo(0,g),a.close(),a.fill()):m===c-1?(a.begin(),c=e-p*e/g,a.moveTo(0,c),a.lineTo(d,c),a.lineTo(d,e-b),a.arcTo(b,b,0,0,1,d-b,e),a.lineTo(b,e),a.arcTo(b,b,0,0,1,0,e-b),a.close(),a.fill()):-1!==m&&(a.begin(),c=p*m*e/g,g=p*(m+1)*e/g,a.moveTo(0,c),a.lineTo(d,c),a.lineTo(d,g),a.lineTo(0,g),a.close(),a.fill());a.begin();a.setStrokeColor(h);a.setFillColor(l);a.moveTo(0,b);a.arcTo(b,b,0,0,1,b,0);a.lineTo(d-b,0);a.arcTo(b,b,0,0,1,d,b);a.lineTo(d,
|
|
e-b);a.arcTo(b,b,0,0,1,d-b,e);a.lineTo(b,e);a.arcTo(b,b,0,0,1,0,e-b);a.close();a.stroke()};mxShapeMockupVerButtonBar.prototype.buttonText=function(a,d,e,b,c){b.charAt(0)===mxShapeMockupVerButtonBar.prototype.cst.SELECTED&&(b=b.substring(1));a.begin();a.setFontSize(c);a.text(.5*d,e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupVerButtonBar.prototype.cst.SHAPE_VER_BUTTON_BAR]=mxShapeMockupVerButtonBar;
|
|
function mxShapeMockupOnOffButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupOnOffButton,mxShape);mxShapeMockupOnOffButton.prototype.cst={SHAPE_ON_OFF_BUTTON:"mxgraph.mockup.buttons.onOffButton",BUTTON_STATE:"buttonState",STATE_ON:"on",STATE_OFF:"off",FILL_COLOR2:"fillColor2",MAIN_TEXT:"mainText",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize"};
|
|
mxShapeMockupOnOffButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);b=Math.max(b,10);c=Math.max(c,10);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeMockupOnOffButton.prototype.background=function(a,d,e,b,c){a.roundrect(0,0,b,c,10,10);a.fillAndStroke()};
|
|
mxShapeMockupOnOffButton.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapeMockupOnOffButton.prototype.cst.BUTTON_STATE,mxShapeMockupOnOffButton.prototype.cst.STATE_ON);e=mxUtils.getValue(this.style,mxShapeMockupOnOffButton.prototype.cst.FILL_COLOR2,"#008cff");var f=mxUtils.getValue(this.style,mxShapeMockupOnOffButton.prototype.cst.TEXT_COLOR,"#ffffff,#999999").toString().split(","),g=mxUtils.getValue(this.style,mxShapeMockupOnOffButton.prototype.cst.MAIN_TEXT,"ON,OFF").toString().split(","),
|
|
h=mxUtils.getValue(this.style,mxShapeMockupOnOffButton.prototype.cst.TEXT_SIZE,"17");d===mxShapeMockupOnOffButton.prototype.cst.STATE_ON?(a.setFillColor(e),a.setFontColor(f[0]),a.roundrect(0,0,.75*b,c,10,10)):(a.setFontColor(f[1]),a.roundrect(.25*b,0,.75*b,c,10,10));a.fillAndStroke();a.setFontSize(h);a.setFontStyle(mxConstants.FONT_BOLD);d===mxShapeMockupOnOffButton.prototype.cst.STATE_ON?a.text(.375*b,.5*c,0,0,g[0],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0):d===mxShapeMockupOnOffButton.prototype.cst.STATE_OFF&&
|
|
a.text(.625*b,.5*c,0,0,g[1],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupOnOffButton.prototype.cst.SHAPE_ON_OFF_BUTTON]=mxShapeMockupOnOffButton;function mxShapeMockupRRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupRRect,mxShape);mxShapeMockupRRect.prototype.cst={RRECT:"mxgraph.mockup.rrect",R_SIZE:"rSize"};
|
|
mxShapeMockupRRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupRRect.prototype.cst.R_SIZE,"10"));a.roundrect(0,0,b,c,d);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeMockupRRect.prototype.cst.RRECT,mxShapeMockupRRect);function mxShapeMockupAnchor(a,d,e,b){mxShape.call(this);this.bounds=a}mxUtils.extend(mxShapeMockupAnchor,mxShape);mxShapeMockupAnchor.prototype.cst={ANCHOR:"mxgraph.mockup.anchor"};
|
|
mxShapeMockupAnchor.prototype.paintVertexShape=function(a,d,e,b,c){};mxCellRenderer.registerShape(mxShapeMockupAnchor.prototype.cst.ANCHOR,mxShapeMockupAnchor);function mxShapeMockupTopButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupTopButton,mxShape);mxShapeMockupTopButton.prototype.cst={TOP_BUTTON:"mxgraph.mockup.topButton",R_SIZE:"rSize"};
|
|
mxShapeMockupTopButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupTopButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(0,d);a.arcTo(d,d,0,0,1,d,0);a.lineTo(b-d,0);a.arcTo(d,d,0,0,1,b,d);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeMockupTopButton.prototype.cst.TOP_BUTTON,mxShapeMockupTopButton);
|
|
function mxShapeMockupBottomButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupBottomButton,mxShape);mxShapeMockupBottomButton.prototype.cst={BOTTOM_BUTTON:"mxgraph.mockup.bottomButton",R_SIZE:"rSize"};
|
|
mxShapeMockupBottomButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupBottomButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c-d);a.arcTo(d,d,0,0,1,b-d,c);a.lineTo(d,c);a.arcTo(d,d,0,0,1,0,c-d);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeMockupBottomButton.prototype.cst.BOTTOM_BUTTON,mxShapeMockupBottomButton);
|
|
function mxShapeMockupRightButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupRightButton,mxShape);mxShapeMockupRightButton.prototype.cst={RIGHT_BUTTON:"mxgraph.mockup.rightButton",R_SIZE:"rSize"};
|
|
mxShapeMockupRightButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupRightButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(0,0);a.lineTo(b-d,0);a.arcTo(d,d,0,0,1,b,d);a.lineTo(b,c-d);a.arcTo(d,d,0,0,1,b-d,c);a.lineTo(0,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeMockupRightButton.prototype.cst.RIGHT_BUTTON,mxShapeMockupRightButton);
|
|
function mxShapeMockupLeftButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupLeftButton,mxShape);mxShapeMockupLeftButton.prototype.cst={LEFT_BUTTON:"mxgraph.mockup.leftButton",R_SIZE:"rSize"};
|
|
mxShapeMockupLeftButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupLeftButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(b,0);a.lineTo(b,c);a.lineTo(d,c);a.arcTo(d,d,0,0,1,0,c-d);a.lineTo(0,d);a.arcTo(d,d,0,0,1,d,0);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeMockupLeftButton.prototype.cst.LEFT_BUTTON,mxShapeMockupLeftButton);
|
|
function mxShapeMockupVideoPlayer(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.barPos=20;this.barHeight=30}mxUtils.extend(mxShapeMockupVideoPlayer,mxShape);mxShapeMockupVideoPlayer.prototype.cst={FILL_COLOR2:"fillColor2",TEXT_COLOR:"textColor",STROKE_COLOR2:"strokeColor2",STROKE_COLOR3:"strokeColor3",SHAPE_VIDEO_PLAYER:"mxgraph.mockup.containers.videoPlayer",BAR_POS:"barPos",BAR_HEIGHT:"barHeight"};
|
|
mxShapeMockupVideoPlayer.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),g=mxUtils.getValue(this.style,mxShapeMockupVideoPlayer.prototype.cst.FILL_COLOR2,"#c4c4c4"),h=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#666666"),k=mxUtils.getValue(this.style,mxShapeMockupVideoPlayer.prototype.cst.STROKE_COLOR2,"#008cff"),l=mxUtils.getValue(this.style,mxShapeMockupVideoPlayer.prototype.cst.STROKE_COLOR3,"#c4c4c4"),n=mxUtils.getValue(this.style,
|
|
mxShapeMockupVideoPlayer.prototype.cst.BAR_HEIGHT,"30");b=Math.max(b,5*n);c=Math.max(c,n+10);a.translate(d,e);this.background(a,d,e,b,c,f,h);a.setShadow(!1);this.otherShapes(a,d,e,b,c,g,h,k,l,n)};mxShapeMockupVideoPlayer.prototype.background=function(a,d,e,b,c,f,g){a.setFillColor(f);a.setStrokeColor(g);a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};
|
|
mxShapeMockupVideoPlayer.prototype.otherShapes=function(a,d,e,b,c,f,g,h,k,l){var n=mxUtils.getValue(this.style,mxShapeMockupVideoPlayer.prototype.cst.BAR_POS,"20"),n=Math.max(0,n),n=Math.min(100,n);d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1");e=c-l;n=8+(b-8-8)*n/100;a.setStrokeColor(h);a.begin();a.moveTo(0,e);a.lineTo(n,e);a.stroke();a.setStrokeColor(k);a.begin();a.moveTo(n,e);a.lineTo(b,e);a.stroke();a.setStrokeColor(g);a.begin();a.ellipse(n-8,e-8,16,16);a.fillAndStroke();a.begin();
|
|
a.setStrokeWidth(d/2);a.ellipse(n-4,e-4,8,8);a.fillAndStroke();a.setStrokeWidth(d);g=.3*l;h=c-.5*(l+g);k=.3*l;a.setFillColor(f);a.setStrokeColor(f);a.begin();a.moveTo(k,h);a.lineTo(k+g,h+.5*g);a.lineTo(k,h+g);a.close();a.fillAndStroke();f=c-l;a.moveTo(l+.05*l,f+.4*l);a.lineTo(l+.15*l,f+.4*l);a.lineTo(l+.3*l,f+.25*l);a.lineTo(l+.3*l,f+.75*l);a.lineTo(l+.15*l,f+.6*l);a.lineTo(l+.05*l,f+.6*l);a.close();a.fillAndStroke();a.begin();a.moveTo(l+.4*l,f+.35*l);a.arcTo(.2*l,.3*l,0,0,1,l+.4*l,f+.65*l);a.moveTo(l+
|
|
.425*l,f+.25*l);a.arcTo(.225*l,.35*l,0,0,1,l+.425*l,f+.75*l);a.stroke();b-=1.3*l;a.begin();a.moveTo(b+.1*l,f+.4*l);a.lineTo(b+.1*l,f+.3*l);a.lineTo(b+.25*l,f+.3*l);a.moveTo(b+.1*l,f+.6*l);a.lineTo(b+.1*l,f+.7*l);a.lineTo(b+.25*l,f+.7*l);a.moveTo(b+.9*l,f+.4*l);a.lineTo(b+.9*l,f+.3*l);a.lineTo(b+.75*l,f+.3*l);a.moveTo(b+.9*l,f+.6*l);a.lineTo(b+.9*l,f+.7*l);a.lineTo(b+.75*l,f+.7*l);a.stroke();b=mxUtils.getValue(this.style,mxShapeMockupVideoPlayer.prototype.cst.TEXT_COLOR,"#666666");a.begin();a.setFontSize(.5*
|
|
l);a.setFontColor(b);a.text(1.9*l,c-.45*l,0,0,"0:00/3:53",mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupVideoPlayer.prototype.cst.SHAPE_VIDEO_PLAYER]=mxShapeMockupVideoPlayer;
|
|
Graph.handleFactory[mxShapeMockupVideoPlayer.prototype.cst.SHAPE_VIDEO_PLAYER]=function(a){var d=[Graph.createHandle(a,["barPos"],function(a){var b=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"barPos",this.barPos)))),c=parseFloat(mxUtils.getValue(this.state.style,"barHeight",this.barHeight));return new mxPoint(a.x+(a.width-16)*b/a.width/100*a.width+8,a.y+a.height-c-20)},function(a,b){this.state.style.barPos=Math.round(1E3*Math.max(0,Math.min(100,100*(b.x-a.x)/a.width)))/1E3})];
|
|
a=Graph.createHandle(a,["barHeight"],function(a){var b=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"barHeight",this.barHeight))));return new mxPoint(a.x+a.width-20,a.y+a.height-b)},function(a,b){this.state.style.barHeight=Math.round(1E3*Math.max(0,Math.min(a.height,a.y+a.height-b.y)))/1E3});d.push(a);return d};function mxShapeMockupAccordion(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupAccordion,mxShape);mxShapeMockupAccordion.prototype.cst={TEXT_COLOR:"textColor",TEXT_COLOR2:"textColor2",TEXT_SIZE:"textSize",SHAPE_ACCORDION:"mxgraph.mockup.containers.accordion",STROKE_COLOR2:"strokeColor2",FILL_COLOR2:"fillColor2",SELECTED:"+",MAIN_TEXT:"mainText"};
|
|
mxShapeMockupAccordion.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxShapeMockupAccordion.prototype.cst.MAIN_TEXT,"+Group 1, Group 2, Group 3").toString().split(","),g=mxUtils.getValue(this.style,mxShapeMockupAccordion.prototype.cst.TEXT_COLOR,"#666666"),h=mxUtils.getValue(this.style,mxShapeMockupAccordion.prototype.cst.TEXT_COLOR2,"#ffffff"),k=mxUtils.getValue(this.style,mxShapeMockupAccordion.prototype.cst.TEXT_SIZE,"17").toString(),l=mxUtils.getValue(this.style,
|
|
mxConstants.STYLE_STROKECOLOR,"#666666"),n=mxUtils.getValue(this.style,mxShapeMockupAccordion.prototype.cst.STROKE_COLOR2,"#c4c4c4"),m=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),p=mxUtils.getValue(this.style,mxShapeMockupAccordion.prototype.cst.FILL_COLOR2,"#008cff"),q=f.length,u=0,t=-1,v=0;v<q;v++){var r=f[v];r.charAt(0)===mxShapeMockupAccordion.prototype.cst.SELECTED&&(r=f[v].substring(1),t=v);r=mxUtils.getSizeForString(r,k,mxConstants.DEFAULT_FONTFAMILY).width;r>u&&(u=r)}var w=
|
|
1.5*k;c=Math.max(c,q*w);b=Math.max(b,10+u);a.translate(d,e);this.background(a,b,c,10,q,5,q*w,l,n,m,p,t,w);a.setShadow(!1);for(v=r=0;v<q;v++)v===t?a.setFontColor(h):a.setFontColor(g),r+=5,this.buttonText(a,b,-1===t||v<=t?v*w+.5*w:c-(q-v-.5)*w,f[v],k)};
|
|
mxShapeMockupAccordion.prototype.background=function(a,d,e,b,c,f,g,h,k,l,n,m,p){a.begin();a.setStrokeColor(h);a.setFillColor(l);a.moveTo(0,0);a.lineTo(d,0);a.lineTo(d,e);a.lineTo(0,e);a.close();a.fillAndStroke();a.setStrokeColor(k);a.begin();for(b=1;b<c;b++)b!==m&&(f=-1===m||b<m?b*p:e-(c-b)*p,a.moveTo(0,f),a.lineTo(d,f));a.stroke();a.setStrokeColor(mxConstants.NONE);a.setFillColor(n);-1!==m&&(a.begin(),c=p*m,m=p*(m+1),a.moveTo(0,c),a.lineTo(d,c),a.lineTo(d,m),a.lineTo(0,m),a.close(),a.fill());a.begin();
|
|
a.setStrokeColor(h);a.setFillColor(l);a.moveTo(0,0);a.lineTo(d,0);a.lineTo(d,e);a.lineTo(0,e);a.close();a.stroke()};mxShapeMockupAccordion.prototype.buttonText=function(a,d,e,b,c){b.charAt(0)===mxShapeMockupAccordion.prototype.cst.SELECTED&&(b=b.substring(1));a.begin();a.setFontSize(c);a.text(.5*d,e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupAccordion.prototype.cst.SHAPE_ACCORDION]=mxShapeMockupAccordion;
|
|
function mxShapeMockupBrowserWindow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupBrowserWindow,mxShape);mxShapeMockupBrowserWindow.prototype.cst={STROKE_COLOR2:"strokeColor2",STROKE_COLOR3:"strokeColor3",MAIN_TEXT:"mainText",SHAPE_BROWSER_WINDOW:"mxgraph.mockup.containers.browserWindow"};
|
|
mxShapeMockupBrowserWindow.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),g=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#666666"),h=mxUtils.getValue(this.style,mxShapeMockupBrowserWindow.prototype.cst.STROKE_COLOR2,"#008cff"),k=mxUtils.getValue(this.style,mxShapeMockupBrowserWindow.prototype.cst.STROKE_COLOR3,"#c4c4c4");b=Math.max(b,260);c=Math.max(c,110);a.translate(d,e);this.background(a,d,e,b,c,f,g);a.setShadow(!1);
|
|
this.otherShapes(a,d,e,b,c,g,k,h)};mxShapeMockupBrowserWindow.prototype.background=function(a,d,e,b,c,f,g){a.setFillColor(f);a.setStrokeColor(g);a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};
|
|
mxShapeMockupBrowserWindow.prototype.otherShapes=function(a,d,e,b,c,f,g,h){d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1");e=mxUtils.getValue(this.style,mxShapeMockupBrowserWindow.prototype.cst.MAIN_TEXT,"http://www.draw.io,Page 1").toString().split(",");a.setStrokeColor(f);a.ellipse(b-75,5,20,20);a.stroke();a.ellipse(b-50,5,20,20);a.stroke();a.setStrokeColor(h);a.ellipse(b-25,5,20,20);a.stroke();a.setStrokeColor(g);a.begin();a.moveTo(0,40);a.lineTo(30,40);a.lineTo(30,15);a.arcTo(5,
|
|
5,0,0,1,35,10);a.lineTo(170,10);a.arcTo(5,5,0,0,1,175,15);a.lineTo(175,40);a.lineTo(b,40);a.stroke();a.begin();a.moveTo(0,110);a.lineTo(b,110);a.stroke();a.begin();a.moveTo(100,60);a.arcTo(5,5,0,0,1,105,55);a.lineTo(b-15,55);a.arcTo(5,5,0,0,1,b-10,60);a.lineTo(b-10,85);a.arcTo(5,5,0,0,1,b-15,90);a.lineTo(105,90);a.arcTo(5,5,0,0,1,100,85);a.close();a.stroke();b=mxUtils.getValue(this.style,mxShapeMockupBrowserWindow.prototype.cst.TEXT_COLOR,"#666666");a.setFontColor(b);a.setFontSize(17);a.text(65,25,
|
|
0,0,e[1],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(130,73,0,0,e[0],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.stroke();a.translate(37,17);a.begin();a.moveTo(0,0);a.lineTo(11,0);a.lineTo(15,4);a.lineTo(15,18);a.lineTo(0,18);a.close();a.stroke();a.setStrokeWidth(.5*d);a.begin();a.moveTo(11,0);a.lineTo(11,4);a.lineTo(15,5);a.stroke();a.setStrokeWidth(2*d);a.translate(70,47);a.begin();a.moveTo(0,0);a.lineTo(11,0);a.lineTo(15,4);a.lineTo(15,18);a.lineTo(0,
|
|
18);a.close();a.stroke();a.setStrokeWidth(.5*d);a.begin();a.moveTo(11,0);a.lineTo(11,4);a.lineTo(15,5);a.stroke();a.setFillColor(g);a.begin();a.setStrokeWidth(2*d);a.translate(-95,0);a.moveTo(0,10);a.lineTo(10,0);a.lineTo(10,6);a.lineTo(20,6);a.lineTo(20,14);a.lineTo(10,14);a.lineTo(10,20);a.close();a.fillAndStroke();a.begin();a.translate(30,0);a.moveTo(20,10);a.lineTo(10,0);a.lineTo(10,6);a.lineTo(0,6);a.lineTo(0,14);a.lineTo(10,14);a.lineTo(10,20);a.close();a.fillAndStroke();a.begin();a.translate(30,
|
|
0);a.moveTo(20*.78,13.3);a.arcTo(6,6,0,1,1,13.5,5.04);a.lineTo(20*.595,6.5);a.lineTo(19.8,20*.415);a.lineTo(18,.8);a.lineTo(20*.815,2.4);a.arcTo(9.8,9.8,0,1,0,20*.92,16);a.close();a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupBrowserWindow.prototype.cst.SHAPE_BROWSER_WINDOW]=mxShapeMockupBrowserWindow;function mxShapeMockupUserMale(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupUserMale,mxShape);
|
|
mxShapeMockupUserMale.prototype.cst={STROKE_COLOR2:"strokeColor2",SHAPE_MALE_USER:"mxgraph.mockup.containers.userMale"};
|
|
mxShapeMockupUserMale.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),g=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#666666"),h=mxUtils.getValue(this.style,mxShapeMockupUserMale.prototype.cst.STROKE_COLOR2,"#008cff");a.translate(d,e);this.background(a,d,e,b,c,f,g);a.setShadow(!1);this.otherShapes(a,d,e,b,c,h,g)};
|
|
mxShapeMockupUserMale.prototype.background=function(a,d,e,b,c,f,g){a.setFillColor(f);a.setStrokeColor(g);a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};
|
|
mxShapeMockupUserMale.prototype.otherShapes=function(a,d,e,b,c,f,g){a.setStrokeColor(f);a.setLineCap("round");a.setLineJoin("round");a.begin();a.moveTo(.5*b,.6721*c);a.curveTo(.3891*b,.6721*c,.31*b,.5648*c,.31*b,.3962*c);a.curveTo(.31*b,.3656*c,.3012*b,.3473*c,.3051*b,.3227*c);a.curveTo(.3126*b,.2762*c,.3124*b,.2212*c,.332*b,.1939*c);a.curveTo(.354*b,.1633*c,.4382*b,.12*c,.5*b,.12*c);a.stroke();a.begin();a.moveTo(.3046*b,.3716*c);a.curveTo(.3046*b,.3716*c,.3046*b,.341*c,.2826*b,.3594*c);a.curveTo(.2606*
|
|
b,.3778*c,.2661*b,.4452*c,.266*b,.4452*c);a.quadTo(.2715*b,.4942*c,.277*b,.5065*c);a.curveTo(.2825*b,.5187*c,.277*b,.5187*c,.2935*b,.5371*c);a.curveTo(.31*b,.5554*c,.3375*b,.5615*c,.3375*b,.5616*c);a.stroke();a.begin();a.moveTo(.3829*b,.6213*c);a.curveTo(.3829*b,.6213*c,.405*b,.7704*c,.2921*b,.7888*c);a.curveTo(.2536*b,.795*c,.1328*b,.85*c,.1052*b,.8745*c);a.curveTo(.0776*b,.899*c,.0641*b,.9316*c,.0571*b,.9622*c);a.quadTo(.05*b,c,.05*b,c);a.stroke();a.begin();a.moveTo(.3427*b,.4185*c);a.curveTo(.3427*
|
|
b,.4185*c,.3427*b,.3839*c,.3427*b,.3593*c);a.curveTo(.3427*b,.3348*c,.3663*b,.3103*c,.3718*b,.3041*c);a.curveTo(.3773*b,.298*c,.3822*b,.2673*c,.3877*b,.2551*c);a.curveTo(.3932*b,.2429*c,.4095*b,.2429*c,.4259*b,.2367*c);a.curveTo(.4424*b,.2306*c,.4984*b,.2357*c,.4984*b,.2357*c);a.stroke();a.begin();a.moveTo(.365*b,.7427*c);a.curveTo(.365*b,.7427*c,.3772*b,.8076*c,.4286*b,.8224*c);a.curveTo(.4816*b,.8377*c,.5028*b,.8347*c,.5028*b,.8347*c);a.stroke();a.begin();a.moveTo(.3322*b,.7764*c);a.curveTo(.3322*
|
|
b,.7764*c,.3556*b,.8386*c,.4038*b,.8684*c);a.curveTo(.4533*b,.8991*c,.5029*b,.8929*c,.5029*b,.8929*c);a.stroke();a.begin();a.moveTo(.2717*b,.9*c);a.lineTo(.2717*b,c);a.stroke();a.begin();a.moveTo(.1671*b,.8991*c);a.curveTo(.1671*b,.8991*c,.1726*b,.9114*c,.1836*b,.9481*c);a.curveTo(.1946*b,.9849*c,.2*b,c,.2*b,c);a.stroke();a.begin();a.moveTo(.5*b,.6721*c);a.curveTo(.6109*b,.6721*c,.69*b,.5648*c,.69*b,.3962*c);a.curveTo(.69*b,.3656*c,.6988*b,.3473*c,.6949*b,.3227*c);a.curveTo(.6847*b,.2762*c,.6876*
|
|
b,.2212*c,.668*b,.1939*c);a.curveTo(.646*b,.1633*c,.5618*b,.12*c,.5*b,.12*c);a.stroke();a.begin();a.moveTo(.6954*b,.3716*c);a.curveTo(.6954*b,.3716*c,.6954*b,.341*c,.7174*b,.3594*c);a.curveTo(.7394*b,.3778*c,.7339*b,.4452*c,.734*b,.4452*c);a.quadTo(.7285*b,.4942*c,.723*b,.5065*c);a.curveTo(.7175*b,.5187*c,.723*b,.5187*c,.7065*b,.5371*c);a.curveTo(.69*b,.5554*c,.6625*b,.5615*c,.6625*b,.5616*c);a.stroke();a.begin();a.moveTo(.6171*b,.6213*c);a.curveTo(.6171*b,.6213*c,.595*b,.7704*c,.7079*b,.7888*c);
|
|
a.curveTo(.7464*b,.795*c,.8672*b,.85*c,.8948*b,.8745*c);a.curveTo(.9224*b,.899*c,.9359*b,.9316*c,.9429*b,.9622*c);a.quadTo(.95*b,c,.95*b,c);a.stroke();a.begin();a.moveTo(.6573*b,.4185*c);a.curveTo(.6573*b,.4185*c,.6573*b,.3839*c,.6573*b,.3593*c);a.curveTo(.6573*b,.3348*c,.6337*b,.3103*c,.6282*b,.3041*c);a.curveTo(.6227*b,.298*c,.6178*b,.2673*c,.6123*b,.2551*c);a.curveTo(.6068*b,.2429*c,.5905*b,.2429*c,.5741*b,.2367*c);a.curveTo(.5576*b,.2306*c,.5016*b,.2357*c,.5016*b,.2357*c);a.stroke();a.begin();
|
|
a.moveTo(.635*b,.7427*c);a.curveTo(.635*b,.7427*c,.6228*b,.8076*c,.5714*b,.8224*c);a.curveTo(.5184*b,.8377*c,.4972*b,.8347*c,.4972*b,.8347*c);a.stroke();a.begin();a.moveTo(.6678*b,.7764*c);a.curveTo(.6678*b,.7764*c,.6444*b,.8386*c,.5962*b,.8684*c);a.curveTo(.5467*b,.8991*c,.4971*b,.8929*c,.4971*b,.8929*c);a.stroke();a.begin();a.moveTo(.7283*b,.9*c);a.lineTo(.7283*b,c);a.stroke();a.begin();a.moveTo(.8329*b,.8991*c);a.curveTo(.8329*b,.8991*c,.8274*b,.9114*c,.8164*b,.9481*c);a.curveTo(.8054*b,.9849*
|
|
c,.8*b,c,.8*b,c);a.stroke();a.setStrokeColor(g);a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.lineTo(0,c);a.close();a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupUserMale.prototype.cst.SHAPE_MALE_USER]=mxShapeMockupUserMale;function mxShapeMockupUserFemale(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupUserFemale,mxShape);mxShapeMockupUserFemale.prototype.cst={STROKE_COLOR2:"strokeColor2",SHAPE_FEMALE_USER:"mxgraph.mockup.containers.userFemale"};
|
|
mxShapeMockupUserFemale.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),g=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#666666"),h=mxUtils.getValue(this.style,mxShapeMockupUserFemale.prototype.cst.STROKE_COLOR2,"#008cff");a.translate(d,e);this.background(a,d,e,b,c,f,g);a.setShadow(!1);this.otherShapes(a,d,e,b,c,h,g)};
|
|
mxShapeMockupUserFemale.prototype.background=function(a,d,e,b,c,f,g){a.setFillColor(f);a.setStrokeColor(g);a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};
|
|
mxShapeMockupUserFemale.prototype.otherShapes=function(a,d,e,b,c,f,g){a.setStrokeColor(f);a.setLineCap("round");a.setLineJoin("round");a.begin();a.moveTo(.3148*b,.468*c);a.curveTo(.3045*b,.3195*c,.3176*b,.2383*c,.3302*b,.2069*c);a.curveTo(.3508*b,.1557*c,.44*b,.1156*c,.5026*b,.1156*c);a.stroke();a.begin();a.moveTo(.5029*b,.6728*c);a.curveTo(.4616*b,.6728*c,.4018*b,.6177*c,.3663*b,.5653*c);a.stroke();a.begin();a.moveTo(.3108*b,.4021*c);a.curveTo(.3108*b,.4021*c,.3091*b,.3765*c,.2891*b,.3933*c);a.curveTo(.2691*
|
|
b,.4101*c,.2782*b,.4661*c,.2782*b,.4661*c);a.quadTo(.2862*b,.5067*c,.2922*b,.5166*c);a.curveTo(.2982*b,.5265*c,.2929*b,.5268*c,.3097*b,.5412*c);a.stroke();a.begin();a.moveTo(.4038*b,.6176*c);a.curveTo(.4038*b,.6176*c,.4324*b,.7778*c,.3375*b,.7963*c);a.curveTo(.3054*b,.8026*c,.1753*b,.8578*c,.15*b,.8826*c);a.curveTo(.1247*b,.9074*c,.1126*b,.9412*c,.1063*b,.9722*c);a.curveTo(.1*b,1.0032*c,.1*b,c,.1*b,c);a.stroke();a.begin();a.moveTo(.6377*b,.3365*c);a.curveTo(.5927*b,.2634*c,.5206*b,.2634*c,.5206*b,
|
|
.2634*c);a.quadTo(.3769*b,.2591*c,.3713*b,.2659*c);a.curveTo(.3657*b,.2727*c,.3405*b,.3674*c,.3405*b,.3946*c);a.curveTo(.3405*b,.4218*c,.3405*b,.4602*c,.3405*b,.4602*c);a.quadTo(.3546*b,.6401*c,.3546*b,.6626*c);a.stroke();a.begin();a.moveTo(.2931*b,.818*c);a.curveTo(.2931*b,.818*c,.3224*b,.9159*c,.3826*b,.9677*c);a.curveTo(.4446*b,1.01*c,.5065*b,c,.5065*b,c);a.stroke();a.begin();a.moveTo(.2995*b,.9106*c);a.lineTo(.2995*b,c);a.stroke();a.begin();a.moveTo(.2081*b,.907*c);a.curveTo(.2081*b,.907*c,.2131*
|
|
b,.9194*c,.2232*b,.9565*c);a.curveTo(.2333*b,.9936*c,.24*b,c,.24*b,c);a.stroke();a.begin();a.moveTo(.6951*b,.4988*c);a.curveTo(.6951*b,.4662*c,.7042*b,.3453*c,.7*b,.32*c);a.curveTo(.6923*b,.273*c,.6926*b,.2175*c,.6727*b,.19*c);a.curveTo(.6504*b,.159*c,.5651*b,.1157*c,.5025*b,.1157*c);a.stroke();a.begin();a.moveTo(.5029*b,.6728*c);a.curveTo(.5546*b,.6728*c,.6107*b,.6316*c,.6461*b,.5602*c);a.stroke();a.begin();a.moveTo(.696*b,.4022*c);a.curveTo(.696*b,.4022*c,.6983*b,.3766*c,.7179*b,.4106*c);a.curveTo(.7375*
|
|
b,.4278*c,.7273*b,.4836*c,.7273*b,.4836*c);a.quadTo(.7184*b,.5241*c,.7123*b,.5338*c);a.curveTo(.7062*b,.5436*c,.7114*b,.544*c,.6943*b,.558*c);a.stroke();a.begin();a.moveTo(.5995*b,.6278*c);a.curveTo(.5995*b,.6278*c,.5724*b,.7777*c,.6663*b,.7963*c);a.curveTo(.6984*b,.8026*c,.8386*b,.8578*c,.8638*b,.8826*c);a.curveTo(.8891*b,.9074*c,.9016*b,.9412*c,.9079*b,.9722*c);a.curveTo(.9142*b,1.0032*c,.91*b,c,.91*b,c);a.stroke();a.begin();a.moveTo(.6545*b,.6802*c);a.lineTo(.6545*b,.3986*c);a.stroke();a.begin();
|
|
a.moveTo(.7132*b,.8078*c);a.curveTo(.7132*b,.8078*c,.6839*b,.916*c,.6237*b,.9678*c);a.curveTo(.5617*b,1.01*c,.4998*b,c,.4998*b,c);a.stroke();a.begin();a.moveTo(.7111*b,.9106*c);a.lineTo(.7111*b,c);a.stroke();a.begin();a.moveTo(.8075*b,.907*c);a.curveTo(.8075*b,.907*c,.8025*b,.9194*c,.7924*b,.9565*c);a.curveTo(.7823*b,.9936*c,.775*b,c,.775*b,c);a.stroke();a.begin();a.moveTo(.3148*b,.5448*c);a.curveTo(.3148*b,.5448*c,.32*b,.6216*c,.3148*b,.6677*c);a.quadTo(.2891*b,.7343*c,.2891*b,.7343*c);a.lineTo(.3303*
|
|
b,.7625*c);a.lineTo(.39*b,.7625*c);a.stroke();a.begin();a.moveTo(.6852*b,.5448*c);a.curveTo(.6852*b,.5448*c,.68*b,.6216*c,.6852*b,.6677*c);a.quadTo(.7109*b,.7343*c,.7109*b,.7343*c);a.lineTo(.6697*b,.7625*c);a.lineTo(.62*b,.7625*c);a.stroke();a.setStrokeColor(g);a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.lineTo(0,c);a.close();a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupUserFemale.prototype.cst.SHAPE_FEMALE_USER]=mxShapeMockupUserFemale;
|
|
function mxShapeMockupGroup(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupGroup,mxShape);mxShapeMockupGroup.prototype.cst={MAIN_TEXT:"mainText",TEXT_SIZE:"textSize",TEXT_COLOR:"textColor",FILL_COLOR2:"fillColor2",SHAPE_GROUP:"mxgraph.mockup.containers.group"};
|
|
mxShapeMockupGroup.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupGroup.prototype.cst.MAIN_TEXT,"Group").toString(),g=mxUtils.getValue(this.style,mxShapeMockupGroup.prototype.cst.TEXT_SIZE,"17"),h=mxUtils.getSizeForString(f,g,mxConstants.DEFAULT_FONTFAMILY).width;0===h&&(h=Math.max(80,h));a.translate(d,e);b=Math.max(b,h+15);c=Math.max(c,g+10);this.background(a,b,c,h,g);a.setShadow(!1);this.foreground(a,b,c,h,g);this.buttonText(a,b,c,f,g)};
|
|
mxShapeMockupGroup.prototype.background=function(a,d,e,b,c){a.roundrect(0,.5*c,d,e-.5*c,5,5);a.fillAndStroke()};mxShapeMockupGroup.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapeMockupGroup.prototype.cst.FILL_COLOR2,"#000000");a.setFillColor(d);a.roundrect(3,0,b+6,1.5*c,.25*c,.25*c);a.fill()};
|
|
mxShapeMockupGroup.prototype.buttonText=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapeMockupGroup.prototype.cst.TEXT_COLOR,"#ffffff");a.setFontColor(d);a.setFontSize(c);a.text(6,0,0,0,b,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_TOP,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupGroup.prototype.cst.SHAPE_GROUP]=mxShapeMockupGroup;function mxShapeMockupWindow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupWindow,mxShape);mxShapeMockupWindow.prototype.cst={MAIN_TEXT:"mainText",TEXT_SIZE:"textSize",TEXT_COLOR:"textColor",STROKE_COLOR2:"strokeColor2",STROKE_COLOR3:"strokeColor3",SHAPE_WINDOW:"mxgraph.mockup.containers.window"};
|
|
mxShapeMockupWindow.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),g=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#666666"),h=mxUtils.getValue(this.style,mxShapeMockupWindow.prototype.cst.STROKE_COLOR2,"#008cff"),k=mxUtils.getValue(this.style,mxShapeMockupWindow.prototype.cst.STROKE_COLOR3,"#c4c4c4");a.translate(d,e);c=Math.max(c,30);b=Math.max(b,90);this.background(a,d,e,b,c,f,g);a.setShadow(!1);this.otherShapes(a,
|
|
d,e,b,c,g,k,h)};mxShapeMockupWindow.prototype.background=function(a,d,e,b,c,f,g){a.setFillColor(f);a.setStrokeColor(g);a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupWindow.prototype.otherShapes=function(a,d,e,b,c,f,g,h){mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1");a.setStrokeColor(f);a.ellipse(b-75,5,20,20);a.stroke();a.ellipse(b-50,5,20,20);a.stroke();a.setStrokeColor(h);a.ellipse(b-25,5,20,20);a.stroke();a.setStrokeColor(g);a.begin();a.moveTo(0,30);a.lineTo(b,30);a.stroke();d=mxUtils.getValue(this.style,mxShapeMockupWindow.prototype.cst.MAIN_TEXT,"Window Title");e=mxUtils.getValue(this.style,mxShapeMockupWindow.prototype.cst.TEXT_COLOR,
|
|
"#666666");b=mxUtils.getValue(this.style,mxShapeMockupWindow.prototype.cst.TEXT_SIZE,"17").toString();a.setFontColor(e);a.setFontSize(b);a.text(10,15,0,0,d,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupWindow.prototype.cst.SHAPE_WINDOW]=mxShapeMockupWindow;function mxShapeMockupHorTabBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupHorTabBar,mxShape);mxShapeMockupHorTabBar.prototype.cst={BLOCK:"block",CONE:"cone",HALF_CONE:"halfCone",ROUND:"round",TEXT_SIZE:"textSize",TAB_NAMES:"tabs",TAB_STYLE:"tabStyle",STYLE_FILLCOLOR2:"fillColor2",TEXT_COLOR:"textColor",SEL_TEXT_COLOR:"textColor2",SHAPE_HOR_TAB_BAR:"mxgraph.mockup.containers.horTabBar"};
|
|
mxShapeMockupHorTabBar.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxShapeMockupHorTabBar.prototype.cst.TEXT_SIZE,"17").toString(),g=mxUtils.getValue(this.style,mxShapeMockupHorTabBar.prototype.cst.TAB_NAMES,"Tab 1,+Tab 2,Tab 3").toString().split(","),h=1.5*f,k=g.length,l=20+5*(k-1)+20*k,n=[],m=-1,p=0;p<k;p++){var q=g[p];"+"===q.charAt(0)&&(q=q.substring(1),m=p);currW=mxUtils.getSizeForString(q,f,mxConstants.DEFAULT_FONTFAMILY).width;n[p]=0===currW?40:currW;
|
|
l+=n[p]}b=Math.max(b,l);c=Math.max(c,h+5);a.translate(d,e);this.background(a,b,c,5,h);a.setShadow(!1);this.backTabs(a,b,c,5,h,10,5,10,k,n,m);this.focusTab(a,b,c,5,h,10,5,10,k,n,m);this.tabText(a,b,c,5,h,10,5,10,k,n,m,g)};mxShapeMockupHorTabBar.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,c+b);a.arcTo(b,b,0,0,1,b,c);a.lineTo(d-b,c);a.arcTo(b,b,0,0,1,d,c+b);a.lineTo(d,e);a.lineTo(0,e);a.close();a.fillAndStroke()};
|
|
mxShapeMockupHorTabBar.prototype.backTabs=function(a,d,e,b,c,f,g,h,k,l,n){d=mxUtils.getValue(this.style,mxShapeMockupHorTabBar.prototype.cst.TAB_STYLE,mxShapeMockupHorTabBar.prototype.cst.BLOCK);for(e=0;e<k;e++){var m=l[e]+2*h;n!==e&&(d===mxShapeMockupHorTabBar.prototype.cst.BLOCK?a.rect(f,0,m,c):d===mxShapeMockupHorTabBar.prototype.cst.CONE?(a.begin(),a.moveTo(f,c),a.lineTo(f+.5*h,0),a.lineTo(f+m-.5*h,0),a.lineTo(f+m,c)):d===mxShapeMockupHorTabBar.prototype.cst.HALF_CONE?(a.begin(),a.moveTo(f,c),
|
|
a.lineTo(f+.5*h,0),a.lineTo(f+m,0),a.lineTo(f+m,c)):d===mxShapeMockupHorTabBar.prototype.cst.ROUND&&(a.begin(),a.moveTo(f-b,c),a.arcTo(b,b,0,0,0,f,c-b),a.lineTo(f,b),a.arcTo(b,b,0,0,1,f+b,0),a.lineTo(f+m-b,0),a.arcTo(b,b,0,0,1,f+m,b),a.lineTo(f+m,c-b),a.arcTo(b,b,0,0,0,f+m+b,c)),a.fillAndStroke());f=f+m+g}};
|
|
mxShapeMockupHorTabBar.prototype.focusTab=function(a,d,e,b,c,f,g,h,k,l,n){e=mxUtils.getValue(this.style,mxShapeMockupHorTabBar.prototype.cst.TAB_STYLE,mxShapeMockupHorTabBar.prototype.cst.BLOCK);k=mxUtils.getValue(this.style,mxShapeMockupHorTabBar.prototype.cst.STYLE_FILLCOLOR2,"#008cff");a.setStrokeColor(k);a.setFillColor(k);for(k=0;k<=n;k++){var m=l[k]+2*h;n===k&&(e===mxShapeMockupHorTabBar.prototype.cst.BLOCK?(a.begin(),a.moveTo(0,c+b),a.arcTo(b,b,0,0,1,b,c),a.lineTo(f,c),a.lineTo(f,0),a.lineTo(f+
|
|
m,0),a.lineTo(f+m,c),a.lineTo(d-b,c),a.arcTo(b,b,0,0,1,d,c+b),a.close()):e===mxShapeMockupHorTabBar.prototype.cst.CONE?(a.begin(),a.moveTo(0,c+b),a.arcTo(b,b,0,0,1,b,c),a.lineTo(f,c),a.lineTo(f+.5*h,0),a.lineTo(f+m-.5*h,0),a.lineTo(f+m,c),a.lineTo(d-b,c),a.arcTo(b,b,0,0,1,d,c+b),a.close()):e===mxShapeMockupHorTabBar.prototype.cst.HALF_CONE?(a.begin(),a.moveTo(0,c+b),a.arcTo(b,b,0,0,1,b,c),a.lineTo(f,c),a.lineTo(f+.5*h,0),a.lineTo(f+m,0),a.lineTo(f+m,c),a.lineTo(d-b,c),a.arcTo(b,b,0,0,1,d,c+b),a.close()):
|
|
e===mxShapeMockupHorTabBar.prototype.cst.ROUND&&(a.begin(),a.moveTo(0,c+b),a.arcTo(b,b,0,0,1,b,c),a.lineTo(f-b,c),a.arcTo(b,b,0,0,0,f,c-b),a.lineTo(f,b),a.arcTo(b,b,0,0,1,f+b,0),a.lineTo(f+m-b,0),a.arcTo(b,b,0,0,1,f+m,b),a.lineTo(f+m,c-b),a.arcTo(b,b,0,0,0,f+m+b,c),a.lineTo(d-b,c),a.arcTo(b,b,0,0,1,d,c+b),a.close()),a.fillAndStroke());f=f+m+g}};
|
|
mxShapeMockupHorTabBar.prototype.tabText=function(a,d,e,b,c,f,g,h,k,l,n,m){d=mxUtils.getValue(this.style,mxShapeMockupHorTabBar.prototype.cst.TEXT_COLOR,"#666666");e=mxUtils.getValue(this.style,mxShapeMockupHorTabBar.prototype.cst.SEL_TEXT_COLOR,"#ffffff");b=mxUtils.getValue(this.style,mxShapeMockupHorTabBar.prototype.cst.TEXT_SIZE,"17").toString();a.setFontColor(d);a.setFontSize(b);for(b=0;b<k;b++){var p=m[b];b===n&&a.setFontColor(e);"+"===p.charAt(0)&&(p=p.substring(1));var q=l[b]+2*h;a.text(f+
|
|
h,.5*c,0,0,p,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);f=f+q+g;b===n&&a.setFontColor(d)}};mxCellRenderer.prototype.defaultShapes[mxShapeMockupHorTabBar.prototype.cst.SHAPE_HOR_TAB_BAR]=mxShapeMockupHorTabBar;function mxShapeMockupVerTabBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupVerTabBar,mxShape);
|
|
mxShapeMockupVerTabBar.prototype.cst={BLOCK:"block",ROUND:"round",TEXT_SIZE:"textSize",TAB_NAMES:"tabs",TAB_STYLE:"tabStyle",STYLE_FILLCOLOR2:"fillColor2",TEXT_COLOR:"textColor",SEL_TEXT_COLOR:"textColor2",SHAPE_VER_TAB_BAR:"mxgraph.mockup.containers.verTabBar"};
|
|
mxShapeMockupVerTabBar.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxShapeMockupVerTabBar.prototype.cst.TEXT_SIZE,"17").toString(),g=mxUtils.getValue(this.style,mxShapeMockupVerTabBar.prototype.cst.TAB_NAMES,"Tab 1,+Tab 2,Tab 3").toString().split(","),h=1.5*f,k=g.length,l=[],n=-1,m=0;m<k;m++){var p=g[m];"+"===p.charAt(0)&&(p=p.substring(1),n=m);p=mxUtils.getSizeForString(p,f,mxConstants.DEFAULT_FONTFAMILY).width;l[m]=0===p?42:p}f=20+Math.max.apply(Math,l);
|
|
b=Math.max(b,f+5);c=Math.max(c,20+k*h+5*(k-1));a.translate(d,e);this.background(a,b,c,5,f);a.setShadow(!1);this.backTabs(a,b,c,5,h,f,10,5,10,k,l,n);this.focusTab(a,b,c,5,h,f,10,5,10,k,l,n);this.tabText(a,b,c,5,h,f,10,5,10,k,l,n,g)};mxShapeMockupVerTabBar.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(c+b,e);a.arcTo(b,b,0,0,1,c,e-b);a.lineTo(c,b);a.arcTo(b,b,0,0,1,c+b,0);a.lineTo(d,0);a.lineTo(d,e);a.close();a.fillAndStroke()};
|
|
mxShapeMockupVerTabBar.prototype.backTabs=function(a,d,e,b,c,f,g,h,k,l,n,m){d=mxUtils.getValue(this.style,mxShapeMockupVerTabBar.prototype.cst.TAB_STYLE,mxShapeMockupVerTabBar.prototype.cst.BLOCK);for(e=0;e<l;e++)m!==e&&(d===mxShapeMockupVerTabBar.prototype.cst.BLOCK?a.rect(0,g,f,c):d===mxShapeMockupVerTabBar.prototype.cst.ROUND&&(a.begin(),a.moveTo(f,g+c+b),a.arcTo(b,b,0,0,0,f-b,g+c),a.lineTo(b,g+c),a.arcTo(b,b,0,0,1,0,g+c-b),a.lineTo(0,g+b),a.arcTo(b,b,0,0,1,b,g),a.lineTo(f-b,g),a.arcTo(b,b,0,0,
|
|
0,f,g-b)),a.fillAndStroke()),g=g+c+h};
|
|
mxShapeMockupVerTabBar.prototype.focusTab=function(a,d,e,b,c,f,g,h,k,l,n,m){d=mxUtils.getValue(this.style,mxShapeMockupVerTabBar.prototype.cst.TAB_STYLE,mxShapeMockupVerTabBar.prototype.cst.BLOCK);k=mxUtils.getValue(this.style,mxShapeMockupVerTabBar.prototype.cst.STYLE_FILLCOLOR2,"#008cff");-1!==m&&(g+=(c+h)*m,a.setStrokeColor(k),a.setFillColor(k),d===mxShapeMockupVerTabBar.prototype.cst.BLOCK?(a.begin(),a.moveTo(f+b,e),a.arcTo(b,b,0,0,1,f,e-b),a.lineTo(f,g+c),a.lineTo(0,g+c),a.lineTo(0,g),a.lineTo(f,
|
|
g),a.lineTo(f,b),a.arcTo(b,b,0,0,1,f+b,0),a.close()):d===mxShapeMockupVerTabBar.prototype.cst.ROUND&&(a.begin(),a.moveTo(f+b,e),a.arcTo(b,b,0,0,1,f,e-b),a.lineTo(f,g+c+b),a.arcTo(b,b,0,0,0,f-b,g+c),a.lineTo(b,g+c),a.arcTo(b,b,0,0,1,0,g+c-b),a.lineTo(0,g+b),a.arcTo(b,b,0,0,1,b,g),a.lineTo(f-b,g),a.arcTo(b,b,0,0,0,f,g-b),a.lineTo(f,b),a.arcTo(b,b,0,0,1,f+b,0),a.close()),a.fillAndStroke())};
|
|
mxShapeMockupVerTabBar.prototype.tabText=function(a,d,e,b,c,f,g,h,k,l,n,m,p){d=mxUtils.getValue(this.style,mxShapeMockupVerTabBar.prototype.cst.TEXT_COLOR,"#666666");e=mxUtils.getValue(this.style,mxShapeMockupVerTabBar.prototype.cst.SEL_TEXT_COLOR,"#ffffff");b=mxUtils.getValue(this.style,mxShapeMockupVerTabBar.prototype.cst.TEXT_SIZE,"17").toString();a.setFontColor(d);a.setFontSize(b);for(b=0;b<l;b++)k=p[b],b===m&&a.setFontColor(e),"+"===k.charAt(0)&&(k=k.substring(1)),a.text(.5*f,g+.5*c,0,0,k,mxConstants.ALIGN_CENTER,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0),g=g+c+h,b===m&&a.setFontColor(d)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupVerTabBar.prototype.cst.SHAPE_VER_TAB_BAR]=mxShapeMockupVerTabBar;function mxShapeMockupAlertBox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupAlertBox,mxShape);
|
|
mxShapeMockupAlertBox.prototype.cst={MAIN_TEXT:"mainText",SUB_TEXT:"subText",BUTTON_TEXT:"buttonText",TEXT_SIZE:"textSize",TEXT_COLOR:"textColor",STROKE_COLOR2:"strokeColor2",STROKE_COLOR3:"strokeColor3",SHAPE_ALERT_BOX:"mxgraph.mockup.containers.alertBox"};
|
|
mxShapeMockupAlertBox.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),g=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#666666"),h=mxUtils.getValue(this.style,mxShapeMockupAlertBox.prototype.cst.STROKE_COLOR2,"#008cff"),k=mxUtils.getValue(this.style,mxShapeMockupAlertBox.prototype.cst.STROKE_COLOR3,"#c4c4c4");a.translate(d,e);c=Math.max(c,75);b=Math.max(b,90);this.background(a,d,e,b,c,f,g);a.setShadow(!1);this.foreground(a,
|
|
d,e,b,c,g,k,h)};mxShapeMockupAlertBox.prototype.background=function(a,d,e,b,c,f,g){a.setFillColor(f);a.setStrokeColor(g);a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupAlertBox.prototype.foreground=function(a,d,e,b,c,f,g,h){mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1");a.setStrokeColor(h);a.ellipse(b-25,5,20,20);a.stroke();a.setStrokeColor(g);a.begin();a.moveTo(0,30);a.lineTo(b,30);a.stroke();h=mxUtils.getValue(this.style,mxShapeMockupAlertBox.prototype.cst.MAIN_TEXT,"Window Title").toString();d=mxUtils.getValue(this.style,mxShapeMockupAlertBox.prototype.cst.SUB_TEXT,"Sub Text").toString().split(",");e=mxUtils.getValue(this.style,mxShapeMockupAlertBox.prototype.cst.BUTTON_TEXT,
|
|
"OK,Cancel").toString().split(",");var k=mxUtils.getValue(this.style,mxShapeMockupAlertBox.prototype.cst.TEXT_COLOR,"#666666");f=mxUtils.getValue(this.style,mxShapeMockupAlertBox.prototype.cst.TEXT_SIZE,"17").toString();g=e.length;g=(b-10*(g+1))/g;a.setFontColor(k);a.setFontSize(f);a.text(10,15,0,0,h,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);h=10;for(k=0;k<e.length;k++)""!==e[k]&&(a.rect(h,c-10-1.5*f,g,1.5*f),a.stroke(),a.text(h+.5*g,c-10-.75*f,0,0,e[k],mxConstants.ALIGN_CENTER,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0)),h=h+g+10;for(k=0;k<d.length;k++)a.text(.5*b,30+f*(1.5*k+.75),0,0,d[k],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupAlertBox.prototype.cst.SHAPE_ALERT_BOX]=mxShapeMockupAlertBox;function mxShapeMockupContainersRRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupContainersRRect,mxShape);
|
|
mxShapeMockupContainersRRect.prototype.cst={RRECT:"mxgraph.mockup.containers.rrect",R_SIZE:"rSize"};mxShapeMockupContainersRRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupContainersRRect.prototype.cst.R_SIZE,"10"));a.roundrect(0,0,b,c,d);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeMockupContainersRRect.prototype.cst.RRECT,mxShapeMockupContainersRRect);
|
|
function mxShapeMockupContainersAnchor(a,d,e,b){mxShape.call(this);this.bounds=a}mxUtils.extend(mxShapeMockupContainersAnchor,mxShape);mxShapeMockupContainersAnchor.prototype.cst={ANCHOR:"mxgraph.mockup.containers.anchor"};mxShapeMockupContainersAnchor.prototype.paintVertexShape=function(a,d,e,b,c){};mxCellRenderer.registerShape(mxShapeMockupContainersAnchor.prototype.cst.ANCHOR,mxShapeMockupContainersAnchor);
|
|
function mxShapeMockupContrainersTopButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupContrainersTopButton,mxShape);mxShapeMockupContrainersTopButton.prototype.cst={TOP_BUTTON:"mxgraph.mockup.containers.topButton",R_SIZE:"rSize"};
|
|
mxShapeMockupContrainersTopButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupContrainersTopButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(0,d);a.arcTo(d,d,0,0,1,d,0);a.lineTo(b-d,0);a.arcTo(d,d,0,0,1,b,d);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeMockupContrainersTopButton.prototype.cst.TOP_BUTTON,mxShapeMockupContrainersTopButton);
|
|
function mxShapeMockupContainersLeftButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupContainersLeftButton,mxShape);mxShapeMockupContainersLeftButton.prototype.cst={LEFT_BUTTON:"mxgraph.mockup.containers.leftButton",R_SIZE:"rSize"};
|
|
mxShapeMockupContainersLeftButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupContainersLeftButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(b,0);a.lineTo(b,c);a.lineTo(d,c);a.arcTo(d,d,0,0,1,0,c-d);a.lineTo(0,d);a.arcTo(d,d,0,0,1,d,0);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeMockupContainersLeftButton.prototype.cst.LEFT_BUTTON,mxShapeMockupContainersLeftButton);
|
|
function mxShapeMockupContainersMarginRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupContainersMarginRect,mxShape);mxShapeMockupContainersMarginRect.prototype.cst={SHAPE_MARGIN_RECT:"mxgraph.mockup.containers.marginRect",MARGIN:"rectMargin",MARGIN_TOP:"rectMarginTop",MARGIN_LEFT:"rectMarginLeft",MARGIN_BOTTOM:"rectMarginBottom",MARGIN_RIGHT:"rectMarginRight"};
|
|
mxShapeMockupContainersMarginRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxShapeMockupContainersMarginRect.prototype.background=function(a,d,e,b,c,f){d=parseFloat(mxUtils.getValue(this.style,mxShapeMockupContainersMarginRect.prototype.cst.MARGIN,"0"));var g=parseFloat(mxUtils.getValue(this.style,mxShapeMockupContainersMarginRect.prototype.cst.MARGIN_TOP,"0"));f=parseFloat(mxUtils.getValue(this.style,mxShapeMockupContainersMarginRect.prototype.cst.MARGIN_LEFT,"0"));e=parseFloat(mxUtils.getValue(this.style,mxShapeMockupContainersMarginRect.prototype.cst.MARGIN_BOTTOM,"0"));
|
|
var h=parseFloat(mxUtils.getValue(this.style,mxShapeMockupContainersMarginRect.prototype.cst.MARGIN_RIGHT,"0"));f=d+f;g=d+g;b=b-h-f-d;c=c-e-g-d;0<b&&0<c&&(a.begin(),a.roundrect(f,g,b,c,10,10),a.fillAndStroke())};mxCellRenderer.prototype.defaultShapes[mxShapeMockupContainersMarginRect.prototype.cst.SHAPE_MARGIN_RECT]=mxShapeMockupContainersMarginRect;function mxShapeMockupContainersMarginRect2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupContainersMarginRect2,mxShape);mxShapeMockupContainersMarginRect2.prototype.cst={SHAPE_MARGIN_RECT:"mxgraph.mockup.containers.marginRect2",MARGIN:"rectMargin",MARGIN_TOP:"rectMarginTop",MARGIN_LEFT:"rectMarginLeft",MARGIN_BOTTOM:"rectMarginBottom",MARGIN_RIGHT:"rectMarginRight"};mxShapeMockupContainersMarginRect2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxShapeMockupContainersMarginRect2.prototype.background=function(a,d,e,b,c,f){d=parseFloat(mxUtils.getValue(this.style,mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN,"0"));var g=parseFloat(mxUtils.getValue(this.style,mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN_TOP,"0"));f=parseFloat(mxUtils.getValue(this.style,mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN_LEFT,"0"));e=parseFloat(mxUtils.getValue(this.style,mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN_BOTTOM,
|
|
"0"));var h=parseFloat(mxUtils.getValue(this.style,mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN_RIGHT,"0"));f=d+f;g=d+g;b=b-h-f-d;c=c-e-g-d;0<b&&0<c&&(a.begin(),a.rect(f,g,b,c),a.fillAndStroke())};mxCellRenderer.prototype.defaultShapes[mxShapeMockupContainersMarginRect2.prototype.cst.SHAPE_MARGIN_RECT]=mxShapeMockupContainersMarginRect2;function mxShapeMockupCheckboxGroup(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupCheckboxGroup,mxShape);mxShapeMockupCheckboxGroup.prototype.cst={MAIN_TEXT:"mainText",TEXT_SIZE:"textSize",TEXT_COLOR:"textColor",SELECTED:"+",SHAPE_CHECKBOX_GROUP:"mxgraph.mockup.forms.checkboxGroup"};
|
|
mxShapeMockupCheckboxGroup.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=mxUtils.getValue(this.style,mxShapeMockupCheckboxGroup.prototype.cst.TEXT_COLOR,"#666666,#008cff").toString().split(",");var f=mxUtils.getValue(this.style,mxShapeMockupCheckboxGroup.prototype.cst.TEXT_SIZE,"17").toString();e=mxUtils.getValue(this.style,mxShapeMockupCheckboxGroup.prototype.cst.MAIN_TEXT,"Option 1").toString().split(",");var g=e.length,h=Math.max(1.5*f,15),k=0,l=-1,n=g*h;c=Math.max(c,n);for(var m=
|
|
0;m<g;m++){var p=e[m];p.charAt(0)===mxShapeMockupCheckboxGroup.prototype.cst.SELECTED&&(p=e[m].substring(1),l=m);p=mxUtils.getSizeForString(p,f,mxConstants.DEFAULT_FONTFAMILY).width;p>k&&(k=p)}a.rect(0,0,Math.max(b,5+k+30),c);a.fillAndStroke();a.setShadow(!1);a.setFontSize(f);for(m=0;m<g;m++)b=(m*h+.5*h)*c/n,p=e[m],p.charAt(0)===mxShapeMockupCheckboxGroup.prototype.cst.SELECTED?(a.setFontColor(d[1]),p=e[m].substring(1),l=m):a.setFontColor(d[0]),a.text(32.5,b,0,0,p,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,
|
|
0,null,0,0,0),b-=7.5,a.setFillColor("#dddddd"),a.setStrokeColor("#999999"),l===m?(a.setGradient("#aaaaaa","#666666",7.5,b,15,15,mxConstants.DIRECTION_SOUTH,1,1),a.rect(7.5,b,15,15),a.fillAndStroke(),a.setStrokeColor("#333333"),a.begin(),a.moveTo(11.25,b+7.5),a.lineTo(15,b+11.25),a.lineTo(18.75,b+3.75),a.stroke()):(a.setGradient("#eeeeee","#cccccc",7.5,b,15,15,mxConstants.DIRECTION_SOUTH,1,1),a.rect(7.5,b,15,15),a.fillAndStroke()),l=-1};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupCheckboxGroup.prototype.cst.SHAPE_CHECKBOX_GROUP]=mxShapeMockupCheckboxGroup;function mxShapeMockupRadioGroup(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupRadioGroup,mxShape);mxShapeMockupRadioGroup.prototype.cst={MAIN_TEXT:"mainText",TEXT_SIZE:"textSize",TEXT_COLOR:"textColor",SELECTED:"+",SHAPE_RADIO_GROUP:"mxgraph.mockup.forms.radioGroup"};
|
|
mxShapeMockupRadioGroup.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=mxUtils.getValue(this.style,mxShapeMockupRadioGroup.prototype.cst.TEXT_COLOR,"#666666,#008cff").toString().split(",");var f=mxUtils.getValue(this.style,mxShapeMockupRadioGroup.prototype.cst.TEXT_SIZE,"17").toString();e=mxUtils.getValue(this.style,mxShapeMockupRadioGroup.prototype.cst.MAIN_TEXT,"Option 1").toString().split(",");var g=e.length,h=Math.max(1.5*f,15),k=0,l=-1,n=g*h;c=Math.max(c,n);for(var m=0;m<g;m++){var p=
|
|
e[m];p.charAt(0)===mxShapeMockupRadioGroup.prototype.cst.SELECTED&&(p=e[m].substring(1),l=m);p=mxUtils.getSizeForString(p,f,mxConstants.DEFAULT_FONTFAMILY).width;p>k&&(k=p)}a.rect(0,0,Math.max(b,5+k+30),c);a.fillAndStroke();a.setShadow(!1);a.setFontSize(f);for(m=0;m<g;m++)b=(m*h+.5*h)*c/n,p=e[m],p.charAt(0)===mxShapeMockupRadioGroup.prototype.cst.SELECTED?(a.setFontColor(d[1]),p=e[m].substring(1),l=m):a.setFontColor(d[0]),a.text(32.5,b,0,0,p,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,
|
|
0,0,0),b-=7.5,a.setStrokeColor("#999999"),l===m?(a.setGradient("#aaaaaa","#666666",7.5,b,15,15,mxConstants.DIRECTION_SOUTH,1,1),a.ellipse(7.5,b,15,15),a.fillAndStroke(),a.setFillColor("#333333"),a.setStrokeColor("#333333"),a.ellipse(11.25,b+3.75,7.5,7.5)):(a.setGradient("#eeeeee","#cccccc",7.5,b,15,15,mxConstants.DIRECTION_SOUTH,1,1),a.ellipse(7.5,b,15,15)),a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupRadioGroup.prototype.cst.SHAPE_RADIO_GROUP]=mxShapeMockupRadioGroup;
|
|
function mxShapeMockupColorPicker(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupColorPicker,mxShape);mxShapeMockupColorPicker.prototype.cst={COLOR:"chosenColor",SHAPE_COLOR_PICKER:"mxgraph.mockup.forms.colorPicker"};
|
|
mxShapeMockupColorPicker.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupColorPicker.prototype.cst.COLOR,"#aaddff");a.translate(d,e);a.setStrokeColor("#999999");a.roundrect(0,0,b,c,.05*b,.05*c);a.fillAndStroke();a.setShadow(!1);a.setFillColor(f);a.rect(.1*b,.1*c,.8*b,.8*c);a.fill();a.setFillColor("#ffffff");a.begin();a.moveTo(.75*b,.75*c);a.lineTo(.75*b,c);a.lineTo(.95*b,c);a.arcTo(.05*b,.05*c,0,0,0,b,.95*c);a.lineTo(b,.75*c);a.close();a.fill();a.setFillColor("#999999");
|
|
a.begin();a.moveTo(.77*b,.77*c);a.lineTo(.875*b,.98*c);a.lineTo(.98*b,.77*c);a.close();a.fill();a.roundrect(0,0,b,c,.05*b,.05*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupColorPicker.prototype.cst.SHAPE_COLOR_PICKER]=mxShapeMockupColorPicker;function mxShapeMockupComboBox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupComboBox,mxShape);
|
|
mxShapeMockupComboBox.prototype.cst={MAIN_TEXT:"mainText",FILL_COLOR2:"fillColor2",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",SHAPE_COMBO_BOX:"mxgraph.mockup.forms.comboBox"};mxShapeMockupComboBox.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c);this.mainText(a,d,e,b,c)};mxShapeMockupComboBox.prototype.background=function(a,d,e,b,c){a.setFillColor("#ffffff");a.roundrect(0,0,b,c,5,5);a.fillAndStroke()};
|
|
mxShapeMockupComboBox.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"").toString();e=mxUtils.getValue(this.style,mxShapeMockupComboBox.prototype.cst.FILL_COLOR2,"").toString();a.setGradient(d,e,b-30,0,30,c,mxConstants.DIRECTION_SOUTH,1,1);a.begin();a.moveTo(b-30,0);a.lineTo(b-5,0);a.arcTo(5,5,0,0,1,b,5);a.lineTo(b,c-5);a.arcTo(5,5,0,0,1,b-5,c);a.lineTo(b-30,c);a.close();a.fillAndStroke();a.setFillColor("#ffffff");a.begin();a.moveTo(b-22,.5*c-5);
|
|
a.lineTo(b-15,.5*c+5);a.lineTo(b-8,.5*c-5);a.fill()};
|
|
mxShapeMockupComboBox.prototype.mainText=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapeMockupComboBox.prototype.cst.MAIN_TEXT,"Main Text");e=mxUtils.getValue(this.style,mxShapeMockupComboBox.prototype.cst.TEXT_COLOR,"#666666").toString();b=mxUtils.getValue(this.style,mxShapeMockupComboBox.prototype.cst.TEXT_SIZE,"17").toString();a.begin();a.setFontSize(b);a.setFontColor(e);a.text(5,.5*c,0,0,d,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupComboBox.prototype.cst.SHAPE_COMBO_BOX]=mxShapeMockupComboBox;function mxShapeMockupSpinner(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupSpinner,mxShape);
|
|
mxShapeMockupSpinner.prototype.cst={LAYOUT:"spinLayout",SPINNER_STYLE:"spinStyle",ADJ_STYLE:"adjStyle",LAYOUT_RIGHT:"right",LAYOUT_LEFT:"left",LAYOUT_TOP:"top",LAYOUT_BOTTOM:"bottom",LAYOUT_VERTICAL:"vertical",LAYOUT_HORIZONTAL:"horizontal",SPINNER_MERGED:"merged",SPINNER_NORMAL:"normal",ADJ_TRIANGLE:"triangle",ADJ_PLUSMINUS:"plusMinus",ADJ_ARROW:"arrow",MAIN_TEXT:"mainText",FILL_COLOR2:"fillColor2",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",SHAPE_SPINNER:"mxgraph.mockup.forms.spinner"};
|
|
mxShapeMockupSpinner.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupSpinner.prototype.cst.LAYOUT,mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT);a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c,f);this.mainText(a,b,c,f)};mxShapeMockupSpinner.prototype.background=function(a,d,e){a.setFillColor("#ffffff");a.roundrect(0,0,d,e,10,10);a.fillAndStroke()};
|
|
mxShapeMockupSpinner.prototype.foreground=function(a,d,e,b){var c=mxUtils.getValue(this.style,mxShapeMockupSpinner.prototype.cst.SPINNER_STYLE,mxShapeMockupSpinner.prototype.cst.SPINNER_NORMAL),f=mxUtils.getValue(this.style,mxShapeMockupSpinner.prototype.cst.ADJ_STYLE,mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE),g=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff");a.setFillColor(g);c===mxShapeMockupSpinner.prototype.cst.SPINNER_NORMAL&&(b===mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT?
|
|
(a.begin(),a.moveTo(d-20,0),a.lineTo(d-20,e),a.moveTo(d-20,.5*e),a.lineTo(d,.5*e),a.stroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_LEFT?(a.begin(),a.moveTo(20,0),a.lineTo(20,e),a.moveTo(20,.5*e),a.lineTo(0,.5*e),a.stroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_TOP?(a.begin(),a.moveTo(0,15),a.lineTo(d,15),a.moveTo(.5*d,15),a.lineTo(.5*d,0),a.stroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_BOTTOM?(a.begin(),a.moveTo(0,e-15),a.lineTo(d,e-15),a.moveTo(.5*d,e-15),a.lineTo(.5*
|
|
d,e),a.stroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_VERTICAL?(a.begin(),a.moveTo(0,15),a.lineTo(d,15),a.moveTo(0,e-15),a.lineTo(d,e-15),a.stroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_HORIZONTAL&&(a.begin(),a.moveTo(20,0),a.lineTo(20,e),a.moveTo(d-20,0),a.lineTo(d-20,e),a.stroke()));a.setStrokeColor(g);b===mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT?f===mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE?(a.begin(),a.moveTo(d-14,.25*e+4.5),a.lineTo(d-10,.25*e-2.5),a.lineTo(d-
|
|
6,.25*e+4.5),a.close(),a.fillAndStroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS?(a.begin(),a.moveTo(d-10,.25*e-4),a.lineTo(d-10,.25*e+4),a.moveTo(d-14,.25*e),a.lineTo(d-6,.25*e),a.stroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_ARROW&&(a.begin(),a.moveTo(d-14,.25*e+1.5),a.lineTo(d-10,.25*e-2.5),a.lineTo(d-6,.25*e+1.5),a.close(),a.moveTo(d-10,.25*e+4.5),a.lineTo(d-10,.25*e-2.5),a.fillAndStroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_LEFT?f===mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE?
|
|
(a.begin(),a.moveTo(14,.25*e+4.5),a.lineTo(10,.25*e-2.5),a.lineTo(6,.25*e+4.5),a.close(),a.fillAndStroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS?(a.begin(),a.moveTo(10,.25*e-4),a.lineTo(10,.25*e+4),a.moveTo(14,.25*e),a.lineTo(6,.25*e),a.stroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_ARROW&&(a.begin(),a.moveTo(14,.25*e+1.5),a.lineTo(10,.25*e-2.5),a.lineTo(6,.25*e+1.5),a.close(),a.moveTo(10,.25*e+4.5),a.lineTo(10,.25*e-2.5),a.fillAndStroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_TOP?
|
|
f===mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE?(a.begin(),a.moveTo(.75*d+4,12),a.lineTo(.75*d,5),a.lineTo(.75*d-4,12),a.close(),a.fillAndStroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS?(a.begin(),a.moveTo(.75*d,3.5),a.lineTo(.75*d,11.5),a.moveTo(.75*d+4,7.5),a.lineTo(.75*d-4,7.5),a.stroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_ARROW&&(a.begin(),a.moveTo(.75*d+4,9),a.lineTo(.75*d,5),a.lineTo(.75*d-4,9),a.close(),a.moveTo(.75*d,12),a.lineTo(.75*d,5),a.fillAndStroke()):b===
|
|
mxShapeMockupSpinner.prototype.cst.LAYOUT_BOTTOM?f===mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE?(a.begin(),a.moveTo(.75*d+4,e-5),a.lineTo(.75*d,e-12),a.lineTo(.75*d-4,e-5),a.close(),a.fillAndStroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS?(a.begin(),a.moveTo(.75*d,e-3.5),a.lineTo(.75*d,e-11.5),a.moveTo(.75*d+4,e-7.5),a.lineTo(.75*d-4,e-7.5),a.stroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_ARROW&&(a.begin(),a.moveTo(.75*d+4,e-6),a.lineTo(.75*d,e-10),a.lineTo(.75*d-4,e-6),
|
|
a.close(),a.moveTo(.75*d,e-3),a.lineTo(.75*d,e-10),a.fillAndStroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_VERTICAL?f===mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE?(a.begin(),a.moveTo(.5*d+4,12),a.lineTo(.5*d,5),a.lineTo(.5*d-4,12),a.close(),a.fillAndStroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS?(a.begin(),a.moveTo(.5*d,3.5),a.lineTo(.5*d,11.5),a.moveTo(.5*d+4,7.5),a.lineTo(.5*d-4,7.5),a.stroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_ARROW&&(a.begin(),a.moveTo(.5*
|
|
d+4,9),a.lineTo(.5*d,5),a.lineTo(.5*d-4,9),a.close(),a.moveTo(.5*d,12),a.lineTo(.5*d,5),a.fillAndStroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_HORIZONTAL&&(f===mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE?(a.begin(),a.moveTo(d-6,.5*e+4.5),a.lineTo(d-10,.5*e-2.5),a.lineTo(d-14,.5*e+4.5),a.close(),a.fillAndStroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS?(a.begin(),a.moveTo(d-10,.5*e-4),a.lineTo(d-10,.5*e+4),a.moveTo(d-14,.5*e),a.lineTo(d-6,.5*e),a.stroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_ARROW&&
|
|
(a.begin(),a.moveTo(d-14,.5*e+1.5),a.lineTo(d-10,.5*e-2.5),a.lineTo(d-6,.5*e+1.5),a.close(),a.moveTo(d-10,.5*e+4.5),a.lineTo(d-10,.5*e-2.5),a.fillAndStroke()));b===mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT?f===mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE?(a.begin(),a.moveTo(d-14,.75*e-4.5),a.lineTo(d-10,.75*e+2.5),a.lineTo(d-6,.75*e-4.5),a.close(),a.fillAndStroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS?(a.begin(),a.moveTo(d-14,.75*e),a.lineTo(d-6,.75*e),a.stroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_ARROW&&
|
|
(a.begin(),a.moveTo(d-14,.75*e-1.5),a.lineTo(d-10,.75*e+2.5),a.lineTo(d-6,.75*e-1.5),a.close(),a.moveTo(d-10,.75*e-4.5),a.lineTo(d-10,.75*e+2.5),a.fillAndStroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_LEFT?f===mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE?(a.begin(),a.moveTo(14,.75*e-4.5),a.lineTo(10,.75*e+2.5),a.lineTo(6,.75*e-4.5),a.close(),a.fillAndStroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS?(a.begin(),a.moveTo(14,.75*e),a.lineTo(6,.75*e),a.stroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_ARROW&&
|
|
(a.begin(),a.moveTo(14,.75*e-1.5),a.lineTo(10,.75*e+2.5),a.lineTo(6,.75*e-1.5),a.close(),a.moveTo(10,.75*e-4.5),a.lineTo(10,.75*e+2.5),a.fillAndStroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_TOP?f===mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE?(a.begin(),a.moveTo(.25*d+4,5),a.lineTo(.25*d,12),a.lineTo(.25*d-4,5),a.close(),a.fillAndStroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS?(a.begin(),a.moveTo(.25*d+4,7.5),a.lineTo(.25*d-4,7.5),a.stroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_ARROW&&
|
|
(a.begin(),a.moveTo(.25*d+4,6),a.lineTo(.25*d,10),a.lineTo(.25*d-4,6),a.close(),a.moveTo(.25*d,3),a.lineTo(.25*d,10),a.fillAndStroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_BOTTOM?f===mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE?(a.begin(),a.moveTo(.25*d+4,e-12),a.lineTo(.25*d,e-5),a.lineTo(.25*d-4,e-12),a.close(),a.fillAndStroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS?(a.begin(),a.moveTo(.25*d+4,e-7.5),a.lineTo(.25*d-4,e-7.5),a.stroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_ARROW&&
|
|
(a.begin(),a.moveTo(.25*d+4,e-9),a.lineTo(.25*d,e-5),a.lineTo(.25*d-4,e-9),a.close(),a.moveTo(.25*d,e-12),a.lineTo(.25*d,e-5),a.fillAndStroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_VERTICAL?f===mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE?(a.begin(),a.moveTo(.5*d+4,e-12),a.lineTo(.5*d,e-5),a.lineTo(.5*d-4,e-12),a.close(),a.fillAndStroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS?(a.begin(),a.moveTo(.5*d+4,e-7.5),a.lineTo(.5*d-4,e-7.5),a.stroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_ARROW&&
|
|
(a.begin(),a.moveTo(.5*d+4,e-9),a.lineTo(.5*d,e-5),a.lineTo(.5*d-4,e-9),a.close(),a.moveTo(.5*d,e-12),a.lineTo(.5*d,e-5),a.fillAndStroke()):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_HORIZONTAL&&(f===mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE?(a.begin(),a.moveTo(6,.5*e-4.5),a.lineTo(10,.5*e+2.5),a.lineTo(14,.5*e-4.5),a.close(),a.fillAndStroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS?(a.begin(),a.moveTo(14,.5*e),a.lineTo(6,.5*e),a.stroke()):f===mxShapeMockupSpinner.prototype.cst.ADJ_ARROW&&
|
|
(a.begin(),a.moveTo(14,.5*e-1.5),a.lineTo(10,.5*e+2.5),a.lineTo(6,.5*e-1.5),a.close(),a.moveTo(10,.5*e-4.5),a.lineTo(10,.5*e+2.5),a.fillAndStroke()))};
|
|
mxShapeMockupSpinner.prototype.mainText=function(a,d,e,b){var c=mxUtils.getValue(this.style,mxShapeMockupSpinner.prototype.cst.MAIN_TEXT,"100").toString(),f=mxUtils.getValue(this.style,mxShapeMockupSpinner.prototype.cst.TEXT_SIZE,"17"),g=mxUtils.getValue(this.style,mxShapeMockupSpinner.prototype.cst.TEXT_COLOR,"#666666");a.setFontSize(f);a.setFontColor(g);b===mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT?a.text(.5*(d-20),.5*e,0,0,c,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0):
|
|
b===mxShapeMockupSpinner.prototype.cst.LAYOUT_LEFT?a.text(.5*(d+20),.5*e,0,0,c,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_TOP?a.text(.5*d,.5*(e+15),0,0,c,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_BOTTOM?a.text(.5*d,.5*(e-15),0,0,c,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_VERTICAL?a.text(.5*d,.5*e,
|
|
0,0,c,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0):b===mxShapeMockupSpinner.prototype.cst.LAYOUT_HORIZONTAL&&a.text(.5*d,.5*e,0,0,c,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupSpinner.prototype.cst.SHAPE_SPINNER]=mxShapeMockupSpinner;function mxShapeMockupMenuBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupMenuBar,mxShape);
|
|
mxShapeMockupMenuBar.prototype.cst={MAIN_TEXT:"mainText",SHAPE_MENU_BAR:"mxgraph.mockup.forms.menuBar",TEXT_COLOR:"textColor",TEXT_COLOR2:"textColor2",STROKE_COLOR2:"strokeColor2",FILL_COLOR2:"fillColor2",SELECTED:"+",TEXT_SIZE:"textSize"};
|
|
mxShapeMockupMenuBar.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxShapeMockupMenuBar.prototype.cst.MAIN_TEXT,"+Menu 1, Menu 2, Menu 3").toString().split(","),g=mxUtils.getValue(this.style,mxShapeMockupMenuBar.prototype.cst.TEXT_COLOR,"#666666"),h=mxUtils.getValue(this.style,mxShapeMockupMenuBar.prototype.cst.TEXT_COLOR2,"#ffffff"),k=mxUtils.getValue(this.style,mxShapeMockupMenuBar.prototype.cst.TEXT_SIZE,"17").toString(),l=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,
|
|
"#666666"),n=mxUtils.getValue(this.style,mxShapeMockupMenuBar.prototype.cst.STROKE_COLOR2,"#c4c4c4"),m=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),p=mxUtils.getValue(this.style,mxShapeMockupMenuBar.prototype.cst.FILL_COLOR2,"#008cff"),q=f.length,u=Array(q),t=0,v=-1,r=0;r<q;r++){var w=f[r];w.charAt(0)===mxShapeMockupMenuBar.prototype.cst.SELECTED&&(w=f[r].substring(1),v=r);u[r]=mxUtils.getSizeForString(w,k,mxConstants.DEFAULT_FONTFAMILY).width;t+=u[r]}c=Math.max(c,1.5*k,20);
|
|
t=10*q+t;b=Math.max(b,t);a.translate(d,e);this.background(a,b,c,10,q,u,5,t,l,n,m,p,v);a.setShadow(!1);for(r=d=0;r<q;r++)r===v?a.setFontColor(h):a.setFontColor(g),d+=5,this.buttonText(a,d,c,f[r],u[r],k,t,b),d=d+u[r]+5};
|
|
mxShapeMockupMenuBar.prototype.background=function(a,d,e,b,c,f,g,h,k,l,n,m,p){a.setStrokeColor(k);a.setFillColor(n);a.rect(0,0,d,e);a.fillAndStroke();a.setStrokeColor(l);a.begin();for(b=1;b<c;b++)if(b!==p&&b!==p+1){for(var q=l=0;q<b;q++)l+=f[q]+2*g;l=l*d/h;a.moveTo(l,0);a.lineTo(l,e)}a.stroke();if(-1!==p){c=0;a.setFillColor(m);for(b=0;b<p;b++)c+=f[b]+2*g;c=c*d/h;a.rect(c,0,(f[p]+2*g)*d/h+c-c,e);a.fill()}a.setStrokeColor(k);a.setFillColor(n);a.rect(0,0,d,e);a.stroke()};
|
|
mxShapeMockupMenuBar.prototype.buttonText=function(a,d,e,b,c,f,g,h){b.charAt(0)===mxShapeMockupMenuBar.prototype.cst.SELECTED&&(b=b.substring(1));a.setFontSize(f);a.text((d+.5*c)*h/g,.5*e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupMenuBar.prototype.cst.SHAPE_MENU_BAR]=mxShapeMockupMenuBar;function mxShapeMockupHorSlider(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupHorSlider,mxShape);mxShapeMockupHorSlider.prototype.cst={STYLE:"sliderStyle",SLIDER_BASIC:"basic",SLIDER_FANCY:"fancy",SLIDER_POS:"sliderPos",HANDLE_TRIANGLE:"triangle",HANDLE_CIRCLE:"circle",HANDLE_HANDLE:"handle",HANDLE_STYLE:"handleStyle",FILL_COLOR2:"fillColor2",SHAPE_HOR_SLIDER:"mxgraph.mockup.forms.horSlider"};
|
|
mxShapeMockupHorSlider.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupHorSlider.prototype.cst.STYLE,mxShapeMockupHorSlider.prototype.cst.SLIDER_BASIC);a.translate(d,e);this.background(a,b,c,5,f);a.setShadow(!1);this.foreground(a,b,c,5,f);this.sliderPos=20};
|
|
mxShapeMockupHorSlider.prototype.background=function(a,d,e,b,c){c===mxShapeMockupHorSlider.prototype.cst.SLIDER_BASIC?(a.begin(),a.moveTo(0,.5*e),a.lineTo(d,.5*e),a.stroke()):c===mxShapeMockupHorSlider.prototype.cst.SLIDER_FANCY&&(a.roundrect(0,.5*e-b,d,2*b,b,b),a.fillAndStroke())};
|
|
mxShapeMockupHorSlider.prototype.foreground=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupHorSlider.prototype.cst.SLIDER_POS,"20"),g=mxUtils.getValue(this.style,mxShapeMockupHorSlider.prototype.cst.HANDLE_STYLE,mxShapeMockupHorSlider.prototype.cst.HANDLE_CIRCLE),h=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),k=mxUtils.getValue(this.style,mxShapeMockupHorSlider.prototype.cst.FILL_COLOR2,"#ddeeff"),l=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,
|
|
"#999999"),f=Math.min(100,f),f=Math.max(0,f);c===mxShapeMockupHorSlider.prototype.cst.SLIDER_BASIC?(a.setStrokeColor(k),c=d*f/100,a.begin(),a.moveTo(0,.5*e),a.lineTo(c,.5*e),a.stroke(),a.setStrokeColor(l)):c===mxShapeMockupHorSlider.prototype.cst.SLIDER_FANCY&&(c=10+(d-10)*f/100,a.setFillColor(k),a.roundrect(0,.5*e-b,c,2*b,b,b),a.fillAndStroke(),a.setFillColor(h));d=5+(d-10)*f/100;g===mxShapeMockupHorSlider.prototype.cst.HANDLE_CIRCLE?(a.ellipse(d-10,.5*e-10,20,20),a.fillAndStroke()):g===mxShapeMockupHorSlider.prototype.cst.HANDLE_TRIANGLE?
|
|
(a.begin(),a.moveTo(d-10,.5*e+10),a.lineTo(d,.5*e-10),a.lineTo(d+10,.5*e+10),a.close(),a.fillAndStroke()):g===mxShapeMockupHorSlider.prototype.cst.HANDLE_HANDLE&&(a.begin(),a.moveTo(d-7,.5*e+10),a.lineTo(d-7,.5*e),a.lineTo(d,.5*e-10),a.lineTo(d+7,.5*e),a.lineTo(d+7,.5*e+10),a.close(),a.fillAndStroke())};mxCellRenderer.prototype.defaultShapes[mxShapeMockupHorSlider.prototype.cst.SHAPE_HOR_SLIDER]=mxShapeMockupHorSlider;
|
|
Graph.handleFactory[mxShapeMockupHorSlider.prototype.cst.SHAPE_HOR_SLIDER]=function(a){return[Graph.createHandle(a,["sliderPos"],function(a){var d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"sliderPos",this.sliderPos))));return new mxPoint(a.x+(a.width-10)*d/a.width/100*a.width+5,a.y+a.height/2)},function(a,e){this.state.style.sliderPos=Math.round(1E3*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/1E3})]};
|
|
function mxShapeMockupListBox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupListBox,mxShape);mxShapeMockupListBox.prototype.cst={MAIN_TEXT:"mainText",SUB_TEXT:"subText",BUTTON_TEXT:"buttonText",TEXT_SIZE:"textSize",TEXT_COLOR:"textColor",STROKE_COLOR2:"strokeColor2",STROKE_COLOR3:"strokeColor3",SELECTED_COLOR:"selectedColor",SELECTED:"+",SHAPE_LIST_BOX:"mxgraph.mockup.forms.listBox"};
|
|
mxShapeMockupListBox.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),g=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#666666"),h=mxUtils.getValue(this.style,mxShapeMockupListBox.prototype.cst.TEXT_SIZE,"17").toString(),k=-1,l=b,n=mxUtils.getValue(this.style,mxShapeMockupListBox.prototype.cst.SUB_TEXT,"Sub Text").toString().split(","),m=0;m<n.length;m++){var p=n[m];p.charAt(0)===mxShapeMockupListBox.prototype.cst.SELECTED&&
|
|
(p=n[m].substring(1),k=m);p=mxUtils.getSizeForString(p,h,mxConstants.DEFAULT_FONTFAMILY).width;p>l&&(l=p)}a.translate(d,e);b=Math.min(b,l);c=Math.max(c,30+n.length*h*1.5);this.background(a,b,c,f,g);a.setShadow(!1);this.foreground(a,b,c,g,k,n,h)};mxShapeMockupListBox.prototype.background=function(a,d,e,b,c){a.setFillColor(b);a.setStrokeColor(c);a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxShapeMockupListBox.prototype.foreground=function(a,d,e,b,c,f,g){mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1");b=mxUtils.getValue(this.style,mxShapeMockupListBox.prototype.cst.SELECTED_COLOR,"#ddeeff");-1!==c&&(a.setFillColor(b),a.rect(0,30+c*g*1.5,d,1.5*g),a.fill());a.begin();a.moveTo(0,30);a.lineTo(d,30);a.stroke();c=mxUtils.getValue(this.style,mxShapeMockupListBox.prototype.cst.MAIN_TEXT,"Window Title").toString();b=mxUtils.getValue(this.style,mxShapeMockupListBox.prototype.cst.TEXT_COLOR,
|
|
"#666666,#008cff").toString().split(",");a.setFontColor(b[1]);a.setFontSize(g);a.text(10,15,0,0,c,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFontColor(b[0]);for(c=0;c<f.length;c++)b=f[c],b.charAt(0)===mxShapeMockupListBox.prototype.cst.SELECTED&&(b=f[c].substring(1)),a.text(10,30+g*(1.5*c+.75),0,0,b,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.rect(0,0,d,e);a.stroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupListBox.prototype.cst.SHAPE_LIST_BOX]=mxShapeMockupListBox;function mxShapeMockupPwField(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupPwField,mxShape);mxShapeMockupPwField.prototype.cst={MAIN_TEXT:"mainText",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",SHAPE_PW_FIELD:"mxgraph.mockup.forms.pwField"};
|
|
mxShapeMockupPwField.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxShapeMockupPwField.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxShapeMockupPwField.prototype.foreground=function(a,d,e){d=mxUtils.getValue(this.style,mxShapeMockupPwField.prototype.cst.MAIN_TEXT,"******");var b=mxUtils.getValue(this.style,mxShapeMockupPwField.prototype.cst.TEXT_COLOR,"#666666"),c=mxUtils.getValue(this.style,mxShapeMockupPwField.prototype.cst.TEXT_SIZE,"17");a.setFontColor(b);a.setFontSize(c);a.text(5,.5*e,0,0,d,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupPwField.prototype.cst.SHAPE_PW_FIELD]=mxShapeMockupPwField;function mxShapeMockupSplitter(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupSplitter,mxShape);mxShapeMockupSplitter.prototype.cst={MAIN_TEXT:"mainText",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",SHAPE_SPLITTER:"mxgraph.mockup.forms.splitter"};
|
|
mxShapeMockupSplitter.prototype.paintVertexShape=function(a,d,e,b,c){b=Math.max(b,35);a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxShapeMockupSplitter.prototype.background=function(a,d,e){a.begin();a.moveTo(0,.5*e-5);a.lineTo(d,.5*e-5);a.lineTo(d,.5*e+5);a.lineTo(0,.5*e+5);a.close();a.fill()};
|
|
mxShapeMockupSplitter.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#999999");a.begin();a.moveTo(0,.5*e-5);a.lineTo(d,.5*e-5);a.moveTo(d,.5*e+5);a.lineTo(0,.5*e+5);a.stroke();a.setFillColor(b);a.ellipse(.5*d-17,.5*e-2,4,4);a.fill();a.ellipse(.5*d-2,.5*e-2,4,4);a.fill();a.ellipse(.5*d+13,.5*e-2,4,4);a.fill()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupSplitter.prototype.cst.SHAPE_SPLITTER]=mxShapeMockupSplitter;
|
|
function mxShapeMockupWedgeBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupWedgeBar,mxShape);mxShapeMockupWedgeBar.prototype.cst={BLOCK:"block",CONE:"cone",HALF_CONE:"halfCone",ROUND:"round",TEXT_SIZE:"textSize",TAB_NAMES:"tabs",TAB_STYLE:"tabStyle",STYLE_FILLCOLOR2:"fillColor2",TEXT_COLOR:"textColor",SEL_TEXT_COLOR:"textColor2",SHAPE_WEDGE_BAR:"mxgraph.mockup.forms.wedgeBar"};
|
|
mxShapeMockupWedgeBar.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxShapeMockupWedgeBar.prototype.cst.TEXT_SIZE,"17").toString(),g=mxUtils.getValue(this.style,mxShapeMockupWedgeBar.prototype.cst.TAB_NAMES,"Tab 1,+Tab 2,Tab 3").toString().split(","),h=1.5*f,k=g.length,l=20+5*(k-1)+20*k,n=[],m=-1,p=0;p<k;p++){var q=g[p];"+"===q.charAt(0)&&(q=q.substring(1),m=p);q=mxUtils.getSizeForString(q,f,mxConstants.DEFAULT_FONTFAMILY).width;n[p]=0===q?42:q;l+=n[p]}b=Math.max(b,
|
|
l);c=Math.max(c,h+5);a.translate(d,e);a.setShadow(!1);this.backTabs(a,b,c,5,h,10,5,10,k,n,m);this.focusTab(a,b,c,5,h,10,5,10,k,n,m);this.tabText(a,b,c,5,h,10,5,10,k,n,m,g)};
|
|
mxShapeMockupWedgeBar.prototype.backTabs=function(a,d,e,b,c,f,g,h,k,l,n){d=mxUtils.getValue(this.style,mxShapeMockupWedgeBar.prototype.cst.TAB_STYLE,mxShapeMockupWedgeBar.prototype.cst.BLOCK);for(e=0;e<k;e++){var m=l[e]+2*h;n!==e&&(d===mxShapeMockupWedgeBar.prototype.cst.BLOCK?(a.begin(),a.moveTo(f,c),a.lineTo(f,0),a.lineTo(f+m,0),a.lineTo(f+m,c)):d===mxShapeMockupWedgeBar.prototype.cst.CONE?(a.begin(),a.moveTo(f,c),a.lineTo(f+.5*h,0),a.lineTo(f+m-.5*h,0),a.lineTo(f+m,c)):d===mxShapeMockupWedgeBar.prototype.cst.HALF_CONE?
|
|
(a.begin(),a.moveTo(f,c),a.lineTo(f+.5*h,0),a.lineTo(f+m,0),a.lineTo(f+m,c)):d===mxShapeMockupWedgeBar.prototype.cst.ROUND&&(a.begin(),a.moveTo(f-b,c),a.arcTo(b,b,0,0,0,f,c-b),a.lineTo(f,b),a.arcTo(b,b,0,0,1,f+b,0),a.lineTo(f+m-b,0),a.arcTo(b,b,0,0,1,f+m,b),a.lineTo(f+m,c-b),a.arcTo(b,b,0,0,0,f+m+b,c)),a.fillAndStroke());f=f+m+g}};
|
|
mxShapeMockupWedgeBar.prototype.focusTab=function(a,d,e,b,c,f,g,h,k,l,n){d=mxUtils.getValue(this.style,mxShapeMockupWedgeBar.prototype.cst.TAB_STYLE,mxShapeMockupWedgeBar.prototype.cst.BLOCK);e=mxUtils.getValue(this.style,mxShapeMockupWedgeBar.prototype.cst.STYLE_FILLCOLOR2,"#008cff");a.setStrokeColor(e);a.setFillColor(e);for(e=0;e<=n;e++)k=l[e]+2*h,n===e&&(d===mxShapeMockupWedgeBar.prototype.cst.BLOCK?(a.begin(),a.moveTo(f,c),a.lineTo(f,0),a.lineTo(f+k,0),a.lineTo(f+k,c)):d===mxShapeMockupWedgeBar.prototype.cst.CONE?
|
|
(a.begin(),a.moveTo(f,c),a.lineTo(f+.5*h,0),a.lineTo(f+k-.5*h,0),a.lineTo(f+k,c)):d===mxShapeMockupWedgeBar.prototype.cst.HALF_CONE?(a.begin(),a.moveTo(f,c),a.lineTo(f+.5*h,0),a.lineTo(f+k,0),a.lineTo(f+k,c)):d===mxShapeMockupWedgeBar.prototype.cst.ROUND&&(a.begin(),a.moveTo(f-b,c),a.arcTo(b,b,0,0,0,f,c-b),a.lineTo(f,b),a.arcTo(b,b,0,0,1,f+b,0),a.lineTo(f+k-b,0),a.arcTo(b,b,0,0,1,f+k,b),a.lineTo(f+k,c-b),a.arcTo(b,b,0,0,0,f+k+b,c)),a.fillAndStroke()),f=f+k+g};
|
|
mxShapeMockupWedgeBar.prototype.tabText=function(a,d,e,b,c,f,g,h,k,l,n,m){d=mxUtils.getValue(this.style,mxShapeMockupWedgeBar.prototype.cst.TEXT_COLOR,"#666666");e=mxUtils.getValue(this.style,mxShapeMockupWedgeBar.prototype.cst.SEL_TEXT_COLOR,"#ffffff");b=mxUtils.getValue(this.style,mxShapeMockupWedgeBar.prototype.cst.TEXT_SIZE,"17").toString();a.setFontColor(d);a.setFontSize(b);for(b=0;b<k;b++){var p=m[b];b===n&&a.setFontColor(e);"+"===p.charAt(0)&&(p=p.substring(1));var q=l[b]+2*h;a.text(f+h,.5*
|
|
c,0,0,p,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);f=f+q+g;b===n&&a.setFontColor(d)}};mxCellRenderer.prototype.defaultShapes[mxShapeMockupWedgeBar.prototype.cst.SHAPE_WEDGE_BAR]=mxShapeMockupWedgeBar;function mxShapeMockupSearchBox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupSearchBox,mxShape);
|
|
mxShapeMockupSearchBox.prototype.cst={MAIN_TEXT:"mainText",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",STROKE_COLOR2:"strokeColor2",SHAPE_SEARCH_BOX:"mxgraph.mockup.forms.searchBox"};mxShapeMockupSearchBox.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxShapeMockupSearchBox.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxShapeMockupSearchBox.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxShapeMockupSearchBox.prototype.cst.MAIN_TEXT,"Search"),c=mxUtils.getValue(this.style,mxShapeMockupSearchBox.prototype.cst.TEXT_COLOR,"#666666"),f=mxUtils.getValue(this.style,mxShapeMockupSearchBox.prototype.cst.STROKE_COLOR2,"#008cff"),g=mxUtils.getValue(this.style,mxShapeMockupSearchBox.prototype.cst.TEXT_SIZE,"17");a.setFontColor(c);a.setFontSize(g);a.text(5,.5*e,0,0,b,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,
|
|
0,null,0,0,0);a.setStrokeColor(f);a.ellipse(d-15,.5*e-8,10,10);a.stroke();a.begin();a.moveTo(d-19,.5*e+9);a.lineTo(d-13,.5*e+1);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupSearchBox.prototype.cst.SHAPE_SEARCH_BOX]=mxShapeMockupSearchBox;function mxShapeMockupSignIn(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupSignIn,mxShape);
|
|
mxShapeMockupSignIn.prototype.cst={MAIN_TEXT:"mainText",TEXT_COLOR:"textColor",TEXT_COLOR2:"textColor2",TEXT_SIZE:"textSize",TEXT_SIZE2:"textSize2",STROKE_COLOR2:"strokeColor2",FILL_COLOR2:"fillColor2",SHAPE_SIGN_IN:"mxgraph.mockup.forms.signIn"};mxShapeMockupSignIn.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxShapeMockupSignIn.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxShapeMockupSignIn.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxShapeMockupSignIn.prototype.cst.MAIN_TEXT,"Sign In,User Name:,johndoe,Password:,********,Forgot Password?,New User,SIGN IN,SIGN UP").toString().split(","),c=mxUtils.getValue(this.style,mxShapeMockupSignIn.prototype.cst.TEXT_COLOR,"#666666"),f=mxUtils.getValue(this.style,mxShapeMockupSignIn.prototype.cst.TEXT_COLOR2,"#ffffff"),g=mxUtils.getValue(this.style,mxShapeMockupSignIn.prototype.cst.TEXT_SIZE,"12"),
|
|
h=mxUtils.getValue(this.style,mxShapeMockupSignIn.prototype.cst.TEXT_SIZE2,"15"),k=mxUtils.getValue(this.style,mxShapeMockupSignIn.prototype.cst.STROKE_COLOR2,"#ddeeff"),l=mxUtils.getValue(this.style,mxShapeMockupSignIn.prototype.cst.FILL_COLOR2,"#66bbff");a.setFillColor(l);a.roundrect(.09*d,.52*e,.36*d,.09*e,5,5);a.fill();a.roundrect(.09*d,.84*e,.36*d,.09*e,5,5);a.fill();a.rect(.05*d,.22*e,.75*d,.08*e);a.stroke();a.rect(.05*d,.4*e,.75*d,.08*e);a.stroke();a.setStrokeColor(k);a.setStrokeWidth(2);a.begin();
|
|
a.moveTo(.05*d,.12*e);a.lineTo(.95*d,.12*e);a.moveTo(.05*d,.72*e);a.lineTo(.95*d,.72*e);a.stroke();a.setFontColor(c);a.setFontSize(g);a.text(.05*d,.1*e,0,0,b[0],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM,0,null,0,0,0);a.text(.05*d,.2*e,0,0,b[1],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM,0,null,0,0,0);a.text(.075*d,.26*e,0,0,b[2],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.05*d,.38*e,0,0,b[3],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM,0,null,0,0,0);a.text(.075*
|
|
d,.44*e,0,0,b[4],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.05*d,.8*e,0,0,b[6],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setStrokeWidth(1);a.setFontColor("#9999ff");a.setStrokeColor("#9999ff");c=mxUtils.getSizeForString(b[5],g,mxConstants.DEFAULT_FONTFAMILY).width;a.text(.05*d,.7*e,0,0,b[5],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM,0,null,0,0,0);a.begin();a.moveTo(.05*d,.7*e);a.lineTo(.05*d+c,.7*e);a.stroke();a.setFontColor(f);a.setFontStyle(mxConstants.FONT_BOLD);
|
|
a.setFontSize(h);a.text(.27*d,.565*e,0,0,b[7],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.27*d,.885*e,0,0,b[8],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupSignIn.prototype.cst.SHAPE_SIGN_IN]=mxShapeMockupSignIn;function mxShapeMockupCalendar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupCalendar,mxShape);
|
|
mxShapeMockupCalendar.prototype.cst={SHAPE_CALENDAR:"mxgraph.mockup.forms.calendar",DAYS:"days",SELECTED_DAY:"selDay",PREV_DAYS:"prevDays",FIRST_DAY:"firstDay",START_ON:"startOn",DAY_NAMES:"dayNames",MAIN_TEXT:"mainText",TEXT_SIZE:"textSize",TEXT_COLOR:"textColor",TEXT_COLOR2:"textColor2",STROKE_COLOR2:"strokeColor2",FILL_COLOR2:"fillColor2"};mxShapeMockupCalendar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};
|
|
mxShapeMockupCalendar.prototype.background=function(a,d,e){a.roundrect(0,0,d,e,.0312*d,.0286*e);a.fillAndStroke()};
|
|
mxShapeMockupCalendar.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#999999"),c=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),f=mxUtils.getValue(this.style,mxShapeMockupCalendar.prototype.cst.STROKE_COLOR2,"#008cff"),g=mxUtils.getValue(this.style,mxShapeMockupCalendar.prototype.cst.FILL_COLOR2,"#ddeeff"),h=mxUtils.getValue(this.style,mxShapeMockupCalendar.prototype.cst.MAIN_TEXT,""),k=mxUtils.getValue(this.style,mxShapeMockupCalendar.prototype.cst.TEXT_SIZE,
|
|
"15"),l=mxUtils.getValue(this.style,mxShapeMockupCalendar.prototype.cst.TEXT_COLOR,"#999999"),n=mxUtils.getValue(this.style,mxShapeMockupCalendar.prototype.cst.TEXT_COLOR2,"#ffffff"),m=parseInt(mxUtils.getValue(this.style,mxShapeMockupCalendar.prototype.cst.DAYS,"30"),10),p=parseInt(mxUtils.getValue(this.style,mxShapeMockupCalendar.prototype.cst.PREV_DAYS,"31"),10),q=parseInt(mxUtils.getValue(this.style,mxShapeMockupCalendar.prototype.cst.FIRST_DAY,"0"),10),u=parseInt(mxUtils.getValue(this.style,
|
|
mxShapeMockupCalendar.prototype.cst.START_ON,"6",10)),t=mxUtils.getValue(this.style,mxShapeMockupCalendar.prototype.cst.DAY_NAMES,"Mo,Tu,We,Th,Fr,Sa,Su").toString().split(","),v=parseInt(mxUtils.getValue(this.style,mxShapeMockupCalendar.prototype.cst.SELECTED_DAY,"24"),10);fistDay=Math.max(q,0);u=Math.max(u,0);fistDay=Math.min(q,6);u=Math.min(u,6);a.roundrect(.05*d,.0457*e,.1438*d,.1029*e,.025*d,.0229*e);a.stroke();a.roundrect(.8125*d,.0457*e,.1438*d,.1029*e,.025*d,.0229*e);a.stroke();a.setStrokeWidth(2);
|
|
a.setStrokeColor(f);a.begin();a.moveTo(.1438*d,.0743*e);a.lineTo(.1*d,.0971*e);a.lineTo(.1438*d,.12*e);a.moveTo(.8625*d,.0743*e);a.lineTo(.9062*d,.0971*e);a.lineTo(.8625*d,.12*e);a.stroke();a.setFontSize(k);a.setFontColor(l);a.text(.5*d,.0971*e,0,0,h,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);h=.875*d/7;for(k=0;7>k;k++){var l=.0625*d+.5*h+k*h,r=k+u;6<r&&(r-=7);a.text(l,.2114*e,0,0,t[r],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)}a.setStrokeWidth(1);var w=0,
|
|
r=t=-1;if(q!==u){a.setStrokeColor(b);a.setFillColor(g);q-=u;0>q&&(q+=7);for(k=0;k<q;k++)l=.0625*d+k*h,a.rect(l,.2686*e,h,.1143*e),a.fillAndStroke(),a.text(l+.5*h,.2686*e+.5*h,0,0,(p-q+k+1).toString(),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);w=q}a.setFillColor(c);a.setStrokeColor(b);for(k=b=0;k<m;k++)c=k+1,l=.0625*d+w*h,p=.2686*e+b*e*.1143,c===v?(t=l,r=p):(a.rect(l,p,h,.1143*e),a.fillAndStroke(),a.text(l+.5*h,p+.5*h,0,0,c.toString(),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,
|
|
0,null,0,0,0)),6>w?w++:(w=0,b++);k=1;for(a.setFillColor(g);6>b;)l=.0625*d+w*h,p=.2686*e+b*e*.1143,a.rect(l,p,h,.1143*e),a.fillAndStroke(),a.text(l+.5*h,p+.5*h,0,0,k.toString(),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),6>w?w++:(w=0,b++),k++;0<=t&&(a.setStrokeColor("#ff0000"),a.setStrokeWidth(2),a.setFillColor(f),a.setFontColor(n),a.rect(t,r,h,.1143*e),a.fillAndStroke(),a.text(t+.5*h,r+.5*h,0,0,v.toString(),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0))};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupCalendar.prototype.cst.SHAPE_CALENDAR]=mxShapeMockupCalendar;function mxShapeMockupEmailForm(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupEmailForm,mxShape);mxShapeMockupEmailForm.prototype.cst={MAIN_TEXT:"mainText",TEXT_COLOR:"textColor",SHOW_CC:"showCC",SHOW_BCC:"showBCC",TEXT_SIZE:"textSize",SHAPE_EMAIL_FORM:"mxgraph.mockup.forms.emailForm"};
|
|
mxShapeMockupEmailForm.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupEmailForm.prototype.cst.TEXT_SIZE,"12"),g=mxUtils.getValue(this.style,mxShapeMockupEmailForm.prototype.cst.SHOW_CC,"true"),h=mxUtils.getValue(this.style,mxShapeMockupEmailForm.prototype.cst.SHOW_BCC,"true"),k=4*f,l=0;"true"===g&&l++;"true"===h&&l++;b=Math.max(b,5*f);c=Math.max(c,10.5*f+l*f*3);a.translate(d,e);this.background(a,b,c,f,k,g,h);a.setShadow(!1);this.foreground(a,b,c,f,k,
|
|
g,h)};mxShapeMockupEmailForm.prototype.background=function(a,d,e,b,c,f,g){var h=9*b;"true"===f&&(h+=3*b,a.rect(c,9*b,d-c,1.5*b),a.fillAndStroke());"true"===g&&(a.rect(c,h,d-c,1.5*b),h+=3*b,a.fillAndStroke());a.rect(c,0,d-c,1.5*b);a.fillAndStroke();a.rect(c,3*b,d-c,1.5*b);a.fillAndStroke();a.rect(c,6*b,d-c,1.5*b);a.fillAndStroke();a.rect(0,h,d,e-h);a.fillAndStroke()};
|
|
mxShapeMockupEmailForm.prototype.foreground=function(a,d,e,b,c,f,g){d=mxUtils.getValue(this.style,mxShapeMockupEmailForm.prototype.cst.MAIN_TEXT,"john@jgraph.com,Greeting,fred@jgraph.com,,,Lorem ipsum").toString().split(",");e=mxUtils.getValue(this.style,mxShapeMockupEmailForm.prototype.cst.TEXT_COLOR,"#666666");a.setFontColor(e);a.setFontSize(b);a.text(c-.5*b,.75*b,0,0,"From",mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(c-.5*b,3.75*b,0,0,"Subject",mxConstants.ALIGN_RIGHT,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(c-.5*b,6.75*b,0,0,"To",mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(c+.5*b,.75*b,0,0,d[0],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(c+.5*b,3.75*b,0,0,d[1],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(c+.5*b,6.75*b,0,0,d[2],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);e=9*b;"true"===f&&(e+=3*b,a.text(c-.5*b,9.75*b,0,0,"CC",mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,
|
|
0,null,0,0,0),a.text(c+.5*b,9.75*b,0,0,d[3],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0));"true"===g&&(a.text(c-.5*b,e+.75*b,0,0,"BCC",mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),a.text(c+.5*b,e+.75*b,0,0,d[4],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),e+=3*b);a.text(.5*b,e+.75*b,0,0,d[5],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupEmailForm.prototype.cst.SHAPE_EMAIL_FORM]=mxShapeMockupEmailForm;function mxShapeMockupFormsRRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupFormsRRect,mxShape);mxShapeMockupFormsRRect.prototype.cst={RRECT:"mxgraph.mockup.forms.rrect",R_SIZE:"rSize"};
|
|
mxShapeMockupFormsRRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupFormsRRect.prototype.cst.R_SIZE,"10"));a.roundrect(0,0,b,c,d);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeMockupFormsRRect.prototype.cst.RRECT,mxShapeMockupFormsRRect);function mxShapeMockupFormsAnchor(a,d,e,b){mxShape.call(this);this.bounds=a}mxUtils.extend(mxShapeMockupFormsAnchor,mxShape);mxShapeMockupFormsAnchor.prototype.cst={ANCHOR:"mxgraph.mockup.forms.anchor"};
|
|
mxShapeMockupFormsAnchor.prototype.paintVertexShape=function(a,d,e,b,c){};mxCellRenderer.registerShape(mxShapeMockupFormsAnchor.prototype.cst.ANCHOR,mxShapeMockupFormsAnchor);function mxShapeMockupFormsCheckbox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupFormsCheckbox,mxShape);mxShapeMockupFormsCheckbox.prototype.cst={CHECKBOX:"mxgraph.mockup.forms.checkbox"};
|
|
mxShapeMockupFormsCheckbox.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,0,b,c);a.fillAndStroke();a.begin();a.moveTo(.8*b,.2*c);a.lineTo(.4*b,.8*c);a.lineTo(.25*b,.6*c);a.stroke()};mxCellRenderer.registerShape(mxShapeMockupFormsCheckbox.prototype.cst.CHECKBOX,mxShapeMockupFormsCheckbox);function mxShapeMockupFormsURect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupFormsURect,mxShape);
|
|
mxShapeMockupFormsURect.prototype.cst={U_RECT:"mxgraph.mockup.forms.uRect"};mxShapeMockupFormsURect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(0,c);a.lineTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeMockupFormsURect.prototype.cst.U_RECT,mxShapeMockupFormsURect);function mxShapeMockupBarChart(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupBarChart,mxShape);mxShapeMockupBarChart.prototype.cst={STROKE_COLOR2:"strokeColor2",STROKE_COLOR3:"strokeColor3",FILL_COLOR2:"fillColor2",FILL_COLOR3:"fillColor3",SHAPE_BAR_CHART:"mxgraph.mockup.graphics.barChart"};mxShapeMockupBarChart.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);"none"!==mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"none")&&a.setShadow(!1);this.bars(a,d,e,b,c)};
|
|
mxShapeMockupBarChart.prototype.background=function(a,d,e,b,c,f,g){a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupBarChart.prototype.bars=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapeMockupBarChart.prototype.cst.STROKE_COLOR2,"none");e=mxUtils.getValue(this.style,mxShapeMockupBarChart.prototype.cst.STROKE_COLOR3,"#666666");var f=mxUtils.getValue(this.style,mxShapeMockupBarChart.prototype.cst.FILL_COLOR2,"#008cff"),g=mxUtils.getValue(this.style,mxShapeMockupBarChart.prototype.cst.FILL_COLOR3,"#dddddd"),h=mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1");a.setStrokeColor(d);
|
|
a.setFillColor(f);a.rect(0,.2*c,.75*b,.05*c);a.fillAndStroke();a.rect(0,.45*c,.6*b,.05*c);a.fillAndStroke();a.rect(0,.7*c,.95*b,.05*c);a.fillAndStroke();a.setFillColor(g);a.rect(0,.25*c,.85*b,.05*c);a.fillAndStroke();a.rect(0,.5*c,.65*b,.05*c);a.fillAndStroke();a.rect(0,.75*c,.8*b,.05*c);a.fillAndStroke();a.setStrokeWidth(2*h);a.setStrokeColor(e);a.setShadow(!1);a.begin();a.moveTo(0,0);a.lineTo(0,c);a.lineTo(b,c);a.stroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupBarChart.prototype.cst.SHAPE_BAR_CHART]=mxShapeMockupBarChart;function mxShapeMockupColumnChart(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupColumnChart,mxShape);mxShapeMockupColumnChart.prototype.cst={STROKE_COLOR2:"strokeColor2",STROKE_COLOR3:"strokeColor3",FILL_COLOR2:"fillColor2",FILL_COLOR3:"fillColor3",SHAPE_COLUMN_CHART:"mxgraph.mockup.graphics.columnChart"};
|
|
mxShapeMockupColumnChart.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);"none"!==mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"none")&&a.setShadow(!1);this.bars(a,d,e,b,c)};mxShapeMockupColumnChart.prototype.background=function(a,d,e,b,c,f,g){a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupColumnChart.prototype.bars=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapeMockupColumnChart.prototype.cst.STROKE_COLOR2,"none");e=mxUtils.getValue(this.style,mxShapeMockupColumnChart.prototype.cst.STROKE_COLOR3,"#666666");var f=mxUtils.getValue(this.style,mxShapeMockupColumnChart.prototype.cst.FILL_COLOR2,"#008cff"),g=mxUtils.getValue(this.style,mxShapeMockupColumnChart.prototype.cst.FILL_COLOR3,"#dddddd"),h=mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1");a.setStrokeColor(d);
|
|
a.setFillColor(f);a.rect(.2*b,.25*c,.05*b,.75*c);a.fillAndStroke();a.rect(.45*b,.4*c,.05*b,.6*c);a.fillAndStroke();a.rect(.7*b,.05*c,.05*b,.95*c);a.fillAndStroke();a.setFillColor(g);a.rect(.25*b,.15*c,.05*b,.85*c);a.fillAndStroke();a.rect(.5*b,.35*c,.05*b,.65*c);a.fillAndStroke();a.rect(.75*b,.2*c,.05*b,.8*c);a.fillAndStroke();a.setStrokeWidth(2*h);a.setStrokeColor(e);a.setShadow(!1);a.begin();a.moveTo(0,0);a.lineTo(0,c);a.lineTo(b,c);a.stroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupColumnChart.prototype.cst.SHAPE_COLUMN_CHART]=mxShapeMockupColumnChart;function mxShapeMockupLineChart(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupLineChart,mxShape);mxShapeMockupLineChart.prototype.cst={STROKE_COLOR2:"strokeColor2",STROKE_COLOR3:"strokeColor3",STROKE_COLOR4:"strokeColor4",SHAPE_LINE_CHART:"mxgraph.mockup.graphics.lineChart"};
|
|
mxShapeMockupLineChart.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);"none"!==mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"none")&&a.setShadow(!1);this.bars(a,d,e,b,c)};mxShapeMockupLineChart.prototype.background=function(a,d,e,b,c,f,g){a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupLineChart.prototype.bars=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapeMockupLineChart.prototype.cst.STROKE_COLOR2,"#666666");e=mxUtils.getValue(this.style,mxShapeMockupLineChart.prototype.cst.STROKE_COLOR3,"#008cff");var f=mxUtils.getValue(this.style,mxShapeMockupLineChart.prototype.cst.STROKE_COLOR4,"#dddddd"),g=mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1");a.setStrokeWidth(2*g);a.setStrokeColor(f);a.begin();a.moveTo(0,c);a.lineTo(.3*b,.5*c);a.lineTo(.6*
|
|
b,.74*c);a.lineTo(.9*b,.24*c);a.stroke();a.setStrokeColor(e);a.begin();a.moveTo(0,c);a.lineTo(.3*b,.65*c);a.lineTo(.6*b,.6*c);a.lineTo(.9*b,.35*c);a.stroke();a.setStrokeColor(d);a.setShadow(!1);a.begin();a.moveTo(0,0);a.lineTo(0,c);a.lineTo(b,c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupLineChart.prototype.cst.SHAPE_LINE_CHART]=mxShapeMockupLineChart;
|
|
function mxShapeMockupPieChart(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupPieChart,mxShape);mxShapeMockupPieChart.prototype.cst={PARTS:"parts",PART_COLORS:"partColors",SHAPE_PIE_CHART:"mxgraph.mockup.graphics.pieChart"};mxShapeMockupPieChart.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeMockupPieChart.prototype.background=function(a,d,e,b,c,f,g){a.ellipse(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupPieChart.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapeMockupPieChart.prototype.cst.PARTS,"10,20,30").toString().split(",");e=d.length;for(var f=mxUtils.getValue(this.style,mxShapeMockupPieChart.prototype.cst.PART_COLORS,"#333333,#666666,#999999").toString().split(","),g=0,h=0;h<e;h++)g+=parseInt(d[h],10);for(h=0;h<e;h++){f.length>h?a.setFillColor(f[h]):a.setFillColor("#ff0000");var k=0,l;l=parseInt(d[h],10)/g;.5===l&&(l=.501);for(var n=0;n<h;n++)k+=parseInt(d[n],
|
|
10)/g;l+=k;var m=2*Math.PI*k,p=2*Math.PI*l,n=.5*b-b*Math.sin(m)*.5,m=.5*c-c*Math.cos(m)*.5,q=.5*b-b*Math.sin(p)*.5,p=.5*c-c*Math.cos(p)*.5,u=1;.5>l-k&&(u=0);a.begin();a.moveTo(.5*b,.5*c);a.lineTo(q,p);a.arcTo(.5*b,.5*c,0,u,1,n,m);a.close();a.fillAndStroke()}};mxCellRenderer.prototype.defaultShapes[mxShapeMockupPieChart.prototype.cst.SHAPE_PIE_CHART]=mxShapeMockupPieChart;
|
|
function mxShapeMockupIconGrid(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupIconGrid,mxShape);mxShapeMockupIconGrid.prototype.cst={GRID_SIZE:"gridSize",SHAPE_ICON_GRID:"mxgraph.mockup.graphics.iconGrid"};
|
|
mxShapeMockupIconGrid.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=mxUtils.getValue(this.style,mxShapeMockupIconGrid.prototype.cst.GRID_SIZE,"3,3").toString().split(",");this.background(a,b,c,d);a.setShadow(!1);this.foreground(a,b,c,d)};mxShapeMockupIconGrid.prototype.background=function(a,d,e,b){d/=parseInt(b[0],10)+.5*(b[0]-1);e/=parseInt(b[1],10)+.5*(b[1]-1);for(var c=0;c<b[0];c++)for(var f=0;f<b[1];f++)a.rect(1.5*d*c,1.5*e*f,d,e),a.fillAndStroke()};
|
|
mxShapeMockupIconGrid.prototype.foreground=function(a,d,e,b){d/=parseInt(b[0],10)+.5*(b[0]-1);e/=parseInt(b[1],10)+.5*(b[1]-1);for(var c=0;c<b[0];c++)for(var f=0;f<b[1];f++)a.begin(),a.moveTo(1.5*d*c,1.5*e*f),a.lineTo(1.5*d*c+d,1.5*e*f+e),a.moveTo(1.5*d*c+d,1.5*e*f),a.lineTo(1.5*d*c,1.5*e*f+e),a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupIconGrid.prototype.cst.SHAPE_ICON_GRID]=mxShapeMockupIconGrid;
|
|
function mxShapeMockupBubbleChart(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupBubbleChart,mxShape);mxShapeMockupBubbleChart.prototype.cst={STROKE_COLOR2:"strokeColor2",STROKE_COLOR3:"strokeColor3",FILL_COLOR2:"fillColor2",FILL_COLOR3:"fillColor3",SHAPE_BUBBLE_CHART:"mxgraph.mockup.graphics.bubbleChart"};
|
|
mxShapeMockupBubbleChart.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);"none"!==mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"none")&&a.setShadow(!1);this.bars(a,d,e,b,c)};mxShapeMockupBubbleChart.prototype.background=function(a,d,e,b,c,f,g){a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupBubbleChart.prototype.bars=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupBubbleChart.prototype.cst.STROKE_COLOR2,"none");d=mxUtils.getValue(this.style,mxShapeMockupBubbleChart.prototype.cst.STROKE_COLOR3,"#666666");var g=mxUtils.getValue(this.style,mxShapeMockupBubbleChart.prototype.cst.FILL_COLOR2,"#008cff");e=mxUtils.getValue(this.style,mxShapeMockupBubbleChart.prototype.cst.FILL_COLOR3,"#dddddd");var h=mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,
|
|
"1");a.setStrokeColor(f);a.setFillColor(g);f=.14*Math.min(c,b);a.ellipse(.4*b-f,.45*c-f,2*f,2*f);a.fillAndStroke();f=.1*Math.min(c,b);a.ellipse(.1*b-f,.8*c-f,2*f,2*f);a.fillAndStroke();f=.22*Math.min(c,b);a.ellipse(.7*b-f,.7*c-f,2*f,2*f);a.fillAndStroke();a.setFillColor(e);f=.19*Math.min(c,b);a.ellipse(.15*b-f,.25*c-f,2*f,2*f);a.fillAndStroke();f=.12*Math.min(c,b);a.ellipse(.48*b-f,.7*c-f,2*f,2*f);a.fillAndStroke();f=.1*Math.min(c,b);a.ellipse(.74*b-f,.17*c-f,2*f,2*f);a.fillAndStroke();a.setStrokeWidth(2*
|
|
h);a.setStrokeColor(d);a.setShadow(!1);a.begin();a.moveTo(0,0);a.lineTo(0,c);a.lineTo(b,c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupBubbleChart.prototype.cst.SHAPE_BUBBLE_CHART]=mxShapeMockupBubbleChart;function mxShapeMockupGauge(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.gaugePos=25}mxUtils.extend(mxShapeMockupGauge,mxShape);
|
|
mxShapeMockupGauge.prototype.cst={SCALE_COLORS:"scaleColors",GAUGE_LABELS:"gaugeLabels",NEEDLE_COLOR:"needleColor",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",GAUGE_POS:"gaugePos",SHAPE_GAUGE:"mxgraph.mockup.graphics.gauge"};mxShapeMockupGauge.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxShapeMockupGauge.prototype.background=function(a,d,e){a.ellipse(0,0,d,e);a.fillAndStroke()};
|
|
mxShapeMockupGauge.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxShapeMockupGauge.prototype.cst.GAUGE_POS,"0"),c=mxUtils.getValue(this.style,mxShapeMockupGauge.prototype.cst.SCALE_COLORS,"#888888,#aaaaaa,#444444").toString().split(","),f=mxUtils.getValue(this.style,mxShapeMockupGauge.prototype.cst.GAUGE_LABELS,"CPU[%],0,100").toString().split(","),g=mxUtils.getValue(this.style,mxShapeMockupGauge.prototype.cst.NEEDLE_COLOR,"#008cff"),h=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,
|
|
"#ffffff"),k=mxUtils.getValue(this.style,mxShapeMockupGauge.prototype.cst.TEXT_COLOR,"#666666"),l=mxUtils.getValue(this.style,mxShapeMockupGauge.prototype.cst.TEXT_SIZE,"12"),b=Math.max(0,b),b=Math.min(100,b);a.setFillColor(c[1]);a.begin();a.moveTo(.05*d,.5*e);a.arcTo(.4*d,.4*e,0,0,1,.95*d,.5*e);a.lineTo(d,.5*e);a.arcTo(.5*d,.5*e,0,0,0,0,.5*e);a.close();a.fill();a.setFillColor(c[0]);a.begin();a.moveTo(.05*d,.5*e);a.arcTo(.45*d,.45*e,0,0,0,.182*d,.818*e);a.lineTo(.146*d,.854*e);a.arcTo(.5*d,.5*e,0,
|
|
0,1,0,.5*e);a.close();a.fill();a.setFillColor(c[2]);a.begin();a.moveTo(d,.5*e);a.arcTo(.5*d,.5*e,0,0,1,.854*d,.854*e);a.lineTo(.818*d,.818*e);a.arcTo(.45*d,.45*e,0,0,0,.95*d,.5*e);a.close();a.fill();a.setFontSize(l);a.setFontColor(k);a.text(.5*d,.3*e,0,0,f[0],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.2*d,.85*e,0,0,f[1],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.8*d,.85*e,0,0,f[2],mxConstants.ALIGN_RIGHT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);
|
|
b=.75*(2*Math.PI*parseFloat(b)/100)+1.25*Math.PI;c=.5*d+.38*d*Math.sin(b);f=.5*e-.38*e*Math.cos(b);a.setFillColor(g);a.begin();a.moveTo(c,f);c=.5*d+.05*d*Math.cos(b);f=.5*e+.05*e*Math.sin(b);a.lineTo(c,f);g=.5*d+-.05*d*Math.sin(b);c=.5*e- -.05*e*Math.cos(b);a.arcTo(.05*d,.05*e,0,0,1,g,c);g=.5*d-.05*d*Math.cos(b);c=.5*e-.05*e*Math.sin(b);a.arcTo(.05*d,.05*e,0,0,1,g,c);a.close();a.fill();a.setFillColor(h);a.begin();a.moveTo(.49*d,.49*e);a.lineTo(.51*d,.49*e);a.lineTo(.51*d,.51*e);a.lineTo(.49*d,.51*
|
|
e);a.close();a.fill();a.begin();a.ellipse(0,0,d,e);a.stroke();a.begin();a.moveTo(.146*d,.854*e);a.lineTo(.219*d,.781*e);a.moveTo(.854*d,.854*e);a.lineTo(.781*d,.781*e);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupGauge.prototype.cst.SHAPE_GAUGE]=mxShapeMockupGauge;
|
|
Graph.handleFactory[mxShapeMockupGauge.prototype.cst.SHAPE_GAUGE]=function(a){return[Graph.createHandle(a,["gaugePos"],function(a){var d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"gaugePos",this.gaugePos))));return new mxPoint(a.x+.2*a.width+.6*d*a.width/100,a.y+.8*a.height)},function(a,e){this.state.style.gaugePos=Math.round(1E3*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/1E3})]};
|
|
function mxShapeMockupPlotChart(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupPlotChart,mxShape);mxShapeMockupPlotChart.prototype.cst={STROKE_COLOR2:"strokeColor2",STROKE_COLOR3:"strokeColor3",SHAPES_COLORS:"fillColor2",SHAPE_PLOT_CHART:"mxgraph.mockup.graphics.plotChart"};
|
|
mxShapeMockupPlotChart.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);"none"!==mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"none")&&a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeMockupPlotChart.prototype.background=function(a,d,e,b,c,f,g){a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupPlotChart.prototype.foreground=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupPlotChart.prototype.cst.STROKE_COLOR2,"#dddddd");d=mxUtils.getValue(this.style,mxShapeMockupPlotChart.prototype.cst.STROKE_COLOR3,"#666666");e=mxUtils.getValue(this.style,mxShapeMockupPlotChart.prototype.cst.SHAPES_COLORS,"#00aaff,#0044ff,#008cff").toString().split(",");var g=mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1"),h=.03*Math.min(b,c);a.setStrokeColor(f);a.setFillColor(e[0]);
|
|
var f=.2*b,k=.8*c;a.begin();a.moveTo(f-.5*h,k-.5*h);a.lineTo(f+.5*h,k-.5*h);a.lineTo(f+.5*h,k+.5*h);a.lineTo(f-.5*h,k+.5*h);a.close();a.fillAndStroke();f=.3*b;k=.65*c;a.begin();a.moveTo(f-.5*h,k-.5*h);a.lineTo(f+.5*h,k-.5*h);a.lineTo(f+.5*h,k+.5*h);a.lineTo(f-.5*h,k+.5*h);a.close();a.fillAndStroke();f=.6*b;k=.44*c;a.begin();a.moveTo(f-.5*h,k-.5*h);a.lineTo(f+.5*h,k-.5*h);a.lineTo(f+.5*h,k+.5*h);a.lineTo(f-.5*h,k+.5*h);a.close();a.fillAndStroke();f=.85*b;k=.9*c;a.begin();a.moveTo(f-.5*h,k-.5*h);a.lineTo(f+
|
|
.5*h,k-.5*h);a.lineTo(f+.5*h,k+.5*h);a.lineTo(f-.5*h,k+.5*h);a.close();a.fillAndStroke();a.setFillColor(e[1]);f=.08*b;k=.65*c;a.begin();a.moveTo(f,k-.5*h);a.lineTo(f+.5*h,k+.5*h);a.lineTo(f-.5*h,k+.5*h);a.close();a.fillAndStroke();f=.58*b;k=.85*c;a.begin();a.moveTo(f,k-.5*h);a.lineTo(f+.5*h,k+.5*h);a.lineTo(f-.5*h,k+.5*h);a.close();a.fillAndStroke();f=.72*b;k=.92*c;a.begin();a.moveTo(f,k-.5*h);a.lineTo(f+.5*h,k+.5*h);a.lineTo(f-.5*h,k+.5*h);a.close();a.fillAndStroke();a.setFillColor(e[2]);f=.32*b;
|
|
k=.28*c;a.begin();a.moveTo(f,k-.75*h);a.lineTo(f+.75*h,k);a.lineTo(f,k+.75*h);a.lineTo(f-.75*h,k);a.close();a.fillAndStroke();f=.92*b;k=.45*c;a.begin();a.moveTo(f,k-.75*h);a.lineTo(f+.75*h,k);a.lineTo(f,k+.75*h);a.lineTo(f-.75*h,k);a.close();a.fillAndStroke();f=.81*b;k=.37*c;a.begin();a.moveTo(f,k-.75*h);a.lineTo(f+.75*h,k);a.lineTo(f,k+.75*h);a.lineTo(f-.75*h,k);a.close();a.fillAndStroke();f=.51*b;k=.7*c;a.begin();a.moveTo(f,k-.75*h);a.lineTo(f+.75*h,k);a.lineTo(f,k+.75*h);a.lineTo(f-.75*h,k);a.close();
|
|
a.fillAndStroke();a.setStrokeWidth(2*g);a.setStrokeColor(d);a.setShadow(!1);a.begin();a.moveTo(0,0);a.lineTo(0,c);a.lineTo(b,c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupPlotChart.prototype.cst.SHAPE_PLOT_CHART]=mxShapeMockupPlotChart;function mxShapeMockupGanttChart(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupGanttChart,mxShape);
|
|
mxShapeMockupGanttChart.prototype.cst={STROKE_COLOR2:"strokeColor2",STROKE_COLOR3:"strokeColor3",SHAPES_COLORS:"fillColor2",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",SHAPE_GANTT_CHART:"mxgraph.mockup.graphics.ganttChart"};mxShapeMockupGanttChart.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeMockupGanttChart.prototype.background=function(a,d,e,b,c,f,g){a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupGanttChart.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapeMockupGanttChart.prototype.cst.SHAPES_COLORS,"#888888,#bbbbbb").toString().split(",");mxUtils.getValue(this.style,mxShapeMockupGanttChart.prototype.cst.TEXT_COLOR,"#666666");mxUtils.getValue(this.style,mxShapeMockupGanttChart.prototype.cst.TEXT_SIZE,"#12");a.begin();a.moveTo(0,.13*c);a.lineTo(b,.13*c);a.moveTo(.4*b,0);a.lineTo(.4*b,c);a.moveTo(.4*b,.065*c);a.lineTo(b,.065*c);a.moveTo(.03*b,0);a.lineTo(.03*
|
|
b,.13*c);a.moveTo(.1*b,0);a.lineTo(.1*b,.13*c);a.moveTo(.315*b,0);a.lineTo(.315*b,.13*c);a.moveTo(.45*b,.065*c);a.lineTo(.45*b,.13*c);a.moveTo(.5*b,.065*c);a.lineTo(.5*b,c);a.moveTo(.55*b,.065*c);a.lineTo(.55*b,.13*c);a.moveTo(.6*b,.065*c);a.lineTo(.6*b,c);a.moveTo(.65*b,.065*c);a.lineTo(.65*b,.13*c);a.moveTo(.7*b,.065*c);a.lineTo(.7*b,c);a.moveTo(.75*b,0);a.lineTo(.75*b,.13*c);a.moveTo(.8*b,.065*c);a.lineTo(.8*b,c);a.moveTo(.85*b,.065*c);a.lineTo(.85*b,.13*c);a.moveTo(.9*b,.065*c);a.lineTo(.9*b,
|
|
c);a.moveTo(.95*b,.065*c);a.lineTo(.95*b,.13*c);a.stroke();a.setFillColor(d[0]);a.begin();a.moveTo(.41*b,.15*c);a.lineTo(.64*b,.15*c);a.lineTo(.64*b,.18*c);a.lineTo(.625*b,.21*c);a.lineTo(.61*b,.18*c);a.lineTo(.44*b,.18*c);a.lineTo(.425*b,.21*c);a.lineTo(.41*b,.18*c);a.close();a.moveTo(.41*b,.24*c);a.lineTo(.49*b,.24*c);a.lineTo(.49*b,.275*c);a.lineTo(.41*b,.275*c);a.close();a.moveTo(.46*b,.31*c);a.lineTo(.64*b,.31*c);a.lineTo(.64*b,.345*c);a.lineTo(.46*b,.345*c);a.close();a.moveTo(.56*b,.39*c);a.lineTo(.69*
|
|
b,.39*c);a.lineTo(.69*b,.425*c);a.lineTo(.56*b,.425*c);a.close();a.fill();a.setFillColor(d[1]);a.begin();a.moveTo(.46*b,.32*c);a.lineTo(.58*b,.32*c);a.lineTo(.58*b,.335*c);a.lineTo(.46*b,.335*c);a.close();a.fill()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupGanttChart.prototype.cst.SHAPE_GANTT_CHART]=mxShapeMockupGanttChart;function mxShapeMockupSimpleIcon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupSimpleIcon,mxShape);mxShapeMockupSimpleIcon.prototype.cst={SIMPLE_ICON:"mxgraph.mockup.graphics.simpleIcon"};mxShapeMockupSimpleIcon.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,0,b,c);a.fillAndStroke();a.begin();a.moveTo(0,0);a.lineTo(b,c);a.moveTo(0,c);a.lineTo(b,0);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupSimpleIcon.prototype.cst.SIMPLE_ICON]=mxShapeMockupSimpleIcon;
|
|
function mxShapeMockupGraphicsAnchor(a,d,e,b){mxShape.call(this);this.bounds=a}mxUtils.extend(mxShapeMockupGraphicsAnchor,mxShape);mxShapeMockupGraphicsAnchor.prototype.cst={ANCHOR:"mxgraph.mockup.graphics.anchor"};mxShapeMockupGraphicsAnchor.prototype.paintVertexShape=function(a,d,e,b,c){};mxCellRenderer.registerShape(mxShapeMockupGraphicsAnchor.prototype.cst.ANCHOR,mxShapeMockupGraphicsAnchor);
|
|
function mxShapeMockupGraphicsRRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupGraphicsRRect,mxShape);mxShapeMockupGraphicsRRect.prototype.cst={RRECT:"mxgraph.mockup.graphics.rrect",R_SIZE:"rSize"};mxShapeMockupGraphicsRRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupGraphicsRRect.prototype.cst.R_SIZE,"10"));a.roundrect(0,0,b,c,d);a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeMockupGraphicsRRect.prototype.cst.RRECT,mxShapeMockupGraphicsRRect);function mxShapeMockupCurlyBrace(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupCurlyBrace,mxShape);mxShapeMockupCurlyBrace.prototype.cst={SHAPE_CURLY_BRACE:"mxgraph.mockup.markup.curlyBrace"};mxShapeMockupCurlyBrace.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxShapeMockupCurlyBrace.prototype.background=function(a,d,e,b,c){d=.5*c;e=Math.min(.125*b,d);a.begin();a.moveTo(0,d+e);a.arcTo(e,e,0,0,1,e,d);a.lineTo(.5*b-e,d);a.arcTo(e,e,0,0,0,.5*b,d-e);a.arcTo(e,e,0,0,0,.5*b+e,d);a.lineTo(b-e,d);a.arcTo(e,e,0,0,1,b,d+e);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupCurlyBrace.prototype.cst.SHAPE_CURLY_BRACE]=mxShapeMockupCurlyBrace;
|
|
function mxShapeMockupLine(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupLine,mxShape);mxShapeMockupLine.prototype.cst={SHAPE_LINE:"mxgraph.mockup.markup.line"};mxShapeMockupLine.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupLine.prototype.cst.SHAPE_LINE]=mxShapeMockupLine;
|
|
function mxShapeMockupScratchOut(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupScratchOut,mxShape);mxShapeMockupScratchOut.prototype.cst={SHAPE_SCRATCH_OUT:"mxgraph.mockup.markup.scratchOut"};
|
|
mxShapeMockupScratchOut.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(.038*b,.095*c);a.curveTo(.038*b,.095*c,.289*b,-.045*c,.186*b,.05*c);a.curveTo(.084*b,.145*c,-.046*b,.251*c,.072*b,.208*c);a.curveTo(.191*b,.164*c,.522*b,-.09*c,.366*b,.062*c);a.curveTo(.21*b,.215*c,-.094*b,.38*c,.108*b,.304*c);a.curveTo(.309*b,.228*c,.73*b,-.126*c,.544*b,.096*c);a.curveTo(.358*b,.319*c,-.168*b,.592*c,.108*b,.476*c);a.curveTo(.382*b,.36*c,.972*b,-.138*c,.779*b,.114*c);a.curveTo(.585*
|
|
b,.365*c,-.12*b,.688*c,.071*b,.639*c);a.curveTo(.262*b,.59*c,1.174*b,.012*c,.936*b,.238*c);a.curveTo(.699*b,.462*c,-.216*b,.855*c,.085*b,.806*c);a.curveTo(.386*b,.758*c,1.185*b,.26*c,.935*b,.534*c);a.curveTo(.685*b,.808*c,-.186*b,.94*c,.236*b,.895*c);a.curveTo(.659*b,.85*c,1.095*b,.608*c,.905*b,.769*c);a.curveTo(.715*b,.93*c,.286*b,.962*c,.661*b,.931*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupScratchOut.prototype.cst.SHAPE_SCRATCH_OUT]=mxShapeMockupScratchOut;
|
|
function mxShapeMockupRedX(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupRedX,mxShape);mxShapeMockupRedX.prototype.cst={SHAPE_RED_X:"mxgraph.mockup.markup.redX"};
|
|
mxShapeMockupRedX.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(.1*b,0);a.lineTo(.5*b,.4*c);a.lineTo(.9*b,0);a.lineTo(b,.1*c);a.lineTo(.6*b,.5*c);a.lineTo(b,.9*c);a.lineTo(.9*b,c);a.lineTo(.5*b,.6*c);a.lineTo(.1*b,c);a.lineTo(0,.9*c);a.lineTo(.4*b,.5*c);a.lineTo(0,.1*c);a.close();a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupRedX.prototype.cst.SHAPE_RED_X]=mxShapeMockupRedX;
|
|
function mxShapeMockupPlaybackControls(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupPlaybackControls,mxShape);mxShapeMockupPlaybackControls.prototype.cst={SHAPE_PLAYBACK_CONTROLS:"mxgraph.mockup.misc.playbackControls",FILL_COLOR2:"fillColor2",STROKE_COLOR2:"strokeColor2",FILL_COLOR3:"fillColor3",STROKE_COLOR3:"strokeColor3"};
|
|
mxShapeMockupPlaybackControls.prototype.paintVertexShape=function(a,d,e,b,c){c=Math.max(c,30);b=Math.max(225,b);a.translate(d,e);this.background(a,b,c,30);a.setShadow(!1);this.foreground(a,b,c,30,22)};mxShapeMockupPlaybackControls.prototype.background=function(a,d,e,b){a.rect(0,.5*(e-b),d,b);a.fillAndStroke()};
|
|
mxShapeMockupPlaybackControls.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapeMockupPlaybackControls.prototype.cst.FILL_COLOR2,"#99ddff");var f=mxUtils.getValue(this.style,mxShapeMockupPlaybackControls.prototype.cst.STROKE_COLOR2,"none"),g=mxUtils.getValue(this.style,mxShapeMockupPlaybackControls.prototype.cst.FILL_COLOR3,"#ffffff"),h=mxUtils.getValue(this.style,mxShapeMockupPlaybackControls.prototype.cst.STROKE_COLOR3,"none");a.setStrokeColor(f);a.setFillColor(d);a.ellipse(10,
|
|
.5*e-.5*c,c,c);a.fillAndStroke();a.ellipse(40,.5*e-.5*c,c,c);a.fillAndStroke();a.ellipse(70,.5*e-.5*c,c,c);a.fillAndStroke();a.ellipse(100,.5*e-.5*c,c,c);a.fillAndStroke();a.ellipse(130,.5*e-.5*c,c,c);a.fillAndStroke();a.ellipse(160,.5*e-.5*c,c,c);a.fillAndStroke();a.ellipse(190,.5*e-.5*c,c,c);a.fillAndStroke();a.setStrokeColor(h);a.setFillColor(g);e=.5*e-.5*b;a.begin();a.moveTo(16,e+10);a.lineTo(16,e+20);a.lineTo(18,e+20);a.lineTo(18,e+10);a.close();a.moveTo(20,e+15);a.lineTo(25,e+20);a.lineTo(25,
|
|
e+10);a.close();a.fillAndStroke();a.begin();a.moveTo(44,e+15);a.lineTo(49,e+20);a.lineTo(49,e+10);a.close();a.moveTo(51,e+15);a.lineTo(56,e+20);a.lineTo(56,e+10);a.close();a.fillAndStroke();a.begin();a.moveTo(77,e+15);a.lineTo(82,e+20);a.lineTo(82,e+10);a.close();a.fillAndStroke();a.begin();a.moveTo(108,e+10);a.lineTo(108,e+20);a.lineTo(110,e+20);a.lineTo(110,e+10);a.close();a.moveTo(117,e+15);a.lineTo(112,e+20);a.lineTo(112,e+10);a.close();a.fillAndStroke();a.begin();a.moveTo(144,e+15);a.lineTo(139,
|
|
e+20);a.lineTo(139,e+10);a.close();a.fillAndStroke();a.begin();a.moveTo(171,e+15);a.lineTo(166,e+20);a.lineTo(166,e+10);a.close();a.moveTo(178,e+15);a.lineTo(173,e+20);a.lineTo(173,e+10);a.close();a.fillAndStroke();a.begin();a.moveTo(203,e+10);a.lineTo(203,e+20);a.lineTo(205,e+20);a.lineTo(205,e+10);a.close();a.moveTo(201,e+15);a.lineTo(196,e+20);a.lineTo(196,e+10);a.close();a.fillAndStroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupPlaybackControls.prototype.cst.SHAPE_PLAYBACK_CONTROLS]=mxShapeMockupPlaybackControls;function mxShapeMockupProgressBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.barPos=20}mxUtils.extend(mxShapeMockupProgressBar,mxShape);mxShapeMockupProgressBar.prototype.cst={SHAPE_PROGRESS_BAR:"mxgraph.mockup.misc.progressBar",BAR_POS:"barPos",FILL_COLOR2:"fillColor2"};
|
|
mxShapeMockupProgressBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxShapeMockupProgressBar.prototype.background=function(a,d,e){a.roundrect(0,.5*e-5,d,10,5,5);a.fillAndStroke()};
|
|
mxShapeMockupProgressBar.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxShapeMockupProgressBar.prototype.cst.FILL_COLOR2,"#ddeeff"),c=mxUtils.getValue(this.style,mxShapeMockupProgressBar.prototype.cst.BAR_POS,"80"),c=Math.min(c,100),c=Math.max(c,0);d=0+(d-0)*c/100;a.setFillColor(b);a.roundrect(0,.5*e-5,d,10,5,5);a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupProgressBar.prototype.cst.SHAPE_PROGRESS_BAR]=mxShapeMockupProgressBar;
|
|
Graph.handleFactory[mxShapeMockupProgressBar.prototype.cst.SHAPE_PROGRESS_BAR]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"barPos",this.barPos))));return new mxPoint(a.x+d*a.width/100,a.y+.5*a.height)},function(a,e){this.state.style.barPos=Math.round(1E3*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/1E3})]};
|
|
function mxShapeMockupShoppingCart(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupShoppingCart,mxShape);mxShapeMockupShoppingCart.prototype.cst={SHAPE_SHOPPING_CART:"mxgraph.mockup.misc.shoppingCart"};
|
|
mxShapeMockupShoppingCart.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.translate(d,e);a.setStrokeWidth(3);a.begin();a.moveTo(.975*b,.025*c);a.lineTo(.82*b,.055*c);a.lineTo(.59*b,.66*c);a.lineTo(.7*b,.765*c);a.arcTo(.06*b,.06*c,0,0,1,.665*b,.86*c);a.lineTo(.05*b,.86*c);a.moveTo(.74*b,.26*c);a.lineTo(.03*b,.28*c);a.lineTo(.065*b,.61*c);a.lineTo(.59*b,.66*c);a.stroke();a.setStrokeWidth(1);a.begin();a.moveTo(.15*b,.28*c);a.lineTo(.15*
|
|
b,.62*c);a.moveTo(.265*b,.275*c);a.lineTo(.265*b,.63*c);a.moveTo(.38*b,.27*c);a.lineTo(.38*b,.64*c);a.moveTo(.495*b,.265*c);a.lineTo(.495*b,.65*c);a.moveTo(.61*b,.265*c);a.lineTo(.61*b,.61*c);a.stroke();a.begin();a.moveTo(.69*b,.405*c);a.lineTo(.045*b,.405*c);a.moveTo(.645*b,.52*c);a.lineTo(.055*b,.52*c);a.stroke();a.setFillColor(f);a.ellipse(.075*b,.89*c,.1*b,.1*c);a.fillAndStroke();a.ellipse(.62*b,.89*c,.1*b,.1*c);a.fillAndStroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupShoppingCart.prototype.cst.SHAPE_SHOPPING_CART]=mxShapeMockupShoppingCart;function mxShapeMockupRating(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupRating,mxShape);
|
|
mxShapeMockupRating.prototype.cst={SHAPE_RATING:"mxgraph.mockup.misc.rating",RATING_STYLE:"ratingStyle",RATING_SCALE:"ratingScale",RATING_HEART:"heart",RATING_STAR:"star",EMPTY_FILL_COLOR:"emptyFillColor",GRADE:"grade"};
|
|
mxShapeMockupRating.prototype.paintVertexShape=function(a,d,e,b,c){b=mxUtils.getValue(this.style,mxShapeMockupRating.prototype.cst.RATING_STYLE,mxShapeMockupRating.prototype.cst.RATING_STAR);var f=mxUtils.getValue(this.style,mxShapeMockupRating.prototype.cst.GRADE,"5"),g=mxUtils.getValue(this.style,mxShapeMockupRating.prototype.cst.RATING_SCALE,"10");a.translate(d,e);if(b===mxShapeMockupRating.prototype.cst.RATING_STAR)for(d=0;d<f;d++)a.begin(),a.moveTo(d*c*1.5,.33*c),a.lineTo(d*c*1.5+.364*c,.33*
|
|
c),a.lineTo(d*c*1.5+.475*c,0),a.lineTo(d*c*1.5+.586*c,.33*c),a.lineTo(d*c*1.5+.95*c,.33*c),a.lineTo(d*c*1.5+.66*c,.551*c),a.lineTo(d*c*1.5+.775*c,.9*c),a.lineTo(d*c*1.5+.475*c,.684*c),a.lineTo(d*c*1.5+.175*c,.9*c),a.lineTo(d*c*1.5+.29*c,.551*c),a.close(),a.fillAndStroke();else if(b===mxShapeMockupRating.prototype.cst.RATING_HEART)for(d=0;d<f;d++)a.begin(),a.moveTo(d*c*1.5+.519*c,.947*c),a.curveTo(d*c*1.5+.558*c,.908*c,d*c*1.5+.778*c,.682*c,d*c*1.5+.916*c,.54*c),a.curveTo(d*c*1.5+1.039*c,.414*c,d*
|
|
c*1.5+1.036*c,.229*c,d*c*1.5+.924*c,.115*c),a.curveTo(d*c*1.5+.812*c,0,d*c*1.5+.631*c,0,d*c*1.5+.519*c,.115*c),a.curveTo(d*c*1.5+.408*c,0,d*c*1.5+.227*c,0,d*c*1.5+.115*c,.115*c),a.curveTo(d*c*1.5+.03*c,.229*c,d*c*1.5,.414*c,d*c*1.5+.123*c,.54*c),a.close(),a.fillAndStroke();d=mxUtils.getValue(this.style,mxShapeMockupRating.prototype.cst.EMPTY_FILL_COLOR,"#ffffff");a.setFillColor(d);if(b===mxShapeMockupRating.prototype.cst.RATING_STAR)for(d=f;d<g;d++)a.begin(),a.moveTo(d*c*1.5,.33*c),a.lineTo(d*c*1.5+
|
|
.364*c,.33*c),a.lineTo(d*c*1.5+.475*c,0),a.lineTo(d*c*1.5+.586*c,.33*c),a.lineTo(d*c*1.5+.95*c,.33*c),a.lineTo(d*c*1.5+.66*c,.551*c),a.lineTo(d*c*1.5+.775*c,.9*c),a.lineTo(d*c*1.5+.475*c,.684*c),a.lineTo(d*c*1.5+.175*c,.9*c),a.lineTo(d*c*1.5+.29*c,.551*c),a.close(),a.fillAndStroke();else if(b===mxShapeMockupRating.prototype.cst.RATING_HEART)for(d=f;d<g;d++)a.begin(),a.moveTo(d*c*1.5+.519*c,.947*c),a.curveTo(d*c*1.5+.558*c,.908*c,d*c*1.5+.778*c,.682*c,d*c*1.5+.916*c,.54*c),a.curveTo(d*c*1.5+1.039*
|
|
c,.414*c,d*c*1.5+1.036*c,.229*c,d*c*1.5+.924*c,.115*c),a.curveTo(d*c*1.5+.812*c,0,d*c*1.5+.631*c,0,d*c*1.5+.519*c,.115*c),a.curveTo(d*c*1.5+.408*c,0,d*c*1.5+.227*c,0,d*c*1.5+.115*c,.115*c),a.curveTo(d*c*1.5+.03*c,.229*c,d*c*1.5,.414*c,d*c*1.5+.123*c,.54*c),a.close(),a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupRating.prototype.cst.SHAPE_RATING]=mxShapeMockupRating;
|
|
function mxShapeMockupMail(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupMail,mxShape);mxShapeMockupMail.prototype.cst={SHAPE_MAIL:"mxgraph.mockup.misc.mail2"};mxShapeMockupMail.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,0,b,c);a.fillAndStroke();a.setShadow(!1);a.begin();a.moveTo(0,0);a.lineTo(.5*b,.5*c);a.lineTo(b,0);a.stroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupMail.prototype.cst.SHAPE_MAIL]=mxShapeMockupMail;function mxShapeMockupVolumeSlider(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.barPos=80}mxUtils.extend(mxShapeMockupVolumeSlider,mxShape);mxShapeMockupVolumeSlider.prototype.cst={SHAPE_VOLUME_SLIDER:"mxgraph.mockup.misc.volumeSlider",BAR_POS:"barPos",FILL_COLOR2:"fillColor2"};
|
|
mxShapeMockupVolumeSlider.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);e=mxUtils.getValue(this.style,mxShapeMockupVolumeSlider.prototype.cst.BAR_POS,"80");d=mxUtils.getValue(this.style,mxShapeMockupVolumeSlider.prototype.cst.FILL_COLOR2,"#ddeeff");mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#999999");e=Math.min(e,100);e=Math.max(e,0);c=Math.max(c,25);b=Math.max(b,87.5);var f=b-25,g=.5*(c-25);a.begin();a.moveTo(f+1.25,g+8.75);a.lineTo(f+3.75,g+8.75);a.lineTo(f+7.5,
|
|
g+5);a.lineTo(f+7.5,g+20);a.lineTo(f+3.75,g+16.25);a.lineTo(f+1.25,g+16.25);a.close();a.fill();e=0+(b-32.5-0)*e/100;f=b-25;g=.5*(c-25);a.begin();a.moveTo(f+10,g+8.75);a.arcTo(5,7.5,0,0,1,f+10,g+16.25);a.moveTo(f+10.625,g+6.25);a.arcTo(5.625,8.75,0,0,1,f+10.625,g+18.75);a.moveTo(f+12.5,g+5);a.arcTo(6.25,10,0,0,1,f+12.5,g+20);a.fillAndStroke();c=.5*(c-25);a.roundrect(0,c+8.75,b-32.5,7.5,5,5);a.fill();a.setShadow(!1);a.setFillColor(d);a.roundrect(0,c+8.75,e,7.5,5,5);a.fill();a.ellipse(e-6.25,c+6.25,
|
|
12.5,12.5);a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupVolumeSlider.prototype.cst.SHAPE_VOLUME_SLIDER]=mxShapeMockupVolumeSlider;
|
|
Graph.handleFactory[mxShapeMockupVolumeSlider.prototype.cst.SHAPE_VOLUME_SLIDER]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"barPos",this.barPos))));return new mxPoint(a.x+d*(a.width-32.5)/100,a.y+.5*a.height)},function(a,e){this.state.style.barPos=Math.round(1E3*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/1E3})]};
|
|
function mxShapeMockupEdit(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupEdit,mxShape);mxShapeMockupEdit.prototype.cst={SHAPE_EDIT:"mxgraph.mockup.misc.editIcon"};
|
|
mxShapeMockupEdit.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#999999");a.translate(d,e);a.roundrect(0,0,b,c,.05*b,.05*c);a.fillAndStroke();a.setShadow(!1);a.setFillColor(f);a.begin();a.moveTo(.11*b,.8*c);a.lineTo(.2*b,.89*c);a.lineTo(.05*b,.95*c);a.close();a.moveTo(.74*b,.16*c);a.lineTo(.84*b,.26*c);a.lineTo(.22*b,.88*c);a.lineTo(.12*b,.78*c);a.close();a.moveTo(.755*b,.145*c);a.lineTo(.82*b,.08*c);a.lineTo(.92*b,.18*c);a.lineTo(.855*
|
|
b,.245*c);a.close();a.fill()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupEdit.prototype.cst.SHAPE_EDIT]=mxShapeMockupEdit;function mxShapeMockupPrint(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupPrint,mxShape);mxShapeMockupPrint.prototype.cst={SHAPE_PRINT:"mxgraph.mockup.misc.printIcon"};
|
|
mxShapeMockupPrint.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#999999");a.translate(d,e);a.roundrect(0,0,b,c,.05*b,.05*c);a.fillAndStroke();a.setShadow(!1);a.setFillColor(f);a.begin();a.moveTo(.15*b,.58*c);a.arcTo(.03*b,.03*c,0,0,1,.18*b,.55*c);a.lineTo(.82*b,.55*c);a.arcTo(.03*b,.03*c,0,0,1,.85*b,.58*c);a.lineTo(.85*b,.82*c);a.arcTo(.03*b,.03*c,0,0,1,.82*b,.85*c);a.lineTo(.18*b,.85*c);a.arcTo(.03*b,.03*c,0,0,1,.15*b,.82*c);a.close();
|
|
a.moveTo(.7*b,.52*c);a.lineTo(.3*b,.52*c);a.lineTo(.3*b,.15*c);a.lineTo(.55*b,.15*c);a.lineTo(.55*b,.3*c);a.lineTo(.7*b,.3*c);a.close();a.moveTo(.57*b,.15*c);a.lineTo(.7*b,.28*c);a.lineTo(.57*b,.28*c);a.close();a.fill()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupPrint.prototype.cst.SHAPE_PRINT]=mxShapeMockupPrint;function mxShapeMockupShare(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupShare,mxShape);
|
|
mxShapeMockupShare.prototype.cst={SHAPE_SHARE:"mxgraph.mockup.misc.shareIcon"};
|
|
mxShapeMockupShare.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#999999");a.translate(d,e);a.roundrect(0,0,b,c,.05*b,.05*c);a.fillAndStroke();a.setShadow(!1);a.setFillColor(f);a.begin();a.moveTo(.15*b,.18*c);a.arcTo(.03*b,.03*c,0,0,1,.18*b,.15*c);a.lineTo(.82*b,.15*c);a.arcTo(.03*b,.03*c,0,0,1,.85*b,.18*c);a.lineTo(.85*b,.82*c);a.arcTo(.03*b,.03*c,0,0,1,.82*b,.85*c);a.lineTo(.18*b,.85*c);a.arcTo(.03*b,.03*c,0,0,1,.15*b,.82*c);a.close();
|
|
a.fill();d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff");a.setFillColor(d);a.begin();a.moveTo(.563*b,.34*c);a.arcTo(.095*b,.095*c,0,1,1,.603*b,.42*c);a.lineTo(.44*b,.5*c);a.lineTo(.602*b,.582*c);a.arcTo(.095*b,.095*c,0,1,1,.563*b,.653*c);a.lineTo(.403*b,.575*c);a.arcTo(.095*b,.095*c,0,1,1,.4*b,.42*c);a.close();a.fill()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupShare.prototype.cst.SHAPE_SHARE]=mxShapeMockupShare;
|
|
function mxShapeMockupTrashcan(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupTrashcan,mxShape);mxShapeMockupTrashcan.prototype.cst={SHAPE_TRASHCAN:"mxgraph.mockup.misc.trashcanIcon"};
|
|
mxShapeMockupTrashcan.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#999999");a.translate(d,e);a.roundrect(0,0,b,c,.05*b,.05*c);a.fillAndStroke();a.setShadow(!1);a.setFillColor(f);a.begin();a.moveTo(.24*b,.24*c);a.arcTo(.04*b,.04*c,0,0,1,.24*b,.16*c);a.lineTo(.4*b,.16*c);a.lineTo(.4*b,.12*c);a.lineTo(.6*b,.12*c);a.lineTo(.6*b,.16*c);a.lineTo(.76*b,.16*c);a.arcTo(.04*b,.04*c,0,0,1,.76*b,.24*c);a.close();a.fill();a.roundrect(.26*b,.3*
|
|
c,.1*b,.6*c,.06*b,.06*c);a.fill();a.roundrect(.44*b,.3*c,.1*b,.6*c,.06*b,.06*c);a.fill();a.roundrect(.62*b,.3*c,.1*b,.6*c,.06*b,.06*c);a.fill()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupTrashcan.prototype.cst.SHAPE_TRASHCAN]=mxShapeMockupTrashcan;function mxShapeMockupCopyright(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupCopyright,mxShape);mxShapeMockupCopyright.prototype.cst={SHAPE_COPYRIGHT:"mxgraph.mockup.misc.copyrightIcon"};
|
|
mxShapeMockupCopyright.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#999999");a.translate(d,e);a.ellipse(0,0,b,c);a.fillAndStroke();a.setShadow(!1);a.setFillColor(f);a.begin();a.moveTo(.713*b,.288*c);a.arcTo(.3*b,.3*c,0,1,0,.713*b,.712*c);a.lineTo(.784*b,.783*c);a.arcTo(.4*b,.4*c,0,1,1,.784*b,.217*c);a.close();a.fill()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupCopyright.prototype.cst.SHAPE_COPYRIGHT]=mxShapeMockupCopyright;
|
|
function mxShapeMockupRegistered(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupRegistered,mxShape);mxShapeMockupRegistered.prototype.cst={SHAPE_REGISTERED:"mxgraph.mockup.misc.registeredIcon"};
|
|
mxShapeMockupRegistered.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#999999");a.translate(d,e);a.ellipse(0,0,b,c);a.fillAndStroke();a.setShadow(!1);a.setFillColor(f);a.begin();a.moveTo(.29*b,.9*c);a.lineTo(.29*b,.09*c);a.lineTo(.5*b,.09*c);a.arcTo(.2195*b,.2195*c,0,0,1,.545*b,.525*c);a.lineTo(.738*b,.91*c);a.lineTo(.674*b,.91*c);a.lineTo(.4825*b,.53*c);a.lineTo(.35*b,.53*c);a.lineTo(.35*b,.9*c);a.close();a.moveTo(.35*b,.47*c);a.lineTo(.5*
|
|
b,.47*c);a.arcTo(.15*b,.15*c,0,0,0,.5*b,.15*c);a.lineTo(.35*b,.15*c);a.close();a.fill()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupRegistered.prototype.cst.SHAPE_REGISTERED]=mxShapeMockupRegistered;function mxShapeMockupVolume(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupVolume,mxShape);mxShapeMockupVolume.prototype.cst={SHAPE_VOLUME:"mxgraph.mockup.misc.volumeIcon"};
|
|
mxShapeMockupVolume.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#999999");a.translate(d,e);a.roundrect(0,0,b,c,.05*b,.05*c);a.fillAndStroke();a.setShadow(!1);a.setFillColor(f);a.begin();a.moveTo(.1*b,.3*c);a.lineTo(.3*b,.3*c);a.lineTo(.5*b,.15*c);a.lineTo(.5*b,.85*c);a.lineTo(.3*b,.7*c);a.lineTo(.1*b,.7*c);a.close();a.fill();a.begin();a.moveTo(.6*b,.4*c);a.arcTo(.2*b,.2*c,0,0,1,.6*b,.6*c);a.moveTo(.7*b,.3*c);a.arcTo(.3*b,.3*c,0,0,
|
|
1,.7*b,.7*c);a.moveTo(.8*b,.2*c);a.arcTo(.4*b,.4*c,0,0,1,.8*b,.8*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupVolume.prototype.cst.SHAPE_VOLUME]=mxShapeMockupVolume;function mxShapeMockupRuler(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupRuler,mxShape);mxShapeMockupRuler.prototype.cst={SHAPE_RULER:"mxgraph.mockup.misc.ruler",ORIENTATION:"rulerOrient",UNIT_SIZE:"unitSize",FACE_UP:"up",FACE_DOWN:"down"};
|
|
mxShapeMockupRuler.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxShapeMockupRuler.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxShapeMockupRuler.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxShapeMockupRuler.prototype.cst.ORIENTATION,mxShapeMockupRuler.prototype.cst.FACE_DOWN),c=mxUtils.getValue(this.style,mxShapeMockupRuler.prototype.cst.UNIT_SIZE,"10"),f=c=Math.max(c,1),g=1;if(b===mxShapeMockupRuler.prototype.cst.FACE_DOWN){for(a.begin();f<d;)b=g%10,0===b?a.moveTo(f,.5*e):5===b?a.moveTo(f,.7*e):a.moveTo(f,.8*e),a.lineTo(f,e),f+=c,g+=1;a.stroke()}else if(b===mxShapeMockupRuler.prototype.cst.FACE_UP){for(a.begin();f<
|
|
d;)b=g%10,0===b?a.moveTo(f,.5*e):5===b?a.moveTo(f,.3*e):a.moveTo(f,.2*e),a.lineTo(f,0),f+=c,g+=1;a.stroke()}};mxCellRenderer.prototype.defaultShapes[mxShapeMockupRuler.prototype.cst.SHAPE_RULER]=mxShapeMockupRuler;function mxShapeMockupRuler2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupRuler2,mxShape);
|
|
mxShapeMockupRuler2.prototype.cst={SHAPE_RULER:"mxgraph.mockup.misc.ruler2",ORIENTATION:"rulerOrient",UNIT_SIZE:"unitSize",FACE_UP:"up",FACE_DOWN:"down"};mxShapeMockupRuler2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxShapeMockupRuler2.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxShapeMockupRuler2.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxShapeMockupRuler2.prototype.cst.ORIENTATION,mxShapeMockupRuler2.prototype.cst.FACE_DOWN),c=mxUtils.getValue(this.style,mxConstants.STYLE_FONTCOLOR,"#000000"),f=mxUtils.getValue(this.style,"dx","100"),f=Math.max(f/10,1);a.setFontColor(c);var c=f,g=1;if(b===mxShapeMockupRuler2.prototype.cst.FACE_DOWN){for(a.begin();c<d;)b=g%10,0===b?(a.moveTo(c,e-10),a.lineTo(c,e),b=this.state.view.graph.getLabel(this.state.cell),
|
|
isNaN(b)||(a.stroke(),b=g*Math.round(100*b)/1E3,10!=g&&0!=b&&a.text(c,.5*(e-10),0,0,b.toString(),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),a.begin())):(5===b?a.moveTo(c,e-6):a.moveTo(c,e-4),a.lineTo(c,e)),c+=f,g+=1;a.stroke()}else if(b===mxShapeMockupRuler2.prototype.cst.FACE_UP){for(a.begin();c<d;)b=g%10,0===b?(a.moveTo(c,10),a.lineTo(c,0),b=this.state.view.graph.getLabel(this.state.cell),isNaN(b)||(a.stroke(),b=g*Math.round(100*b)/1E3,10!=g&&0!=b&&a.text(c,.5*(e+10),0,0,b.toString(),
|
|
mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),a.begin())):(5===b?a.moveTo(c,6):a.moveTo(c,4),a.lineTo(c,0)),c+=f,g+=1;a.stroke()}};mxCellRenderer.prototype.defaultShapes[mxShapeMockupRuler2.prototype.cst.SHAPE_RULER]=mxShapeMockupRuler2;
|
|
Graph.handleFactory[mxShapeMockupRuler2.prototype.cst.SHAPE_RULER]=function(a){return[Graph.createHandle(a,"dx spacingLeft align varticalAlign spacingBottom spacingTop spacingRight spacing".split(" "),function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx))));return new mxPoint(a.x+d,a.y+a.height-10)},function(a,e){this.state.style.dx=Math.round(1E3*Math.max(0,Math.min(a.width,e.x-a.x)))/1E3;this.state.style.spacingLeft=Math.round(1E3*Math.max(0,Math.min(a.width,
|
|
e.x-a.x)))/1E3-4;this.state.style.align="left";this.state.style.verticalAlign="middle";"down"==mxUtils.getValue(this.state.style,"rulerOrient","1")?(this.state.style.spacingBottom=10,this.state.style.spacingTop=0,console.log("down")):(this.state.style.spacingBottom=0,this.state.style.spacingTop=10,console.log("up"));this.state.style.spacingRight=0;this.state.style.spacing=0})]};
|
|
function mxShapeMockupRevisionTable(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupRevisionTable,mxShape);mxShapeMockupRevisionTable.prototype.cst={SHAPE_REVISION_TABLE:"mxgraph.mockup.misc.revisionTable",MAIN_TEXT:"mainText",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize"};mxShapeMockupRevisionTable.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};
|
|
mxShapeMockupRevisionTable.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxShapeMockupRevisionTable.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxShapeMockupRevisionTable.prototype.cst.MAIN_TEXT,"").toString().split(","),c=mxUtils.getValue(this.style,mxShapeMockupRevisionTable.prototype.cst.TEXT_COLOR,"#999999"),f=mxUtils.getValue(this.style,mxShapeMockupRevisionTable.prototype.cst.TEXT_SIZE,"17");a.begin();a.moveTo(0,.33*e);a.lineTo(d,.33*e);a.moveTo(0,.67*e);a.lineTo(d,.67*e);a.moveTo(.125*d,.33*e);a.lineTo(.125*d,e);a.moveTo(.5*d,.33*e);a.lineTo(.5*
|
|
d,e);a.stroke();a.setFontSize(f);a.setFontColor(c);a.text(.5*d,.165*e,0,0,b[0],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.0625*d,.5*e,0,0,b[1],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.3125*d,.5*e,0,0,b[2],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.75*d,.5*e,0,0,b[3],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.0625*d,.835*e,0,0,b[4],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,
|
|
0,null,0,0,0);a.text(.3125*d,.835*e,0,0,b[5],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.75*d,.835*e,0,0,b[6],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupRevisionTable.prototype.cst.SHAPE_REVISION_TABLE]=mxShapeMockupRevisionTable;function mxShapeMockupStatusBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupStatusBar,mxShape);
|
|
mxShapeMockupStatusBar.prototype.cst={SHAPE_STATUS_BAR:"mxgraph.mockup.misc.statusBar",MAIN_TEXT:"mainText",FILL_COLOR2:"fillColor2",STROKE_COLOR2:"strokeColor2",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize"};mxShapeMockupStatusBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);b=Math.max(b,105);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxShapeMockupStatusBar.prototype.background=function(a,d,e){a.rect(0,.5*e-15,d,30);a.fillAndStroke()};
|
|
mxShapeMockupStatusBar.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxShapeMockupStatusBar.prototype.cst.FILL_COLOR2,"#ddeeff"),c=mxUtils.getValue(this.style,mxShapeMockupStatusBar.prototype.cst.STROKE_COLOR2,"#008cff"),f=mxUtils.getValue(this.style,mxShapeMockupStatusBar.prototype.cst.MAIN_TEXT,"").toString().split(","),g=mxUtils.getValue(this.style,mxShapeMockupStatusBar.prototype.cst.TEXT_COLOR,"#999999"),h=mxUtils.getValue(this.style,mxShapeMockupStatusBar.prototype.cst.TEXT_SIZE,
|
|
"17");a.setFillColor(b);a.roundrect(5,.5*e-10,.46*(d-75),20,5,5);a.fill();a.roundrect(10+.46*(d-75),.5*e-10,.23*(d-75),20,5,5);a.fill();a.roundrect(15+.69*(d-75),.5*e-10,.276*(d-75),20,5,5);a.fill();a.setFontSize(h);a.setFontColor(g);a.text(10,.5*e,0,0,f[0],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(10+.575*(d-75),.5*e,0,0,f[1],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(15+.828*(d-75),.5*e,0,0,f[2],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,
|
|
0,null,0,0,0);a.setStrokeColor(c);a.ellipse(d-25,.5*e-10,20,20);a.stroke();a.begin();a.moveTo(d-55,.5*e+10);a.lineTo(d-35,.5*e+10);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupStatusBar.prototype.cst.SHAPE_STATUS_BAR]=mxShapeMockupStatusBar;function mxShapeMockupPin(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupPin,mxShape);
|
|
mxShapeMockupPin.prototype.cst={SHAPE_PIN:"mxgraph.mockup.misc.pin",FILL_COLOR2:"fillColor2",FILL_COLOR3:"fillColor3"};
|
|
mxShapeMockupPin.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupPin.prototype.cst.FILL_COLOR2,"#000000"),g=mxUtils.getValue(this.style,mxShapeMockupPin.prototype.cst.FILL_COLOR3,"#000000"),h=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setShadow(!1);a.translate(d,e);a.setStrokeWidth(3);a.setStrokeColor("#666666");a.begin();a.moveTo(.5*b,.4*c);a.lineTo(.5*b,c);a.stroke();a.setStrokeWidth(2);a.setStrokeColor(h);a.setGradient(f,
|
|
g,0,0,b,.4*c,mxConstants.DIRECTION_SOUTH,1,1);a.setAlpha(.9);a.ellipse(0,0,b,.4*c);a.fillAndStroke();a.setFillColor("#ffffff");a.setAlpha(.5);a.ellipse(.2*b,.08*c,.3*b,.12*c);a.fill()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupPin.prototype.cst.SHAPE_PIN]=mxShapeMockupPin;function mxShapeMockupMiscRRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupMiscRRect,mxShape);
|
|
mxShapeMockupMiscRRect.prototype.cst={RRECT:"mxgraph.mockup.misc.rrect",R_SIZE:"rSize"};mxShapeMockupMiscRRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupMiscRRect.prototype.cst.R_SIZE,"10"));a.roundrect(0,0,b,c,d);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeMockupMiscRRect.prototype.cst.RRECT,mxShapeMockupMiscRRect);function mxShapeMockupMiscAnchor(a,d,e,b){mxShape.call(this);this.bounds=a}
|
|
mxUtils.extend(mxShapeMockupMiscAnchor,mxShape);mxShapeMockupMiscAnchor.prototype.cst={ANCHOR:"mxgraph.mockup.misc.anchor"};mxShapeMockupMiscAnchor.prototype.paintVertexShape=function(a,d,e,b,c){};mxCellRenderer.registerShape(mxShapeMockupMiscAnchor.prototype.cst.ANCHOR,mxShapeMockupMiscAnchor);function mxShapeMockupBreadcrumb(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupBreadcrumb,mxShape);
|
|
mxShapeMockupBreadcrumb.prototype.cst={SHAPE_BREADCRUMB:"mxgraph.mockup.navigation.breadcrumb",MAIN_TEXT:"mainText",TEXT_SIZE:"textSize",TEXT_COLOR:"textColor",TEXT_COLOR2:"textColor2"};
|
|
mxShapeMockupBreadcrumb.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxShapeMockupBreadcrumb.prototype.cst.MAIN_TEXT,"Layer 1, Layer 2, Layer 3").toString().split(","),g=mxUtils.getValue(this.style,mxShapeMockupBreadcrumb.prototype.cst.TEXT_COLOR,"#666666"),h=mxUtils.getValue(this.style,mxShapeMockupBreadcrumb.prototype.cst.TEXT_COLOR2,"#008cff"),k=mxUtils.getValue(this.style,mxShapeMockupBreadcrumb.prototype.cst.TEXT_SIZE,"17").toString(),l=mxUtils.getValue(this.style,
|
|
mxConstants.STYLE_STROKECOLOR,"#c4c4c4"),n=f.length,m=Array(n),p=0,q=0;q<n;q++)m[q]=mxUtils.getSizeForString(f[q],k,mxConstants.DEFAULT_FONTFAMILY).width,p+=m[q];c=Math.max(c,1.5*k,20);p=20*n+p;b=Math.max(b,p);a.translate(d,e);a.setShadow(!1);this.separators(a,b,c,n,m,10,p,l);for(q=d=0;q<n;q++)q+1===n?a.setFontColor(h):a.setFontColor(g),d+=10,this.buttonText(a,d,c,f[q],m[q],k,p,b),d=d+m[q]+10};
|
|
mxShapeMockupBreadcrumb.prototype.separators=function(a,d,e,b,c,f,g,h){a.setStrokeColor(h);e*=.5;a.begin();for(h=1;h<b;h++){for(var k=0,l=0;l<h;l++)k+=c[l]+2*f;k=k*d/g;a.moveTo(k-2.5,e-5);a.lineTo(k+2.5,e);a.lineTo(k-2.5,e+5)}a.stroke()};mxShapeMockupBreadcrumb.prototype.buttonText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(f);a.text((d+.5*c)*h/g,.5*e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupBreadcrumb.prototype.cst.SHAPE_BREADCRUMB]=mxShapeMockupBreadcrumb;function mxShapeMockupStepBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupStepBar,mxShape);mxShapeMockupStepBar.prototype.cst={SHAPE_STEP_BAR:"mxgraph.mockup.navigation.stepBar",SELECTED:"+",MAIN_TEXT:"mainText",TEXT_SIZE:"textSize",TEXT_COLOR:"textColor",TEXT_COLOR2:"textColor2"};
|
|
mxShapeMockupStepBar.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxShapeMockupStepBar.prototype.cst.MAIN_TEXT,"Step 1, Step 2, Step 3").toString().split(","),g=mxUtils.getValue(this.style,mxShapeMockupStepBar.prototype.cst.TEXT_COLOR,"#666666"),h=mxUtils.getValue(this.style,mxShapeMockupStepBar.prototype.cst.TEXT_COLOR2,"#008cff"),k=mxUtils.getValue(this.style,mxShapeMockupStepBar.prototype.cst.TEXT_SIZE,"17").toString(),l=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,
|
|
"#c4c4c4"),n=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#666666"),m=f.length,p=Array(m),q=0,u=-1,t=0;t<m;t++){var v=f[t];v.charAt(0)===mxShapeMockupStepBar.prototype.cst.SELECTED&&(v=f[t].substring(1),u=t);p[t]=mxUtils.getSizeForString(v,k,mxConstants.DEFAULT_FONTFAMILY).width;q+=p[t]}c=Math.max(c,1.5*k,20);q=20*m+q;b=Math.max(b,q);a.translate(d,e);this.stepLineBg(a,b,c,m,p,10,q,l,k,b);a.setShadow(!1);this.stepLineFg(a,b,c,m,p,10,q,l,n,h,k,b,u);for(t=d=0;t<m;t++)t>=u?a.setFontColor(g):
|
|
a.setFontColor(l),d+=10,this.buttonText(a,d,c,f[t],p[t],k,q,b),d=d+p[t]+10};mxShapeMockupStepBar.prototype.stepLineBg=function(a,d,e,b,c,f,g,h,k,l){a.setStrokeColor(h);a.setFillColor(h);e=2*k;for(l=k=h=0;l<b;l++){for(var n=0,m=0;m<l;m++)n+=c[m]+2*f;n+=.5*c[l]+f;n=n*d/g;0===l?h=n:l+1===b&&(k=n);a.begin();a.ellipse(n-10,e-10,20,20);a.fillAndStroke()}a.begin();a.rect(h,e-2,k-h,4);a.fillAndStroke()};
|
|
mxShapeMockupStepBar.prototype.stepLineFg=function(a,d,e,b,c,f,g,h,k,l,n,m,p){a.setStrokeColor(k);e=2*n;n=b=0;m=mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1");for(var q=0;q<=p;q++){for(var u=0,t=0;t<q;t++)u+=c[t]+2*f;u+=.5*c[q]+f;u=u*d/g;0===q?b=u:q===p&&(n=u)}a.setFillColor(k);a.begin();a.rect(b,e-1.125,n-b,2.25);a.fill();a.setFillColor(h);for(q=0;q<=p;q++){for(t=u=0;t<q;t++)u+=c[t]+2*f;u+=.5*c[q]+f;u=u*d/g;q<p?(a.setStrokeWidth(m),a.begin(),a.ellipse(u-7.5,e-7.5,15,15),a.fillAndStroke(),
|
|
a.setStrokeWidth(.5*m),a.begin(),a.ellipse(u-4.5,e-4.5,9,9)):(a.setStrokeWidth(m),a.setFillColor(h),a.setStrokeColor(h),a.begin(),a.ellipse(u-10,e-10,20,20),a.fillAndStroke(),a.setStrokeWidth(m),a.setFillColor("#ffffff"),a.setStrokeColor("#ffffff"),a.begin(),a.ellipse(u-7.5,e-7.5,15,15),a.fillAndStroke(),a.setFillColor(l),a.setStrokeColor(l),a.setStrokeWidth(.5*m),a.begin(),a.ellipse(u-5.25,e-5.25,10.5,10.5));a.fillAndStroke()}};
|
|
mxShapeMockupStepBar.prototype.buttonText=function(a,d,e,b,c,f,g,h){b.charAt(0)===mxShapeMockupStepBar.prototype.cst.SELECTED&&(b=b.substring(1));a.begin();a.setFontSize(f);a.text((d+.5*c)*h/g,.5*f,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupStepBar.prototype.cst.SHAPE_STEP_BAR]=mxShapeMockupStepBar;
|
|
function mxShapeMockupCoverFlow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupCoverFlow,mxShape);mxShapeMockupCoverFlow.prototype.cst={SHAPE_COVER_FLOW:"mxgraph.mockup.navigation.coverFlow"};
|
|
mxShapeMockupCoverFlow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(.0924*b,.07*c);a.lineTo(.005*b,.01*c);a.lineTo(.005*b,.99*c);a.lineTo(.0924*b,.93*c);a.moveTo(.1774*b,.09*c);a.lineTo(.0924*b,.01*c);a.lineTo(.0924*b,.99*c);a.lineTo(.1774*b,.91*c);a.moveTo(.3373*b,.22*c);a.lineTo(.1774*b,.01*c);a.lineTo(.1774*b,.99*c);a.lineTo(.3373*b,.78*c);a.moveTo(.912*b,.07*c);a.lineTo(.998*b,.01*c);a.lineTo(.998*b,.99*c);a.lineTo(.912*b,.93*c);a.moveTo(.8271*b,.09*c);a.lineTo(.912*
|
|
b,.01*c);a.lineTo(.912*b,.99*c);a.lineTo(.8271*b,.91*c);a.moveTo(.6672*b,.22*c);a.lineTo(.8271*b,.01*c);a.lineTo(.8271*b,.99*c);a.lineTo(.6672*b,.78*c);a.moveTo(.3373*b,.005*c);a.lineTo(.3373*b,.995*c);a.lineTo(.6672*b,.995*c);a.lineTo(.6672*b,.005*c);a.close();a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupCoverFlow.prototype.cst.SHAPE_COVER_FLOW]=mxShapeMockupCoverFlow;
|
|
function mxShapeMockupScrollBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupScrollBar,mxShape);mxShapeMockupScrollBar.prototype.cst={SHAPE_SCROLL_BAR:"mxgraph.mockup.navigation.scrollBar",FILL_COLOR2:"fillColor2",STROKE_COLOR2:"strokeColor2",BAR_POS:"barPos"};
|
|
mxShapeMockupScrollBar.prototype.paintVertexShape=function(a,d,e,b,c){c=20;b=Math.max(b,40);a.translate(d,e);this.background(a,b,c,20);a.setShadow(!1);this.foreground(a,b,c,20);this.barPos=20};mxShapeMockupScrollBar.prototype.background=function(a,d,e,b){a.rect(0,0,d,e);a.fillAndStroke();a.begin();a.moveTo(b,0);a.lineTo(b,e);a.moveTo(d-b,0);a.lineTo(d-b,e);a.stroke()};
|
|
mxShapeMockupScrollBar.prototype.foreground=function(a,d,e,b){var c=mxUtils.getValue(this.style,mxShapeMockupScrollBar.prototype.cst.BAR_POS,"20"),f=mxUtils.getValue(this.style,mxShapeMockupScrollBar.prototype.cst.FILL_COLOR2,"#99ddff"),g=mxUtils.getValue(this.style,mxShapeMockupScrollBar.prototype.cst.STROKE_COLOR2,"none"),c=Math.max(0,c),c=Math.min(100,c);a.setStrokeColor(g);a.setFillColor(f);a.begin();a.moveTo(.2*b,.5*e);a.lineTo(.8*b,.2*e);a.lineTo(.8*b,.8*e);a.close();a.moveTo(d-.2*b,.5*e);a.lineTo(d-
|
|
.8*b,.2*e);a.lineTo(d-.8*b,.8*e);a.close();a.fillAndStroke();f=d-b;d=Math.min(60,f-b);a.roundrect(b+(f-d/2-(b+d/2))*c/100,.15*e,d,.7*e,5,5);a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupScrollBar.prototype.cst.SHAPE_SCROLL_BAR]=mxShapeMockupScrollBar;
|
|
Graph.handleFactory[mxShapeMockupScrollBar.prototype.cst.SHAPE_SCROLL_BAR]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"barPos",this.barPos))));return new mxPoint(a.x+(a.width-100)*d/a.width/100*a.width+50,a.y+10)},function(a,e){this.state.style.barPos=Math.round(1E3*Math.max(0,Math.min(100,100*(e.x-a.x-50)/(a.width-100))))/1E3})]};
|
|
function mxShapeMockupPagination(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupPagination,mxShape);mxShapeMockupPagination.prototype.cst={MAIN_TEXT:"linkText",TEXT_SIZE:"textSize",TEXT_COLOR:"textColor",SHAPE_PAGINATION:"mxgraph.mockup.navigation.pagination"};
|
|
mxShapeMockupPagination.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupPagination.prototype.cst.MAIN_TEXT,"0-9 A B C D E F G H I J K L M N O P Q R S T U V X Y Z"),g=mxUtils.getValue(this.style,mxShapeMockupPagination.prototype.cst.TEXT_SIZE,"17"),h=mxUtils.getValue(this.style,mxShapeMockupPagination.prototype.cst.TEXT_COLOR,"#0000ff");a.translate(d,e);d=mxUtils.getSizeForString(f,g,mxConstants.DEFAULT_FONTFAMILY).width;a.setStrokeColor(h);a.setFontSize(g);
|
|
a.setFontColor(h);a.text(.5*b,.5*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.begin();a.moveTo(.5*b-.5*d,.5*(c+parseInt(g,10)));a.lineTo(.5*b+.5*d,.5*(c+parseInt(g,10)));a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupPagination.prototype.cst.SHAPE_PAGINATION]=mxShapeMockupPagination;function mxShapeMockupPageControl(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupPageControl,mxShape);mxShapeMockupPageControl.prototype.cst={SHAPE_PAGE_CONTROL:"mxgraph.mockup.navigation.pageControl"};
|
|
mxShapeMockupPageControl.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#000000");e=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");var f=Math.min(.5*c,.05*b);a.setFillColor(e);a.ellipse(0,.5*c-f,2*f,2*f);a.fill();a.setFillColor(d);a.ellipse(.35*b-f,.5*c-f,2*f,2*f);a.fill();a.ellipse(.65*b-f,.5*c-f,2*f,2*f);a.fill();a.ellipse(b-2*f,.5*c-f,2*f,2*f);a.fill()};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupPageControl.prototype.cst.SHAPE_PAGE_CONTROL]=mxShapeMockupPageControl;function mxShapeMockupMapNavigator(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupMapNavigator,mxShape);mxShapeMockupMapNavigator.prototype.cst={SHAPE_MAP_NAVIGATOR:"mxgraph.mockup.navigation.mapNavigator",FILL_COLOR2:"fillColor2",STROKE_COLOR2:"strokeColor2",STROKE_COLOR3:"strokeColor3"};
|
|
mxShapeMockupMapNavigator.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxShapeMockupMapNavigator.prototype.background=function(a,d,e){a.ellipse(0,0,d,.6*e);a.fillAndStroke();a.begin();a.moveTo(.35*d,.584*e);a.lineTo(.35*d,.95*e);a.arcTo(.083*d,.05*e,0,0,0,.43*d,e);a.lineTo(.56*d,e);a.arcTo(.083*d,.05*e,0,0,0,.65*d,.95*e);a.lineTo(.65*d,.584*e);a.fillAndStroke()};
|
|
mxShapeMockupMapNavigator.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxShapeMockupMapNavigator.prototype.cst.FILL_COLOR2,"#99ddff"),c=mxUtils.getValue(this.style,mxShapeMockupMapNavigator.prototype.cst.STROKE_COLOR2,"none"),f=mxUtils.getValue(this.style,mxShapeMockupMapNavigator.prototype.cst.STROKE_COLOR3,"#ffffff");a.setFillColor(b);a.setStrokeColor(c);a.ellipse(.4*d,.65*e,.2*d,.12*e);a.fillAndStroke();a.ellipse(.4*d,.85*e,.2*d,.12*e);a.fillAndStroke();a.begin();a.moveTo(.1806*
|
|
d,.34*e);a.lineTo(.1357*d,.366*e);a.lineTo(.0228*d,.3*e);a.lineTo(.1357*d,.234*e);a.lineTo(.1806*d,.26*e);a.lineTo(.1142*d,.3*e);a.close();a.fillAndStroke();a.begin();a.moveTo(.433*d,.108*e);a.lineTo(.3881*d,.08*e);a.lineTo(.4994*d,.012*e);a.lineTo(.6123*d,.08*e);a.lineTo(.5658*d,.108*e);a.lineTo(.4994*d,.068*e);a.close();a.fillAndStroke();a.begin();a.moveTo(.8198*d,.262*e);a.lineTo(.868*d,.233*e);a.lineTo(.9776*d,.3*e);a.lineTo(.868*d,.367*e);a.lineTo(.8198*d,.341*e);a.lineTo(.8863*d,.3*e);a.close();
|
|
a.fillAndStroke();a.begin();a.moveTo(.5641*d,.493*e);a.lineTo(.6123*d,.522*e);a.lineTo(.4994*d,.588*e);a.lineTo(.3881*d,.521*e);a.lineTo(.4363*d,.493*e);a.lineTo(.4994*d,.533*e);a.close();a.fillAndStroke();a.begin();a.moveTo(.3333*d,.32*e);a.lineTo(.3333*d,.28*e);a.lineTo(.4163*d,.3*e);a.close();a.moveTo(.4662*d,.2*e);a.lineTo(.5326*d,.2*e);a.lineTo(.4994*d,.25*e);a.close();a.moveTo(.6654*d,.28*e);a.lineTo(.6654*d,.32*e);a.lineTo(.5824*d,.3*e);a.close();a.moveTo(.5326*d,.4*e);a.lineTo(.4662*d,.4*
|
|
e);a.lineTo(.4994*d,.35*e);a.close();a.fillAndStroke();a.setStrokeWidth(2);a.setStrokeColor(f);a.begin();a.moveTo(.5*d,.67*e);a.lineTo(.5*d,.75*e);a.moveTo(.43*d,.71*e);a.lineTo(.57*d,.71*e);a.moveTo(.43*d,.91*e);a.lineTo(.57*d,.91*e);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupMapNavigator.prototype.cst.SHAPE_MAP_NAVIGATOR]=mxShapeMockupMapNavigator;function mxShapeMockupNavigationAnchor(a,d,e,b){mxShape.call(this);this.bounds=a}mxUtils.extend(mxShapeMockupNavigationAnchor,mxShape);
|
|
mxShapeMockupNavigationAnchor.prototype.cst={ANCHOR:"mxgraph.mockup.navigation.anchor"};mxShapeMockupNavigationAnchor.prototype.paintVertexShape=function(a,d,e,b,c){};mxCellRenderer.registerShape(mxShapeMockupNavigationAnchor.prototype.cst.ANCHOR,mxShapeMockupNavigationAnchor);function mxShapeMockupLink(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupLink,mxShape);
|
|
mxShapeMockupLink.prototype.cst={LINK_TEXT:"linkText",TEXT_SIZE:"textSize",TEXT_COLOR:"textColor",SHAPE_LINK:"mxgraph.mockup.text.link"};
|
|
mxShapeMockupLink.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupLink.prototype.cst.LINK_TEXT,"Link"),g=mxUtils.getValue(this.style,mxShapeMockupLink.prototype.cst.TEXT_SIZE,"17"),h=mxUtils.getValue(this.style,mxShapeMockupLink.prototype.cst.TEXT_COLOR,"#0000ff");a.translate(d,e);d=mxUtils.getSizeForString(f,g,mxConstants.DEFAULT_FONTFAMILY).width;a.setStrokeColor(h);a.setFontSize(g);a.setFontColor(h);a.text(.5*b,.5*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,
|
|
0,null,0,0,0);a.begin();a.moveTo(.5*b-.5*d,.5*(c+parseInt(g,10)));a.lineTo(.5*b+.5*d,.5*(c+parseInt(g,10)));a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupLink.prototype.cst.SHAPE_LINK]=mxShapeMockupLink;function mxShapeMockupLinkBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupLinkBar,mxShape);
|
|
mxShapeMockupLinkBar.prototype.cst={MAIN_TEXT:"mainText",SHAPE_LINK_BAR:"mxgraph.mockup.text.linkBar",TEXT_COLOR:"textColor",TEXT_COLOR2:"textColor2",STROKE_COLOR2:"strokeColor2",FILL_COLOR2:"fillColor2",SELECTED:"+",TEXT_SIZE:"textSize"};
|
|
mxShapeMockupLinkBar.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxShapeMockupLinkBar.prototype.cst.MAIN_TEXT,"+Button 1, Button 2, Button 3").toString().split(","),g=mxUtils.getValue(this.style,mxShapeMockupLinkBar.prototype.cst.TEXT_COLOR,"#666666"),h=mxUtils.getValue(this.style,mxShapeMockupLinkBar.prototype.cst.TEXT_COLOR2,"#ffffff"),k=mxUtils.getValue(this.style,mxShapeMockupLinkBar.prototype.cst.TEXT_SIZE,"17").toString(),l=mxUtils.getValue(this.style,
|
|
mxConstants.STYLE_STROKECOLOR,"#666666"),n=mxUtils.getValue(this.style,mxShapeMockupLinkBar.prototype.cst.STROKE_COLOR2,"#c4c4c4"),m=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),p=mxUtils.getValue(this.style,mxShapeMockupLinkBar.prototype.cst.FILL_COLOR2,"#008cff"),q=f.length,u=Array(q),t=0,v=-1,r=0;r<q;r++){var w=f[r];w.charAt(0)===mxShapeMockupLinkBar.prototype.cst.SELECTED&&(w=f[r].substring(1),v=r);w=mxUtils.getSizeForString(w,k,mxConstants.DEFAULT_FONTFAMILY).width;u[r]=
|
|
0===w?42:w;t+=u[r]}c=Math.max(c,1.5*k,20);t=10*q+t;b=Math.max(b,t);a.translate(d,e);this.background(a,b,c,10,q,u,5,t,l,n,m,p,v);a.setShadow(!1);for(r=d=0;r<q;r++)r===v?(a.setFontColor(h),a.setStrokeColor(h)):(a.setFontColor(g),a.setStrokeColor(g)),d+=5,this.buttonText(a,d,c,f[r],u[r],k,t,b),d=d+u[r]+5};
|
|
mxShapeMockupLinkBar.prototype.background=function(a,d,e,b,c,f,g,h,k,l,n,m,p){a.begin();a.setStrokeColor(k);a.setFillColor(n);a.rect(0,0,d,e);a.fillAndStroke();a.setStrokeColor(l);a.begin();for(b=1;b<c;b++)if(b!==p&&b!==p+1){for(var q=l=0;q<b;q++)l+=f[q]+2*g;l=l*d/h;a.moveTo(l,0);a.lineTo(l,e)}a.stroke();l=0;a.setFillColor(m);for(b=0;b<p;b++)l+=f[b]+2*g;l=l*d/h;f=(f[p]+2*g)*d/h;f+=l;0===p?(a.rect(0,0,f,e),a.fill()):p===c-1?(a.rect(l,0,f-l,e),a.fill()):-1!==p&&(a.rect(l,0,f-l,e),a.fill());a.setStrokeColor(k);
|
|
a.setFillColor(n);a.rect(0,0,d,e);a.stroke()};mxShapeMockupLinkBar.prototype.buttonText=function(a,d,e,b,c,f,g,h){b.charAt(0)===mxShapeMockupLinkBar.prototype.cst.SELECTED&&(b=b.substring(1));a.begin();a.setFontSize(f);a.text((d+.5*c)*h/g,.5*e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);var k=.5*mxUtils.getSizeForString(b,f,mxConstants.DEFAULT_FONTFAMILY).width;null!==b&&""!==b&&(a.begin(),a.moveTo((d+.5*c)*h/g-k,.5*e+.5*f),a.lineTo((d+.5*c)*h/g+k,.5*e+.5*f),a.stroke())};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupLinkBar.prototype.cst.SHAPE_LINK_BAR]=mxShapeMockupLinkBar;function mxShapeMockupCallout(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupCallout,mxShape);
|
|
mxShapeMockupCallout.prototype.cst={CALLOUT_TEXT:"linkText",CALLOUT_DIR:"callDir",CALLOUT_STYLE:"callStyle",STYLE_LINE:"line",STYLE_RECT:"rect",STYLE_ROUNDRECT:"roundRect",DIR_NW:"NW",DIR_NE:"NE",DIR_SE:"SE",DIR_SW:"SW",TEXT_SIZE:"textSize",TEXT_COLOR:"textColor",SHAPE_CALLOUT:"mxgraph.mockup.text.callout"};
|
|
mxShapeMockupCallout.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupCallout.prototype.cst.CALLOUT_TEXT,"Callout"),g=mxUtils.getValue(this.style,mxShapeMockupCallout.prototype.cst.TEXT_SIZE,"17"),h=mxUtils.getValue(this.style,mxShapeMockupCallout.prototype.cst.TEXT_COLOR,"#666666"),k=mxUtils.getValue(this.style,mxShapeMockupCallout.prototype.cst.CALLOUT_STYLE,mxShapeMockupCallout.prototype.cst.STYLE_LINE),l=mxUtils.getValue(this.style,mxShapeMockupCallout.prototype.cst.CALLOUT_DIR,
|
|
mxShapeMockupCallout.prototype.cst.DIR_NW),n=mxUtils.getSizeForString(f,g,mxConstants.DEFAULT_FONTFAMILY).width,n=1.2*n;0==n&&(n=70);a.translate(d,e);a.setFontSize(g);a.setFontColor(h);d=1.5*g;l===mxShapeMockupCallout.prototype.cst.DIR_NW?(k===mxShapeMockupCallout.prototype.cst.STYLE_LINE?(a.begin(),a.moveTo(0,d),a.lineTo(n,d),a.lineTo(b,c),a.stroke()):k===mxShapeMockupCallout.prototype.cst.STYLE_RECT?(a.rect(0,0,n,d),a.fillAndStroke(),a.begin(),a.moveTo(.5*n,d),a.lineTo(b,c),a.stroke()):k===mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT&&
|
|
(a.roundrect(0,0,n,d,.25*d,.25*d),a.fillAndStroke(),a.begin(),a.moveTo(.5*n,d),a.lineTo(b,c),a.stroke()),a.text(.5*n,.5*d,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)):l===mxShapeMockupCallout.prototype.cst.DIR_NE?(k===mxShapeMockupCallout.prototype.cst.STYLE_LINE?(a.begin(),a.moveTo(b,d),a.lineTo(b-n,d),a.lineTo(0,c),a.stroke()):k===mxShapeMockupCallout.prototype.cst.STYLE_RECT?(a.rect(b-n,0,n,d),a.fillAndStroke(),a.begin(),a.moveTo(b-.5*n,d),a.lineTo(0,c),a.stroke()):k===
|
|
mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT&&(a.roundrect(b-n,0,n,d,.25*d,.25*d),a.fillAndStroke(),a.begin(),a.moveTo(b-.5*n,d),a.lineTo(0,c),a.stroke()),a.text(b-.5*n,.5*d,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)):l===mxShapeMockupCallout.prototype.cst.DIR_SE?(k===mxShapeMockupCallout.prototype.cst.STYLE_LINE?(a.begin(),a.moveTo(b,c),a.lineTo(b-n,c),a.lineTo(0,0),a.stroke()):k===mxShapeMockupCallout.prototype.cst.STYLE_RECT?(a.rect(b-n,c-d,n,d),a.fillAndStroke(),
|
|
a.begin(),a.moveTo(b-.5*n,c-d),a.lineTo(0,0),a.stroke()):k===mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT&&(a.roundrect(b-n,c-d,n,d,.25*d,.25*d),a.fillAndStroke(),a.begin(),a.moveTo(b-.5*n,c-d),a.lineTo(0,0),a.stroke()),a.text(b-.5*n,c-.5*d,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)):l===mxShapeMockupCallout.prototype.cst.DIR_SW&&(k===mxShapeMockupCallout.prototype.cst.STYLE_LINE?(a.begin(),a.moveTo(0,c),a.lineTo(n,c),a.lineTo(b,0),a.stroke()):k===mxShapeMockupCallout.prototype.cst.STYLE_RECT?
|
|
(a.rect(0,c-d,n,d),a.fillAndStroke(),a.begin(),a.moveTo(.5*n,c-d),a.lineTo(b,0),a.stroke()):k===mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT&&(a.roundrect(0,c-d,n,d,.25*d,.25*d),a.fillAndStroke(),a.begin(),a.moveTo(.5*n,c-d),a.lineTo(b,0),a.stroke()),a.text(.5*n,c-.5*d,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0))};mxCellRenderer.prototype.defaultShapes[mxShapeMockupCallout.prototype.cst.SHAPE_CALLOUT]=mxShapeMockupCallout;
|
|
function mxShapeMockupStickyNote(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupStickyNote,mxShape);mxShapeMockupStickyNote.prototype.cst={MAIN_TEXT:"mainText",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",SHAPE_STICKY_NOTE:"mxgraph.mockup.text.stickyNote"};mxShapeMockupStickyNote.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};
|
|
mxShapeMockupStickyNote.prototype.background=function(a,d,e){a.setFillColor("#ffffcc");a.begin();a.moveTo(.03*d,.07*e);a.lineTo(.89*d,.06*e);a.arcTo(2.81*d,2.92*e,1,0,0,.99*d,.98*e);a.lineTo(.09*d,.99*e);a.arcTo(2.81*d,2.92*e,1,0,1,.03*d,.07*e);a.close();a.fill()};
|
|
mxShapeMockupStickyNote.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxShapeMockupStickyNote.prototype.cst.MAIN_TEXT,"Note line 1,Note line 2,Note line 3").toString().split(","),c=mxUtils.getValue(this.style,mxShapeMockupStickyNote.prototype.cst.TEXT_COLOR,"#666666").toString(),f=mxUtils.getValue(this.style,mxShapeMockupStickyNote.prototype.cst.TEXT_SIZE,"17").toString();a.setFillColor("#ff3300");a.begin();a.moveTo(.28*d,0);a.lineTo(.59*d,0);a.lineTo(.6*d,.12*e);a.lineTo(.28*
|
|
d,.13*e);a.close();a.fill();a.setFontSize(f);a.setFontColor(c);for(var c=b.length*f*1.5,g=0;g<b.length;g++)a.text(d/2,(e-c)/2+g*f*1.5+.75*f,0,0,b[g],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeMockupStickyNote.prototype.cst.SHAPE_STICKY_NOTE]=mxShapeMockupStickyNote;function mxShapeMockupBulletedList(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupBulletedList,mxShape);mxShapeMockupBulletedList.prototype.cst={MAIN_TEXT:"mainText",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",BULLET_STYLE:"bulletStyle",STYLE_HYPHEN:"hyphen",STYLE_NUM:"number",STYLE_DOT:"dot",SHAPE_BULLETED_LIST:"mxgraph.mockup.text.bulletedList"};mxShapeMockupBulletedList.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};
|
|
mxShapeMockupBulletedList.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxShapeMockupBulletedList.prototype.foreground=function(a,d,e){d=mxUtils.getValue(this.style,mxShapeMockupBulletedList.prototype.cst.MAIN_TEXT,"Note line 1,Note line 2,Note line 3").toString().split(",");var b=mxUtils.getValue(this.style,mxShapeMockupBulletedList.prototype.cst.TEXT_COLOR,"#666666");e=mxUtils.getValue(this.style,mxShapeMockupBulletedList.prototype.cst.TEXT_SIZE,"17");var c=mxUtils.getValue(this.style,mxShapeMockupBulletedList.prototype.cst.BULLET_STYLE,"none");a.setFontColor(b);a.setFontSize(e);
|
|
for(b=0;b<d.length;b++){var f;f=c===mxShapeMockupBulletedList.prototype.cst.STYLE_NUM?b+1+") "+d[b]:c===mxShapeMockupBulletedList.prototype.cst.STYLE_HYPHEN?"- "+d[b]:c===mxShapeMockupBulletedList.prototype.cst.STYLE_DOT?String.fromCharCode(8226)+" "+d[b]:" "+d[b];a.text(10,b*e*1.5+.75*e,0,0,f,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)}};mxCellRenderer.prototype.defaultShapes[mxShapeMockupBulletedList.prototype.cst.SHAPE_BULLETED_LIST]=mxShapeMockupBulletedList;
|
|
function mxShapeMockupTextBox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupTextBox,mxShape);mxShapeMockupTextBox.prototype.cst={MAIN_TEXT:"mainText",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",SHAPE_TEXT_BOX:"mxgraph.mockup.text.textBox"};mxShapeMockupTextBox.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};
|
|
mxShapeMockupTextBox.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxShapeMockupTextBox.prototype.foreground=function(a,d,e){d=mxUtils.getValue(this.style,mxShapeMockupTextBox.prototype.cst.MAIN_TEXT,"Note line 1").toString().split(",");var b=mxUtils.getValue(this.style,mxShapeMockupTextBox.prototype.cst.TEXT_COLOR,"#666666");e=mxUtils.getValue(this.style,mxShapeMockupTextBox.prototype.cst.TEXT_SIZE,"17");a.setFontColor(b);a.setFontSize(e);for(b=0;b<d.length;b++)a.text(5,b*e*1.5+.75*e,0,0,d[b],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeMockupTextBox.prototype.cst.SHAPE_TEXT_BOX]=mxShapeMockupTextBox;function mxShapeMockupCaptcha(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupCaptcha,mxShape);mxShapeMockupCaptcha.prototype.cst={MAIN_TEXT:"mainText",TEXT_COLOR:"textColor",TEXT_SIZE:"textSize",SHAPE_CAPTCHA:"mxgraph.mockup.text.captcha"};
|
|
mxShapeMockupCaptcha.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxShapeMockupCaptcha.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxShapeMockupCaptcha.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxShapeMockupCaptcha.prototype.cst.MAIN_TEXT,"Note line 1"),c=mxUtils.getValue(this.style,mxShapeMockupCaptcha.prototype.cst.TEXT_COLOR,"#666666"),f=mxUtils.getValue(this.style,mxShapeMockupCaptcha.prototype.cst.TEXT_SIZE,"25");a.setFillColor("#88aaff");a.begin();a.moveTo(0,0);a.lineTo(.35*d,0);a.lineTo(.55*d,.85*e);a.lineTo(.4*d,.75*e);a.close();a.fill();a.begin();a.moveTo(.7*d,.1*e);a.lineTo(.95*d,.23*e);
|
|
a.lineTo(d,.4*e);a.lineTo(d,.9*e);a.lineTo(d,e);a.lineTo(.8*d,e);a.close();a.fill();a.setFontColor(c);a.setFontSize(f);a.text(.5*d,.5*e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.rect(0,0,d,e);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupCaptcha.prototype.cst.SHAPE_CAPTCHA]=mxShapeMockupCaptcha;function mxShapeMockupAlphanumeric(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupAlphanumeric,mxShape);mxShapeMockupAlphanumeric.prototype.cst={MAIN_TEXT:"linkText",TEXT_SIZE:"textSize",TEXT_COLOR:"textColor",SHAPE_ALPHANUMERIC:"mxgraph.mockup.text.alphanumeric"};
|
|
mxShapeMockupAlphanumeric.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeMockupAlphanumeric.prototype.cst.MAIN_TEXT,"0-9 A B C D E F G H I J K L M N O P Q R S T U V X Y Z"),g=mxUtils.getValue(this.style,mxShapeMockupAlphanumeric.prototype.cst.TEXT_SIZE,"17"),h=mxUtils.getValue(this.style,mxShapeMockupAlphanumeric.prototype.cst.TEXT_COLOR,"#0000ff");a.translate(d,e);d=mxUtils.getSizeForString(f,g,mxConstants.DEFAULT_FONTFAMILY).width;a.setStrokeColor(h);a.setFontSize(g);
|
|
a.setFontColor(h);a.text(.5*b,.5*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.begin();a.moveTo(.5*b-.5*d,.5*(c+parseInt(g,10)));a.lineTo(.5*b+.5*d,.5*(c+parseInt(g,10)));a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupAlphanumeric.prototype.cst.SHAPE_ALPHANUMERIC]=mxShapeMockupAlphanumeric;function mxShapeMockupTextRRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupTextRRect,mxShape);mxShapeMockupTextRRect.prototype.cst={RRECT:"mxgraph.mockup.text.rrect",R_SIZE:"rSize"};mxShapeMockupTextRRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupTextRRect.prototype.cst.R_SIZE,"10"));a.roundrect(0,0,b,c,d);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeMockupTextRRect.prototype.cst.RRECT,mxShapeMockupTextRRect);
|
|
var mxMockupC={BAR_HEIGHT:"barHeight",BAR_POS:"barPos",BG_STYLE:"bgStyle",BG_FLAT_GREEN:"bgGreen",BG_FLAT_WHITE:"bgWhite",BG_FLAT_GRAY:"bgGray",BG_FLAT_CUSTOM:"bgFlat",BG_MAP:"bgMap",BG_STRIPED:"bgStriped",BUTTON_STYLE:"buttonStyle",BUTTON_TEXT:"buttonText",BUTTON_STATE:"buttonState",CHEVRON:"chevron",GRID_SIZE:"gridSize",POINTER_BOTTOM:"bottom",POINTER_POS:"pointerPos",POINTER_TOP:"top",ROUND:"round",SELECTED:"+",STATE_ON:"on",STATE_OFF:"off",SUB_TEXT:"subText",SHAPE_IADD_ICON:"mxgraph.ios.iAddIcon",
|
|
SHAPE_IALERT_BOX:"mxgraph.ios.iAlertBox",SHAPE_IALPHA_LIST:"mxgraph.ios.iAlphaList",SHAPE_IAPP_BAR:"mxgraph.ios.iAppBar",SHAPE_IARROW_ICON:"mxgraph.ios.iArrowIcon",SHAPE_IBG_FLAT:"mxgraph.ios.iBgFlat",SHAPE_IBG_MAP:"mxgraph.ios.iBgMap",SHAPE_IBG_STRIPED:"mxgraph.ios.iBgStriped",SHAPE_IBUTTON:"mxgraph.ios.iButton",SHAPE_IBUTTON_BACK:"mxgraph.ios.iButtonBack",SHAPE_IBUTTON_FORWARD:"mxgraph.ios.iButtonFw",SHAPE_IBUTTON_BAR:"mxgraph.ios.iButtonBar",SHAPE_ICALL_BUTTONS:"mxgraph.ios.iCallButtons",SHAPE_ICALL_DIALOG:"mxgraph.ios.iCallDialog",
|
|
SHAPE_ICHECKBOX_GROUP:"mxgraph.ios.iCheckboxGroup",SHAPE_ICHECK_ICON:"mxgraph.ios.iCheckIcon",SHAPE_ICLOUD_PROGRESS_BAR:"mxgraph.ios.iCloudProgressBar",SHAPE_ICOMBO_BOX:"mxgraph.ios.iComboBox",SHAPE_ICOPY:"mxgraph.ios.iCopy",SHAPE_ICOPY_AREA:"mxgraph.ios.iCopyArea",SHAPE_IICON_GRID:"mxgraph.ios.iIconGrid",SHAPE_IDELETE_APP:"mxgraph.ios.iDeleteApp",SHAPE_IDELETE_ICON:"mxgraph.ios.iDeleteIcon",SHAPE_IDOWNLOAD_BAR:"mxgraph.ios.iDownloadBar",SHAPE_IDIALOG_BOX:"mxgraph.ios.iDialogBox",SHAPE_IDIRECTION:"mxgraph.ios.iDir",
|
|
SHAPE_IHOME_PAGE_CONTROL:"mxgraph.ios.iHomePageControl",SHAPE_IKEYB_LETTERS:"mxgraph.ios.iKeybLett",SHAPE_IKEYB_NUMBERS:"mxgraph.ios.iKeybNumb",SHAPE_IKEYB_SYMBOLS:"mxgraph.ios.iKeybSymb",SHAPE_ILOCATION_BAR:"mxgraph.ios.iLocBar",SHAPE_ILOCK_BUTTON:"mxgraph.ios.iLockButton",SHAPE_IHOR_BUTTON_BAR:"mxgraph.ios.iHorButtonBar",SHAPE_IINFO_ICON:"mxgraph.ios.iInfoIcon",SHAPE_ION_OFF_BUTTON:"mxgraph.ios.iOnOffButton",SHAPE_IOPTION:"mxgraph.ios.iOption",SHAPE_IPAGE_CONTROL:"mxgraph.ios.iPageControl",SHAPE_IPAD:"mxgraph.ios.iPad",
|
|
SHAPE_IPHONE:"mxgraph.ios.iPhone",SHAPE_IPIN:"mxgraph.ios.iPin",SHAPE_IPREV_NEXT:"mxgraph.ios.iPrevNext",SHAPE_IPROGRESS_BAR:"mxgraph.ios.iProgressBar",SHAPE_IRADIO_GROUP:"mxgraph.ios.iRadioGroup",SHAPE_ISLIDER:"mxgraph.ios.iSlider",SHAPE_ISORT_FIND_ICON:"mxgraph.ios.iSortFindIcon",SHAPE_ITEXT_INPUT:"mxgraph.ios.iTextInput",SHAPE_ITOP_BAR:"mxgraph.ios.iTopBar",SHAPE_ITOP_BAR_LOCKED:"mxgraph.ios.iTopBarLocked",SHAPE_IURL_BAR:"mxgraph.ios.iURLBar",SHAPE_IVIDEO_CONTROLS:"mxgraph.ios.iVideoControls",
|
|
SHAPE_ISCREEN_NAME_BAR:"mxgraph.ios.iScreenNameBar",STYLE_FILLCOLOR2:"fillColor2",STYLE_FILLCOLOR3:"fillColor3",STYLE_TEXTCOLOR:"textColor",STYLE_TEXTCOLOR2:"textColor2",STYLE_STROKECOLOR2:"strokeColor2",STYLE_STROKECOLOR3:"strokeColor3"};function mxShapeMockupiPhone(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiPhone,mxShape);
|
|
mxShapeMockupiPhone.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c,25);a.setShadow(!1);this.foreground(a,d,e,b,c,25)};mxShapeMockupiPhone.prototype.background=function(a,d,e,b,c,f){a.setFillColor("#000000");a.setStrokeColor("#000000");a.roundrect(0,0,b,c,f,f);a.fillAndStroke()};
|
|
mxShapeMockupiPhone.prototype.foreground=function(a,d,e,b,c,f){a.setStrokeWidth(1.5);a.begin();a.setGradient("#808080","#000000",.325*b,0,.675*b,.5*c,mxConstants.DIRECTION_SOUTH,1,1);a.moveTo(.325*b,0);a.lineTo(b-f,0);a.arcTo(f,f,0,0,1,b,f);a.lineTo(b,.5*c);a.lineTo(.7*b,.5*c);a.close();a.fill();d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"");e=mxUtils.getValue(this.style,mxMockupC.BG_STYLE,mxMockupC.BG_FLAT_GREEN);a.setStrokeWidth(1);if(e===mxMockupC.BG_FLAT_WHITE)a.setFillColor("#ffffff"),
|
|
a.rect(.0625*b,.15*c,.875*b,.7*c),a.fill();else if(e===mxMockupC.BG_FLAT_GREEN)a.setFillColor("#1f2923"),a.rect(.0625*b,.15*c,.875*b,.7*c),a.fill();else if(e===mxMockupC.BG_FLAT_GRAY)a.setFillColor("#dddddd"),a.rect(.0625*b,.15*c,.875*b,.7*c),a.fill();else if(e===mxMockupC.BG_FLAT_CUSTOM)a.setFillColor(d),a.rect(.0625*b,.15*c,.875*b,.7*c),a.fill();else if(e===mxMockupC.BG_STRIPED){d=b;e=c;a.translate(.0625*b,.15*c);b*=.875;c*=.7;a.setFillColor("#5D7585");a.rect(0,0,b,c);a.fillAndStroke();a.setStrokeColor("#657E8F");
|
|
var g=5;for(a.begin();g<b;)a.moveTo(g,0),a.lineTo(g,c),g+=5;a.stroke();a.setStrokeColor("#18211b");a.begin();a.rect(0,0,b,c);a.stroke();b=d;c=e;a.translate(.0625*-b,.15*-c)}else e===mxMockupC.BG_MAP&&(d=b,e=c,a.translate(.0625*b,.15*c),b*=.875,c*=.7,a.setFillColor("#ffffff"),a.rect(0,0,b,c),a.fillAndStroke(),a.setFillColor("#96D1FF"),a.setStrokeColor("#008cff"),a.setStrokeWidth(1),a.begin(),a.moveTo(0,0),a.lineTo(.1171*b,0),a.lineTo(.1136*b,.0438*c),a.lineTo(.0993*b,.054*c),a.lineTo(0,.0446*c),a.close(),
|
|
a.fillAndStroke(),a.begin(),a.moveTo(.1993*b,0),a.lineTo(.1914*b,.03884*c),a.lineTo(.1536*b,.0362*c),a.lineTo(.1586*b,0),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.24*b,0),a.lineTo(.2257*b,.054*c),a.lineTo(.2414*b,.0674*c),a.lineTo(.4707*b,.0835*c),a.lineTo(.5264*b,.0906*c),a.lineTo(.6429*b,.0929*c),a.arcTo(.0857*b,.0536*c,0,0,0,.7193*b,.0621*c),a.arcTo(.48*b,.2143*c,0,0,0,.7286*b,0),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.8*b,0),a.lineTo(.7886*b,.04554*c),a.arcTo(.0857*b,.0536*c,0,0,
|
|
0,.8164*b,.0875*c),a.arcTo(.1429*b,.0893*c,0,0,0,.88*b,.1036*c),a.lineTo(b,.1112*c),a.lineTo(b,0),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(0,.0933*c),a.lineTo(.08*b,.1036*c),a.lineTo(.1021*b,.1246*c),a.lineTo(.1007*b,.1768*c),a.lineTo(.0471*b,.2241*c),a.lineTo(0,.2527*c),a.close(),a.fillAndStroke(),a.ellipse(.1214*b,.0603*c,.0843*b,.0576*c),a.fillAndStroke(),a.begin(),a.moveTo(.1293*b,.1924*c),a.lineTo(.1729*b,.142*c),a.lineTo(.1407*b,.1411*c),a.lineTo(.14*b,.1777*c),a.close(),a.fillAndStroke(),
|
|
a.begin(),a.moveTo(.4586*b,.1241*c),a.lineTo(.455*b,.1835*c),a.lineTo(.3893*b,.2246*c),a.lineTo(.2171*b,.1362*c),a.lineTo(.2171*b,.1308*c),a.lineTo(.2293*b,.1214*c),a.lineTo(.2857*b,.1174*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.5079*b,.1134*c),a.lineTo(.7307*b,.1223*c),a.lineTo(.7279*b,.1625*c),a.lineTo(.715*b,.1772*c),a.lineTo(.6929*b,.1688*c),a.lineTo(.625*b,.1795*c),a.lineTo(.4779*b,.2835*c),a.lineTo(.395*b,.2299*c),a.lineTo(.4657*b,.1826*c),a.lineTo(.4707*b,.1223*c),a.close(),a.fillAndStroke(),
|
|
a.begin(),a.moveTo(b,.1362*c),a.lineTo(.7643*b,.1237*c),a.lineTo(.7543*b,.1562*c),a.lineTo(.7643*b,.1585*c),a.lineTo(.9186*b,.2366*c),a.lineTo(b,.1732*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.2079*b,.1545*c),a.lineTo(.3886*b,.2536*c),a.lineTo(.3414*b,.2933*c),a.lineTo(.1743*b,.1969*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.1579*b,.2134*c),a.lineTo(.3221*b,.3067*c),a.lineTo(.2957*b,.3237*c),a.lineTo(.1157*b,.2424*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.405*b,.2656*c),
|
|
a.lineTo(.31*b,.3353*c),a.lineTo(.3693*b,.3661*c),a.lineTo(.4571*b,.2982*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.7121*b,.1848*c),a.lineTo(.6879*b,.1754*c),a.lineTo(.6329*b,.1844*c),a.lineTo(.61*b,.2018*c),a.lineTo(.6207*b,.2085*c),a.lineTo(.4986*b,.2982*c),a.lineTo(.535*b,.3237*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.5557*b,.3379*c),a.lineTo(.7464*b,.1826*c),a.lineTo(.8036*b,.2076*c),a.lineTo(.595*b,.3616*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.8293*b,.2188*c),a.lineTo(.8979*
|
|
b,.2509*c),a.lineTo(.6936*b,.4125*c),a.lineTo(.6171*b,.3737*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(b,.2138*c),a.lineTo(.6821*b,.4603*c),a.lineTo(.815*b,.5277*c),a.lineTo(b,.4*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(0,.317*c),a.lineTo(.0971*b,.2554*c),a.lineTo(.4121*b,.4143*c),a.lineTo(.3736*b,.4415*c),a.lineTo(.315*b,.4076*c),a.lineTo(.3093*b,.4116*c),a.lineTo(.3686*b,.4455*c),a.lineTo(.285*b,.5045*c),a.lineTo(.1114*b,.4134*c),a.lineTo(.025*b,.4603*c),a.lineTo(.0371*b,.4723*c),
|
|
a.lineTo(.1114*b,.4371*c),a.lineTo(.2871*b,.5312*c),a.lineTo(.1929*b,.6058*c),a.lineTo(.2271*b,.6705*c),a.lineTo(.17*b,.7147*c),a.lineTo(.0314*b,.6321*c),a.lineTo(0,.6246*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.48*b,.3121*c),a.lineTo(.5157*b,.3375*c),a.lineTo(.4314*b,.3982*c),a.lineTo(.3929*b,.3786*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.3086*b,.5179*c),a.lineTo(.53*b,.3518*c),a.lineTo(.5757*b,.3745*c),a.lineTo(.3479*b,.5411*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.5964*
|
|
b,.3884*c),a.lineTo(.6736*b,.4277*c),a.lineTo(.445*b,.5991*c),a.lineTo(.3664*b,.5531*c),a.lineTo(.5057*b,.4545*c),a.lineTo(.5507*b,.4754*c),a.lineTo(.5571*b,.4723*c),a.lineTo(.5114*b,.4504*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.4793*b,.6161*c),a.lineTo(.6771*b,.4643*c),a.lineTo(.8086*b,.5326*c),a.lineTo(.7471*b,.5817*c),a.lineTo(.7214*b,.567*c),a.lineTo(.715*b,.571*c),a.lineTo(.7421*b,.5871*c),a.lineTo(.6014*b,.6933*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(b,.4371*c),a.lineTo(.8443*
|
|
b,.546*c),a.lineTo(.9071*b,.5701*c),a.lineTo(b,.5022*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.8407*b,.5504*c),a.lineTo(.8993*b,.5759*c),a.lineTo(.6757*b,.7416*c),a.lineTo(.6286*b,.7139*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(b,.5321*c),a.lineTo(.6979*b,.7549*c),a.lineTo(.7457*b,.7781*c),a.lineTo(.9814*b,.6094*c),a.lineTo(b,.6067*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(b,.6254*c),a.lineTo(.7664*b,.792*c),a.lineTo(.9586*b,.9062*c),a.lineTo(b,.8786*c),a.close(),a.fillAndStroke(),
|
|
a.begin(),a.moveTo(.3093*b,.5464*c),a.lineTo(.4271*b,.6152*c),a.lineTo(.245*b,.7643*c),a.lineTo(.185*b,.7228*c),a.lineTo(.2493*b,.6728*c),a.lineTo(.2214*b,.6143*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(0,.65*c),a.lineTo(.2179*b,.7826*c),a.lineTo(.1136*b,.8424*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(0,.7272*c),a.lineTo(.0821*b,.859*c),a.lineTo(0,.9085*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.4529*b,.6366*c),a.lineTo(.575*b,.7143*c),a.lineTo(.39*b,.8621*c),a.lineTo(.2657*
|
|
b,.7902*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(0,.9415*c),a.lineTo(.1036*b,.8821*c),a.lineTo(.2343*b,.959*c),a.lineTo(.1721*b,c),a.lineTo(0,c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.2586*b,.7951*c),a.lineTo(.3829*b,.8674*c),a.lineTo(.2543*b,.9451*c),a.lineTo(.1279*b,.8692*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.2836*b,.9639*c),a.lineTo(.4207*b,.8772*c),a.lineTo(.605*b,.7321*c),a.lineTo(.6521*b,.7634*c),a.lineTo(.3486*b,c),a.lineTo(.3393*b,c),a.close(),a.fillAndStroke(),
|
|
a.begin(),a.moveTo(.3879*b,c),a.lineTo(.6721*b,.7759*c),a.lineTo(.7171*b,.7982*c),a.lineTo(.4564*b,c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.4986*b,c),a.lineTo(.7386*b,.8125*c),a.lineTo(.9307*b,.925*c),a.lineTo(.8264*b,c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.8671*b,c),a.lineTo(.9464*b,.9491*c),a.lineTo(b,.975*c),a.lineTo(b,c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.2295*b,c),a.lineTo(.2648*b,.9792*c),a.lineTo(.2981*b,c),a.close(),a.fillAndStroke(),b=d,c=e,a.translate(.0625*
|
|
-b,.15*-c));a.setStrokeWidth(1);a.setStrokeColor("#18211b");a.rect(.0625*b,.15*c,.875*b,.7*c);a.stroke();a.setStrokeWidth(1.5);a.setAlpha(.8);a.setStrokeColor("#dddddd");a.roundrect(0,0,b,c,f,f);a.stroke();f=22.5;a.begin();a.setStrokeColor("#666666");a.roundrect(5,5,b-10,c-10,f,f);a.stroke();a.setAlpha(1);a.ellipse(.4875*b,.04125*c,.025*b,.0125*c);a.setStrokeWidth(2.5);a.setStrokeColor("#000000");a.setFillColor("#000099");a.fillAndStroke();a.begin();a.setStrokeWidth(1.5);a.setFillColor("#444444");
|
|
a.setStrokeColor("#333333");a.roundrect(.375*b,.075*c,.25*b,.01875*c,.02*b,.01*c);a.fillAndStroke();a.setGradient("#bbbbbb","#000000",.4*b,.875*c,.2*b,.1*c,mxConstants.DIRECTION_SOUTH,1,1);a.ellipse(.4*b,.875*c,.2*b,.1*c);a.fill();a.setAlpha(.5);a.ellipse(.404*b,.876*c,.19*b,.095*c);a.stroke();a.begin();a.setAlpha(.85);a.setFillColor("#000000");a.moveTo(.4025*b,.925*c);a.arcTo(.0975*b,.04625*c,0,0,1,.5975*b,.925*c);a.arcTo(.2*b,.1*c,0,0,1,.4025*b,.925*c);a.close();a.fillAndStroke();a.begin();a.setAlpha(.7);
|
|
a.setStrokeWidth(1.5);a.setStrokeColor("#dddddd");a.roundrect(.4575*b,.905*c,.0875*b,.04375*c,.00625*c,.00625*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IPHONE]=mxShapeMockupiPhone;function mxShapeMockupiBgFlat(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiBgFlat,mxShape);mxShapeMockupiBgFlat.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxShapeMockupiBgFlat.prototype.background=function(a,d,e,b,c){a.begin();a.rect(0,0,b,c);a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IBG_FLAT]=mxShapeMockupiBgFlat;function mxShapeMockupiBgStriped(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiBgStriped,mxShape);
|
|
mxShapeMockupiBgStriped.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeMockupiBgStriped.prototype.background=function(a,d,e,b,c){a.setStrokeWidth(1);a.begin();a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupiBgStriped.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"");e=mxUtils.getValue(this.style,mxMockupC.STYLE_STROKECOLOR2,"");a.setStrokeColor(e);e=5;for(a.begin();e<b;)a.moveTo(e,0),a.lineTo(e,c),e+=5;a.stroke();a.setStrokeColor(d);a.begin();a.rect(0,0,b,c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IBG_STRIPED]=mxShapeMockupiBgStriped;
|
|
function mxShapeMockupiBgMap(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiBgMap,mxShape);mxShapeMockupiBgMap.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeMockupiBgMap.prototype.background=function(a,d,e,b,c){a.begin();a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupiBgMap.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"");e=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"");var f=mxUtils.getValue(this.style,mxMockupC.STYLE_STROKECOLOR2,"");a.setFillColor(d);a.setStrokeColor(f);a.setStrokeWidth(.5);a.begin();a.moveTo(0,0);a.lineTo(.1171*b,0);a.lineTo(.1136*b,.0438*c);a.lineTo(.0993*b,.054*c);a.lineTo(0,.0446*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.1993*b,0);a.lineTo(.1914*b,
|
|
.03884*c);a.lineTo(.1536*b,.0362*c);a.lineTo(.1586*b,0);a.close();a.fillAndStroke();a.begin();a.moveTo(.24*b,0);a.lineTo(.2257*b,.054*c);a.lineTo(.2414*b,.0674*c);a.lineTo(.4707*b,.0835*c);a.lineTo(.5264*b,.0906*c);a.lineTo(.6429*b,.0929*c);a.arcTo(.0857*b,.0536*c,0,0,0,.7193*b,.0621*c);a.arcTo(.48*b,.2143*c,0,0,0,.7286*b,0);a.close();a.fillAndStroke();a.begin();a.moveTo(.8*b,0);a.lineTo(.7886*b,.04554*c);a.arcTo(.0857*b,.0536*c,0,0,0,.8164*b,.0875*c);a.arcTo(.1429*b,.0893*c,0,0,0,.88*b,.1036*c);
|
|
a.lineTo(b,.1112*c);a.lineTo(b,0);a.close();a.fillAndStroke();a.begin();a.moveTo(0,.0933*c);a.lineTo(.08*b,.1036*c);a.lineTo(.1021*b,.1246*c);a.lineTo(.1007*b,.1768*c);a.lineTo(.0471*b,.2241*c);a.lineTo(0,.2527*c);a.close();a.fillAndStroke();a.ellipse(.1214*b,.0603*c,.0843*b,.0576*c);a.fillAndStroke();a.begin();a.moveTo(.1293*b,.1924*c);a.lineTo(.1729*b,.142*c);a.lineTo(.1407*b,.1411*c);a.lineTo(.14*b,.1777*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.4586*b,.1241*c);a.lineTo(.455*b,.1835*c);
|
|
a.lineTo(.3893*b,.2246*c);a.lineTo(.2171*b,.1362*c);a.lineTo(.2171*b,.1308*c);a.lineTo(.2293*b,.1214*c);a.lineTo(.2857*b,.1174*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.5079*b,.1134*c);a.lineTo(.7307*b,.1223*c);a.lineTo(.7279*b,.1625*c);a.lineTo(.715*b,.1772*c);a.lineTo(.6929*b,.1688*c);a.lineTo(.625*b,.1795*c);a.lineTo(.4779*b,.2835*c);a.lineTo(.395*b,.2299*c);a.lineTo(.4657*b,.1826*c);a.lineTo(.4707*b,.1223*c);a.close();a.fillAndStroke();a.begin();a.moveTo(b,.1362*c);a.lineTo(.7643*b,.1237*
|
|
c);a.lineTo(.7543*b,.1562*c);a.lineTo(.7643*b,.1585*c);a.lineTo(.9186*b,.2366*c);a.lineTo(b,.1732*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.2079*b,.1545*c);a.lineTo(.3886*b,.2536*c);a.lineTo(.3414*b,.2933*c);a.lineTo(.1743*b,.1969*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.1579*b,.2134*c);a.lineTo(.3221*b,.3067*c);a.lineTo(.2957*b,.3237*c);a.lineTo(.1157*b,.2424*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.405*b,.2656*c);a.lineTo(.31*b,.3353*c);a.lineTo(.3693*b,.3661*c);a.lineTo(.4571*
|
|
b,.2982*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.7121*b,.1848*c);a.lineTo(.6879*b,.1754*c);a.lineTo(.6329*b,.1844*c);a.lineTo(.61*b,.2018*c);a.lineTo(.6207*b,.2085*c);a.lineTo(.4986*b,.2982*c);a.lineTo(.535*b,.3237*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.5557*b,.3379*c);a.lineTo(.7464*b,.1826*c);a.lineTo(.8036*b,.2076*c);a.lineTo(.595*b,.3616*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.8293*b,.2188*c);a.lineTo(.8979*b,.2509*c);a.lineTo(.6936*b,.4125*c);a.lineTo(.6171*b,
|
|
.3737*c);a.close();a.fillAndStroke();a.begin();a.moveTo(b,.2138*c);a.lineTo(.6821*b,.4603*c);a.lineTo(.815*b,.5277*c);a.lineTo(b,.4*c);a.close();a.fillAndStroke();a.begin();a.moveTo(0,.317*c);a.lineTo(.0971*b,.2554*c);a.lineTo(.4121*b,.4143*c);a.lineTo(.3736*b,.4415*c);a.lineTo(.315*b,.4076*c);a.lineTo(.3093*b,.4116*c);a.lineTo(.3686*b,.4455*c);a.lineTo(.285*b,.5045*c);a.lineTo(.1114*b,.4134*c);a.lineTo(.025*b,.4603*c);a.lineTo(.0371*b,.4723*c);a.lineTo(.1114*b,.4371*c);a.lineTo(.2871*b,.5312*c);
|
|
a.lineTo(.1929*b,.6058*c);a.lineTo(.2271*b,.6705*c);a.lineTo(.17*b,.7147*c);a.lineTo(.0314*b,.6321*c);a.lineTo(0,.6246*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.48*b,.3121*c);a.lineTo(.5157*b,.3375*c);a.lineTo(.4314*b,.3982*c);a.lineTo(.3929*b,.3786*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.3086*b,.5179*c);a.lineTo(.53*b,.3518*c);a.lineTo(.5757*b,.3745*c);a.lineTo(.3479*b,.5411*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.5964*b,.3884*c);a.lineTo(.6736*b,.4277*c);a.lineTo(.445*
|
|
b,.5991*c);a.lineTo(.3664*b,.5531*c);a.lineTo(.5057*b,.4545*c);a.lineTo(.5507*b,.4754*c);a.lineTo(.5571*b,.4723*c);a.lineTo(.5114*b,.4504*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.4793*b,.6161*c);a.lineTo(.6771*b,.4643*c);a.lineTo(.8086*b,.5326*c);a.lineTo(.7471*b,.5817*c);a.lineTo(.7214*b,.567*c);a.lineTo(.715*b,.571*c);a.lineTo(.7421*b,.5871*c);a.lineTo(.6014*b,.6933*c);a.close();a.fillAndStroke();a.begin();a.moveTo(b,.4371*c);a.lineTo(.8443*b,.546*c);a.lineTo(.9071*b,.5701*c);a.lineTo(b,
|
|
.5022*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.8407*b,.5504*c);a.lineTo(.8993*b,.5759*c);a.lineTo(.6757*b,.7416*c);a.lineTo(.6286*b,.7139*c);a.close();a.fillAndStroke();a.begin();a.moveTo(b,.5321*c);a.lineTo(.6979*b,.7549*c);a.lineTo(.7457*b,.7781*c);a.lineTo(.9814*b,.6094*c);a.lineTo(b,.6067*c);a.close();a.fillAndStroke();a.begin();a.moveTo(b,.6254*c);a.lineTo(.7664*b,.792*c);a.lineTo(.9586*b,.9062*c);a.lineTo(b,.8786*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.3093*b,.5464*c);a.lineTo(.4271*
|
|
b,.6152*c);a.lineTo(.245*b,.7643*c);a.lineTo(.185*b,.7228*c);a.lineTo(.2493*b,.6728*c);a.lineTo(.2214*b,.6143*c);a.close();a.fillAndStroke();a.begin();a.moveTo(0,.65*c);a.lineTo(.2179*b,.7826*c);a.lineTo(.1136*b,.8424*c);a.close();a.fillAndStroke();a.begin();a.moveTo(0,.7272*c);a.lineTo(.0821*b,.859*c);a.lineTo(0,.9085*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.4529*b,.6366*c);a.lineTo(.575*b,.7143*c);a.lineTo(.39*b,.8621*c);a.lineTo(.2657*b,.7902*c);a.close();a.fillAndStroke();a.begin();
|
|
a.moveTo(0,.9415*c);a.lineTo(.1036*b,.8821*c);a.lineTo(.2343*b,.959*c);a.lineTo(.1721*b,c);a.lineTo(0,c);a.close();a.fillAndStroke();a.begin();a.moveTo(.2586*b,.7951*c);a.lineTo(.3829*b,.8674*c);a.lineTo(.2543*b,.9451*c);a.lineTo(.1279*b,.8692*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.2836*b,.9639*c);a.lineTo(.4207*b,.8772*c);a.lineTo(.605*b,.7321*c);a.lineTo(.6521*b,.7634*c);a.lineTo(.3486*b,c);a.lineTo(.3393*b,c);a.close();a.fillAndStroke();a.begin();a.moveTo(.3879*b,c);a.lineTo(.6721*
|
|
b,.7759*c);a.lineTo(.7171*b,.7982*c);a.lineTo(.4564*b,c);a.close();a.fillAndStroke();a.begin();a.moveTo(.4986*b,c);a.lineTo(.7386*b,.8125*c);a.lineTo(.9307*b,.925*c);a.lineTo(.8264*b,c);a.close();a.fillAndStroke();a.begin();a.moveTo(.8671*b,c);a.lineTo(.9464*b,.9491*c);a.lineTo(b,.975*c);a.lineTo(b,c);a.close();a.fillAndStroke();a.begin();a.moveTo(.2295*b,c);a.lineTo(.2648*b,.9792*c);a.lineTo(.2981*b,c);a.close();a.fillAndStroke();a.setStrokeWidth(1);a.setStrokeColor(e);a.begin();a.rect(0,0,b,c);
|
|
a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IBG_MAP]=mxShapeMockupiBgMap;function mxShapeMockupiButtonBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiButtonBar,mxShape);
|
|
mxShapeMockupiButtonBar.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"+Button 1, Button 2, Button 3").toString().split(","),g=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR,"#666666"),h=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR2,"#ffffff"),k=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17").toString(),l=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#666666"),n=mxUtils.getValue(this.style,mxMockupC.STYLE_STROKECOLOR2,
|
|
"#c4c4c4"),m=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),p=f.length,q=0,u=-1,t=0;t<p;t++){var v=f[t];v.charAt(0)===mxMockupC.SELECTED&&(v=f[t].substring(1),u=t);v=mxUtils.getSizeForString(v,k,mxConstants.DEFAULT_FONTFAMILY).width;v>q&&(q=v)}var r=1.5*k,w=p*r;c=Math.max(c,w);b=Math.max(b,5+q);a.translate(d,e);this.background(a,b,c,2.5,p,2.5,p*r,l,n,m,u,r);a.setShadow(!1);this.foreground(a,b,c,2.5,p,2.5,p*r,l,n,m,u,r);for(t=v=0;t<p;t++)t===u?a.setFontColor(h):a.setFontColor(g),
|
|
v+=2.5,this.buttonText(a,b,(t*r+.5*r)*c/w,f[t],k,n)};mxShapeMockupiButtonBar.prototype.background=function(a,d,e,b,c,f,g,h,k,l,n,m){a.begin();a.setStrokeWidth(1);a.setStrokeColor(h);a.setFillColor(l);a.moveTo(0,b);a.arcTo(b,b,0,0,1,b,0);a.lineTo(d-b,0);a.arcTo(b,b,0,0,1,d,b);a.lineTo(d,e-b);a.arcTo(b,b,0,0,1,d-b,e);a.lineTo(b,e);a.arcTo(b,b,0,0,1,0,e-b);a.close();a.fillAndStroke()};
|
|
mxShapeMockupiButtonBar.prototype.foreground=function(a,d,e,b,c,f,g,h,k,l,n,m){f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1");a.setStrokeWidth(f);a.setStrokeColor(k);a.begin();for(k=1;k<c;k++)k!==n&&k!==n+1&&(f=k*m*e/g,a.moveTo(0,f),a.lineTo(d,f));a.stroke();a.setStrokeColor(mxConstants.NONE);0===n?(a.begin(),g=m*e/g,a.setGradient("#5D7585","#008cff",0,0,d,g,mxConstants.DIRECTION_SOUTH,1,1),a.moveTo(0,b),a.arcTo(b,b,0,0,1,b,0),a.lineTo(d-b,0),a.arcTo(b,b,0,0,1,d,b),a.lineTo(d,g),
|
|
a.lineTo(0,g),a.close(),a.fill()):n===c-1?(a.begin(),c=e-m*e/g,a.setGradient("#5D7585","#008cff",0,c,d,e-c,mxConstants.DIRECTION_SOUTH,1,1),a.moveTo(0,c),a.lineTo(d,c),a.lineTo(d,e-b),a.arcTo(b,b,0,0,1,d-b,e),a.lineTo(b,e),a.arcTo(b,b,0,0,1,0,e-b),a.close(),a.fill()):-1!==n&&(a.begin(),c=m*n*e/g,g=m*(n+1)*e/g,a.setGradient("#5D7585","#008cff",0,c,d,g-c,mxConstants.DIRECTION_SOUTH,1,1),a.moveTo(0,c),a.lineTo(d,c),a.lineTo(d,g),a.lineTo(0,g),a.close(),a.fill());a.begin();a.setStrokeColor(h);a.setFillColor(l);
|
|
a.moveTo(0,b);a.arcTo(b,b,0,0,1,b,0);a.lineTo(d-b,0);a.arcTo(b,b,0,0,1,d,b);a.lineTo(d,e-b);a.arcTo(b,b,0,0,1,d-b,e);a.lineTo(b,e);a.arcTo(b,b,0,0,1,0,e-b);a.close();a.stroke()};
|
|
mxShapeMockupiButtonBar.prototype.buttonText=function(a,d,e,b,c,f){b.charAt(0)===mxMockupC.SELECTED&&(b=b.substring(1));a.setFontSize(c);a.text(10,e,0,0,b,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);b=.5*c;a.setStrokeWidth(.3*c);a.setStrokeColor(f);a.begin();a.moveTo(d-20-b,e-b);a.lineTo(d-20,e);a.lineTo(d-20-b,e+b);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IBUTTON_BAR]=mxShapeMockupiButtonBar;
|
|
function mxShapeMockupiAppBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiAppBar,mxShape);mxShapeMockupiAppBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeMockupiAppBar.prototype.background=function(a,d,e,b,c){a.setGradient("#eeeeee","#999999",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.rect(0,0,b,c);a.fill()};
|
|
mxShapeMockupiAppBar.prototype.foreground=function(a,d,e,b,c){a.setFillColor("#0099ff");a.rect(5,.5*c+1.75,1.5,2.5);a.fill();a.rect(7,.5*c+.75,1.5,3.5);a.fill();a.rect(9,.5*c-.25,1.5,4.5);a.fill();a.rect(11,.5*c-1.25,1.5,5.5);a.fill();a.rect(13,.5*c-2.25,1.5,6.5);a.fill();a.rect(15,.5*c-3.25,1.5,7.5);a.fill();a.setFillColor("#999999");a.ellipse(b-56.5,.5*c-4,8,8);a.fill();a.setStrokeColor("#cccccc");a.begin();a.moveTo(b-52.5,.5*c-3);a.lineTo(b-52.5,.5*c);a.lineTo(b-54.5,.5*c);a.stroke();a.setStrokeWidth(.5);
|
|
a.setStrokeColor("#333333");a.setFillColor("#990000");a.begin();a.moveTo(b-45.5,.5*c);a.lineTo(b-37.5,.5*c-5);a.lineTo(b-41.5,.5*c+4);a.lineTo(b-42,.5*c+.5);a.close();a.fillAndStroke();a.setFillColor("#999999");a.setStrokeColor("#999999");a.begin();a.moveTo(b-28.5,.5*c+3.5);a.arcTo(3.5,3.5,0,1,1,b-26.5,.5*c+1);a.stroke();a.begin();a.moveTo(b-27.25,.5*c+.25);a.lineTo(b-25.75,.5*c+.25);a.lineTo(b-26.5,.5*c+1.5);a.close();a.fillAndStroke();a.begin();a.moveTo(b-31,.5*c-.5);a.arcTo(1,1.5,0,0,1,b-29,.5*
|
|
c-.5);a.stroke();a.rect(b-31.5,.5*c-.5,3,2);a.fillAndStroke();a.setGradient("#eeeeee","#444444",b-20,.5*c-3,16.5,6,mxConstants.DIRECTION_NORTH,1,1);a.begin();a.moveTo(b-20,.5*c-3);a.lineTo(b-5,.5*c-3);a.lineTo(b-5,.5*c-1);a.lineTo(b-3.5,.5*c-1);a.lineTo(b-3.5,.5*c+1);a.lineTo(b-5,.5*c+1);a.lineTo(b-5,.5*c+3);a.lineTo(b-20,.5*c+3);a.close();a.fill();a.setGradient("#E2FFEB","#008215",b-20,.5*c-3,10,6,mxConstants.DIRECTION_SOUTH,1,1);a.begin();a.moveTo(b-20,.5*c-3);a.lineTo(b-10,.5*c-3);a.lineTo(b-10,
|
|
.5*c+3);a.lineTo(b-20,.5*c+3);a.close();a.fill();a.setStrokeColor("#666666");a.begin();a.moveTo(b-20,.5*c-3);a.lineTo(b-5,.5*c-3);a.lineTo(b-5,.5*c-1);a.lineTo(b-3.5,.5*c-1);a.lineTo(b-3.5,.5*c+1);a.lineTo(b-5,.5*c+1);a.lineTo(b-5,.5*c+3);a.lineTo(b-20,.5*c+3);a.close();a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IAPP_BAR]=mxShapeMockupiAppBar;function mxShapeMockupiTopBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupiTopBar,mxShape);mxShapeMockupiTopBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeMockupiTopBar.prototype.background=function(a,d,e,b,c){a.setAlpha(.5);a.setFillColor("#999999");a.rect(0,0,b,c);a.fill()};
|
|
mxShapeMockupiTopBar.prototype.foreground=function(a,d,e,b,c){a.setFillColor("#cccccc");a.setStrokeColor("#cccccc");a.setFontColor("#cccccc");a.setFontSize(7.5);a.rect(5,.5*c+1.75,1.5,2.5);a.fill();a.rect(7,.5*c+.75,1.5,3.5);a.fill();a.rect(9,.5*c-.25,1.5,4.5);a.fill();a.rect(11,.5*c-1.25,1.5,5.5);a.fill();a.rect(13,.5*c-2.25,1.5,6.5);a.fill();a.rect(15,.5*c-3.25,1.5,7.5);a.fill();a.text(18,.5*c,0,0,"CARRIER",mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.5*c,0,0,"11:15AM",
|
|
mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.begin();a.moveTo(b-19,.5*c-2);a.lineTo(b-10,.5*c-2);a.lineTo(b-10,.5*c+2);a.lineTo(b-19,.5*c+2);a.close();a.fill();a.begin();a.moveTo(b-20,.5*c-3);a.lineTo(b-5,.5*c-3);a.lineTo(b-5,.5*c-1);a.lineTo(b-3.5,.5*c-1);a.lineTo(b-3.5,.5*c+1);a.lineTo(b-5,.5*c+1);a.lineTo(b-5,.5*c+3);a.lineTo(b-20,.5*c+3);a.close();a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ITOP_BAR]=mxShapeMockupiTopBar;
|
|
function mxShapeMockupiTopBar2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiTopBar2,mxShape);mxShapeMockupiTopBar2.prototype.cst={SHAPE_ITOP_BAR2:"mxgraph.ios.iTopBar2"};mxShapeMockupiTopBar2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeMockupiTopBar2.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fill()};
|
|
mxShapeMockupiTopBar2.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(d);a.setStrokeColor(d);a.rect(5,.5*c+1.75,1.5,2.5);a.fill();a.rect(7,.5*c+.75,1.5,3.5);a.fill();a.rect(9,.5*c-.25,1.5,4.5);a.fill();a.rect(11,.5*c-1.25,1.5,5.5);a.fill();a.rect(13,.5*c-2.25,1.5,6.5);a.fill();a.rect(15,.5*c-3.25,1.5,7.5);a.fill();a.begin();a.moveTo(b-19,.5*c-2);a.lineTo(b-10,.5*c-2);a.lineTo(b-10,.5*c+2);a.lineTo(b-19,.5*c+2);a.close();
|
|
a.fill();a.begin();a.moveTo(b-20,.5*c-3);a.lineTo(b-5,.5*c-3);a.lineTo(b-5,.5*c-1);a.lineTo(b-3.5,.5*c-1);a.lineTo(b-3.5,.5*c+1);a.lineTo(b-5,.5*c+1);a.lineTo(b-5,.5*c+3);a.lineTo(b-20,.5*c+3);a.close();a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeMockupiTopBar2.prototype.cst.SHAPE_ITOP_BAR2]=mxShapeMockupiTopBar2;function mxShapeMockupiTopBarLocked(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupiTopBarLocked,mxShape);mxShapeMockupiTopBarLocked.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeMockupiTopBarLocked.prototype.background=function(a,d,e,b,c){a.setFillColor("#000000");a.rect(0,0,b,c);a.fill()};
|
|
mxShapeMockupiTopBarLocked.prototype.foreground=function(a,d,e,b,c){a.setFillColor("#cccccc");a.setStrokeColor("#cccccc");a.rect(5,.5*c+1.75,1.5,2.5);a.fill();a.rect(7,.5*c+.75,1.5,3.5);a.fill();a.rect(9,.5*c-.25,1.5,4.5);a.fill();a.rect(11,.5*c-1.25,1.5,5.5);a.fill();a.rect(13,.5*c-2.25,1.5,6.5);a.fill();a.rect(15,.5*c-3.25,1.5,7.5);a.fill();a.begin();a.moveTo(.5*b-2,.5*c-1);a.arcTo(2,3,0,0,1,.5*b+2,.5*c-1);a.stroke();a.rect(.5*b-3,.5*c-1,6,4);a.fillAndStroke();a.begin();a.moveTo(b-19,.5*c-2);a.lineTo(b-
|
|
10,.5*c-2);a.lineTo(b-10,.5*c+2);a.lineTo(b-19,.5*c+2);a.close();a.fill();a.begin();a.moveTo(b-20,.5*c-3);a.lineTo(b-5,.5*c-3);a.lineTo(b-5,.5*c-1);a.lineTo(b-3.5,.5*c-1);a.lineTo(b-3.5,.5*c+1);a.lineTo(b-5,.5*c+1);a.lineTo(b-5,.5*c+3);a.lineTo(b-20,.5*c+3);a.close();a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ITOP_BAR_LOCKED]=mxShapeMockupiTopBarLocked;
|
|
function mxShapeMockupiButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiButton,mxShape);
|
|
mxShapeMockupiButton.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"Main Text"),g=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR2,"#666666").toString(),h=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"8.5").toString();a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.mainText(a,d,e,b,c,f,h,g)};
|
|
mxShapeMockupiButton.prototype.background=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"").toString();e=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"").toString();a.setGradient(d,e,0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.roundrect(0,0,b,c,2.5,2.5);a.fill()};mxShapeMockupiButton.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.text(b/2,c/2,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IBUTTON]=mxShapeMockupiButton;function mxShapeMockupiButtonBack(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiButtonBack,mxShape);
|
|
mxShapeMockupiButtonBack.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"Main Text"),g=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR2,"#666666").toString(),h=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17").toString();a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.mainText(a,d,e,b,c,f,h,g)};
|
|
mxShapeMockupiButtonBack.prototype.background=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"").toString();e=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"").toString();a.setGradient(d,e,0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);rSize=2.5;a.begin();a.moveTo(b,rSize);a.arcTo(rSize,rSize,0,0,0,b-rSize,0);a.lineTo(10,0);a.lineTo(.87,.5*c-.75);a.arcTo(rSize,rSize,0,0,0,.87,.5*c+.75);a.lineTo(10,c);a.lineTo(b-rSize,c);a.arcTo(rSize,rSize,0,0,0,b,c-rSize);a.close();
|
|
a.fill()};mxShapeMockupiButtonBack.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.text(.5*b+2.5,.5*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IBUTTON_BACK]=mxShapeMockupiButtonBack;function mxShapeMockupiButtonForward(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiButtonForward,mxShape);
|
|
mxShapeMockupiButtonForward.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"Main Text"),g=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR2,"#666666").toString(),h=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"17").toString();a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.mainText(a,d,e,b,c,f,h,g)};
|
|
mxShapeMockupiButtonForward.prototype.background=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"").toString();e=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"").toString();a.setGradient(d,e,0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);rSize=2.5;a.begin();a.moveTo(0,rSize);a.arcTo(rSize,rSize,0,0,1,rSize,0);a.lineTo(b-10,0);a.lineTo(b-.87,.5*c-.75);a.arcTo(rSize,rSize,0,0,1,b-.87,.5*c+.75);a.lineTo(b-10,c);a.lineTo(rSize,c);a.arcTo(rSize,rSize,0,0,1,0,c-rSize);
|
|
a.close();a.fill()};mxShapeMockupiButtonForward.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.text(.5*b-2.5,.5*c,0,0,f,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IBUTTON_FORWARD]=mxShapeMockupiButtonForward;function mxShapeMockupiPrevNextButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupiPrevNextButton,mxShape);mxShapeMockupiPrevNextButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeMockupiPrevNextButton.prototype.background=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"").toString();e=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"").toString();a.setGradient(d,e,0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.roundrect(0,0,b,c,5,5);a.fill();a.begin();a.moveTo(.5*b,0);a.lineTo(.5*b,c);a.stroke()};
|
|
mxShapeMockupiPrevNextButton.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR3,"").toString();a.setFillColor(d);a.begin();a.moveTo(.25*b,.25*c);a.lineTo(.35*b,.75*c);a.lineTo(.15*b,.75*c);a.close();a.fill();a.begin();a.moveTo(.75*b,.75*c);a.lineTo(.85*b,.25*c);a.lineTo(.65*b,.25*c);a.close();a.fill()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IPREV_NEXT]=mxShapeMockupiPrevNextButton;
|
|
function mxShapeMockupiTextInput(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiTextInput,mxShape);
|
|
mxShapeMockupiTextInput.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"Main Text"),g=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR2,"#000000").toString(),h=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"8").toString();a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.mainText(a,d,e,b,c,f,h,g)};mxShapeMockupiTextInput.prototype.background=function(a,d,e,b,c){a.roundrect(0,0,b,c,2.5,2.5);a.fillAndStroke()};
|
|
mxShapeMockupiTextInput.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.text(2,.5*c,0,0,f,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ITEXT_INPUT]=mxShapeMockupiTextInput;function mxShapeMockupiRadioGroup(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiRadioGroup,mxShape);
|
|
mxShapeMockupiRadioGroup.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);var f=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR2,"#666666").toString(),g=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"8").toString();d=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"Option 1").toString().split(",");e=d.length;var h=Math.max(1.5*g,5),k=0,l=-1,n=e*h;c=Math.max(c,n);for(var m=0;m<e;m++){var p=d[m];p.charAt(0)===mxMockupC.SELECTED&&(p=d[m].substring(1),l=m);p=mxUtils.getSizeForString(p,
|
|
g,mxConstants.DEFAULT_FONTFAMILY).width;p>k&&(k=p)}a.roundrect(0,0,Math.max(b,5+k+10),c,2.5,2.5);a.fillAndStroke();a.setShadow(!1);a.setFontSize(g);a.setFontColor(f);for(m=0;m<e;m++)b=(m*h+.5*h)*c/n,p=d[m],p.charAt(0)===mxMockupC.SELECTED&&(p=d[m].substring(1),l=m),a.text(12.5,b,0,0,p,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),b-=2.5,a.setFillColor("#dddddd"),a.setStrokeColor("#000000"),l===m?(a.setGradient("#aaaaaa","#666666",2.5,b,5,5,mxConstants.DIRECTION_SOUTH,1,1),a.ellipse(2.5,
|
|
b,5,5),a.fillAndStroke(),a.setFillColor("#333333"),a.setStrokeColor("#333333"),a.ellipse(3.75,b+1.25,2.5,2.5)):(a.setGradient("#eeeeee","#cccccc",2.5,b,5,5,mxConstants.DIRECTION_SOUTH,1,1),a.ellipse(2.5,b,5,5)),a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IRADIO_GROUP]=mxShapeMockupiRadioGroup;function mxShapeMockupiCheckboxGroup(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupiCheckboxGroup,mxShape);
|
|
mxShapeMockupiCheckboxGroup.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);var f=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR2,"#666666").toString(),g=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"8").toString();d=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"Option 1").toString().split(",");e=d.length;var h=Math.max(1.5*g,5),k=0,l=-1,n=e*h;c=Math.max(c,n);for(var m=0;m<e;m++){var p=d[m];p.charAt(0)===mxMockupC.SELECTED&&(p=d[m].substring(1),l=m);p=mxUtils.getSizeForString(p,
|
|
g,mxConstants.DEFAULT_FONTFAMILY).width;p>k&&(k=p)}a.roundrect(0,0,Math.max(b,5+k+10),c,2.5,2.5);a.fillAndStroke();a.setShadow(!1);a.setFontSize(g);a.setFontColor(f);for(m=0;m<e;m++)b=(m*h+.5*h)*c/n,p=d[m],p.charAt(0)===mxMockupC.SELECTED&&(p=d[m].substring(1),l=m),a.text(12.5,b,0,0,p,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),b-=2.5,a.setFillColor("#dddddd"),a.setStrokeColor("#000000"),l===m?(a.setGradient("#aaaaaa","#666666",2.5,b,5,5,mxConstants.DIRECTION_SOUTH,1,1),a.rect(2.5,
|
|
b,5,5),a.fillAndStroke(),a.setStrokeColor("#333333"),a.begin(),a.moveTo(3.75,b+2.5),a.lineTo(5,b+3.75),a.lineTo(6.25,b+1.25),a.stroke()):(a.setGradient("#eeeeee","#cccccc",2.5,b,5,5,mxConstants.DIRECTION_SOUTH,1,1),a.rect(2.5,b,5,5),a.fillAndStroke()),l=-1};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ICHECKBOX_GROUP]=mxShapeMockupiCheckboxGroup;function mxShapeMockupiComboBox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupiComboBox,mxShape);mxShapeMockupiComboBox.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"Main Text"),g=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR2,"#666666").toString(),h=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"8.5").toString();a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c);this.mainText(a,d,e,b,c,f,h,g)};
|
|
mxShapeMockupiComboBox.prototype.background=function(a,d,e,b,c){a.setFillColor("#ffffff");a.roundrect(0,0,b,c,2.5,2.5);a.fillAndStroke()};
|
|
mxShapeMockupiComboBox.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"").toString();e=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"").toString();a.setGradient(d,e,b-30,0,30,c,mxConstants.DIRECTION_SOUTH,1,1);a.begin();a.moveTo(b-15,0);a.lineTo(b-2.5,0);a.arcTo(2.5,2.5,0,0,1,b,2.5);a.lineTo(b,c-2.5);a.arcTo(2.5,2.5,0,0,1,b-2.5,c);a.lineTo(b-15,c);a.close();a.fillAndStroke();a.setFillColor("#ffffff");a.begin();a.moveTo(b-11,5);a.lineTo(b-
|
|
7.5,10);a.lineTo(b-4,5);a.fill()};mxShapeMockupiComboBox.prototype.mainText=function(a,d,e,b,c,f,g,h){a.begin();a.setFontSize(g);a.setFontColor(h);a.text(2.5,.5*c,0,0,f,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ICOMBO_BOX]=mxShapeMockupiComboBox;function mxShapeMockupiOnOffButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiOnOffButton,mxShape);
|
|
mxShapeMockupiOnOffButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);b=Math.max(b,2*c);var f=mxUtils.getValue(this.style,mxMockupC.BUTTON_STATE,mxMockupC.STATE_ON);this.background(a,d,e,b,c,f);a.setShadow(!1);this.foreground(a,d,e,b,c,f);this.mainText(a,d,e,b,c,f)};
|
|
mxShapeMockupiOnOffButton.prototype.background=function(a,d,e,b,c,f){f===mxMockupC.STATE_ON?(a.setGradient("#E2FFEB","#008215",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1),a.roundrect(0,0,b,c,.5*c,.5*c),a.fillAndStroke()):f===mxMockupC.STATE_OFF&&(a.setGradient("#cc9999","#881100",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1),a.roundrect(0,0,b,c,.5*c,.5*c),a.fillAndStroke())};
|
|
mxShapeMockupiOnOffButton.prototype.foreground=function(a,d,e,b,c,f){f===mxMockupC.STATE_ON?(a.setGradient("#ffffff","#888888",b-c,0,c,c,mxConstants.DIRECTION_SOUTH,1,1),a.ellipse(b-c,0,c,c)):(a.setGradient("#ffffff","#888888",0,0,c,c,mxConstants.DIRECTION_SOUTH,1,1),a.ellipse(0,0,c,c));a.fillAndStroke()};
|
|
mxShapeMockupiOnOffButton.prototype.mainText=function(a,d,e,b,c,f){d=mxUtils.getValue(this.style,"mainText",null);a.setFontColor("#ffffff");a.setFontSize(8.5);""!=d&&(f===mxMockupC.STATE_ON?a.text(.5*b-.4*c,.5*c,0,0,d||"ON",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0):f===mxMockupC.STATE_OFF&&a.text(.5*b+.4*c,.5*c,0,0,d||"OFF",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0))};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ION_OFF_BUTTON]=mxShapeMockupiOnOffButton;
|
|
function mxShapeMockupiAlertBox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiAlertBox,mxShape);mxShapeMockupiAlertBox.prototype.paintVertexShape=function(a,d,e,b,c){b=Math.max(b,15);c=Math.max(c,15);a.translate(d,e);rSize=7.5;this.background(a,d,e,b,c,rSize);a.setShadow(!1);this.foreground(a,d,e,b,c,rSize)};
|
|
mxShapeMockupiAlertBox.prototype.background=function(a,d,e,b,c,f){a.setGradient("#497198","#193168",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.setAlpha(.8);a.setStrokeWidth(1);a.roundrect(0,0,b,c,f,f);a.fillAndStroke()};
|
|
mxShapeMockupiAlertBox.prototype.foreground=function(a,d,e,b,c,f){d=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"Main Text").toString().split(",");a.setStrokeColor("#497198");a.setGradient("#497198","#c5cee1",0,0,b,22.5,mxConstants.DIRECTION_SOUTH,1,1);a.setAlpha(.5);a.begin();a.moveTo(b-f,0);a.arcTo(f,f,0,0,1,b,f);a.lineTo(b,17.5);a.arcTo(1.67*b,2.5*c,0,0,1,0,17.5);a.lineTo(0,f);a.arcTo(f,f,0,0,1,f,0);a.close();a.fillAndStroke();a.setAlpha(.8);a.setStrokeColor("#ffffff");a.setStrokeWidth(1);
|
|
a.roundrect(0,0,b,c,f,f);a.stroke();a.setGradient("#497198","#c5cee1",5,c-50,b-20,20,mxConstants.DIRECTION_SOUTH,1,1);a.roundrect(5,c-25,b-10,20,2.5,2.5);a.fillAndStroke();a.setAlpha(.9);a.setFontSize(9.5);a.setFontColor("#ffffff");a.text(.5*b,.15*c,0,0,d[0],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFontSize(8);a.text(.5*b,.4*c,0,0,d[2],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.55*c,0,0,d[3],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,
|
|
0,null,0,0,0);a.setFontSize(8.5);a.text(.5*b,c-15,0,0,d[1],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IALERT_BOX]=mxShapeMockupiAlertBox;function mxShapeMockupiDialogBox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiDialogBox,mxShape);
|
|
mxShapeMockupiDialogBox.prototype.paintVertexShape=function(a,d,e,b,c){b=Math.max(b,15);c=Math.max(c,15);a.translate(d,e);rSize=7.5;this.background(a,d,e,b,c,rSize);a.setShadow(!1);this.foreground(a,d,e,b,c,rSize)};mxShapeMockupiDialogBox.prototype.background=function(a,d,e,b,c,f){a.setGradient("#497198","#193168",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.setAlpha(.8);a.setStrokeWidth(1);a.roundrect(0,0,b,c,f,f);a.fillAndStroke()};
|
|
mxShapeMockupiDialogBox.prototype.foreground=function(a,d,e,b,c,f){d=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"Main Text").toString().split(",");a.setStrokeColor("#497198");a.setGradient("#497198","#c5cee1",0,0,b,22.5,mxConstants.DIRECTION_SOUTH,1,1);a.setAlpha(.5);a.begin();a.moveTo(b-f,0);a.arcTo(f,f,0,0,1,b,f);a.lineTo(b,17.5);a.arcTo(1.67*b,2.5*c,0,0,1,0,17.5);a.lineTo(0,f);a.arcTo(f,f,0,0,1,f,0);a.close();a.fillAndStroke();a.setAlpha(.8);a.setStrokeColor("#ffffff");a.setStrokeWidth(1);
|
|
a.roundrect(0,0,b,c,f,f);a.stroke();a.setGradient("#497198","#c5cee1",5,c-25,.5*b-10,20,mxConstants.DIRECTION_SOUTH,1,1);a.roundrect(5,c-25,.5*b-10,20,2.5,2.5);a.fillAndStroke();a.roundrect(.5*b+2.5,c-25,.5*b-10,20,2.5,2.5);a.fillAndStroke();a.setAlpha(.9);a.setFontSize(9.5);a.setFontColor("#ffffff");a.text(.5*b,.15*c,0,0,d[0],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFontSize(8);a.text(.5*b,.4*c,0,0,d[3],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*
|
|
b,.55*c,0,0,d[4],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFontSize(8.5);a.text(.25*b,c-15,0,0,d[1],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.75*b,c-15,0,0,d[2],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IDIALOG_BOX]=mxShapeMockupiDialogBox;
|
|
function mxShapeMockupiLockButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiLockButton,mxShape);
|
|
mxShapeMockupiLockButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setShadow(!1);a.setAlpha(.7);a.setGradient("#4A4F56","#70757B",0,0,b,c,mxConstants.DIRECTION_NORTH,1,1);a.rect(0,0,b,c);a.fill();a.setAlpha(.8);a.setGradient("#18232D","#1F2933",10,10,154,30,mxConstants.DIRECTION_NORTH,1,1);a.roundrect(10,.5*c-15,b-20,30,7.5,7.5);a.fill();a.setAlpha(1);a.setGradient("#E9F3FD","#ADB7C1",12.5,12.5,40,25,mxConstants.DIRECTION_SOUTH,1,1);a.roundrect(12.5,.5*c-12.5,40,25,5,5);a.fill();
|
|
a.setAlpha(.8);a.setStrokeWidth(.5);a.setStrokeColor("#aabbbb");a.setGradient("#AEB7C1","#667079",20,17.5,25,15,mxConstants.DIRECTION_SOUTH,1,1);a.begin();a.moveTo(20,.5*c-3.5);a.lineTo(35,.5*c-3.5);a.lineTo(35,.5*c-7.5);a.lineTo(45,.5*c);a.lineTo(35,.5*c+7.5);a.lineTo(35,.5*c+3.5);a.lineTo(20,.5*c+3.5);a.close();a.fillAndStroke();""!=mxUtils.getValue(this.style,"mainText",null)&&(a.setFontSize(12.5),a.setFontColor("#cccccc"),a.text(b/2+20.5,c/2,0,0,"slide to unlock",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,
|
|
0,null,0,0,0))};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ILOCK_BUTTON]=mxShapeMockupiLockButton;function mxShapeMockupiArrowIcon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiArrowIcon,mxShape);
|
|
mxShapeMockupiArrowIcon.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"").toString();a.translate(d,e);this.background(a,d,e,b,c,f);a.setShadow(!1);this.foreground(a,d,e,b,c,f)};
|
|
mxShapeMockupiArrowIcon.prototype.background=function(a,d,e,b,c,f){d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"").toString();e=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"").toString();a.setGradient(d,e,0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.setStrokeWidth(1.5);a.setStrokeColor(f);a.ellipse(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupiArrowIcon.prototype.foreground=function(a,d,e,b,c,f){a.setStrokeWidth(2.5);a.begin();a.moveTo(.4*b,.22*c);a.lineTo(.65*b,.5*c);a.lineTo(.4*b,.78*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IARROW_ICON]=mxShapeMockupiArrowIcon;function mxShapeMockupiDeleteIcon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiDeleteIcon,mxShape);
|
|
mxShapeMockupiDeleteIcon.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"").toString();a.translate(d,e);this.background(a,d,e,b,c,f);a.setShadow(!1);this.foreground(a,d,e,b,c,f)};
|
|
mxShapeMockupiDeleteIcon.prototype.background=function(a,d,e,b,c,f){d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"").toString();e=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"").toString();a.setGradient(d,e,0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.setStrokeWidth(1.5);a.setStrokeColor(f);a.ellipse(0,0,b,c);a.fillAndStroke()};mxShapeMockupiDeleteIcon.prototype.foreground=function(a,d,e,b,c,f){a.setStrokeWidth(2.5);a.begin();a.moveTo(.25*b,.5*c);a.lineTo(.75*b,.5*c);a.stroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IDELETE_ICON]=mxShapeMockupiDeleteIcon;function mxShapeMockupiAddIcon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiAddIcon,mxShape);
|
|
mxShapeMockupiAddIcon.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"").toString(),g=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"").toString(),h=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"").toString();a.setGradient(g,h,0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.setStrokeColor(f);a.translate(d,e);this.background(a,d,e,b,c,f);a.setShadow(!1);this.foreground(a,d,e,b,c,f)};
|
|
mxShapeMockupiAddIcon.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(1.5);a.ellipse(0,0,b,c);a.fillAndStroke()};mxShapeMockupiAddIcon.prototype.foreground=function(a,d,e,b,c,f){a.setStrokeWidth(2.5);a.begin();a.moveTo(.25*b,.5*c);a.lineTo(.75*b,.5*c);a.moveTo(.5*b,.25*c);a.lineTo(.5*b,.75*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IADD_ICON]=mxShapeMockupiAddIcon;
|
|
function mxShapeMockupiInfoIcon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiInfoIcon,mxShape);mxShapeMockupiInfoIcon.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"").toString();a.translate(d,e);this.background(a,d,e,b,c,f);a.setShadow(!1);this.foreground(a,d,e,b,c,f)};
|
|
mxShapeMockupiInfoIcon.prototype.background=function(a,d,e,b,c,f){d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"").toString();e=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"").toString();a.setGradient(d,e,0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.setStrokeWidth(1.5);a.setStrokeColor(f);a.ellipse(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupiInfoIcon.prototype.foreground=function(a,d,e,b,c,f){a.setStrokeWidth(2.5);a.begin();a.setFillColor("#ffffff");a.moveTo(.47*b,.334*c);a.arcTo(.1*b,.15*c,60,0,1,.61*b,.42*c);a.lineTo(.51*b,.7*c);a.arcTo(.026*b,.03*c,30,0,0,.54*b,.74*c);a.lineTo(.608*b,.684*c);a.arcTo(.02*b,.015*c,0,0,1,.638*b,.706*c);a.arcTo(.45*b,.45*c,0,0,1,.42*b,.865*c);a.arcTo(.1*b,.08*c,-15,0,1,.325*b,.77*c);a.lineTo(.358*b,.66*c);a.lineTo(.435*b,.46*c);a.arcTo(.023*b,.03*c,0,0,0,.4*b,.43*c);a.lineTo(.338*b,.484*
|
|
c);a.arcTo(.01*b,.015*c,45,0,1,.31*b,.47*c);a.arcTo(.3*b,.3*c,0,0,1,.47*b,.334*c);a.fill();a.begin();a.moveTo(.5438*b,.141*c);a.arcTo(.0776*b,.0898*c,40,0,1,.6671*b,.2308*c);a.arcTo(.0776*b,.0898*c,40,0,1,.5438*b,.141*c);a.close();a.fill()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IINFO_ICON]=mxShapeMockupiInfoIcon;function mxShapeMockupiSortFindIcon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupiSortFindIcon,mxShape);mxShapeMockupiSortFindIcon.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"").toString();a.translate(d,e);this.background(a,d,e,b,c,f);a.setShadow(!1);this.foreground(a,d,e,b,c,f)};
|
|
mxShapeMockupiSortFindIcon.prototype.background=function(a,d,e,b,c,f){d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"").toString();e=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"").toString();a.setGradient(d,e,0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.setStrokeWidth(1.5);a.setStrokeColor(f);a.roundrect(0,0,b,c,.1*b,.1*c);a.fillAndStroke()};
|
|
mxShapeMockupiSortFindIcon.prototype.foreground=function(a,d,e,b,c,f){a.setStrokeWidth(Math.min(c,b)/20);a.begin();a.setFillColor("#ffffff");a.moveTo(.1*b,.25*c);a.lineTo(.9*b,.25*c);a.moveTo(.1*b,.4*c);a.lineTo(.9*b,.4*c);a.moveTo(.1*b,.55*c);a.lineTo(.6*b,.55*c);a.moveTo(.1*b,.7*c);a.lineTo(.5*b,.7*c);a.stroke();a.begin();a.ellipse(.6*b,.6*c,.2*b,.2*c);a.stroke();a.begin();a.moveTo(.77*b,.77*c);a.lineTo(.85*b,.85*c);a.stroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ISORT_FIND_ICON]=mxShapeMockupiSortFindIcon;function mxShapeMockupiCheckIcon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiCheckIcon,mxShape);
|
|
mxShapeMockupiCheckIcon.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"").toString();a.translate(d,e);this.background(a,d,e,b,c,f);a.setShadow(!1);this.foreground(a,d,e,b,c,f)};
|
|
mxShapeMockupiCheckIcon.prototype.background=function(a,d,e,b,c,f){d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"").toString();e=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"").toString();a.setGradient(d,e,0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.setStrokeWidth(1.5);a.setStrokeColor(f);a.ellipse(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupiCheckIcon.prototype.foreground=function(a,d,e,b,c,f){a.setStrokeWidth(2.5);a.begin();a.moveTo(.25*b,.5*c);a.lineTo(.5*b,.65*c);a.lineTo(.75*b,.25*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ICHECK_ICON]=mxShapeMockupiCheckIcon;function mxShapeMockupiKeybLetters(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiKeybLetters,mxShape);
|
|
mxShapeMockupiKeybLetters.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!0);this.foreground(a,d,e,b,c)};mxShapeMockupiKeybLetters.prototype.background=function(a,d,e,b,c){a.setGradient("#8A97A7","#425163",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.rect(0,0,b,c);a.fill()};
|
|
mxShapeMockupiKeybLetters.prototype.foreground=function(a,d,e,b,c,f){a.setGradient("#EEF3F9","#DBE2E9",.0086*b,.03*c,.0776*b,.19*c,mxConstants.DIRECTION_SOUTH,1,1);rSizeX=.0144*b;rSizeY=.025*c;a.setFontSize(10.5);a.setFontColor("#000000");a.roundrect(.0086*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.0474*b,.125*c,0,0,"Q",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.1092*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.148*b,.125*c,0,0,"W",mxConstants.ALIGN_CENTER,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.2098*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.2486*b,.125*c,0,0,"E",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.3103*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.3491*b,.125*c,0,0,"R",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.4109*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.4497*b,.125*c,0,0,"T",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,
|
|
null,0,0,0);a.roundrect(.5115*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.5503*b,.125*c,0,0,"Y",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.6121*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.6509*b,.125*c,0,0,"U",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.7126*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.7514*b,.125*c,0,0,"I",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.8132*
|
|
b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.852*b,.125*c,0,0,"O",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.9138*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.9526*b,.125*c,0,0,"P",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.0632*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.102*b,.375*c,0,0,"A",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.1638*b,.28*c,.0776*b,.19*c,rSizeX,
|
|
rSizeY);a.fill();a.text(.2026*b,.375*c,0,0,"S",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.2644*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.3032*b,.375*c,0,0,"D",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.3649*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.4037*b,.375*c,0,0,"F",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.4655*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.5043*
|
|
b,.375*c,0,0,"G",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.5661*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.6049*b,.375*c,0,0,"H",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.6667*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.7055*b,.375*c,0,0,"J",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.7672*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.806*b,.375*c,0,0,"K",mxConstants.ALIGN_CENTER,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.8678*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.9066*b,.375*c,0,0,"L",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.1638*b,.53*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.2026*b,.625*c,0,0,"Z",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.2644*b,.53*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.3032*b,.625*c,0,0,"X",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,
|
|
null,0,0,0);a.roundrect(.3649*b,.53*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.4037*b,.625*c,0,0,"C",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.4655*b,.53*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.5043*b,.625*c,0,0,"V",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.5661*b,.53*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.6049*b,.625*c,0,0,"B",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.6667*
|
|
b,.53*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.7055*b,.625*c,0,0,"N",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.7672*b,.53*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.806*b,.625*c,0,0,"M",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.2644*b,.78*c,.4799*b,.19*c,rSizeX,rSizeY);a.fill();a.setFontColor("#666666");a.text(.5043*b,.875*c,0,0,"space",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFontColor("#ffffff");
|
|
a.setGradient("#8B98A8","#677488",.0115*b,.53*c,.1207*b,.19*c,mxConstants.DIRECTION_SOUTH,1,1);a.roundrect(.0115*b,.53*c,.1207*b,.19*c,rSizeX,rSizeY);a.fill();a.setGradient("#8B98A8","#677488",.8736*b,.53*c,.115*b,.19*c,mxConstants.DIRECTION_SOUTH,1,1);a.roundrect(.8736*b,.53*c,.115*b,.19*c,rSizeX,rSizeY);a.fill();a.setGradient("#8B98A8","#677488",.0115*b,.78*c,.2299*b,.19*c,mxConstants.DIRECTION_SOUTH,1,1);a.roundrect(.0115*b,.78*c,.2299*b,.19*c,rSizeX,rSizeY);a.fill();a.setGradient("#8B98A8","#677488",
|
|
.7672*b,.78*c,.2213*b,.19*c,mxConstants.DIRECTION_SOUTH,1,1);a.roundrect(.7672*b,.78*c,.2213*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.1264*b,.875*c,0,0,".?123",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.8779*b,.875*c,0,0,"return",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setShadow(!1);a.setLineJoin("round");a.setStrokeColor("#ffffff");a.setFillColor("#ffffff");a.setStrokeWidth(1.5);a.begin();a.moveTo(.0402*b,.635*c);a.lineTo(.0718*b,.58*c);a.lineTo(.1034*
|
|
b,.635*c);a.lineTo(.0862*b,.635*c);a.lineTo(.0862*b,.67*c);a.lineTo(.0575*b,.67*c);a.lineTo(.0575*b,.635*c);a.close();a.stroke();a.begin();a.moveTo(.9109*b,.585*c);a.lineTo(.9655*b,.585*c);a.lineTo(.9655*b,.665*c);a.lineTo(.9109*b,.665*c);a.lineTo(.8879*b,.625*c);a.close();a.fillAndStroke();a.setStrokeColor("#677488");a.begin();a.moveTo(.9224*b,.605*c);a.lineTo(.9454*b,.645*c);a.moveTo(.9224*b,.645*c);a.lineTo(.9454*b,.605*c);a.stroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IKEYB_LETTERS]=mxShapeMockupiKeybLetters;function mxShapeMockupiKeybNumbers(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiKeybNumbers,mxShape);mxShapeMockupiKeybNumbers.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!0);this.foreground(a,d,e,b,c)};
|
|
mxShapeMockupiKeybNumbers.prototype.background=function(a,d,e,b,c){a.setGradient("#8A97A7","#425163",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.rect(0,0,b,c);a.fill()};
|
|
mxShapeMockupiKeybNumbers.prototype.foreground=function(a,d,e,b,c,f){a.setGradient("#EEF3F9","#DBE2E9",.0086*b,.03*c,.0776*b,.19*c,mxConstants.DIRECTION_SOUTH,1,1);rSizeX=.0144*b;rSizeY=.025*c;a.setFontSize(10.5);a.setFontColor("#000000");a.roundrect(.0086*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.0474*b,.125*c,0,0,"1",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.1092*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.148*b,.125*c,0,0,"2",mxConstants.ALIGN_CENTER,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.2098*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.2486*b,.125*c,0,0,"3",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.3103*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.3491*b,.125*c,0,0,"4",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.4109*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.4497*b,.125*c,0,0,"5",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,
|
|
null,0,0,0);a.roundrect(.5115*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.5503*b,.125*c,0,0,"6",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.6121*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.6509*b,.125*c,0,0,"7",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.7126*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.7514*b,.125*c,0,0,"8",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.8132*
|
|
b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.852*b,.125*c,0,0,"9",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.9138*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.9526*b,.125*c,0,0,"0",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.0086*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.0474*b,.375*c,0,0,"-",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.1092*b,.28*c,.0776*b,.19*c,rSizeX,
|
|
rSizeY);a.fill();a.text(.148*b,.375*c,0,0,"/",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.2098*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.2486*b,.375*c,0,0,":",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.3103*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.3491*b,.375*c,0,0,";",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.4109*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.4497*
|
|
b,.375*c,0,0,"(",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.5115*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.5503*b,.375*c,0,0,")",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.6121*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.6509*b,.375*c,0,0,"$",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.7126*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.7514*b,.375*c,0,0,"&",mxConstants.ALIGN_CENTER,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.8132*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.852*b,.375*c,0,0,"@",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.9138*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.9526*b,.375*c,0,0,'"',mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.1638*b,.53*c,.1178*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.2227*b,.625*c,0,0,".",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,
|
|
0,0,0);a.roundrect(.3046*b,.53*c,.1178*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.3635*b,.625*c,0,0,",",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.4454*b,.53*c,.1178*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.5043*b,.625*c,0,0,"?",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.5862*b,.53*c,.1178*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.6451*b,.625*c,0,0,"!",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.727*b,.53*
|
|
c,.1178*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.7859*b,.625*c,0,0,"'",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.2644*b,.78*c,.4799*b,.19*c,rSizeX,rSizeY);a.fill();a.setFontColor("#666666");a.text(.5043*b,.875*c,0,0,"space",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setGradient("#8B98A8","#677488",.0115*b,.53*c,.1207*b,.19*c,mxConstants.DIRECTION_SOUTH,1,1);a.setFontColor("#ffffff");a.roundrect(.0115*b,.53*c,.1207*b,.19*c,rSizeX,rSizeY);a.fill();
|
|
a.roundrect(.8736*b,.53*c,.115*b,.19*c,rSizeX,rSizeY);a.fill();a.roundrect(.0115*b,.78*c,.2299*b,.19*c,rSizeX,rSizeY);a.fill();a.roundrect(.7672*b,.78*c,.2213*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.0718*b,.625*c,0,0,"#+=",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.1264*b,.875*c,0,0,"ABC",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.8779*b,.875*c,0,0,"return",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setShadow(!1);a.setLineJoin("round");
|
|
a.setStrokeColor("#ffffff");a.setFillColor("#ffffff");a.setStrokeWidth(1.5);a.begin();a.moveTo(.9109*b,.585*c);a.lineTo(.9655*b,.585*c);a.lineTo(.9655*b,.665*c);a.lineTo(.9109*b,.665*c);a.lineTo(.8879*b,.625*c);a.close();a.fillAndStroke();a.setStrokeColor("#677488");a.begin();a.moveTo(.9224*b,.605*c);a.lineTo(.9454*b,.645*c);a.moveTo(.9224*b,.645*c);a.lineTo(.9454*b,.605*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IKEYB_NUMBERS]=mxShapeMockupiKeybNumbers;
|
|
function mxShapeMockupiKeybSymbols(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiKeybSymbols,mxShape);mxShapeMockupiKeybSymbols.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!0);this.foreground(a,d,e,b,c)};
|
|
mxShapeMockupiKeybSymbols.prototype.background=function(a,d,e,b,c){a.setGradient("#8A97A7","#425163",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.rect(0,0,b,c);a.fill()};
|
|
mxShapeMockupiKeybSymbols.prototype.foreground=function(a,d,e,b,c,f){a.setGradient("#EEF3F9","#DBE2E9",.0086*b,.03*c,.0776*b,.19*c,mxConstants.DIRECTION_SOUTH,1,1);rSizeX=.0144*b;rSizeY=.025*c;a.setFontSize(10.5);a.setFontColor("#000000");a.roundrect(.0086*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.0474*b,.125*c,0,0,"[",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.1092*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.148*b,.125*c,0,0,"]",mxConstants.ALIGN_CENTER,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.2098*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.2486*b,.125*c,0,0,"{",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.3103*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.3491*b,.125*c,0,0,"}",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.4109*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.4497*b,.125*c,0,0,"#",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,
|
|
null,0,0,0);a.roundrect(.5115*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.5503*b,.125*c,0,0,"%",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.6121*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.6509*b,.125*c,0,0,"^",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.7126*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.7514*b,.125*c,0,0,"*",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.8132*
|
|
b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.852*b,.125*c,0,0,"+",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.9138*b,.03*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.9526*b,.125*c,0,0,"=",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.0086*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.0474*b,.375*c,0,0,"_",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.1092*b,.28*c,.0776*b,.19*c,rSizeX,
|
|
rSizeY);a.fill();a.text(.148*b,.375*c,0,0,"\\",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.2098*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.2486*b,.375*c,0,0,"|",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.3103*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.3491*b,.375*c,0,0,"~",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.4109*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.4497*
|
|
b,.375*c,0,0,"<",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.5115*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.5503*b,.375*c,0,0,">",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.6121*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.6509*b,.375*c,0,0,String.fromCharCode(128),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.7126*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.7514*b,.375*
|
|
c,0,0,String.fromCharCode(163),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.8132*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.852*b,.375*c,0,0,String.fromCharCode(165),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.9138*b,.28*c,.0776*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.9526*b,.375*c,0,0,String.fromCharCode(149),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.1638*b,.53*c,.1178*b,.19*c,rSizeX,rSizeY);
|
|
a.fill();a.text(.2227*b,.625*c,0,0,".",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.3046*b,.53*c,.1178*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.3635*b,.625*c,0,0,",",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.4454*b,.53*c,.1178*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.5043*b,.625*c,0,0,"?",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.5862*b,.53*c,.1178*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.6451*b,.625*
|
|
c,0,0,"!",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.727*b,.53*c,.1178*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.7859*b,.625*c,0,0,"'",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.roundrect(.2644*b,.78*c,.4799*b,.19*c,rSizeX,rSizeY);a.fill();a.setFontColor("#666666");a.text(.5043*b,.875*c,0,0,"space",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setGradient("#8B98A8","#677488",.0115*b,.53*c,.1207*b,.19*c,mxConstants.DIRECTION_SOUTH,
|
|
1,1);a.setFontColor("#ffffff");a.roundrect(.0115*b,.53*c,.1207*b,.19*c,rSizeX,rSizeY);a.fill();a.roundrect(.8736*b,.53*c,.115*b,.19*c,rSizeX,rSizeY);a.fill();a.roundrect(.0115*b,.78*c,.2299*b,.19*c,rSizeX,rSizeY);a.fill();a.roundrect(.7672*b,.78*c,.2213*b,.19*c,rSizeX,rSizeY);a.fill();a.text(.0718*b,.625*c,0,0,"123",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.1264*b,.875*c,0,0,"ABC",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.8779*b,.875*c,0,
|
|
0,"return",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setShadow(!1);a.setLineJoin("round");a.setStrokeColor("#ffffff");a.setFillColor("#ffffff");a.setStrokeWidth(1.5);a.begin();a.moveTo(.9109*b,.585*c);a.lineTo(.9655*b,.585*c);a.lineTo(.9655*b,.665*c);a.lineTo(.9109*b,.665*c);a.lineTo(.8879*b,.625*c);a.close();a.fillAndStroke();a.setStrokeColor("#677488");a.begin();a.moveTo(.9224*b,.605*c);a.lineTo(.9454*b,.645*c);a.moveTo(.9224*b,.645*c);a.lineTo(.9454*b,.605*c);a.stroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IKEYB_SYMBOLS]=mxShapeMockupiKeybSymbols;function mxShapeMockupiDeleteApp(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiDeleteApp,mxShape);
|
|
mxShapeMockupiDeleteApp.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"").toString();a.translate(d,e);this.background(a,d,e,b,c,f);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeMockupiDeleteApp.prototype.background=function(a,d,e,b,c,f){d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"").toString();e=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"").toString();a.setGradient(d,e,0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.setStrokeWidth(1.5);a.setStrokeColor(f);a.ellipse(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupiDeleteApp.prototype.foreground=function(a,d,e,b,c){a.setStrokeWidth(2.5);a.begin();a.moveTo(.3*b,.3*c);a.lineTo(.7*b,.7*c);a.moveTo(.3*b,.7*c);a.lineTo(.7*b,.3*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IDELETE_APP]=mxShapeMockupiDeleteApp;function mxShapeMockupiDirection(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiDirection,mxShape);
|
|
mxShapeMockupiDirection.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeMockupiDirection.prototype.background=function(a,d,e,b,c){a.setStrokeWidth(.5);a.setStrokeColor("#008cff");a.ellipse(0,0,b,c);a.stroke()};
|
|
mxShapeMockupiDirection.prototype.foreground=function(a,d,e,b,c){a.setAlpha(1);a.setGradient("#ffffff","#ffffff",.29*b,.2*c,.42*b,.3*c,mxConstants.DIRECTION_NORTH,1,0);a.begin();a.moveTo(.29*b,.2*c);a.lineTo(.5*b,.5*c);a.lineTo(.71*b,.2*c);a.fillAndStroke();a.setStrokeColor("#006cdf");a.setGradient("#ffffff","#007cef",.47*b,.47*c,.06*b,.06*c,mxConstants.DIRECTION_SOUTH,1,1);a.setAlpha(1);a.ellipse(.47*b,.47*c,.06*b,.06*c);a.fillAndStroke();a.setFillColor("#ffffff");a.setAlpha(.8);a.ellipse(.4825*
|
|
b,.4825*c,.015*b,.015*c);a.fill()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IDIRECTION]=mxShapeMockupiDirection;function mxShapeMockupiLocationBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiLocationBar,mxShape);mxShapeMockupiLocationBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeMockupiLocationBar.prototype.background=function(a,d,e,b,c){e=mxUtils.getValue(this.style,mxMockupC.BAR_POS,"80");e=Math.min(e,100);e=Math.max(e,0);d=mxUtils.getValue(this.style,mxMockupC.POINTER_POS,mxMockupC.POINTER_BOTTOM);e=10+(b-20)*e/100;a.setStrokeWidth(.5);a.setStrokeColor("#000000");a.setAlpha(.7);a.begin();d===mxMockupC.POINTER_BOTTOM?(a.setGradient("#000000","#888888",0,0,b,c,mxConstants.DIRECTION_NORTH,1,1),a.moveTo(0,2.5),a.arcTo(2.5,2.5,0,0,1,2.5,0),a.lineTo(b-2.5,0),a.arcTo(2.5,
|
|
2.5,0,0,1,b,2.5),a.lineTo(b,c-2.5-7.5),a.arcTo(2.5,2.5,0,0,1,b-2.5,c-7.5),a.lineTo(e+7.5,c-7.5),a.lineTo(e,c),a.lineTo(e-7.5,c-7.5),a.lineTo(2.5,c-7.5),a.arcTo(2.5,2.5,0,0,1,0,c-2.5-7.5)):d===mxMockupC.POINTER_TOP&&(a.setGradient("#000000","#888888",0,0,b,c,mxConstants.DIRECTION_NORTH,1,1),a.moveTo(0,10),a.arcTo(2.5,2.5,0,0,1,2.5,7.5),a.lineTo(e-7.5,7.5),a.lineTo(e,0),a.lineTo(e+7.5,7.5),a.lineTo(b-2.5,7.5),a.arcTo(2.5,2.5,0,0,1,b,10),a.lineTo(b,c-2.5),a.arcTo(2.5,2.5,0,0,1,b-2.5,c),a.lineTo(2.5,
|
|
c),a.arcTo(2.5,2.5,0,0,1,0,c-2.5));a.close();a.fillAndStroke()};
|
|
mxShapeMockupiLocationBar.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxMockupC.POINTER_POS,mxMockupC.POINTER_BOTTOM);e=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"Some Location");a.setAlpha(1);a.setFontColor("#ffffff");a.setFontSize(9.5);d===mxMockupC.POINTER_BOTTOM?(a.text(5,.5*(c-7.5),0,0,e,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),a.translate(b-20,.5*(c-7.5)-7.5)):(a.text(5,.5*(c+7.5),0,0,e,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,
|
|
null,0,0,0),a.translate(b-20,.5*(c+7.5)-7.5));c=b=15;a.setGradient("#8BbEff","#135Ec8",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.setStrokeWidth(1.5);a.setStrokeColor("#ffffff");a.ellipse(0,0,b,c);a.fillAndStroke();a.setStrokeWidth(2.5);a.begin();a.moveTo(.4*b,.22*c);a.lineTo(.65*b,.5*c);a.lineTo(.4*b,.78*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ILOCATION_BAR]=mxShapeMockupiLocationBar;
|
|
function mxShapeMockupiCallDialog(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiCallDialog,mxShape);mxShapeMockupiCallDialog.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c,5);a.setShadow(!1);this.foreground(a,d,e,b,c,5)};
|
|
mxShapeMockupiCallDialog.prototype.background=function(a,d,e,b,c,f){a.setAlpha(.8);a.setStrokeColor("#888888");a.setStrokeWidth(1.5);a.setFillColor("#000000");a.roundrect(0,0,b,c,f,f);a.fillAndStroke()};
|
|
mxShapeMockupiCallDialog.prototype.foreground=function(a,d,e,b,c,f){a.begin();a.moveTo(.33*b,0);a.lineTo(.33*b,c);a.moveTo(.67*b,0);a.lineTo(.67*b,c);a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.stroke();a.setStrokeColor("#000000");a.setFillColor("#ffffff");a.setStrokeWidth(.5);a.roundrect(.1433*b,.104*c,.0417*b,.148*c,.02*b,.024*c);a.fill();a.begin();a.moveTo(.14*b,.188*c);a.lineTo(.14*b,.228*c);a.arcTo(.025*b,.03*c,0,0,0,.19*b,.228*c);a.lineTo(.19*b,.188*c);a.lineTo(.2*b,.188*c);a.lineTo(.2*b,.228*c);a.arcTo(.0367*
|
|
b,.044*c,0,0,1,.17*b,.27*c);a.lineTo(.17*b,.296*c);a.lineTo(.195*b,.296*c);a.lineTo(.195*b,.308*c);a.lineTo(.1367*b,.308*c);a.lineTo(.1367*b,.296*c);a.lineTo(.16*b,.296*c);a.lineTo(.16*b,.27*c);a.arcTo(.0367*b,.044*c,0,0,1,.13*b,.228*c);a.lineTo(.13*b,.188*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.1033*b,.108*c);a.lineTo(.24*b,.286*c);a.lineTo(.2317*b,.298*c);a.lineTo(.095*b,.12*c);a.close();a.fillAndStroke();a.rect(.44*b,.128*c,.033*b,.04*c);a.fill();a.rect(.485*b,.128*c,.033*b,.04*c);a.fill();
|
|
a.rect(.53*b,.128*c,.033*b,.04*c);a.fill();a.rect(.44*b,.186*c,.033*b,.04*c);a.fill();a.rect(.485*b,.186*c,.033*b,.04*c);a.fill();a.rect(.53*b,.186*c,.033*b,.04*c);a.fill();a.rect(.44*b,.244*c,.033*b,.04*c);a.fill();a.rect(.485*b,.244*c,.033*b,.04*c);a.fill();a.rect(.53*b,.244*c,.033*b,.04*c);a.fill();a.begin();a.moveTo(.7567*b,.18*c);a.lineTo(.785*b,.18*c);a.lineTo(.825*b,.128*c);a.lineTo(.825*b,.28*c);a.lineTo(.79*b,.234*c);a.lineTo(.7567*b,.234*c);a.close();a.fill();a.setStrokeWidth(1.5);a.setStrokeColor("#ffffff");
|
|
a.begin();a.moveTo(.8383*b,.16*c);a.arcTo(.0533*b,.064*c,0,0,1,.8383*b,.252*c);a.moveTo(.8583*b,.134*c);a.arcTo(.0817*b,.098*c,0,0,1,.8583*b,.276*c);a.moveTo(.8767*b,.11*c);a.arcTo(.1133*b,.136*c,0,0,1,.8767*b,.304*c);a.stroke();a.begin();a.moveTo(.1467*b,.62*c);a.lineTo(.1833*b,.62*c);a.lineTo(.1833*b,.676*c);a.lineTo(.2267*b,.676*c);a.lineTo(.2267*b,.724*c);a.lineTo(.1833*b,.724*c);a.lineTo(.1833*b,.78*c);a.lineTo(.1467*b,.78*c);a.lineTo(.1467*b,.724*c);a.lineTo(.105*b,.724*c);a.lineTo(.105*b,.676*
|
|
c);a.lineTo(.1467*b,.676*c);a.close();a.fill();a.rect(.4517*b,.624*c,.0333*b,.152*c);a.fill();a.rect(.5183*b,.624*c,.0333*b,.152*c);a.fill();a.begin();a.moveTo(.76*b,.752*c);a.arcTo(.1*b,.12*c,0,0,1,.8033*b,.728*c);a.arcTo(.0167*b,.02*c,0,0,0,.8167*b,.712*c);a.lineTo(.8175*b,.7*c);a.arcTo(.0267*b,.06*c,0,0,1,.8067*b,.644*c);a.arcTo(.0287*b,.0344*c,0,0,1,.8633*b,.644*c);a.arcTo(.0267*b,.06*c,0,0,1,.855*b,.7*c);a.arcTo(.05*b,.724*c,0,0,1,.8633*b,.724*c);a.arcTo(.1667*b,.75*c,0,0,1,.9083*b,.75*c);a.lineTo(.9083*
|
|
b,.78*c);a.lineTo(.76*b,.78*c);a.close();a.fill();a.setFontColor("#ffffff");a.setFontSize(8.5);a.text(.1667*b,.35*c,0,0,"mute",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.35*c,0,0,"keypad",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.8333*b,.35*c,0,0,"speaker",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.1667*b,.85*c,0,0,"add",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.85*c,0,0,
|
|
"pause",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.8333*b,.85*c,0,0,"contacts",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setGradient("#808080","#ffffff",0,0,b,.308*c,mxConstants.DIRECTION_NORTH,1,1);a.setAlpha(.4);a.begin();a.moveTo(0,.308*c);a.lineTo(0,f);a.arcTo(f,f,0,0,1,f,0);a.lineTo(b-f,0);a.arcTo(f,f,0,0,1,b,f);a.lineTo(b,.308*c);a.arcTo(1.5*b,1.8*c,0,0,1,0,.308*c);a.close();a.fill()};
|
|
mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ICALL_DIALOG]=mxShapeMockupiCallDialog;function mxShapeMockupiCallButtons(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiCallButtons,mxShape);mxShapeMockupiCallButtons.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeMockupiCallButtons.prototype.background=function(a,d,e,b,c){a.setStrokeWidth(.5);a.setStrokeColor("#008cff");a.setGradient("#0F1B2B","#4F5B6B",0,0,b,c,mxConstants.DIRECTION_NORTH,1,1);a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeMockupiCallButtons.prototype.foreground=function(a,d,e,b,c){a.begin();a.moveTo(0,.1667*c);a.lineTo(b,.1667*c);a.moveTo(0,.3333*c);a.lineTo(b,.3333*c);a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.moveTo(0,.6667*c);a.lineTo(b,.6667*c);a.moveTo(0,.8333*c);a.lineTo(b,.8333*c);a.moveTo(.3333*b,.1667*c);a.lineTo(.3333*b,c);a.moveTo(.6667*b,.1667*c);a.lineTo(.6667*b,c);a.stroke();a.setFontSize(15.5);a.setFontColor("#ffffff");a.setFontStyle(mxConstants.FONT_BOLD);a.text(.5*b,.0834*c,0,0,"(123) 456-7890",mxConstants.ALIGN_CENTER,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.1667*b,.22*c,0,0,"1",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.22*c,0,0,"2",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.8333*b,.22*c,0,0,"3",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.1667*b,.3867*c,0,0,"3",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.3867*c,0,0,"4",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);
|
|
a.text(.8333*b,.3867*c,0,0,"5",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.1667*b,.5534*c,0,0,"6",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.5534*c,0,0,"7",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.8333*b,.5534*c,0,0,"8",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFontSize(27.5);a.text(.1667*b,.76*c,0,0,"*",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFontSize(15.5);
|
|
a.text(.5*b,.72*c,0,0,"0",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.8333*b,.75*c,0,0,"#",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setGradient("#E2FFEB","#008215",.3333*b,.8333*c,.3333*b,.1667*c,mxConstants.DIRECTION_SOUTH,1,1);a.rect(.3333*b,.8333*c,.3333*b,.1667*c);a.fillAndStroke();a.text(.5*b,.9168*c,0,0,"Call",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFontStyle(0);a.setFontSize(8);a.setFontColor("#bbbbbb");a.text(.5*
|
|
b,.28*c,0,0,"ABC",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.8333*b,.28*c,0,0,"DEF",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.1667*b,.4467*c,0,0,"GHI",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.4467*c,0,0,"JKL",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.8333*b,.4467*c,0,0,"MNO",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.1667*b,.6134*c,0,0,"PQRS",mxConstants.ALIGN_CENTER,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.6134*c,0,0,"TUV",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.8333*b,.6134*c,0,0,"WXYZ",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.78*c,0,0,"+",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFillColor("#ffffff");a.begin();a.moveTo(.1028*b,.9464*c);a.arcTo(.0862*b,.0652*c,0,0,1,.1402*b,.9333*c);a.arcTo(.0144*b,.0109*c,0,0,0,.1517*b,.9246*c);a.lineTo(.1524*b,.9181*c);
|
|
a.arcTo(.023*b,.0326*c,0,0,1,.143*b,.8877*c);a.arcTo(.0247*b,.0187*c,0,0,1,.1919*b,.8877*c);a.arcTo(.023*b,.0326*c,0,0,1,.1847*b,.9181*c);a.arcTo(.0431*b,.0174*c,0,0,0,.1919*b,.9311*c);a.arcTo(.1437*b,.1087*c,0,0,1,.2307*b,.9453*c);a.lineTo(.2307*b,.9616*c);a.lineTo(.1028*b,.9616*c);a.close();a.fill();a.setStrokeColor("#ffffff");a.setStrokeWidth(2.5);a.setLineJoin("round");a.begin();a.moveTo(.79*b,.89*c);a.lineTo(.9*b,.89*c);a.lineTo(.9*b,.95*c);a.lineTo(.79*b,.95*c);a.lineTo(.76*b,.92*c);a.close();
|
|
a.fillAndStroke();a.setStrokeColor("#0F1B2B");a.begin();a.moveTo(.82*b,.907*c);a.lineTo(.85*b,.933*c);a.moveTo(.82*b,.933*c);a.lineTo(.85*b,.907*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ICALL_BUTTONS]=mxShapeMockupiCallButtons;function mxShapeMockupiOption(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiOption,mxShape);
|
|
mxShapeMockupiOption.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeMockupiOption.prototype.background=function(a,d,e,b,c){e=mxUtils.getValue(this.style,mxMockupC.BAR_POS,"80");e=Math.min(e,100);e=Math.max(e,0);d=mxUtils.getValue(this.style,mxMockupC.POINTER_POS,mxMockupC.POINTER_BOTTOM);e=10+(b-20)*e/100;a.setStrokeWidth(.5);a.setStrokeColor("#000000");a.setAlpha(.9);a.begin();d===mxMockupC.POINTER_BOTTOM?(a.setGradient("#000000","#888888",0,0,b,c,mxConstants.DIRECTION_NORTH,1,1),a.moveTo(0,2.5),a.arcTo(2.5,2.5,0,0,1,2.5,0),a.lineTo(b-2.5,0),a.arcTo(2.5,2.5,
|
|
0,0,1,b,2.5),a.lineTo(b,c-2.5-7.5),a.arcTo(2.5,2.5,0,0,1,b-2.5,c-7.5),a.lineTo(e+7.5,c-7.5),a.lineTo(e,c),a.lineTo(e-7.5,c-7.5),a.lineTo(2.5,c-7.5),a.arcTo(2.5,2.5,0,0,1,0,c-2.5-7.5)):d===mxMockupC.POINTER_TOP&&(a.setGradient("#000000","#888888",0,0,b,c,mxConstants.DIRECTION_NORTH,1,1),a.moveTo(0,10),a.arcTo(2.5,2.5,0,0,1,2.5,7.5),a.lineTo(e-7.5,7.5),a.lineTo(e,0),a.lineTo(e+7.5,7.5),a.lineTo(b-2.5,7.5),a.arcTo(2.5,2.5,0,0,1,b,10),a.lineTo(b,c-2.5),a.arcTo(2.5,2.5,0,0,1,b-2.5,c),a.lineTo(2.5,c),a.arcTo(2.5,
|
|
2.5,0,0,1,0,c-2.5));a.close();a.fillAndStroke()};
|
|
mxShapeMockupiOption.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"Some Location");e=mxUtils.getValue(this.style,mxMockupC.POINTER_POS,mxMockupC.POINTER_BOTTOM);a.setAlpha(1);a.setFontColor("#ffffff");a.setFontSize(9.5);e===mxMockupC.POINTER_BOTTOM?a.text(.5*b,.5*(c-7.5),0,0,d,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0):a.text(.5*b,.5*(c+7.5),0,0,d,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IOPTION]=mxShapeMockupiOption;function mxShapeMockupiAlphaList(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiAlphaList,mxShape);
|
|
mxShapeMockupiAlphaList.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setShadow(!1);d=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"8");a.setFontColor("#999999");a.setFontSize(d);a.text(.5*b,.069*c,0,0,"A",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.1035*c,0,0,"B",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.138*c,0,0,"C",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.1725*
|
|
c,0,0,"D",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.207*c,0,0,"E",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.2415*c,0,0,"F",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.276*c,0,0,"G",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.3105*c,0,0,"H",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.345*c,0,0,"I",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,
|
|
0,null,0,0,0);a.text(.5*b,.3795*c,0,0,"J",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.414*c,0,0,"K",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.4485*c,0,0,"L",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.483*c,0,0,"M",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.5175*c,0,0,"N",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.552*c,0,0,"O",mxConstants.ALIGN_CENTER,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.5865*c,0,0,"P",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.621*c,0,0,"Q",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.6555*c,0,0,"R",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.69*c,0,0,"S",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.7245*c,0,0,"T",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*
|
|
b,.759*c,0,0,"U",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.7935*c,0,0,"V",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.828*c,0,0,"W",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.8625*c,0,0,"X",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.897*c,0,0,"Y",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.text(.5*b,.9315*c,0,0,"Z",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,
|
|
0,null,0,0,0);a.text(.5*b,.966*c,0,0,"#",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setStrokeColor("#999999");a.ellipse(.5*b-2.25,.0345*c-3.5,4.5,4.5);a.stroke();a.begin();a.moveTo(.5*b-4.25,.0345*c+3);a.lineTo(.5*b-1.75,.0345*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IALPHA_LIST]=mxShapeMockupiAlphaList;function mxShapeMockupiHorButtonBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupiHorButtonBar,mxShape);
|
|
mxShapeMockupiHorButtonBar.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"+Button 1, Button 2, Button 3").toString().split(","),g=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR,"#666666"),h=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR2,"#ffffff"),k=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"8.5").toString(),l=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#666666"),n=mxUtils.getValue(this.style,mxMockupC.STYLE_STROKECOLOR2,
|
|
"#c4c4c4"),m=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),p=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"#008cff"),q=f.length,u=Array(q),t=0,v=-1,r=0;r<q;r++){var w=f[r];w.charAt(0)===mxMockupC.SELECTED&&(w=f[r].substring(1),v=r);u[r]=mxUtils.getSizeForString(w,k,mxConstants.DEFAULT_FONTFAMILY).width;t+=u[r]}c=Math.max(c,1.5*k,10);t=5*q+t;b=Math.max(b,t);a.translate(d,e);this.background(a,b,c,2.5,q,u,2.5,t,l,n,m,p,v);a.setShadow(!1);for(r=d=0;r<q;r++)r===v?a.setFontColor(h):
|
|
a.setFontColor(g),d+=2.5,this.buttonText(a,d,c,f[r],u[r],k,t,b),d=d+u[r]+2.5};
|
|
mxShapeMockupiHorButtonBar.prototype.background=function(a,d,e,b,c,f,g,h,k,l,n,m,p){a.begin();a.setStrokeColor(k);a.setFillColor(n);a.moveTo(0,b);a.arcTo(b,b,0,0,1,b,0);a.lineTo(d-b,0);a.arcTo(b,b,0,0,1,d,b);a.lineTo(d,e-b);a.arcTo(b,b,0,0,1,d-b,e);a.lineTo(b,e);a.arcTo(b,b,0,0,1,0,e-b);a.close();a.fillAndStroke();a.setStrokeColor(l);a.begin();for(l=1;l<c;l++)if(l!==p&&l!==p+1){for(var q=m=0;q<l;q++)m+=f[q]+2*g;m=m*d/h;a.moveTo(m,0);a.lineTo(m,e)}a.stroke();m=0;a.setStrokeColor(mxConstants.NONE);
|
|
for(l=0;l<p;l++)m+=f[l]+2*g;m=m*d/h;f=(f[p]+2*g)*d/h;f+=m;0===p?(a.setGradient("#5D7585","#008cff",0,0,f,e,mxConstants.DIRECTION_SOUTH,1,1),a.begin(),a.moveTo(0,b),a.arcTo(b,b,0,0,1,b,0),a.lineTo(f,0),a.lineTo(f,e),a.lineTo(b,e),a.arcTo(b,b,0,0,1,0,e-b),a.close(),a.fill()):p===c-1?(a.setGradient("#5D7585","#008cff",m,0,f-m,e,mxConstants.DIRECTION_SOUTH,1,1),a.begin(),a.moveTo(m,0),a.lineTo(f-b,0),a.arcTo(b,b,0,0,1,f,b),a.lineTo(f,e-b),a.arcTo(b,b,0,0,1,f-b,e),a.lineTo(m,e),a.close(),a.fill()):-1!==
|
|
p&&(a.setGradient("#5D7585","#008cff",m,0,f-m,e,mxConstants.DIRECTION_SOUTH,1,1),a.begin(),a.moveTo(m,0),a.lineTo(f,0),a.lineTo(f,e),a.lineTo(m,e),a.close(),a.fill());a.setStrokeColor(k);a.setFillColor(n);a.begin();a.moveTo(0,b);a.arcTo(b,b,0,0,1,b,0);a.lineTo(d-b,0);a.arcTo(b,b,0,0,1,d,b);a.lineTo(d,e-b);a.arcTo(b,b,0,0,1,d-b,e);a.lineTo(b,e);a.arcTo(b,b,0,0,1,0,e-b);a.close();a.stroke()};
|
|
mxShapeMockupiHorButtonBar.prototype.buttonText=function(a,d,e,b,c,f,g,h){b.charAt(0)===mxMockupC.SELECTED&&(b=b.substring(1));a.begin();a.setFontSize(f);a.text((d+.5*c)*h/g,.5*e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IHOR_BUTTON_BAR]=mxShapeMockupiHorButtonBar;function mxShapeMockupiPin(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupiPin,mxShape);
|
|
mxShapeMockupiPin.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"#000000"),g=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR3,"#000000"),h=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setShadow(!1);a.translate(d,e);a.setStrokeWidth(1.5);a.setStrokeColor("#666666");a.begin();a.moveTo(.5*b,.4*c);a.lineTo(.5*b,c);a.stroke();a.setStrokeWidth(1);a.setStrokeColor(h);a.setGradient(f,g,0,0,b,.4*c,mxConstants.DIRECTION_SOUTH,
|
|
1,1);a.setAlpha(.9);a.ellipse(0,0,b,.4*c);a.fillAndStroke();a.setFillColor("#ffffff");a.setAlpha(.5);a.ellipse(.2*b,.08*c,.3*b,.12*c);a.fill()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IPIN]=mxShapeMockupiPin;function mxShapeMockupiVideoControls(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiVideoControls,mxShape);
|
|
mxShapeMockupiVideoControls.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setStrokeWidth(1);a.setFillColor("#000000");a.setStrokeColor("#bbbbbb");a.setAlpha(.7);a.roundrect(0,0,b,c,5,5);a.fillAndStroke();a.setShadow(!1);this.foreground(a,b,c,5)};
|
|
mxShapeMockupiVideoControls.prototype.foreground=function(a,d,e,b){a.setGradient("#ffffff","#ffffff",0,0,d,.5*e,mxConstants.DIRECTION_SOUTH,.8,.1);a.begin();a.moveTo(0,b);a.arcTo(b,b,0,0,1,b,0);a.lineTo(d-b,0);a.arcTo(b,b,0,0,1,d,b);a.lineTo(d,.5*e);a.lineTo(0,.5*e);a.close();a.fill();a.setAlpha(1);a.setFillColor("#ffffff");a.setStrokeColor("#ffffff");var c=.1*d,f=.35*e;a.begin();a.moveTo(c-7.5,f-2.5);a.arcTo(6,6,0,0,1,c,f-2.5);a.arcTo(6,6,0,0,1,c+7.5,f-2.5);a.lineTo(c+7.5,f+4);a.arcTo(6,6,0,0,0,
|
|
c,f+4);a.arcTo(6,6,0,0,0,c-7.5,f+4);a.close();a.stroke();a.begin();a.moveTo(c,f-2.5);a.lineTo(c,f+4);a.stroke();c=.3*d;a.rect(c-7.5,f-5,1,10);a.fill();a.begin();a.moveTo(c-6.5,f);a.lineTo(c+.5,f-5);a.lineTo(c+.5,f+5);a.close();a.fill();a.begin();a.moveTo(c+.5,f);a.lineTo(c+7.5,f-5);a.lineTo(c+7.5,f+5);a.close();a.fill();c=.5*d;a.begin();a.moveTo(c-6,f-5);a.lineTo(c+6,f);a.lineTo(c-6,f+5);a.close();a.fill();c=.7*d;a.begin();a.moveTo(c-7.5,f-5);a.lineTo(c-.5,f);a.lineTo(c-7.5,f+5);a.close();a.fill();
|
|
a.begin();a.moveTo(c-.5,f-5);a.lineTo(c+6.5,f);a.lineTo(c-.5,f+5);a.close();a.fill();a.rect(c+6.5,f-5,1,10);a.fill();c=.9*d;a.rect(c-7.5,f-4,15,8);a.stroke();a.setStrokeWidth(.5);a.begin();a.moveTo(c-7.5,f-4);a.lineTo(c,f+1.5);a.lineTo(c+7.5,f-4);a.stroke();a.begin();a.moveTo(c-7.5,f+4);a.lineTo(c-2,f);a.stroke();a.begin();a.moveTo(c+7.5,f+4);a.lineTo(c+2,f);a.stroke();a.setGradient("#444444","#ffffff",.1*d,.75*e-2.5,.8*d,5,mxConstants.DIRECTION_SOUTH,1,1);a.roundrect(.1*d,.75*e-2.5,.8*d,5,2.5,2.5);
|
|
a.fill();c=mxUtils.getValue(this.style,mxMockupC.BAR_POS,"80");c=Math.min(c,100);c=Math.max(c,0);f=.1*d;c=f+(d-2*f)*c/100;a.setGradient("#96D1FF","#003377",.1*d,.75*e-5,c-.1*d,10,mxConstants.DIRECTION_SOUTH,1,1);a.begin();a.moveTo(c,.75*e-2.5);a.lineTo(c,.75*e+2.5);a.lineTo(.1*d+2.5,.75*e+2.5);a.arcTo(2.5,2.5,0,0,1,.1*d+2.5,.75*e-2.5);a.close();a.fill();a.setStrokeColor("#999999");a.setGradient("#444444","#ffffff",c-5,.75*e-5,10,10,mxConstants.DIRECTION_NORTH,1,1);a.ellipse(c-5,.75*e-5,10,10);a.fillAndStroke();
|
|
a.setStrokeColor("#dddddd");a.roundrect(0,0,d,e,b,b);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IVIDEO_CONTROLS]=mxShapeMockupiVideoControls;
|
|
Graph.handleFactory[mxMockupC.SHAPE_IVIDEO_CONTROLS]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"barPos",40))));return new mxPoint(a.x+.1*a.width+d*a.width*.8/100,a.y+.75*a.height)},function(a,e){this.state.style.barPos=Math.round(100*Math.max(0,Math.min(100,100*(e.x-.1*a.width-a.x)/(.8*a.width))))/100})]};
|
|
function mxShapeMockupiURLBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiURLBar,mxShape);mxShapeMockupiURLBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setGradient("#cccccc","#003377",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.rect(0,0,b,c);a.fill();a.setShadow(!1);this.foreground(a,b,c)};
|
|
mxShapeMockupiURLBar.prototype.foreground=function(a,d,e){a.setStrokeWidth(.5);a.setFillColor("#ffffff");a.setStrokeColor("#008cff");a.roundrect(.0287*d,.625*e-6.25,.7184*d,12.5,6.25,6.25);a.fillAndStroke();a.setGradient("#cccccc","#001144",.7816*d,.625*e-6.25,.1868*d,12.5,mxConstants.DIRECTION_SOUTH,1,1);a.setStrokeColor("#000000");a.roundrect(.7816*d,.625*e-6.25,.1868*d,12.5,2.5,2.5);a.fillAndStroke();a.setFillColor("#bbbbbb");a.ellipse(.7471*d-11.5,.625*e-5,10,10);a.fill();a.setStrokeColor("#ffffff");
|
|
a.setStrokeWidth(1.5);a.begin();a.moveTo(.7471*d-8.5,.625*e-2.5);a.lineTo(.7471*d-3.5,.625*e+2.5);a.moveTo(.7471*d-8.5,.625*e+2.5);a.lineTo(.7471*d-3.5,.625*e-2.5);a.stroke();var b=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"").toString().split(",");a.setFontColor("#425664");a.setFontStyle(mxConstants.FONT_BOLD);a.setFontSize(8);a.text(.5*d,.2*e,0,0,b[0],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFontColor("#000000");a.text(.06*d,.625*e,0,0,b[1],mxConstants.ALIGN_LEFT,
|
|
mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFontColor("#ffffff");a.text(.875*d,.625*e,0,0,b[2],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IURL_BAR]=mxShapeMockupiURLBar;function mxShapeMockupiSlider(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiSlider,mxShape);
|
|
mxShapeMockupiSlider.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setShadow(!1);this.foreground(a,b,c)};
|
|
mxShapeMockupiSlider.prototype.foreground=function(a,d,e){a.setStrokeWidth(.5);a.setGradient("#444444","#ffffff",0,.5*e-2.5,d,5,mxConstants.DIRECTION_SOUTH,1,1);a.roundrect(0,.5*e-2.5,d,5,2.5,2.5);a.fill();var b=mxUtils.getValue(this.style,mxMockupC.BAR_POS,"80"),b=Math.min(b,100),b=Math.max(b,0);d=0+(d-0)*b/100;a.setGradient("#96D1FF","#003377",2.5,.5*e-2.5,d-2.5,5,mxConstants.DIRECTION_SOUTH,1,1);a.begin();a.moveTo(d,.5*e-2.5);a.lineTo(d,.5*e+2.5);a.lineTo(2.5,.5*e+2.5);a.arcTo(2.5,2.5,0,0,1,2.5,
|
|
.5*e-2.5);a.close();a.fill();a.setStrokeColor("#999999");a.setGradient("#444444","#ffffff",d-5,.5*e-5,10,10,mxConstants.DIRECTION_NORTH,1,1);a.ellipse(d-5,.5*e-5,10,10);a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ISLIDER]=mxShapeMockupiSlider;
|
|
Graph.handleFactory[mxMockupC.SHAPE_ISLIDER]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"barPos",.4))));return new mxPoint(a.x+d*a.width/100,a.y+a.height/2)},function(a,e){this.state.style.barPos=Math.round(100*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/100})]};function mxShapeMockupiProgressBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeMockupiProgressBar,mxShape);mxShapeMockupiProgressBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setShadow(!1);this.foreground(a,b,c)};
|
|
mxShapeMockupiProgressBar.prototype.foreground=function(a,d,e){a.setStrokeWidth(.5);a.setGradient("#444444","#ffffff",0,.5*e-2.5,d,5,mxConstants.DIRECTION_SOUTH,1,1);a.roundrect(0,.5*e-2.5,d,5,2.5,2.5);a.fill();var b=mxUtils.getValue(this.style,mxMockupC.BAR_POS,"80"),b=Math.min(b,100),b=Math.max(b,0);d=0+(d-0)*b/100;a.setGradient("#96D1FF","#003377",2.5,.5*e-2.5,d-2.5,5,mxConstants.DIRECTION_SOUTH,1,1);a.begin();a.moveTo(d,.5*e-2.5);a.arcTo(2.5,2.5,0,0,1,d,.5*e+2.5);a.lineTo(2.5,.5*e+2.5);a.arcTo(2.5,
|
|
2.5,0,0,1,2.5,.5*e-2.5);a.close();a.fill()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IPROGRESS_BAR]=mxShapeMockupiProgressBar;
|
|
Graph.handleFactory[mxMockupC.SHAPE_IPROGRESS_BAR]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"barPos",.4))));return new mxPoint(a.x+d*a.width/100,a.y+a.height/2)},function(a,e){this.state.style.barPos=Math.round(100*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/100})]};
|
|
function mxShapeMockupiCloudProgressBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiCloudProgressBar,mxShape);mxShapeMockupiCloudProgressBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setShadow(!1);this.foreground(a,b,c)};
|
|
mxShapeMockupiCloudProgressBar.prototype.foreground=function(a,d,e){a.setStrokeWidth(.5);a.setFillColor("#5C6E86");a.rect(0,.5*e-2.5,d,5);a.fill();var b=mxUtils.getValue(this.style,mxMockupC.BAR_POS,"80"),b=Math.min(b,100),b=Math.max(b,0);d=0+(d-0)*b/100;a.setFillColor("#8AD155");a.rect(0,.5*e-2.5,d,5);a.fill()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ICLOUD_PROGRESS_BAR]=mxShapeMockupiCloudProgressBar;
|
|
Graph.handleFactory[mxMockupC.SHAPE_ICLOUD_PROGRESS_BAR]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"barPos",.4))));return new mxPoint(a.x+d*a.width/100,a.y+a.height/2)},function(a,e){this.state.style.barPos=Math.round(100*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/100})]};
|
|
function mxShapeMockupiDownloadBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiDownloadBar,mxShape);mxShapeMockupiDownloadBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setGradient("#00ccff","#0066cc",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.rect(0,0,b,c);a.fill();a.setShadow(!1);this.foreground(a,b,c)};
|
|
mxShapeMockupiDownloadBar.prototype.foreground=function(a,d,e){var b=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"");a.setFontColor("#ffffff");a.setFontStyle(mxConstants.FONT_BOLD);a.setFontSize(8);a.text(.5*d,.2*e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);var c=mxUtils.getValue(this.style,mxMockupC.BAR_POS,"80"),c=Math.min(c,100),c=Math.max(c,0),b=.1*d,c=b+(d-2*b)*c/100;a.setStrokeWidth(.5);a.setGradient("#96D1FF","#003377",b,.65*e-2.5,d-2*b,5,mxConstants.DIRECTION_NORTH,
|
|
1,1);a.roundrect(b,.65*e-2.5,d-2*b,5,2.5,2.5);a.fill();a.setGradient("#aaaaaa","#ffffff",b+2.5,.65*e-2.5,c-b-2.5,5,mxConstants.DIRECTION_NORTH,1,1);a.begin();a.moveTo(c,.65*e-2.5);a.arcTo(2.5,2.5,0,0,1,c,.65*e+2.5);a.lineTo(b+2.5,.65*e+2.5);a.arcTo(2.5,2.5,0,0,1,b+2.5,.65*e-2.5);a.close();a.fill()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IDOWNLOAD_BAR]=mxShapeMockupiDownloadBar;
|
|
Graph.handleFactory[mxMockupC.SHAPE_IDOWNLOAD_BAR]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"barPos",40))));return new mxPoint(a.x+.1*a.width+d*a.width*.8/100,a.y+.65*a.height)},function(a,e){this.state.style.barPos=Math.round(100*Math.max(0,Math.min(100,100*(e.x-.1*a.width-a.x)/(.8*a.width))))/100})]};
|
|
function mxShapeMockupiScreenNameBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiScreenNameBar,mxShape);mxShapeMockupiScreenNameBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setStrokeWidth(.5);d=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"#00ff00");a.setFillColor(d);a.rect(0,0,b,c);a.fill();a.setShadow(!1);this.foreground(a,b,c,5)};
|
|
mxShapeMockupiScreenNameBar.prototype.foreground=function(a,d,e,b){b=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR3,"#00ff00");a.setGradient(b,b,0,0,d,.5*e,mxConstants.DIRECTION_SOUTH,.8,.1);a.rect(0,0,d,.5*e);a.fill();b=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"");var c=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR,"#00ff00");a.setFontColor(c);a.setFontSize(9.5);a.text(.5*d,.45*e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ISCREEN_NAME_BAR]=mxShapeMockupiScreenNameBar;function mxShapeMockupiIconGrid(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiIconGrid,mxShape);
|
|
mxShapeMockupiIconGrid.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=mxUtils.getValue(this.style,mxMockupC.GRID_SIZE,"3,3").toString().split(",");this.background(a,b,c,d);a.setShadow(!1);this.foreground(a,b,c,d)};
|
|
mxShapeMockupiIconGrid.prototype.background=function(a,d,e,b){var c=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#00ff00"),f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#00ff00");a.setStrokeColor(f);a.setFillColor(c);d/=parseInt(b[0],10)+.5*(b[0]-1);e/=parseInt(b[1],10)+.5*(b[1]-1);for(c=0;c<b[0];c++)for(f=0;f<b[1];f++)a.rect(1.5*d*c,1.5*e*f,d,e),a.fillAndStroke()};
|
|
mxShapeMockupiIconGrid.prototype.foreground=function(a,d,e,b){d/=parseInt(b[0],10)+.5*(b[0]-1);e/=parseInt(b[1],10)+.5*(b[1]-1);for(var c=0;c<b[0];c++)for(var f=0;f<b[1];f++)a.begin(),a.moveTo(1.5*d*c,1.5*e*f),a.lineTo(1.5*d*c+d,1.5*e*f+e),a.moveTo(1.5*d*c+d,1.5*e*f),a.lineTo(1.5*d*c,1.5*e*f+e),a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IICON_GRID]=mxShapeMockupiIconGrid;
|
|
function mxShapeMockupiCopy(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiCopy,mxShape);mxShapeMockupiCopy.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c,5);a.setShadow(!1);this.foreground(a,b,c,5)};
|
|
mxShapeMockupiCopy.prototype.background=function(a,d,e,b){a.begin();a.moveTo(0,b);a.arcTo(b,b,0,0,1,b,0);a.lineTo(d-b,0);a.arcTo(b,b,0,0,1,d,b);a.lineTo(d,e-b-7.5);a.arcTo(b,b,0,0,1,d-b,e-7.5);a.lineTo(.5*d+7.5,e-7.5);a.lineTo(.5*d,e);a.lineTo(.5*d-7.5,e-7.5);a.lineTo(b,e-7.5);a.arcTo(b,b,0,0,1,0,e-b-7.5);a.close();a.fillAndStroke()};
|
|
mxShapeMockupiCopy.prototype.foreground=function(a,d,e,b){var c=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR3,"#00ff00");a.setGradient(c,c,0,0,d,.5*e,mxConstants.DIRECTION_SOUTH,.8,.1);a.begin();a.moveTo(0,b);a.arcTo(b,b,0,0,1,b,0);a.lineTo(d-b,0);a.arcTo(b,b,0,0,1,d,b);a.lineTo(d,.5*(e-7.5));a.lineTo(0,.5*(e-7.5));a.close();a.fill();b=mxUtils.getValue(this.style,mxMockupC.BUTTON_TEXT,"");c=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR,"#00ff00");a.setFontColor(c);a.setFontSize(8.5);
|
|
a.text(.5*d,.45*(e-7.5),0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ICOPY]=mxShapeMockupiCopy;function mxShapeMockupiCopyArea(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiCopyArea,mxShape);
|
|
mxShapeMockupiCopyArea.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c,5);a.setShadow(!1);this.foreground(a,b,c,5)};
|
|
mxShapeMockupiCopyArea.prototype.background=function(a,d,e,b){a.begin();a.moveTo(.5*d-20,0+b);a.arcTo(b,b,0,0,1,.5*d-20+b,0);a.lineTo(.5*d+20-b,0);a.arcTo(b,b,0,0,1,.5*d+20,b);a.lineTo(.5*d+20,20-b);a.arcTo(b,b,0,0,1,.5*d+20-b,20);a.lineTo(.5*d+7.5,20);a.lineTo(.5*d,27.5);a.lineTo(.5*d-7.5,20);a.lineTo(.5*d-20+b,20);a.arcTo(b,b,0,0,1,.5*d-20,20-b);a.close();a.fillAndStroke()};
|
|
mxShapeMockupiCopyArea.prototype.foreground=function(a,d,e,b){a.setAlpha(.3);a.setFillColor("#2266ff");a.rect(2.5,27.5,d-5,e-30);a.fill();a.setAlpha(1);27.5<e&&(a.setStrokeColor("#ffffff"),a.setGradient("#88ddff","#2266ff",.5*d-2.5,25,5,5,mxConstants.DIRECTION_SOUTH,1,1),a.ellipse(.5*d-2.5,25,5,5),a.fillAndStroke(),a.setGradient("#88ddff","#2266ff",.5*d-2.5,e-5,5,5,mxConstants.DIRECTION_SOUTH,1,1),a.ellipse(.5*d-2.5,e-5,5,5),a.fillAndStroke(),a.setGradient("#88ddff","#2266ff",0,.5*e+10,5,5,mxConstants.DIRECTION_SOUTH,
|
|
1,1),a.ellipse(0,.5*e+10,5,5),a.fillAndStroke(),a.setGradient("#88ddff","#2266ff",d-5,.5*e+10,5,5,mxConstants.DIRECTION_SOUTH,1,1),a.ellipse(d-5,.5*e+10,5,5),a.fillAndStroke());e=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR2,"#00ff00");var c=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#00ff00");a.setFillColor(e);a.setStrokeColor(c);a.begin();a.moveTo(.5*d-20,0+b);a.arcTo(b,b,0,0,1,.5*d-20+b,0);a.lineTo(.5*d+20-b,0);a.arcTo(b,b,0,0,1,.5*d+20,b);a.lineTo(.5*d+20,20-b);a.arcTo(b,
|
|
b,0,0,1,.5*d+20-b,20);a.lineTo(.5*d+7.5,20);a.lineTo(.5*d,27.5);a.lineTo(.5*d-7.5,20);a.lineTo(.5*d-20+b,20);a.arcTo(b,b,0,0,1,.5*d-20,20-b);a.close();a.fillAndStroke();e=mxUtils.getValue(this.style,mxMockupC.STYLE_FILLCOLOR3,"#00ff00");a.setGradient(e,e,.5*d-20,0,40,10,mxConstants.DIRECTION_SOUTH,.8,.1);a.begin();a.moveTo(.5*d-20,b);a.arcTo(b,b,0,0,1,.5*d-20+b,0);a.lineTo(.5*d+20-b,0);a.arcTo(b,b,0,0,1,.5*d+20,b);a.lineTo(.5*d+20,10);a.lineTo(.5*d-20,10);a.close();a.fill();b=mxUtils.getValue(this.style,
|
|
mxMockupC.BUTTON_TEXT,"");e=mxUtils.getValue(this.style,mxMockupC.STYLE_TEXTCOLOR,"#00ff00");a.setFontColor(e);a.setFontSize(8.5);a.text(.5*d,8.75,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_ICOPY_AREA]=mxShapeMockupiCopyArea;function mxShapeMockupiHomePageControl(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiHomePageControl,mxShape);
|
|
mxShapeMockupiHomePageControl.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#000000");e=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setStrokeColor(e);a.setFillColor(d);d=Math.min(.5*c,.05*b);a.ellipse(.35*b-d,.5*c-d,2*d,2*d);a.fill();a.ellipse(.65*b-d,.5*c-d,2*d,2*d);a.fill();a.ellipse(b-2*d,.5*c-d,2*d,2*d);a.fill();a.ellipse(.2*d,.5*c-.8*d,1.2*d,1.2*d);a.stroke();a.begin();a.moveTo(1.15*d,.5*c+
|
|
.25*d);a.lineTo(1.6*d,.5*c+.8*d);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IHOME_PAGE_CONTROL]=mxShapeMockupiHomePageControl;function mxShapeMockupiPageControl(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiPageControl,mxShape);
|
|
mxShapeMockupiPageControl.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#000000");e=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");var f=Math.min(.5*c,.05*b);a.setFillColor(e);a.ellipse(0,.5*c-f,2*f,2*f);a.fill();a.setFillColor(d);a.ellipse(.35*b-f,.5*c-f,2*f,2*f);a.fill();a.ellipse(.65*b-f,.5*c-f,2*f,2*f);a.fill();a.ellipse(b-2*f,.5*c-f,2*f,2*f);a.fill()};
|
|
mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IPAGE_CONTROL]=mxShapeMockupiPageControl;function mxShapeMockupiPad(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupiPad,mxShape);mxShapeMockupiPad.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c,25);a.setShadow(!1);this.foreground(a,d,e,b,c,25)};
|
|
mxShapeMockupiPad.prototype.background=function(a,d,e,b,c,f){a.setFillColor("#000000");a.setStrokeColor("#000000");a.roundrect(0,0,b,c,f,f);a.fillAndStroke()};
|
|
mxShapeMockupiPad.prototype.foreground=function(a,d,e,b,c,f){a.setStrokeWidth(1.5);a.setStrokeColor("#999999");a.begin();a.setStrokeColor("none");a.setFillColor("#808080");a.setGradient("#808080","#000000",.325*b,0,.675*b,.5*c,mxConstants.DIRECTION_SOUTH,1,1);a.moveTo(.325*b,0);a.lineTo(b-f,0);a.arcTo(f,f,0,0,1,b,f);a.lineTo(b,.5*c);a.lineTo(.7*b,.5*c);a.close();a.fillAndStroke();a.begin();a.setFillColor("#1f2923");a.setStrokeColor("#18211b");a.setStrokeWidth(1);d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,
|
|
"");e=mxUtils.getValue(this.style,mxMockupC.BG_STYLE,mxMockupC.BG_FLAT_GREEN);a.setStrokeWidth(1);if(e===mxMockupC.BG_FLAT_WHITE)a.setFillColor("#ffffff"),a.rect(.0928*b,.08*c,.8144*b,.816*c),a.fill();else if(e===mxMockupC.BG_FLAT_GREEN)a.setFillColor("#1f2923"),a.rect(.0928*b,.08*c,.8144*b,.816*c),a.fill();else if(e===mxMockupC.BG_FLAT_GRAY)a.setFillColor("#dddddd"),a.rect(.0928*b,.08*c,.8144*b,.816*c),a.fill();else if(e===mxMockupC.BG_FLAT_CUSTOM)a.setFillColor(d),a.rect(.0928*b,.08*c,.8144*b,.816*
|
|
c),a.fill();else if(e===mxMockupC.BG_STRIPED){d=b;e=c;a.translate(.0928*b,.08*c);b*=.8144;c*=.816;a.setFillColor("#5D7585");a.rect(0,0,b,c);a.fillAndStroke();a.setStrokeColor("#657E8F");var g=7;for(a.begin();g<b;)a.moveTo(g,0),a.lineTo(g,c),g+=7;a.stroke();a.setStrokeColor("#18211b");a.begin();a.rect(0,0,b,c);a.stroke();b=d;c=e;a.translate(.0928*-b,.08*-c)}else e===mxMockupC.BG_MAP&&(d=b,e=c,a.translate(.0928*b,.08*c),b*=.8144,c*=.816,a.setFillColor("#ffffff"),a.rect(0,0,b,c),a.fillAndStroke(),a.setFillColor("#96D1FF"),
|
|
a.setStrokeColor("#008cff"),a.setStrokeWidth(.5),a.begin(),a.moveTo(0,0),a.lineTo(.1171*b,0),a.lineTo(.1136*b,.0438*c),a.lineTo(.0993*b,.054*c),a.lineTo(0,.0446*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.1993*b,0),a.lineTo(.1914*b,.03884*c),a.lineTo(.1536*b,.0362*c),a.lineTo(.1586*b,0),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.24*b,0),a.lineTo(.2257*b,.054*c),a.lineTo(.2414*b,.0674*c),a.lineTo(.4707*b,.0835*c),a.lineTo(.5264*b,.0906*c),a.lineTo(.6429*b,.0929*c),a.arcTo(.0857*b,.0536*
|
|
c,0,0,0,.7193*b,.0621*c),a.arcTo(.48*b,.2143*c,0,0,0,.7286*b,0),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.8*b,0),a.lineTo(.7886*b,.04554*c),a.arcTo(.0857*b,.0536*c,0,0,0,.8164*b,.0875*c),a.arcTo(.1429*b,.0893*c,0,0,0,.88*b,.1036*c),a.lineTo(b,.1112*c),a.lineTo(b,0),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(0,.0933*c),a.lineTo(.08*b,.1036*c),a.lineTo(.1021*b,.1246*c),a.lineTo(.1007*b,.1768*c),a.lineTo(.0471*b,.2241*c),a.lineTo(0,.2527*c),a.close(),a.fillAndStroke(),a.ellipse(.1214*b,.0603*
|
|
c,.0843*b,.0576*c),a.fillAndStroke(),a.begin(),a.moveTo(.1293*b,.1924*c),a.lineTo(.1729*b,.142*c),a.lineTo(.1407*b,.1411*c),a.lineTo(.14*b,.1777*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.4586*b,.1241*c),a.lineTo(.455*b,.1835*c),a.lineTo(.3893*b,.2246*c),a.lineTo(.2171*b,.1362*c),a.lineTo(.2171*b,.1308*c),a.lineTo(.2293*b,.1214*c),a.lineTo(.2857*b,.1174*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.5079*b,.1134*c),a.lineTo(.7307*b,.1223*c),a.lineTo(.7279*b,.1625*c),a.lineTo(.715*b,.1772*
|
|
c),a.lineTo(.6929*b,.1688*c),a.lineTo(.625*b,.1795*c),a.lineTo(.4779*b,.2835*c),a.lineTo(.395*b,.2299*c),a.lineTo(.4657*b,.1826*c),a.lineTo(.4707*b,.1223*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(b,.1362*c),a.lineTo(.7643*b,.1237*c),a.lineTo(.7543*b,.1562*c),a.lineTo(.7643*b,.1585*c),a.lineTo(.9186*b,.2366*c),a.lineTo(b,.1732*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.2079*b,.1545*c),a.lineTo(.3886*b,.2536*c),a.lineTo(.3414*b,.2933*c),a.lineTo(.1743*b,.1969*c),a.close(),a.fillAndStroke(),
|
|
a.begin(),a.moveTo(.1579*b,.2134*c),a.lineTo(.3221*b,.3067*c),a.lineTo(.2957*b,.3237*c),a.lineTo(.1157*b,.2424*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.405*b,.2656*c),a.lineTo(.31*b,.3353*c),a.lineTo(.3693*b,.3661*c),a.lineTo(.4571*b,.2982*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.7121*b,.1848*c),a.lineTo(.6879*b,.1754*c),a.lineTo(.6329*b,.1844*c),a.lineTo(.61*b,.2018*c),a.lineTo(.6207*b,.2085*c),a.lineTo(.4986*b,.2982*c),a.lineTo(.535*b,.3237*c),a.close(),a.fillAndStroke(),a.begin(),
|
|
a.moveTo(.5557*b,.3379*c),a.lineTo(.7464*b,.1826*c),a.lineTo(.8036*b,.2076*c),a.lineTo(.595*b,.3616*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.8293*b,.2188*c),a.lineTo(.8979*b,.2509*c),a.lineTo(.6936*b,.4125*c),a.lineTo(.6171*b,.3737*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(b,.2138*c),a.lineTo(.6821*b,.4603*c),a.lineTo(.815*b,.5277*c),a.lineTo(b,.4*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(0,.317*c),a.lineTo(.0971*b,.2554*c),a.lineTo(.4121*b,.4143*c),a.lineTo(.3736*b,.4415*
|
|
c),a.lineTo(.315*b,.4076*c),a.lineTo(.3093*b,.4116*c),a.lineTo(.3686*b,.4455*c),a.lineTo(.285*b,.5045*c),a.lineTo(.1114*b,.4134*c),a.lineTo(.025*b,.4603*c),a.lineTo(.0371*b,.4723*c),a.lineTo(.1114*b,.4371*c),a.lineTo(.2871*b,.5312*c),a.lineTo(.1929*b,.6058*c),a.lineTo(.2271*b,.6705*c),a.lineTo(.17*b,.7147*c),a.lineTo(.0314*b,.6321*c),a.lineTo(0,.6246*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.48*b,.3121*c),a.lineTo(.5157*b,.3375*c),a.lineTo(.4314*b,.3982*c),a.lineTo(.3929*b,.3786*c),a.close(),
|
|
a.fillAndStroke(),a.begin(),a.moveTo(.3086*b,.5179*c),a.lineTo(.53*b,.3518*c),a.lineTo(.5757*b,.3745*c),a.lineTo(.3479*b,.5411*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.5964*b,.3884*c),a.lineTo(.6736*b,.4277*c),a.lineTo(.445*b,.5991*c),a.lineTo(.3664*b,.5531*c),a.lineTo(.5057*b,.4545*c),a.lineTo(.5507*b,.4754*c),a.lineTo(.5571*b,.4723*c),a.lineTo(.5114*b,.4504*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.4793*b,.6161*c),a.lineTo(.6771*b,.4643*c),a.lineTo(.8086*b,.5326*c),a.lineTo(.7471*
|
|
b,.5817*c),a.lineTo(.7214*b,.567*c),a.lineTo(.715*b,.571*c),a.lineTo(.7421*b,.5871*c),a.lineTo(.6014*b,.6933*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(b,.4371*c),a.lineTo(.8443*b,.546*c),a.lineTo(.9071*b,.5701*c),a.lineTo(b,.5022*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.8407*b,.5504*c),a.lineTo(.8993*b,.5759*c),a.lineTo(.6757*b,.7416*c),a.lineTo(.6286*b,.7139*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(b,.5321*c),a.lineTo(.6979*b,.7549*c),a.lineTo(.7457*b,.7781*c),a.lineTo(.9814*
|
|
b,.6094*c),a.lineTo(b,.6067*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(b,.6254*c),a.lineTo(.7664*b,.792*c),a.lineTo(.9586*b,.9062*c),a.lineTo(b,.8786*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.3093*b,.5464*c),a.lineTo(.4271*b,.6152*c),a.lineTo(.245*b,.7643*c),a.lineTo(.185*b,.7228*c),a.lineTo(.2493*b,.6728*c),a.lineTo(.2214*b,.6143*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(0,.65*c),a.lineTo(.2179*b,.7826*c),a.lineTo(.1136*b,.8424*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(0,
|
|
.7272*c),a.lineTo(.0821*b,.859*c),a.lineTo(0,.9085*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.4529*b,.6366*c),a.lineTo(.575*b,.7143*c),a.lineTo(.39*b,.8621*c),a.lineTo(.2657*b,.7902*c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(0,.9415*c),a.lineTo(.1036*b,.8821*c),a.lineTo(.2343*b,.959*c),a.lineTo(.1721*b,c),a.lineTo(0,c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.2586*b,.7951*c),a.lineTo(.3829*b,.8674*c),a.lineTo(.2543*b,.9451*c),a.lineTo(.1279*b,.8692*c),a.close(),a.fillAndStroke(),
|
|
a.begin(),a.moveTo(.2836*b,.9639*c),a.lineTo(.4207*b,.8772*c),a.lineTo(.605*b,.7321*c),a.lineTo(.6521*b,.7634*c),a.lineTo(.3486*b,c),a.lineTo(.3393*b,c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.3879*b,c),a.lineTo(.6721*b,.7759*c),a.lineTo(.7171*b,.7982*c),a.lineTo(.4564*b,c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.4986*b,c),a.lineTo(.7386*b,.8125*c),a.lineTo(.9307*b,.925*c),a.lineTo(.8264*b,c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.8671*b,c),a.lineTo(.9464*b,.9491*c),a.lineTo(b,
|
|
.975*c),a.lineTo(b,c),a.close(),a.fillAndStroke(),a.begin(),a.moveTo(.2295*b,c),a.lineTo(.2648*b,.9792*c),a.lineTo(.2981*b,c),a.close(),a.fillAndStroke(),b=d,c=e,a.translate(.0928*-b,.08*-c));a.setStrokeWidth(1);a.setStrokeColor("#18211b");a.rect(.0928*b,.08*c,.8144*b,.816*c);a.stroke();a.setStrokeWidth(1.5);a.setAlpha(.8);a.setStrokeColor("#dddddd");a.begin();a.moveTo(0,f);a.arcTo(f,f,0,0,1,f,0);a.lineTo(b-f,0);a.arcTo(f,f,0,0,1,b,f);a.lineTo(b,c-f);a.arcTo(f,f,0,0,1,b-f,c);a.lineTo(f,c);a.arcTo(f,
|
|
f,0,0,1,0,c-f);a.close();a.stroke();f=22.5;a.begin();a.setStrokeColor("#666666");a.begin();a.moveTo(2.5,2.5+f);a.arcTo(f,f,0,0,1,2.5+f,2.5);a.lineTo(b-f-5,2.5);a.arcTo(f,f,0,0,1,b-2.5,f+2.5);a.lineTo(b-2.5,c-f-2.5);a.arcTo(f,f,0,0,1,b-f-2.5,c-2.5);a.lineTo(f+2.5,c-2.5);a.arcTo(f,f,0,0,1,2.5,c-f-2.5);a.close();a.stroke();a.setAlpha(1);a.ellipse(.4948*b,.0444*c,.0103*b,.008*c);a.setStrokeWidth(2.5);a.setStrokeColor("#000000");a.setFillColor("#000099");a.fillAndStroke();a.setGradient("#bbbbbb","#000000",
|
|
.4588*b,.912*c,.0825*b,.064*c,mxConstants.DIRECTION_SOUTH,1,1);a.ellipse(.4588*b,.912*c,.0825*b,.064*c);a.fill();a.setAlpha(.5);a.ellipse(.4588*b,.912*c,.0825*b,.064*c);a.stroke();a.begin();a.setAlpha(.85);a.setFillColor("#000000");a.moveTo(.4598*b,.944*c);a.arcTo(.0402*b,.0296*c,0,0,1,.5402*b,.944*c);a.arcTo(.0825*b,.064*c,0,0,1,.4598*b,.944*c);a.close();a.fillAndStroke();a.begin();a.setAlpha(.7);a.setStrokeWidth(1.5);a.setStrokeColor("#dddddd");a.roundrect(.4814*b,.9296*c,.0371*b,.0288*c,.00515*
|
|
c,.004*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxMockupC.SHAPE_IPAD]=mxShapeMockupiPad;function mxShapeMockupRRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupRRect,mxShape);mxShapeMockupRRect.prototype.cst={RRECT:"mxgraph.ios.rrect",R_SIZE:"rSize"};
|
|
mxShapeMockupRRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupRRect.prototype.cst.R_SIZE,"10"));a.roundrect(0,0,b,c,d);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeMockupRRect.prototype.cst.RRECT,mxShapeMockupRRect);function mxShapeIosTopButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIosTopButton,mxShape);
|
|
mxShapeIosTopButton.prototype.cst={TOP_BUTTON:"mxgraph.ios.topButton",R_SIZE:"rSize"};mxShapeIosTopButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeIosTopButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(0,d);a.arcTo(d,d,0,0,1,d,0);a.lineTo(b-d,0);a.arcTo(d,d,0,0,1,b,d);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeIosTopButton.prototype.cst.TOP_BUTTON,mxShapeIosTopButton);
|
|
function mxShapeIosBottomButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIosBottomButton,mxShape);mxShapeIosBottomButton.prototype.cst={BOTTOM_BUTTON:"mxgraph.ios.bottomButton",R_SIZE:"rSize"};
|
|
mxShapeIosBottomButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeIosBottomButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c-d);a.arcTo(d,d,0,0,1,b-d,c);a.lineTo(d,c);a.arcTo(d,d,0,0,1,0,c-d);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeIosBottomButton.prototype.cst.BOTTOM_BUTTON,mxShapeIosBottomButton);function mxShapeIosAnchor(a,d,e,b){mxShape.call(this);this.bounds=a}
|
|
mxUtils.extend(mxShapeIosAnchor,mxShape);mxShapeIosAnchor.prototype.cst={ANCHOR:"mxgraph.ios.anchor"};mxShapeIosAnchor.prototype.paintVertexShape=function(a,d,e,b,c){};mxCellRenderer.registerShape(mxShapeIosAnchor.prototype.cst.ANCHOR,mxShapeIosAnchor);function mxShapeIosCheckbox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeIosCheckbox,mxShape);mxShapeIosCheckbox.prototype.cst={CHECKBOX:"mxgraph.ios.checkbox"};
|
|
mxShapeIosCheckbox.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,0,b,c);a.fillAndStroke();a.begin();a.moveTo(.8*b,.2*c);a.lineTo(.4*b,.8*c);a.lineTo(.25*b,.6*c);a.stroke()};mxCellRenderer.registerShape(mxShapeIosCheckbox.prototype.cst.CHECKBOX,mxShapeIosCheckbox);function mxShapeMockupFancyRRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeMockupFancyRRect,mxShape);
|
|
mxShapeMockupFancyRRect.prototype.cst={FANCY_RRECT:"mxgraph.ios.fancyRRect",R_SIZE:"rSize"};
|
|
mxShapeMockupFancyRRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeMockupFancyRRect.prototype.cst.R_SIZE,"10"));e=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff");var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.roundrect(0,0,b,c,d);a.fillAndStroke();a.setShadow(!1);a.setStrokeColor(e);a.setGradient(e,"#ffffff",0,0,b,22.5,mxConstants.DIRECTION_SOUTH,1,1);a.setAlpha(.3);a.begin();a.moveTo(b-
|
|
d,0);a.arcTo(d,d,0,0,1,b,d);a.lineTo(b,17.5);a.arcTo(1.67*b,2.5*c,0,0,1,0,17.5);a.lineTo(0,d);a.arcTo(d,d,0,0,1,d,0);a.close();a.fillAndStroke();a.setAlpha(.8);a.setStrokeColor(f);a.setStrokeWidth(1);a.roundrect(0,0,b,c,d,d);a.stroke()};mxCellRenderer.registerShape(mxShapeMockupFancyRRect.prototype.cst.FANCY_RRECT,mxShapeMockupFancyRRect);function mxShapeAws3dArrowNE(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeAws3dArrowNE,mxShape);mxShapeAws3dArrowNE.prototype.cst={ARROW_NE:"mxgraph.aws3d.arrowNE"};mxShapeAws3dArrowNE.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(b-17,8);a.lineTo(b-21,5.5);a.lineTo(b,0);a.lineTo(b-9.7,12.2);a.lineTo(b-13.9,9.8);a.lineTo(9.7,c-3.5);a.arcTo(6,3,0,0,1,9,c-.4);a.arcTo(5.2,3,0,0,1,1,c-1.4);a.arcTo(6,2.8,0,0,1,3,c-5.4);a.arcTo(5,3,0,0,1,6.7,c-5.2);a.close();a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dArrowNE.prototype.cst.ARROW_NE,mxShapeAws3dArrowNE);function mxShapeAws3dArrowSE(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dArrowSE,mxShape);mxShapeAws3dArrowSE.prototype.cst={ARROW_SE:"mxgraph.aws3d.arrowSE"};
|
|
mxShapeAws3dArrowSE.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(b-17,c-8);a.lineTo(b-21,c-5.5);a.lineTo(b,c);a.lineTo(b-9.7,c-12.2);a.lineTo(b-13.9,c-9.8);a.lineTo(9.7,3.5);a.arcTo(6,3,0,0,0,9,.4);a.arcTo(5.2,3,0,0,0,1,1.4);a.arcTo(6,2.8,0,0,0,3,5.4);a.arcTo(5,3,0,0,0,6.7,5.2);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeAws3dArrowSE.prototype.cst.ARROW_SE,mxShapeAws3dArrowSE);
|
|
function mxShapeAws3dArrowSW(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dArrowSW,mxShape);mxShapeAws3dArrowSW.prototype.cst={ARROW_SW:"mxgraph.aws3d.arrowSW"};
|
|
mxShapeAws3dArrowSW.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(17,c-8);a.lineTo(21,c-5.5);a.lineTo(0,c);a.lineTo(9.7,c-12.2);a.lineTo(13.9,c-9.8);a.lineTo(b-9.7,3.5);a.arcTo(6,3,0,0,1,b-9,.4);a.arcTo(5.2,3,0,0,1,b-1,1.4);a.arcTo(6,2.8,0,0,1,b-3,5.4);a.arcTo(5,3,0,0,1,b-6.7,5.2);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeAws3dArrowSW.prototype.cst.ARROW_SW,mxShapeAws3dArrowSW);
|
|
function mxShapeAws3dArrowNW(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dArrowNW,mxShape);mxShapeAws3dArrowNW.prototype.cst={ARROW_NW:"mxgraph.aws3d.arrowNW"};
|
|
mxShapeAws3dArrowNW.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(17,8);a.lineTo(21,5.5);a.lineTo(0,0);a.lineTo(9.7,12.2);a.lineTo(13.9,9.8);a.lineTo(b-9.7,c-3.5);a.arcTo(6,3,0,0,0,b-9,c-.4);a.arcTo(5.2,3,0,0,0,b-1,c-1.4);a.arcTo(6,2.8,0,0,0,b-3,c-5.4);a.arcTo(5,3,0,0,0,b-6.7,c-5.2);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeAws3dArrowNW.prototype.cst.ARROW_NW,mxShapeAws3dArrowNW);
|
|
function mxShapeAws3dArrowlessNE(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dArrowlessNE,mxShape);mxShapeAws3dArrowlessNE.prototype.cst={ARROWLESS_NE:"mxgraph.aws3d.arrowlessNE"};
|
|
mxShapeAws3dArrowlessNE.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(b-3.1,0);a.lineTo(b,1.8);a.lineTo(9.7,c-3.5);a.arcTo(6,3,0,0,1,9,c-.4);a.arcTo(5.2,3,0,0,1,1,c-1.4);a.arcTo(6,2.8,0,0,1,3,c-5.4);a.arcTo(5,3,0,0,1,6.7,c-5.2);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeAws3dArrowlessNE.prototype.cst.ARROWLESS_NE,mxShapeAws3dArrowlessNE);
|
|
function mxShapeAws3dDashedEdgeDouble(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dDashedEdgeDouble,mxShape);mxShapeAws3dDashedEdgeDouble.prototype.cst={DASHED_EDGE_DOUBLE:"mxgraph.aws3d.dashedEdgeDouble"};
|
|
mxShapeAws3dDashedEdgeDouble.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setFillColor("#2D6195");a.save();a.setStrokeColor("none");a.begin();a.moveTo(21,5.5);a.lineTo(0,0);a.lineTo(9.7,12.2);a.fillAndStroke();a.begin();a.moveTo(b-21,c-5.5);a.lineTo(b,c);a.lineTo(b-9.7,c-12.2);a.fillAndStroke();a.restore();a.setStrokeColor("#2D6195");a.setStrokeWidth("4");a.setDashed("true");a.setLineCap("round");a.begin();a.moveTo(7.675,4.425);a.lineTo(b-7.675,c-4.425);a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dDashedEdgeDouble.prototype.cst.DASHED_EDGE_DOUBLE,mxShapeAws3dDashedEdgeDouble);function mxShapeAws3dDashedArrowlessEdge(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dDashedArrowlessEdge,mxShape);mxShapeAws3dDashedArrowlessEdge.prototype.cst={DASHED_ARROWLESS_EDGE:"mxgraph.aws3d.dashedArrowlessEdge"};
|
|
mxShapeAws3dDashedArrowlessEdge.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setStrokeColor("#2D6195");a.setStrokeWidth("4");a.setDashed("true");a.setLineCap("round");a.begin();a.moveTo(0,0);a.lineTo(b,c);a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dDashedArrowlessEdge.prototype.cst.DASHED_ARROWLESS_EDGE,mxShapeAws3dDashedArrowlessEdge);function mxShapeAws3dDashedEdge(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeAws3dDashedEdge,mxShape);mxShapeAws3dDashedEdge.prototype.cst={DASHED_EDGE:"mxgraph.aws3d.dashedEdge"};
|
|
mxShapeAws3dDashedEdge.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setFillColor("#2D6195");a.save();a.setStrokeColor("none");a.begin();a.moveTo(b-21,5.5);a.lineTo(b,0);a.lineTo(b-9.7,12.2);a.fillAndStroke();a.restore();a.setStrokeColor("#2D6195");a.setStrokeWidth("4");a.setDashed("true");a.setLineCap("round");a.begin();a.moveTo(b-7.675,4.425);a.lineTo(0,c);a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dDashedEdge.prototype.cst.DASHED_EDGE,mxShapeAws3dDashedEdge);
|
|
function mxShapeAws3dFlatEdge(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dFlatEdge,mxShape);mxShapeAws3dFlatEdge.prototype.cst={FLAT_EDGE:"mxgraph.aws3d.flatEdge"};
|
|
mxShapeAws3dFlatEdge.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setFillColor("#F4B934");a.setStrokeColor("none");a.begin();a.moveTo(b-46,8.8);a.lineTo(b-61.2,0);a.lineTo(b,0);a.lineTo(b,35.5);a.lineTo(b-15.4,26.5);a.lineTo(30.7,c);a.lineTo(0,c-17.7);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeAws3dFlatEdge.prototype.cst.FLAT_EDGE,mxShapeAws3dFlatEdge);
|
|
function mxShapeAws3dFlatDoubleEdge(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dFlatDoubleEdge,mxShape);mxShapeAws3dFlatDoubleEdge.prototype.cst={FLAT_DOUBLE_EDGE:"mxgraph.aws3d.flatDoubleEdge"};
|
|
mxShapeAws3dFlatDoubleEdge.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setFillColor("#F4B934");a.setStrokeColor("none");a.begin();a.moveTo(15.3,61.9);a.lineTo(30.8,53.2);a.lineTo(15.4,44.2);a.lineTo(0,53.2);a.lineTo(15.4,8.8);a.lineTo(92.1,0);a.lineTo(76.5,8.8);a.lineTo(92.1,17.7);a.lineTo(107.4,8.8);a.lineTo(b-15.3,c-61.9);a.lineTo(b-30.8,c-53.2);a.lineTo(b-15.4,c-44.2);a.lineTo(b,c-53.2);a.lineTo(b-15.4,c-8.8);a.lineTo(b-92.1,c);a.lineTo(b-76.5,c-8.8);a.lineTo(b-92.1,c-17.7);
|
|
a.lineTo(b-107.4,c-8.8);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeAws3dFlatDoubleEdge.prototype.cst.FLAT_DOUBLE_EDGE,mxShapeAws3dFlatDoubleEdge);function mxShapeAws3dAMI(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dAMI,mxShape);mxShapeAws3dAMI.prototype.cst={AMI:"mxgraph.aws3d.ami",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dAMI.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(d*b/92,d*c/60);a.setStrokeWidth(d);a.setShadow(!1);a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==e&&a.setShadow(!0);a.begin();a.moveTo(0,.6483*c);a.lineTo(.0684*b,.4133*c);a.lineTo(.5326*b,0);a.lineTo(.6685*b,0);a.lineTo(.9359*b,.2367*
|
|
c);a.lineTo(b,.465*c);a.lineTo(.4*b,c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dAMI.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");var f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(0,.65*c);a.lineTo(.0652*b,.5*c);a.lineTo(.3326*b,.7667*c);a.lineTo(.4663*b,.7667*c);a.lineTo(.4*b,c);a.close();a.fill();"0"==f?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();
|
|
a.moveTo(.4*b,c);a.lineTo(.4641*b,.77*c);a.lineTo(.9326*b,.355*c);a.lineTo(.9347*b,.24*c);a.lineTo(b,.4667*c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(0,.65*c);a.lineTo(.0652*b,.5*c);a.lineTo(.3326*b,.7667*c);a.lineTo(.4663*b,.7667*c);a.lineTo(.4*b,c);a.close();a.stroke();a.begin();a.moveTo(.4*b,c);a.lineTo(.4641*b,.77*c);a.lineTo(.9326*b,.355*c);a.lineTo(.9347*b,.24*c);a.lineTo(b,.4667*c);a.close();a.stroke();a.begin();a.moveTo(.0652*b,.42*c);a.lineTo(.0652*b,.5*c);
|
|
a.moveTo(.3337*b,.7667*c);a.lineTo(.4*b,c);a.moveTo(.9348*b,.355*c);a.lineTo(b,.4733*c);a.stroke();a.setLineJoin("miter");e=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(e);a.begin();a.moveTo(.1935*b,.42*c);a.lineTo(.5543*b,.0967*c);a.lineTo(.6652*b,.1967*c);a.lineTo(.3*b,.5133*c);a.close();a.moveTo(.2967*b,.4633*c);a.lineTo(.3837*b,.3883*c);a.lineTo(.3326*b,.3417*c);a.lineTo(.2467*b,.42*c);a.close();a.moveTo(.362*b,.32*c);a.lineTo(.412*b,.3633*c);a.lineTo(.5054*b,.2867*
|
|
c);a.lineTo(.4522*b,.24*c);a.close();a.moveTo(.5293*b,.26*c);a.lineTo(.6109*b,.1933*c);a.lineTo(.5511*b,.145*c);a.lineTo(.4739*b,.2133*c);a.close();a.moveTo(.3528*b,.557*c);a.lineTo(.7137*b,.2337*c);a.lineTo(.8246*b,.3337*c);a.lineTo(.4593*b,.6503*c);a.close();a.moveTo(.4561*b,.6003*c);a.lineTo(.543*b,.5253*c);a.lineTo(.492*b,.4787*c);a.lineTo(.4061*b,.557*c);a.close();a.moveTo(.5213*b,.457*c);a.lineTo(.5713*b,.5003*c);a.lineTo(.6648*b,.4237*c);a.lineTo(.6115*b,.377*c);a.close();a.moveTo(.6887*b,
|
|
.397*c);a.lineTo(.7702*b,.3303*c);a.lineTo(.7104*b,.282*c);a.lineTo(.6333*b,.3503*c);a.close();a.fill();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.6483*c);a.lineTo(.0684*b,.4133*c);a.lineTo(.5326*b,0);a.lineTo(.6685*b,0);a.lineTo(.9359*b,.2367*c);a.lineTo(b,.465*c);a.lineTo(.4*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dAMI.prototype.cst.AMI,mxShapeAws3dAMI);
|
|
function mxShapeAws3dSnapshot(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dSnapshot,mxShape);mxShapeAws3dSnapshot.prototype.cst={SNAPSHOT:"mxgraph.aws3d.snapshot",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dSnapshot.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=d*b/92;d=d*c/60;var f=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(e,d);a.setStrokeWidth(d);a.setShadow(!1);a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==f&&a.setShadow(!0);a.begin();a.moveTo(b,.6483*c);a.lineTo(.9316*b,.4133*c);a.lineTo(.4674*b,0);a.lineTo(.3315*b,0);a.lineTo(.0641*
|
|
b,.2367*c);a.lineTo(0,.465*c);a.lineTo(.6*b,c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dSnapshot.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();a.moveTo(b,.65*c);a.lineTo(.9348*b,.52*c);a.lineTo(.6674*b,.7667*c);a.lineTo(.5337*b,.7667*c);a.lineTo(.6*b,c);a.close();a.fill();"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);
|
|
a.begin();a.moveTo(.6*b,c);a.lineTo(.5359*b,.77*c);a.lineTo(.0674*b,.355*c);a.lineTo(.0653*b,.24*c);a.lineTo(0,.4667*c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(b,.65*c);a.lineTo(.9348*b,.52*c);a.lineTo(.6674*b,.7667*c);a.lineTo(.5337*b,.7667*c);a.lineTo(.6*b,c);a.close();a.stroke();a.begin();a.moveTo(.6*b,c);a.lineTo(.5359*b,.77*c);a.lineTo(.0674*b,.355*c);a.lineTo(.0653*b,.24*c);a.lineTo(0,.4667*c);a.close();a.stroke();a.begin();a.moveTo(.9348*b,.42*c);a.lineTo(.9348*
|
|
b,.52*c);a.moveTo(.6663*b,.7667*c);a.lineTo(.6*b,c);a.moveTo(.0652*b,.355*c);a.lineTo(0,.4733*c);a.stroke();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(b,.6483*c);a.lineTo(.9316*b,.4133*c);a.lineTo(.4674*b,0);a.lineTo(.3315*b,0);a.lineTo(.0641*b,.2367*c);a.lineTo(0,.465*c);a.lineTo(.6*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dSnapshot.prototype.cst.SNAPSHOT,mxShapeAws3dSnapshot);
|
|
function mxShapeAws3dApplication(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dApplication,mxShape);mxShapeAws3dApplication.prototype.cst={APPLICATION:"mxgraph.aws3d.application",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dApplication.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=d*b/62;d=d*c/68.8;var f=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(e,d);a.setShadow(!1);a.setStrokeWidth(d);a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==f&&a.setShadow(!0);a.begin();a.moveTo(0,.2544*c);a.lineTo(.5*b,0);a.lineTo(b,.2544*c);a.lineTo(b,.7485*c);a.lineTo(.5*
|
|
b,c);a.lineTo(0,.7485*c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dApplication.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(0,.2544*c);a.lineTo(.5*b,.5015*c);a.lineTo(.5*b,c);a.lineTo(0,.7485*c);a.close();a.fill();"0"==f?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();a.moveTo(.5*b,.5015*c);a.lineTo(b,.2544*
|
|
c);a.lineTo(b,.7485*c);a.lineTo(.5*b,c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(0,.2544*c);a.lineTo(.5*b,.5015*c);a.lineTo(.5*b,c);a.lineTo(0,.7485*c);a.close();a.stroke();a.begin();a.moveTo(.5*b,.5015*c);a.lineTo(b,.2544*c);a.lineTo(b,.7485*c);a.lineTo(.5*b,c);a.close();a.stroke();a.setLineJoin("miter");e=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(e);a.begin();a.moveTo(.6694*b,.0872*c);a.lineTo(.7629*b,.1337*c);a.lineTo(.2661*b,.3882*
|
|
c);a.lineTo(.2661*b,.5407*c);a.lineTo(.1742*b,.4953*c);a.lineTo(.1742*b,.3459*c);a.close();a.moveTo(.8629*b,.1846*c);a.lineTo(.379*b,.4331*c);a.lineTo(.379*b,.5945*c);a.lineTo(.2855*b,.5494*c);a.lineTo(.2855*b,.3953*c);a.lineTo(.7839*b,.1439*c);a.close();a.fill();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.2544*c);a.lineTo(.5*b,0);a.lineTo(b,.2544*c);a.lineTo(b,.7485*c);a.lineTo(.5*b,c);a.lineTo(0,.7485*c);a.close();a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dApplication.prototype.cst.APPLICATION,mxShapeAws3dApplication);function mxShapeAws3dApplicationServer(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dApplicationServer,mxShape);mxShapeAws3dApplicationServer.prototype.cst={APPLICATION_SERVER:"mxgraph.aws3d.application_server",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dApplicationServer.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/123,d*c/124);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dApplicationServer.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7236*c);a.lineTo(0,.2863*c);a.lineTo(.5*b,0);a.lineTo(b,.2863*c);a.lineTo(b,.7236*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dApplicationServer.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dApplicationServer.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(0,.2863*c);a.lineTo(.5*b,.5726*c);a.lineTo(.5*b,c);a.lineTo(0,.7177*c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();
|
|
a.moveTo(b,.2863*c);a.lineTo(.5*b,.5726*c);a.lineTo(.5*b,c);a.lineTo(b,.7177*c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(0,.2863*c);a.lineTo(.5*b,.5726*c);a.lineTo(.5*b,c);a.lineTo(0,.7177*c);a.close();a.stroke();a.begin();a.moveTo(b,.2863*c);a.lineTo(.5*b,.5726*c);a.lineTo(.5*b,c);a.lineTo(b,.7177*c);a.close();a.stroke();a.setLineJoin("miter");d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.374*b,.4435*
|
|
c);a.arcTo(.0325*b,.0202*c,0,0,1,.374*b,.4153*c);a.lineTo(.4797*b,.3548*c);a.arcTo(.0325*b,.0161*c,0,0,1,.5203*b,.3548*c);a.lineTo(.626*b,.4153*c);a.arcTo(.0325*b,.0202*c,0,0,1,.626*b,.4411*c);a.lineTo(.5203*b,.5016*c);a.arcTo(.0325*b,.0161*c,0,0,1,.4797*b,.5016*c);a.close();a.fill();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7236*c);a.lineTo(0,.2863*c);a.lineTo(.5*b,0);a.lineTo(b,.2863*c);a.lineTo(b,.7236*c);a.lineTo(.5*b,c);a.close();a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dApplicationServer.prototype.cst.APPLICATION_SERVER,mxShapeAws3dApplicationServer);function mxShapeAws3dCloudFront(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dCloudFront,mxShape);mxShapeAws3dCloudFront.prototype.cst={CLOUDFRONT:"mxgraph.aws3d.cloudfront",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dCloudFront.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=d*b/103.8;d=d*c/169.8;var f=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(e,d);a.setShadow(!1);a.setStrokeWidth(d);a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==f&&a.setShadow(!0);a.begin();a.moveTo(0,.7915*c);a.lineTo(0,.7491*c);a.lineTo(.0588*b,.7279*c);a.lineTo(.0588*b,
|
|
.1036*c);a.lineTo(.3526*b,0);a.lineTo(.9422*b,.2073*c);a.lineTo(.9422*b,.8316*c);a.lineTo(b,.8539*c);a.lineTo(b,.894*c);a.lineTo(.7013*b,c);a.lineTo(.5877*b,c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dCloudFront.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(.0588*b,.106*c);a.lineTo(.6474*b,.3121*c);a.lineTo(.6474*
|
|
b,.9352*c);a.lineTo(.7052*b,c);a.lineTo(.5915*b,c);a.lineTo(0,.7915*c);a.lineTo(0,.7491*c);a.lineTo(.0588*b,.7279*c);a.close();a.fill();"0"==f?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();a.moveTo(.6474*b,.3121*c);a.lineTo(.9422*b,.2073*c);a.lineTo(.9422*b,.8363*c);a.lineTo(b,.8539*c);a.lineTo(b,.894*c);a.lineTo(.7013*b,c);a.lineTo(.6474*b,.9305*c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(0,.7915*c);a.lineTo(.0559*b,.7291*c);a.lineTo(.6474*b,.9364*c);a.lineTo(.5896*
|
|
b,c);a.moveTo(.6493*b,.9364*c);a.lineTo(.9412*b,.8333*c);a.lineTo(b,.894*c);a.stroke();a.begin();a.moveTo(.0588*b,.106*c);a.lineTo(.6474*b,.3121*c);a.lineTo(.6474*b,.9352*c);a.lineTo(.7052*b,c);a.lineTo(.5915*b,c);a.lineTo(0,.7915*c);a.lineTo(0,.7491*c);a.lineTo(.0588*b,.7279*c);a.close();a.stroke();a.begin();a.moveTo(.6474*b,.3121*c);a.lineTo(.9422*b,.2073*c);a.lineTo(.9422*b,.8363*c);a.lineTo(b,.8539*c);a.lineTo(b,.894*c);a.lineTo(.7013*b,c);a.lineTo(.6474*b,.9305*c);a.close();a.stroke();e=mxUtils.getValue(this.state.style,
|
|
"strokeColor","#000000");a.setFillColor(e);a.begin();a.moveTo(.3333*b,.6643*c);a.arcTo(.3372*b,.2061*c,0,0,1,.2351*b,.6042*c);a.arcTo(.4528*b,.2768*c,0,0,1,.1724*b,.523*c);a.lineTo(.2428*b,.5677*c);a.lineTo(.2427*b,.5895*c);a.lineTo(.2765*b,.5995*c);a.close();a.moveTo(.1599*b,.4935*c);a.arcTo(.3372*b,.2061*c,0,0,1,.1522*b,.4146*c);a.arcTo(.1156*b,.0883*c,0,0,1,.2071*b,.3486*c);a.lineTo(.2013*b,.4187*c);a.lineTo(.1859*b,.4146*c);a.lineTo(.1859*b,.4464*c);a.lineTo(.1907*b,.4493*c);a.close();a.moveTo(.2235*
|
|
b,.3445*c);a.arcTo(.1927*b,.1767*c,0,0,1,.368*b,.361*c);a.arcTo(.3854*b,.2356*c,0,0,1,.468*b,.4299*c);a.lineTo(.368*b,.4034*c);a.lineTo(.368*b,.394*c);a.lineTo(.3256*b,.3799*c);a.lineTo(.3256*b,.3887*c);a.close();a.moveTo(.4855*b,.4499*c);a.arcTo(.3854*b,.2356*c,0,0,1,.5337*b,.5395*c);a.arcTo(.3854*b,.2356*c,0,0,1,.5328*b,.6302*c);a.lineTo(.4952*b,.5589*c);a.lineTo(.5019*b,.5595*c);a.lineTo(.5019*b,.5265*c);a.lineTo(.4855*b,.5194*c);a.close();a.moveTo(.5241*b,.6455*c);a.arcTo(.0963*b,.0589*c,0,0,
|
|
1,.4663*b,.682*c);a.arcTo(.1445*b,.0883*c,0,0,1,.3642*b,.6761*c);a.lineTo(.4239*b,.6525*c);a.lineTo(.4566*b,.6643*c);a.lineTo(.4566*b,.6413*c);a.close();a.moveTo(.3507*b,.6667*c);a.lineTo(.2871*b,.5919*c);a.lineTo(.4123*b,.6366*c);a.close();a.moveTo(.2563*b,.5595*c);a.lineTo(.1753*b,.5088*c);a.lineTo(.2052*b,.4594*c);a.close();a.moveTo(.2139*b,.4229*c);a.lineTo(.2197*b,.3528*c);a.lineTo(.3256*b,.4028*c);a.lineTo(.2283*b,.4252*c);a.close();a.moveTo(.2264*b,.4417*c);a.lineTo(.3218*b,.4146*c);a.lineTo(.3353*
|
|
b,.4181*c);a.lineTo(.3353*b,.4971*c);a.lineTo(.3208*b,.4912*c);a.lineTo(.3208*b,.4965*c);a.lineTo(.2264*b,.4482*c);a.close();a.moveTo(.2697*b,.5618*c);a.lineTo(.2245*b,.4635*c);a.lineTo(.2331*b,.4588*c);a.lineTo(.3256*b,.5112*c);a.lineTo(.3237*b,.5241*c);a.close();a.moveTo(.2852*b,.576*c);a.lineTo(.2852*b,.5654*c);a.lineTo(.3391*b,.53*c);a.lineTo(.3516*b,.5347*c);a.lineTo(.4133*b,.6213*c);a.close();a.moveTo(.368*b,.5141*c);a.lineTo(.368*b,.5088*c);a.lineTo(.3526*b,.5029*c);a.lineTo(.3526*b,.4234*
|
|
c);a.lineTo(.3622*b,.4276*c);a.lineTo(.4547*b,.5177*c);a.lineTo(.4557*b,.5277*c);a.close();a.moveTo(.3671*b,.417*c);a.lineTo(.4692*b,.4411*c);a.lineTo(.4721*b,.52*c);a.close();a.moveTo(.368*b,.5253*c);a.lineTo(.4566*b,.5359*c);a.lineTo(.4566*b,.5453*c);a.lineTo(.4663*b,.5465*c);a.lineTo(.4335*b,.6201*c);a.lineTo(.422*b,.616*c);a.lineTo(.368*b,.5389*c);a.close();a.moveTo(.4798*b,.5583*c);a.lineTo(.5183*b,.629*c);a.lineTo(.4557*b,.6313*c);a.lineTo(.4557*b,.6237*c);a.lineTo(.447*b,.6225*c);a.close();
|
|
a.fill();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7915*c);a.lineTo(0,.7491*c);a.lineTo(.0588*b,.7279*c);a.lineTo(.0588*b,.1036*c);a.lineTo(.3526*b,0);a.lineTo(.9422*b,.2073*c);a.lineTo(.9422*b,.8316*c);a.lineTo(b,.8539*c);a.lineTo(b,.894*c);a.lineTo(.7013*b,c);a.lineTo(.5877*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dCloudFront.prototype.cst.CLOUDFRONT,mxShapeAws3dCloudFront);
|
|
function mxShapeAws3dDataCenter(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dDataCenter,mxShape);mxShapeAws3dDataCenter.prototype.cst={DATA_CENTER:"mxgraph.aws3d.dataCenter",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dDataCenter.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=d*b/123;d=d*c/142;var f=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(e,d);a.setShadow(!1);a.setStrokeWidth(d);a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==f&&a.setShadow(!0);a.begin();a.moveTo(0,.7465*c);a.lineTo(0,.25*c);a.lineTo(.5*b,0);a.lineTo(b,.25*c);a.lineTo(b,.7465*
|
|
c);a.lineTo(.5*b,c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dDataCenter.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(0,.7465*c);a.lineTo(0,.25*c);a.lineTo(.5*b,.5*c);a.lineTo(.5*b,c);a.close();a.fill();"0"==f?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();a.moveTo(b,.7465*c);a.lineTo(b,.25*c);a.lineTo(.5*
|
|
b,.5*c);a.lineTo(.5*b,c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(0,.7465*c);a.lineTo(0,.25*c);a.lineTo(.5*b,.5*c);a.lineTo(.5*b,c);a.close();a.stroke();a.begin();a.moveTo(b,.7465*c);a.lineTo(b,.25*c);a.lineTo(.5*b,.5*c);a.lineTo(.5*b,c);a.close();a.stroke();a.setLineCap("round");a.setStrokeWidth(3*d);a.begin();a.moveTo(.0894*b,.3838*c);a.lineTo(.4187*b,.5493*c);a.moveTo(.0894*b,.4331*c);a.lineTo(.4187*b,.5986*c);a.moveTo(.0894*b,.4824*c);a.lineTo(.4187*b,.6479*c);
|
|
a.moveTo(.5854*b,.5493*c);a.lineTo(.9146*b,.3838*c);a.moveTo(.5854*b,.5986*c);a.lineTo(.9146*b,.4331*c);a.moveTo(.5854*b,.6479*c);a.lineTo(.9146*b,.4824*c);a.stroke();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7465*c);a.lineTo(0,.25*c);a.lineTo(.5*b,0);a.lineTo(b,.25*c);a.lineTo(b,.7465*c);a.lineTo(.5*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dDataCenter.prototype.cst.DATA_CENTER,mxShapeAws3dDataCenter);
|
|
function mxShapeAws3dDataServer(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dDataServer,mxShape);mxShapeAws3dDataServer.prototype.cst={DATA_SERVER:"mxgraph.aws3d.dataServer",SHADINC_COLORS:"shadingCols"};
|
|
mxShapeAws3dDataServer.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=d*b/123;d=d*c/106;var f=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(e,d);a.setShadow(!1);a.setStrokeWidth(d);a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==f&&a.setShadow(!0);a.begin();a.moveTo(0,.6651*c);a.lineTo(0,.3349*c);a.lineTo(.5*b,0);a.lineTo(b,.3349*c);a.lineTo(b,
|
|
.6651*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dDataServer.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(0,.6651*c);a.lineTo(0,.3349*c);a.lineTo(.5*b,.6698*c);a.lineTo(.5*b,c);a.close();a.fill();"0"==f?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();a.moveTo(b,.6651*c);a.lineTo(b,.3349*c);
|
|
a.lineTo(.5*b,.6698*c);a.lineTo(.5*b,c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(0,.6651*c);a.lineTo(0,.3349*c);a.lineTo(.5*b,.6698*c);a.lineTo(.5*b,c);a.close();a.stroke();a.begin();a.moveTo(b,.6651*c);a.lineTo(b,.3349*c);a.lineTo(.5*b,.6698*c);a.lineTo(.5*b,c);a.close();a.stroke();a.setLineCap("round");a.setStrokeWidth(3*d);a.begin();a.moveTo(.0878*b,.4858*c);a.lineTo(.4187*b,.7094*c);a.moveTo(.587*b,.7094*c);a.lineTo(.9187*b,.4858*c);a.stroke();a.setStrokeWidth(2*
|
|
d);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.6651*c);a.lineTo(0,.3349*c);a.lineTo(.5*b,0);a.lineTo(b,.3349*c);a.lineTo(b,.6651*c);a.lineTo(.5*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dDataServer.prototype.cst.DATA_SERVER,mxShapeAws3dDataServer);function mxShapeAws3dElasticLoadBalancing(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dElasticLoadBalancing,mxShape);
|
|
mxShapeAws3dElasticLoadBalancing.prototype.cst={ELASTIC_LOAD_BALANCING:"mxgraph.aws3d.elasticLoadBalancing",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dElasticLoadBalancing.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);e=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));var f=e*b/92;e=e*c/88.17;d=mxUtils.getValue(this.state.style,"strokeColor","#000000");var g=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));e=Math.min(f,e);a.setShadow(!1);a.setStrokeWidth(e);a.save();a.save();a.save();a.save();a.setStrokeWidth(2*e);a.setStrokeColor("#292929");a.setLineJoin("round");1==g&&a.setShadow(!0);a.begin();
|
|
a.moveTo(0,.7996*c);a.lineTo(0,.1985*c);a.lineTo(.3315*b,0);a.lineTo(.6685*b,0);a.lineTo(b,.1985*c);a.lineTo(b,.7996*c);a.lineTo(.6685*b,c);a.lineTo(.3315*b,c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");f=mxUtils.getValue(this.state.style,mxShapeAws3dElasticLoadBalancing.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");g=mxUtils.getValue(this.state.style,"flipH","0");"0"==g?a.setAlpha(f[0]):a.setAlpha(f[1]);a.begin();a.moveTo(0,.4026*c);a.lineTo(.3315*b,.6011*c);
|
|
a.lineTo(.6685*b,.6011*c);a.lineTo(.6685*b,c);a.lineTo(.3315*b,c);a.lineTo(0,.7996*c);a.close();a.fill();"0"==g?a.setAlpha(f[1]):a.setAlpha(f[0]);a.begin();a.moveTo(.6685*b,.6011*c);a.lineTo(b,.4026*c);a.lineTo(b,.7996*c);a.lineTo(.6685*b,c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(0,.4026*c);a.lineTo(.3315*b,.6011*c);a.lineTo(.6685*b,.6011*c);a.lineTo(.6685*b,c);a.lineTo(.3315*b,c);a.lineTo(0,.7996*c);a.close();a.stroke();a.begin();a.moveTo(.6685*b,.6011*c);a.lineTo(b,
|
|
.4026*c);a.lineTo(b,.7996*c);a.lineTo(.6685*b,c);a.close();a.moveTo(.3315*b,.6011*c);a.lineTo(.3315*b,c);a.stroke();a.restore();a.setFillColor(d);a.begin();a.moveTo(.337*b,.1395*c);a.arcTo(.3043*b,.1928*c,0,0,1,.5*b,.1191*c);a.arcTo(.3043*b,.1928*c,0,0,1,.6739*b,.1645*c);a.arcTo(.3261*b,.2155*c,0,0,1,.8152*b,.3176*c);a.arcTo(.3261*b,.1701*c,0,0,1,.75*b,.4367*c);a.arcTo(.3261*b,.3403*c,0,0,1,.6033*b,.4854*c);a.arcTo(.3261*b,.2268*c,0,0,1,.4348*b,.4741*c);a.arcTo(.3261*b,.2268*c,0,0,1,.2848*b,.4094*
|
|
c);a.arcTo(.3261*b,.2268*c,0,0,1,.2065*b,.3062*c);a.arcTo(.3261*b,.1701*c,0,0,1,.2446*b,.1928*c);a.arcTo(.2717*b,.1701*c,0,0,1,.337*b,.1395*c);a.fill();a.restore();a.begin();a.moveTo(.2826*b,.372*c);a.lineTo(.362*b,.3232*c);a.lineTo(.4054*b,.3482*c);a.lineTo(.4457*b,.2654*c);a.lineTo(.4185*b,.2643*c);a.lineTo(.4728*b,.2132*c);a.lineTo(.4348*b,.1928*c);a.lineTo(.5141*b,.144*c);a.lineTo(.5837*b,.1883*c);a.lineTo(.5043*b,.2348*c);a.lineTo(.4848*b,.2223*c);a.lineTo(.4967*b,.2688*c);a.lineTo(.463*b,.2665*
|
|
c);a.lineTo(.4304*b,.3346*c);a.lineTo(.4946*b,.2949*c);a.lineTo(.4761*b,.2858*c);a.lineTo(.5511*b,.2631*c);a.lineTo(.5261*b,.2472*c);a.lineTo(.6043*b,.1996*c);a.lineTo(.6761*b,.2404*c);a.lineTo(.5978*b,.2892*c);a.lineTo(.5652*b,.2699*c);a.lineTo(.5293*b,.3198*c);a.lineTo(.5087*b,.3051*c);a.lineTo(.4543*b,.3391*c);a.lineTo(.563*b,.3221*c);a.lineTo(.5598*b,.3017*c);a.lineTo(.6326*b,.3096*c);a.lineTo(.6163*b,.2994*c);a.lineTo(.6957*b,.2529*c);a.lineTo(.7674*b,.2938*c);a.lineTo(.687*b,.3425*c);a.lineTo(.6489*
|
|
b,.321*c);a.lineTo(.5707*b,.3539*c);a.lineTo(.5674*b,.3369*c);a.lineTo(.4293*b,.3618*c);a.lineTo(.4641*b,.3834*c);a.lineTo(.3859*b,.4299*c);a.close();a.fill();a.setStrokeWidth(2*e);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7996*c);a.lineTo(0,.1985*c);a.lineTo(.3315*b,0);a.lineTo(.6685*b,0);a.lineTo(b,.1985*c);a.lineTo(b,.7996*c);a.lineTo(.6685*b,c);a.lineTo(.3315*b,c);a.close();a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dElasticLoadBalancing.prototype.cst.ELASTIC_LOAD_BALANCING,mxShapeAws3dElasticLoadBalancing);function mxShapeAws3dInstance(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dInstance,mxShape);mxShapeAws3dInstance.prototype.cst={INSTANCE:"mxgraph.aws3d.instance",SHADIG_COLORS:"shadingCols"};
|
|
mxShapeAws3dInstance.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/123,d*c/97);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dInstance.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.634*c);a.lineTo(0,.2732*c);a.lineTo(.374*b,0);a.lineTo(.622*b,0);a.lineTo(b,.2732*c);a.lineTo(b,.634*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dInstance.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dInstance.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(0,.2732*c);a.lineTo(.5*b,.6392*c);a.lineTo(.5*b,c);a.lineTo(0,.634*c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.5*b,.6392*
|
|
c);a.lineTo(b,.2732*c);a.lineTo(b,.6392*c);a.lineTo(.5*b,c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(0,.2732*c);a.lineTo(.5*b,.6392*c);a.lineTo(.5*b,c);a.lineTo(0,.634*c);a.close();a.stroke();a.begin();a.moveTo(.5*b,.6392*c);a.lineTo(b,.2732*c);a.lineTo(b,.6392*c);a.lineTo(.5*b,c);a.close();a.stroke();d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.374*b,.4742*c);a.arcTo(.0325*b,.0258*c,0,0,1,.374*b,
|
|
.4381*c);a.lineTo(.4797*b,.3608*c);a.arcTo(.0325*b,.0206*c,0,0,1,.5203*b,.3608*c);a.lineTo(.626*b,.4381*c);a.arcTo(.0325*b,.0258*c,0,0,1,.626*b,.4711*c);a.lineTo(.5203*b,.5485*c);a.arcTo(.0325*b,.0206*c,0,0,1,.4797*b,.5485*c);a.close();a.fill();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.634*c);a.lineTo(0,.2732*c);a.lineTo(.374*b,0);a.lineTo(.622*b,0);a.lineTo(b,.2732*c);a.lineTo(b,.634*c);a.lineTo(.5*b,c);a.close();a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dInstance.prototype.cst.INSTANCE,mxShapeAws3dInstance);function mxShapeAws3dInternetGateway(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dInternetGateway,mxShape);mxShapeAws3dInternetGateway.prototype.cst={INTERNET_GATEWAY:"mxgraph.aws3d.internetGateway",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dInternetGateway.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/116.7,d*c/102.8);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dInternetGateway.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.save();a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(.4199*b,.5447*c);a.lineTo(.4199*b,.035*c);a.lineTo(.8946*b,0);a.lineTo(b,.0691*c);a.lineTo(b,.4134*c);a.lineTo(.6812*b,.7247*c);a.close();a.fillAndStroke();a.restore();a.save();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS,
|
|
"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(.4199*b,.5447*c);a.lineTo(.4199*b,.035*c);a.lineTo(.6838*b,.2072*c);a.lineTo(.6838*b,.7247*c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.6838*b,.2072*c);a.lineTo(b,.0691*c);a.lineTo(b,.4134*c);a.lineTo(.6838*b,.7247*c);a.close();a.fill();a.restore();a.setShadow(!1);a.begin();a.moveTo(.4199*b,.5447*c);a.lineTo(.4199*b,.035*
|
|
c);a.lineTo(.6838*b,.2072*c);a.lineTo(.6838*b,.7247*c);a.close();a.stroke();a.restore();a.setLineJoin("round");a.setShadow(!1);a.begin();a.moveTo(.6838*b,.2072*c);a.lineTo(b,.0691*c);a.lineTo(b,.4134*c);a.lineTo(.6838*b,.7247*c);a.close();a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.begin();a.moveTo(.4199*b,.5447*c);a.lineTo(.4199*b,.035*c);a.lineTo(.8946*b,0);a.lineTo(b,.0691*c);a.lineTo(b,.4134*c);a.lineTo(.6812*b,.7247*c);a.close();a.stroke();a.restore();a.setStrokeWidth(2*f);
|
|
a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.929*c);a.lineTo(0,.5866*c);a.lineTo(.3171*b,.1031*c);a.lineTo(.5784*b,.2753*c);a.lineTo(.5784*b,.7928*c);a.lineTo(.1054*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dInternetGateway.prototype.foreground=function(a,d,e,b,c,f){a.restore();d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setShadow(!1);a.setLineJoin("round");a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");var g=mxUtils.getValue(this.state.style,"flipH","0");"0"==g?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(0,.929*c);a.lineTo(0,.5866*c);a.lineTo(.1054*b,.6537*
|
|
c);a.lineTo(.1054*b,c);a.close();a.fill();"0"==g?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();a.moveTo(.1054*b,c);a.lineTo(.1054*b,.6537*c);a.lineTo(.5784*b,.2753*c);a.lineTo(.5784*b,.7928*c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(0,.929*c);a.lineTo(0,.5866*c);a.lineTo(.1054*b,.6537*c);a.lineTo(.1054*b,c);a.close();a.stroke();a.begin();a.moveTo(.1054*b,c);a.lineTo(.1054*b,.6537*c);a.lineTo(.5784*b,.2753*c);a.lineTo(.5784*b,.7928*c);a.close();a.stroke();
|
|
a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.929*c);a.lineTo(0,.5866*c);a.lineTo(.3171*b,.1031*c);a.lineTo(.5784*b,.2753*c);a.lineTo(.5784*b,.7928*c);a.lineTo(.1054*b,c);a.close();a.stroke();a.setFillColor(d);a.begin();a.moveTo(.7849*b,.5039*c);a.arcTo(.0343*b,.0632*c,0,0,1,.7481*b,.4796*c);a.arcTo(.0857*b,.0973*c,0,0,1,.7661*b,.3911*c);a.arcTo(.06*b,.0681*c,0,0,1,.7712*b,.3356*c);a.arcTo(.0257*b,.0292*c,0,0,1,.7952*b,.32*c);a.arcTo(.1285*b,.1459*
|
|
c,0,0,1,.8166*b,.2461*c);a.arcTo(.06*b,.0973*c,0,0,1,.8595*b,.2238*c);a.arcTo(.0514*b,.0973*c,0,0,1,.8937*b,.2743*c);a.arcTo(.0428*b,.0778*c,0,0,1,.9323*b,.3093*c);a.arcTo(.0686*b,.0778*c,0,0,1,.928*b,.3716*c);a.arcTo(.0857*b,.0973*c,0,0,1,.8972*b,.4125*c);a.close();a.fill()};mxCellRenderer.registerShape(mxShapeAws3dInternetGateway.prototype.cst.INTERNET_GATEWAY,mxShapeAws3dInternetGateway);
|
|
function mxShapeAws3dOracleDataCenter(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dOracleDataCenter,mxShape);mxShapeAws3dOracleDataCenter.prototype.cst={ORACLE_DATA_CENTER:"mxgraph.aws3d.oracleDataCenter"};
|
|
mxShapeAws3dOracleDataCenter.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/123,d*c/142);a.setStrokeWidth(d);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dOracleDataCenter.prototype.background=function(a,d,e,b,c,f){a.save();a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7464*c);a.lineTo(0,.25*c);a.lineTo(.5*b,0);a.lineTo(b,.25*c);a.lineTo(b,.7464*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dOracleDataCenter.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");a.setAlpha("0.1");a.begin();a.moveTo(0,.7464*c);a.lineTo(0,.25*c);a.lineTo(.5*b,.5*c);a.lineTo(.5*b,c);a.close();a.fill();a.setAlpha("0.3");a.begin();a.moveTo(.5*b,.5*c);a.lineTo(b,.25*c);a.lineTo(b,.7464*c);a.lineTo(.5*b,c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.setFillColor("#ff0000");a.begin();a.moveTo(0,.5866*c);a.lineTo(.5*b,.8359*c);a.lineTo(b,
|
|
.5866*c);a.lineTo(b,.6986*c);a.lineTo(.5*b,.9486*c);a.lineTo(0,.6986*c);a.fill();a.setStrokeWidth(.5*f);a.setStrokeColor("#ffffff");a.setFillColor("#ffffff");a.begin();a.moveTo(0,.5866*c);a.lineTo(.5*b,.8359*c);a.lineTo(b,.5866*c);a.moveTo(b,.6986*c);a.lineTo(.5*b,.9486*c);a.lineTo(0,.6986*c);a.stroke();a.begin();a.moveTo(.0813*b,.7113*c);a.arcTo(.0569*b,.0493*c,0,0,1,.065*b,.6831*c);a.arcTo(.065*b,.0563*c,0,0,1,.065*b,.6613*c);a.arcTo(.0163*b,.0141*c,0,0,1,.0797*b,.6549*c);a.lineTo(.122*b,.6754*
|
|
c);a.arcTo(.065*b,.0563*c,0,0,1,.1358*b,.6937*c);a.arcTo(.065*b,.0563*c,0,0,1,.139*b,.7232*c);a.arcTo(.0179*b,.0155*c,0,0,1,.1187*b,.7296*c);a.close();a.moveTo(.1163*b,.7183*c);a.arcTo(.0089*b,.0077*c,0,0,0,.1285*b,.7148*c);a.arcTo(.0407*b,.0352*c,0,0,0,.1293*b,.7021*c);a.arcTo(.0407*b,.0352*c,0,0,0,.1179*b,.6831*c);a.lineTo(.087*b,.6676*c);a.arcTo(.0081*b,.007*c,0,0,0,.0764*b,.6697*c);a.arcTo(.0325*b,.0352*c,0,0,0,.078*b,.6937*c);a.arcTo(.0407*b,.0352*c,0,0,0,.087*b,.7035*c);a.close();a.moveTo(.1439*
|
|
b,.743*c);a.lineTo(.1439*b,.6866*c);a.lineTo(.1846*b,.707*c);a.arcTo(.0407*b,.0352*c,0,0,1,.1967*b,.7183*c);a.arcTo(.0407*b,.0352*c,0,0,1,.2*b,.738*c);a.arcTo(.0138*b,.0155*c,0,0,1,.1813*b,.743*c);a.lineTo(.1992*b,.769*c);a.lineTo(.187*b,.7641*c);a.lineTo(.1577*b,.7218*c);a.lineTo(.1854*b,.7345*c);a.arcTo(.0041*b,.0035*c,0,0,0,.1911*b,.7317*c);a.arcTo(.0163*b,.0141*c,0,0,0,.1894*b,.7225*c);a.arcTo(.0325*b,.0282*c,0,0,0,.1821*b,.7155*c);a.lineTo(.1528*b,.7007*c);a.lineTo(.1528*b,.7472*c);a.close();
|
|
a.moveTo(.2008*b,.7711*c);a.lineTo(.2293*b,.7338*c);a.arcTo(.0065*b,.0056*c,0,0,1,.2382*b,.7324*c);a.arcTo(.0407*b,.0352*c,0,0,1,.2431*b,.7415*c);a.lineTo(.2699*b,.8035*c);a.lineTo(.2602*b,.8007*c);a.lineTo(.252*b,.7859*c);a.lineTo(.2293*b,.7754*c);a.lineTo(.2244*b,.7634*c);a.lineTo(.248*b,.7739*c);a.lineTo(.235*b,.7444*c);a.lineTo(.2122*b,.7768*c);a.close();a.moveTo(.3244*b,.8225*c);a.lineTo(.3171*b,.8289*c);a.lineTo(.2854*b,.8127*c);a.arcTo(.0407*b,.0352*c,0,0,1,.2724*b,.7986*c);a.arcTo(.0569*b,
|
|
.0493*c,0,0,1,.265*b,.7746*c);a.arcTo(.0407*b,.0352*c,0,0,1,.2683*b,.762*c);a.arcTo(.0163*b,.0141*c,0,0,1,.2829*b,.757*c);a.lineTo(.3228*b,.7761*c);a.lineTo(.3179*b,.7831*c);a.lineTo(.2878*b,.7683*c);a.arcTo(.0081*b,.007*c,0,0,0,.2789*b,.7697*c);a.arcTo(.0244*b,.0211*c,0,0,0,.2748*b,.7831*c);a.arcTo(.0407*b,.0352*c,0,0,0,.2878*b,.8042*c);a.close();a.moveTo(.3276*b,.7789*c);a.lineTo(.3366*b,.7831*c);a.lineTo(.3366*b,.8289*c);a.lineTo(.3805*b,.8507*c);a.lineTo(.3748*b,.857*c);a.lineTo(.3317*b,.8359*
|
|
c);a.arcTo(.0163*b,.0141*c,0,0,1,.3276*b,.8275*c);a.close();a.moveTo(.435*b,.8775*c);a.lineTo(.4325*b,.8866*c);a.lineTo(.3959*b,.8683*c);a.arcTo(.0407*b,.0352*c,0,0,1,.3862*b,.8563*c);a.arcTo(.0528*b,.0458*c,0,0,1,.3805*b,.8183*c);a.arcTo(.0163*b,.0141*c,0,0,1,.3951*b,.8134*c);a.lineTo(.435*b,.8324*c);a.lineTo(.4285*b,.838*c);a.lineTo(.4008*b,.8246*c);a.arcTo(.0098*b,.0085*c,0,0,0,.3878*b,.831*c);a.lineTo(.4333*b,.8542*c);a.lineTo(.426*b,.8606*c);a.lineTo(.3878*b,.8415*c);a.arcTo(.0325*b,.0282*c,
|
|
0,0,0,.3976*b,.8585*c);a.close();a.moveTo(.6171*b,.8063*c);a.arcTo(.0163*b,.0141*c,0,0,1,.6366*b,.8092*c);a.arcTo(.0325*b,.0282*c,0,0,1,.639*b,.8303*c);a.arcTo(.065*b,.0563*c,0,0,1,.6211*b,.8592*c);a.lineTo(.5894*b,.8761*c);a.arcTo(.0203*b,.0176*c,0,0,1,.565*b,.8732*c);a.arcTo(.0407*b,.0352*c,0,0,1,.5659*b,.8458*c);a.arcTo(.0488*b,.0422*c,0,0,1,.5805*b,.8246*c);a.close();a.moveTo(.5886*b,.8296*c);a.arcTo(.0325*b,.0282*c,0,0,0,.5748*b,.8472*c);a.arcTo(.0325*b,.0282*c,0,0,0,.574*b,.862*c);a.arcTo(.0098*
|
|
b,.0085*c,0,0,0,.587*b,.8676*c);a.lineTo(.6163*b,.8528*c);a.arcTo(.0407*b,.0352*c,0,0,0,.6285*b,.8359*c);a.arcTo(.0244*b,.0211*c,0,0,0,.6293*b,.8225*c);a.arcTo(.0098*b,.0085*c,0,0,0,.6163*b,.8155*c);a.close();a.moveTo(.64*b,.85*c);a.lineTo(.64*b,.793*c);a.lineTo(.6854*b,.7718*c);a.arcTo(.0106*b,.0092*c,0,0,1,.7008*b,.7782*c);a.arcTo(.0407*b,.0352*c,0,0,1,.6959*b,.8*c);a.arcTo(.0407*b,.0352*c,0,0,1,.6805*b,.8127*c);a.lineTo(.6992*b,.8218*c);a.lineTo(.6854*b,.8282*c);a.lineTo(.6569*b,.8141*c);a.lineTo(.6805*
|
|
b,.8021*c);a.arcTo(.0203*b,.0176*c,0,0,0,.6894*b,.7923*c);a.arcTo(.0244*b,.0211*c,0,0,0,.6894*b,.7845*c);a.arcTo(.0041*b,.0035*c,0,0,0,.6837*b,.7831*c);a.lineTo(.6528*b,.7979*c);a.lineTo(.6528*b,.8437*c);a.close();a.moveTo(.7*b,.8204*c);a.lineTo(.7301*b,.7507*c);a.arcTo(.0098*b,.0085*c,0,0,1,.7358*b,.7444*c);a.arcTo(.0098*b,.0085*c,0,0,1,.7415*b,.7486*c);a.lineTo(.7699*b,.7852*c);a.lineTo(.7602*b,.7908*c);a.lineTo(.7537*b,.7838*c);a.lineTo(.7276*b,.7958*c);a.lineTo(.7228*b,.788*c);a.lineTo(.748*b,
|
|
.7768*c);a.lineTo(.7358*b,.7585*c);a.lineTo(.7114*b,.8155*c);a.close();a.moveTo(.8244*b,.7486*c);a.lineTo(.8171*b,.762*c);a.lineTo(.7894*b,.7761*c);a.arcTo(.0244*b,.0211*c,0,0,1,.7683*b,.7746*c);a.arcTo(.0407*b,.0352*c,0,0,1,.7667*b,.7507*c);a.arcTo(.0488*b,.0423*c,0,0,1,.7937*b,.7162*c);a.lineTo(.822*b,.7035*c);a.lineTo(.8171*b,.7155*c);a.lineTo(.7902*b,.7296*c);a.arcTo(.0325*b,.0282*c,0,0,0,.778*b,.743*c);a.arcTo(.0407*b,.0352*c,0,0,0,.7756*b,.7606*c);a.arcTo(.0077*b,.0067*c,0,0,0,.787*b,.767*c);
|
|
a.close();a.moveTo(.8366*b,.6949*c);a.lineTo(.8366*b,.7423*c);a.lineTo(.878*b,.7231*c);a.lineTo(.874*b,.7338*c);a.lineTo(.8333*b,.7535*c);a.arcTo(.0041*b,.0035*c,0,0,1,.8268*b,.75*c);a.lineTo(.8268*b,.7007*c);a.close();a.moveTo(.9342*b,.6472*c);a.lineTo(.9293*b,.6599*c);a.lineTo(.9033*b,.6725*c);a.arcTo(.0325*b,.0282*c,0,0,0,.8927*b,.6817*c);a.arcTo(.0406*b,.0352*c,0,0,0,.887*b,.6937*c);a.lineTo(.9309*b,.6725*c);a.lineTo(.9268*b,.6845*c);a.lineTo(.887*b,.7035*c);a.arcTo(.0089*b,.0077*c,0,0,0,.8992*
|
|
b,.7106*c);a.lineTo(.935*b,.693*c);a.lineTo(.9285*b,.7063*c);a.lineTo(.9008*b,.7197*c);a.arcTo(.0163*b,.0141*c,0,0,1,.8829*b,.7204*c);a.arcTo(.0407*b,.0352*c,0,0,1,.8764*b,.7028*c);a.arcTo(.065*b,.0563*c,0,0,1,.8959*b,.6669*c);a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(0,.7464*c);a.lineTo(0,.25*c);a.lineTo(.5*b,.5*c);a.lineTo(.5*b,c);a.close();a.stroke();a.begin();a.moveTo(.5*b,.5*c);a.lineTo(b,.25*c);a.lineTo(b,.7464*c);a.lineTo(.5*b,c);a.close();a.stroke();a.setStrokeWidth(2*
|
|
f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7464*c);a.lineTo(0,.25*c);a.lineTo(.5*b,0);a.lineTo(b,.25*c);a.lineTo(b,.7464*c);a.lineTo(.5*b,c);a.close();a.stroke();a.restore();a.setShadow(!1);a.setStrokeWidth(3*f);a.setLineCap("round");a.begin();a.moveTo(.0894*b,.3838*c);a.lineTo(.4187*b,.5493*c);a.moveTo(.0894*b,.4331*c);a.lineTo(.4187*b,.5986*c);a.moveTo(.0894*b,.4824*c);a.lineTo(.4187*b,.6479*c);a.moveTo(.5854*b,.5492*c);a.lineTo(.9146*b,.3838*c);a.moveTo(.5854*b,
|
|
.5986*c);a.lineTo(.9146*b,.4331*c);a.moveTo(.5854*b,.6479*c);a.lineTo(.9146*b,.4824*c);a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dOracleDataCenter.prototype.cst.ORACLE_DATA_CENTER,mxShapeAws3dOracleDataCenter);function mxShapeAws3dOracleDatabaseServer(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dOracleDatabaseServer,mxShape);mxShapeAws3dOracleDatabaseServer.prototype.cst={ORACLE_DB_SERVER:"mxgraph.aws3d.oracleDbServer"};
|
|
mxShapeAws3dOracleDatabaseServer.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/123,d*c/142);a.setStrokeWidth(d);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dOracleDatabaseServer.prototype.background=function(a,d,e,b,c,f){a.save();a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7331*c);a.lineTo(0,.3346*c);a.lineTo(.126*b,.1316*c);a.lineTo(.374*b,0);a.lineTo(.626*b,0);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3346*c);a.lineTo(b,.7331*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dOracleDatabaseServer.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");a.setAlpha("0.1");a.begin();a.moveTo(.126*b,.1316*c);a.lineTo(.126*b,.267*c);a.lineTo(.378*b,.4023*c);a.lineTo(.5*b,.6015*c);a.lineTo(.5*b,c);a.lineTo(0,.7331*c);a.lineTo(0,.3346*c);a.close();a.moveTo(.874*b,.267*c);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3308*c);a.fill();a.setAlpha("0.3");a.begin();a.moveTo(.5*b,c);a.lineTo(.5*b,.6015*c);a.lineTo(.622*b,.4023*c);a.lineTo(.874*
|
|
b,.267*c);a.lineTo(b,.3308*c);a.lineTo(b,.7331*c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.setFillColor("#ff0000");a.begin();a.moveTo(0,.5586*c);a.lineTo(.5*b,.8248*c);a.lineTo(b,.5586*c);a.lineTo(b,.6782*c);a.lineTo(.5*b,.9453*c);a.lineTo(0,.6782*c);a.fill();a.setStrokeWidth(.5*f);a.setStrokeColor("#ffffff");a.setFillColor("#ffffff");a.begin();a.moveTo(0,.5586*c);a.lineTo(.5*b,.8248*c);a.lineTo(b,.5586*c);a.moveTo(b,.6782*c);a.lineTo(.5*b,.9453*c);a.lineTo(0,.6782*
|
|
c);a.stroke();a.begin();a.moveTo(.0813*b,.6918*c);a.arcTo(.0569*b,.0526*c,0,0,1,.065*b,.6616*c);a.arcTo(.065*b,.0601*c,0,0,1,.065*b,.6384*c);a.arcTo(.0163*b,.0151*c,0,0,1,.0797*b,.6315*c);a.lineTo(.122*b,.6534*c);a.arcTo(.065*b,.0601*c,0,0,1,.1358*b,.673*c);a.arcTo(.065*b,.0601*c,0,0,1,.139*b,.7045*c);a.arcTo(.0179*b,.0165*c,0,0,1,.1187*b,.7113*c);a.close();a.moveTo(.1163*b,.6992*c);a.arcTo(.0089*b,.0082*c,0,0,0,.1285*b,.6955*c);a.arcTo(.0407*b,.0376*c,0,0,0,.1293*b,.6819*c);a.arcTo(.0407*b,.0376*
|
|
c,0,0,0,.1179*b,.6616*c);a.lineTo(.087*b,.6451*c);a.arcTo(.0081*b,.0075*c,0,0,0,.0764*b,.6473*c);a.arcTo(.0325*b,.0376*c,0,0,0,.078*b,.673*c);a.arcTo(.0407*b,.0376*c,0,0,0,.087*b,.6834*c);a.close();a.moveTo(.1439*b,.7256*c);a.lineTo(.1439*b,.6654*c);a.lineTo(.1846*b,.6872*c);a.arcTo(.0407*b,.0376*c,0,0,1,.1967*b,.6992*c);a.arcTo(.0407*b,.0376*c,0,0,1,.2*b,.7203*c);a.arcTo(.0138*b,.0165*c,0,0,1,.1813*b,.7256*c);a.lineTo(.1992*b,.7534*c);a.lineTo(.187*b,.7481*c);a.lineTo(.1577*b,.7029*c);a.lineTo(.1854*
|
|
b,.7165*c);a.arcTo(.0041*b,.0037*c,0,0,0,.1911*b,.7135*c);a.arcTo(.0163*b,.0151*c,0,0,0,.1894*b,.7037*c);a.arcTo(.0325*b,.0301*c,0,0,0,.1821*b,.6962*c);a.lineTo(.1528*b,.6804*c);a.lineTo(.1528*b,.7301*c);a.close();a.moveTo(.2008*b,.7556*c);a.lineTo(.2293*b,.7158*c);a.arcTo(.0065*b,.006*c,0,0,1,.2382*b,.7143*c);a.arcTo(.0407*b,.0376*c,0,0,1,.2431*b,.724*c);a.lineTo(.2699*b,.7902*c);a.lineTo(.2602*b,.7872*c);a.lineTo(.252*b,.7714*c);a.lineTo(.2293*b,.7602*c);a.lineTo(.2244*b,.7474*c);a.lineTo(.248*
|
|
b,.7586*c);a.lineTo(.235*b,.7271*c);a.lineTo(.2122*b,.7617*c);a.close();a.moveTo(.3244*b,.8105*c);a.lineTo(.3171*b,.8173*c);a.lineTo(.2854*b,.8*c);a.arcTo(.0407*b,.0376*c,0,0,1,.2724*b,.785*c);a.arcTo(.0569*b,.0526*c,0,0,1,.265*b,.7593*c);a.arcTo(.0407*b,.0376*c,0,0,1,.2683*b,.7459*c);a.arcTo(.0163*b,.0151*c,0,0,1,.2829*b,.7405*c);a.lineTo(.3228*b,.7609*c);a.lineTo(.3179*b,.7684*c);a.lineTo(.2878*b,.7526*c);a.arcTo(.0081*b,.0075*c,0,0,0,.2789*b,.7541*c);a.arcTo(.0244*b,.0225*c,0,0,0,.2748*b,.7684*
|
|
c);a.arcTo(.0407*b,.0376*c,0,0,0,.2878*b,.7909*c);a.close();a.moveTo(.3276*b,.7639*c);a.lineTo(.3366*b,.7684*c);a.lineTo(.3366*b,.8173*c);a.lineTo(.3805*b,.8406*c);a.lineTo(.3748*b,.8473*c);a.lineTo(.3317*b,.8248*c);a.arcTo(.0163*b,.0151*c,0,0,1,.3276*b,.8158*c);a.close();a.moveTo(.435*b,.8692*c);a.lineTo(.4325*b,.8789*c);a.lineTo(.3959*b,.8594*c);a.arcTo(.0407*b,.0376*c,0,0,1,.3862*b,.8466*c);a.arcTo(.0528*b,.0489*c,0,0,1,.3805*b,.806*c);a.arcTo(.0163*b,.0151*c,0,0,1,.3951*b,.8008*c);a.lineTo(.435*
|
|
b,.821*c);a.lineTo(.4285*b,.827*c);a.lineTo(.4008*b,.8127*c);a.arcTo(.0098*b,.0091*c,0,0,0,.3878*b,.8196*c);a.lineTo(.4333*b,.8443*c);a.lineTo(.426*b,.8512*c);a.lineTo(.3878*b,.8308*c);a.arcTo(.0325*b,.0301*c,0,0,0,.3976*b,.8489*c);a.close();a.moveTo(.6171*b,.7932*c);a.arcTo(.0163*b,.0151*c,0,0,1,.6366*b,.7963*c);a.arcTo(.0325*b,.0301*c,0,0,1,.639*b,.8188*c);a.arcTo(.065*b,.0601*c,0,0,1,.6211*b,.8497*c);a.lineTo(.5894*b,.8677*c);a.arcTo(.0203*b,.0188*c,0,0,1,.565*b,.8646*c);a.arcTo(.0407*b,.0376*
|
|
c,0,0,1,.5659*b,.8354*c);a.arcTo(.0488*b,.0451*c,0,0,1,.5805*b,.8127*c);a.close();a.moveTo(.5886*b,.8181*c);a.arcTo(.0325*b,.0301*c,0,0,0,.5748*b,.8368*c);a.arcTo(.0325*b,.0301*c,0,0,0,.574*b,.8527*c);a.arcTo(.0098*b,.0091*c,0,0,0,.587*b,.8586*c);a.lineTo(.6163*b,.8428*c);a.arcTo(.0407*b,.0376*c,0,0,0,.6285*b,.8248*c);a.arcTo(.0244*b,.0225*c,0,0,0,.6293*b,.8105*c);a.arcTo(.0098*b,.0091*c,0,0,0,.6163*b,.803*c);a.close();a.moveTo(.64*b,.8398*c);a.lineTo(.64*b,.779*c);a.lineTo(.6854*b,.7563*c);a.arcTo(.0106*
|
|
b,.0098*c,0,0,1,.7008*b,.7632*c);a.arcTo(.0407*b,.0376*c,0,0,1,.6959*b,.7865*c);a.arcTo(.0407*b,.0376*c,0,0,1,.6805*b,.8*c);a.lineTo(.6992*b,.8097*c);a.lineTo(.6854*b,.8166*c);a.lineTo(.6569*b,.8015*c);a.lineTo(.6805*b,.7887*c);a.arcTo(.0203*b,.0188*c,0,0,0,.6894*b,.7782*c);a.arcTo(.0244*b,.0225*c,0,0,0,.6894*b,.7699*c);a.arcTo(.0041*b,.0037*c,0,0,0,.6837*b,.7684*c);a.lineTo(.6528*b,.7842*c);a.lineTo(.6528*b,.8331*c);a.close();a.moveTo(.7*b,.8082*c);a.lineTo(.7301*b,.7338*c);a.arcTo(.0098*b,.0091*
|
|
c,0,0,1,.7358*b,.7271*c);a.arcTo(.0098*b,.0091*c,0,0,1,.7415*b,.7316*c);a.lineTo(.7699*b,.7707*c);a.lineTo(.7602*b,.7766*c);a.lineTo(.7537*b,.7692*c);a.lineTo(.7276*b,.782*c);a.lineTo(.7228*b,.7736*c);a.lineTo(.748*b,.7617*c);a.lineTo(.7358*b,.7421*c);a.lineTo(.7114*b,.803*c);a.close();a.moveTo(.8244*b,.7316*c);a.lineTo(.8171*b,.7459*c);a.lineTo(.7894*b,.7609*c);a.arcTo(.0244*b,.0225*c,0,0,1,.7683*b,.7593*c);a.arcTo(.0407*b,.0376*c,0,0,1,.7667*b,.7338*c);a.arcTo(.0488*b,.0452*c,0,0,1,.7937*b,.697*
|
|
c);a.lineTo(.822*b,.6834*c);a.lineTo(.8171*b,.6962*c);a.lineTo(.7902*b,.7113*c);a.arcTo(.0325*b,.0301*c,0,0,0,.778*b,.7256*c);a.arcTo(.0407*b,.0376*c,0,0,0,.7756*b,.7444*c);a.arcTo(.0077*b,.0072*c,0,0,0,.787*b,.7512*c);a.close();a.moveTo(.8366*b,.6742*c);a.lineTo(.8366*b,.7248*c);a.lineTo(.878*b,.7043*c);a.lineTo(.874*b,.7158*c);a.lineTo(.8333*b,.7368*c);a.arcTo(.0041*b,.0037*c,0,0,1,.8268*b,.7324*c);a.lineTo(.8268*b,.6804*c);a.close();a.moveTo(.9342*b,.6233*c);a.lineTo(.9293*b,.6369*c);a.lineTo(.9033*
|
|
b,.6503*c);a.arcTo(.0325*b,.0301*c,0,0,0,.8927*b,.6601*c);a.arcTo(.0406*b,.0376*c,0,0,0,.887*b,.6729*c);a.lineTo(.9309*b,.6503*c);a.lineTo(.9268*b,.6631*c);a.lineTo(.887*b,.6834*c);a.arcTo(.0089*b,.0082*c,0,0,0,.8992*b,.691*c);a.lineTo(.935*b,.6722*c);a.lineTo(.9285*b,.6864*c);a.lineTo(.9008*b,.7007*c);a.arcTo(.0163*b,.0151*c,0,0,1,.8829*b,.7015*c);a.arcTo(.0407*b,.0376*c,0,0,1,.8764*b,.6827*c);a.arcTo(.065*b,.0601*c,0,0,1,.8959*b,.6443*c);a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");
|
|
a.begin();a.moveTo(.126*b,.1316*c);a.lineTo(.126*b,.267*c);a.lineTo(.378*b,.4023*c);a.lineTo(.5*b,.6015*c);a.lineTo(.622*b,.4023*c);a.lineTo(.874*b,.267*c);a.lineTo(.874*b,.1316*c);a.moveTo(0,.3346*c);a.lineTo(.126*b,.267*c);a.moveTo(.5*b,.6015*c);a.lineTo(.5*b,c);a.moveTo(b,.3346*c);a.lineTo(.87*b,.267*c);a.moveTo(.378*b,.4023*c);a.lineTo(.622*b,.4023*c);a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.begin();a.moveTo(0,.7331*c);a.lineTo(0,.3346*c);a.lineTo(.126*b,.1316*c);a.lineTo(.374*
|
|
b,0);a.lineTo(.626*b,0);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3346*c);a.lineTo(b,.7331*c);a.lineTo(.5*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dOracleDatabaseServer.prototype.cst.ORACLE_DB_SERVER,mxShapeAws3dOracleDatabaseServer);function mxShapeAws3dRdsMaster(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dRdsMaster,mxShape);
|
|
mxShapeAws3dRdsMaster.prototype.cst={RDS_MASTER:"mxgraph.aws3d.rdsMaster",SHADIG_COLORS:"shadingCols"};mxShapeAws3dRdsMaster.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/123,d*c/133);a.setStrokeWidth(d);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dRdsMaster.prototype.background=function(a,d,e,b,c,f){a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7331*c);a.lineTo(0,.3346*c);a.lineTo(.126*b,.1316*c);a.lineTo(.374*b,0);a.lineTo(.626*b,0);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3346*c);a.lineTo(b,.7331*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dRdsMaster.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dRdsMaster.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(.126*b,.1316*c);a.lineTo(.126*b,.267*c);a.lineTo(.378*b,.4023*c);a.lineTo(.5*b,.6015*c);a.lineTo(.5*b,c);a.lineTo(0,.7331*c);a.lineTo(0,.3346*c);a.close();
|
|
a.moveTo(.874*b,.267*c);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3308*c);a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.5*b,c);a.lineTo(.5*b,.6015*c);a.lineTo(.622*b,.4023*c);a.lineTo(.874*b,.267*c);a.lineTo(b,.3308*c);a.lineTo(b,.7331*c);a.close();a.fill();a.restore();d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.setShadow(!1);a.begin();a.moveTo(.1878*b,.1932*c);a.lineTo(.4854*b,.0414*c);a.lineTo(.5886*b,.094*c);a.lineTo(.4455*b,.2308*c);a.lineTo(.7122*
|
|
b,.1579*c);a.lineTo(.8171*b,.2098*c);a.lineTo(.5187*b,.3617*c);a.lineTo(.4537*b,.3293*c);a.lineTo(.7016*b,.2053*c);a.lineTo(.3854*b,.2947*c);a.lineTo(.3187*b,.2602*c);a.lineTo(.4959*b,.0992*c);a.lineTo(.2504*b,.2256*c);a.close();a.fill();a.setLineJoin("round");a.begin();a.moveTo(.126*b,.1316*c);a.lineTo(.126*b,.267*c);a.lineTo(.378*b,.4023*c);a.lineTo(.5*b,.6015*c);a.lineTo(.622*b,.4023*c);a.lineTo(.874*b,.267*c);a.lineTo(.874*b,.1316*c);a.moveTo(0,.3346*c);a.lineTo(.126*b,.267*c);a.moveTo(.5*b,.6015*
|
|
c);a.lineTo(.5*b,c);a.moveTo(b,.3346*c);a.lineTo(.87*b,.267*c);a.moveTo(.378*b,.4023*c);a.lineTo(.622*b,.4023*c);a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.begin();a.moveTo(0,.7331*c);a.lineTo(0,.3346*c);a.lineTo(.126*b,.1316*c);a.lineTo(.374*b,0);a.lineTo(.626*b,0);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3346*c);a.lineTo(b,.7331*c);a.lineTo(.5*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dRdsMaster.prototype.cst.RDS_MASTER,mxShapeAws3dRdsMaster);
|
|
function mxShapeAws3dRds(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dRds,mxShape);mxShapeAws3dRds.prototype.cst={RDS:"mxgraph.aws3d.rds",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dRds.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/123,d*c/133);a.setStrokeWidth(d);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dRds.prototype.background=function(a,d,e,b,c,f){a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7331*c);a.lineTo(0,.3346*c);a.lineTo(.126*b,.1316*c);a.lineTo(.374*b,0);a.lineTo(.626*b,0);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3346*c);a.lineTo(b,.7331*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dRds.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dRds.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(.126*b,.1316*c);a.lineTo(.126*b,.267*c);a.lineTo(.378*b,.4023*c);a.lineTo(.5*b,.6015*c);a.lineTo(.5*b,c);a.lineTo(0,.7331*c);a.lineTo(0,.3346*c);a.close();a.moveTo(.874*
|
|
b,.267*c);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3308*c);a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.5*b,c);a.lineTo(.5*b,.6015*c);a.lineTo(.622*b,.4023*c);a.lineTo(.874*b,.267*c);a.lineTo(b,.3308*c);a.lineTo(b,.7331*c);a.close();a.fill();a.restore();a.setFillColor("#ffffff");a.setShadow(!1);a.begin();a.moveTo(0,.6053*c);a.lineTo(.5*b,.8722*c);a.lineTo(b,.6053*c);a.lineTo(b,.6278*c);a.lineTo(.5*b,.8947*c);a.lineTo(0,.6278*c);a.close();a.fill();a.setLineJoin("round");a.begin();
|
|
a.moveTo(.126*b,.1316*c);a.lineTo(.126*b,.267*c);a.lineTo(.378*b,.4023*c);a.lineTo(.5*b,.6015*c);a.lineTo(.622*b,.4023*c);a.lineTo(.874*b,.267*c);a.lineTo(.874*b,.1316*c);a.moveTo(0,.3346*c);a.lineTo(.126*b,.267*c);a.moveTo(.5*b,.6015*c);a.lineTo(.5*b,c);a.moveTo(b,.3346*c);a.lineTo(.87*b,.267*c);a.moveTo(.378*b,.4023*c);a.lineTo(.622*b,.4023*c);a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.begin();a.moveTo(0,.7331*c);a.lineTo(0,.3346*c);a.lineTo(.126*b,.1316*c);a.lineTo(.374*b,0);
|
|
a.lineTo(.626*b,0);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3346*c);a.lineTo(b,.7331*c);a.lineTo(.5*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dRds.prototype.cst.RDS,mxShapeAws3dRds);function mxShapeAws3dRoute53(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dRoute53,mxShape);mxShapeAws3dRoute53.prototype.cst={ROUTE_53:"mxgraph.aws3d.route53",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dRoute53.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/117,d*c/134.4);a.setStrokeWidth(d);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dRoute53.prototype.background=function(a,d,e,b,c,f){a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.6994*c);a.lineTo(0,.2009*c);a.lineTo(.0427*b,.0781*c);a.lineTo(.7974*b,0);a.lineTo(b,.1004*c);a.lineTo(b,.5915*c);a.lineTo(.8376*b,.9784*c);a.lineTo(.5983*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dRoute53.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dRoute53.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(0,.2009*c);a.lineTo(.6009*b,.5007*c);a.lineTo(.8376*b,.4799*c);a.lineTo(.8376*b,.9784*c);a.lineTo(.5966*b,c);a.lineTo(0,.6979*c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):
|
|
a.setAlpha(d[0]);a.begin();a.moveTo(.8348*b,.4861*c);a.lineTo(.9985*b,.0992*c);a.lineTo(b,.5952*c);a.lineTo(.8404*b,.9747*c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.5855*b,.1079*c);a.arcTo(.094*b,.0744*c,0,0,0,.6863*b,.1548*c);a.arcTo(.0855*b,.0446*c,0,0,0,.7761*b,.2031*c);a.lineTo(.7726*b,.2455*c);a.arcTo(.0769*b,.0298*c,0,0,0,.694*b,.2693*c);a.arcTo(.0684*b,.0446*c,0,
|
|
0,1,.5897*b,.3051*c);a.arcTo(.4274*b,.372*c,0,0,0,.4573*b,.2753*c);a.arcTo(.0855*b,.0744*c,0,0,0,.4188*b,.2344*c);a.lineTo(.3846*b,.2083*c);a.arcTo(.0769*b,.0372*c,0,0,1,.4103*b,.1525*c);a.arcTo(.0855*b,.0409*c,0,0,0,.4906*b,.1079*c);a.close();a.fill();a.begin();a.moveTo(0,.2009*c);a.lineTo(.6009*b,.5007*c);a.lineTo(.8376*b,.4799*c);a.lineTo(.8376*b,.9784*c);a.lineTo(.5966*b,c);a.lineTo(0,.6979*c);a.close();a.moveTo(.8348*b,.4861*c);a.lineTo(.9985*b,.0992*c);a.lineTo(b,.5952*c);a.lineTo(.8404*b,.9747*
|
|
c);a.close();a.moveTo(.6009*b,.5007*c);a.lineTo(.6009*b,c);a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.begin();a.moveTo(0,.6994*c);a.lineTo(0,.2009*c);a.lineTo(.0427*b,.0781*c);a.lineTo(.7974*b,0);a.lineTo(b,.1004*c);a.lineTo(b,.5915*c);a.lineTo(.8376*b,.9784*c);a.lineTo(.5983*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dRoute53.prototype.cst.ROUTE_53,mxShapeAws3dRoute53);
|
|
function mxShapeAws3dS3Bucket(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dS3Bucket,mxShape);mxShapeAws3dS3Bucket.prototype.cst={S3_BUCKET:"mxgraph.aws3d.s3Bucket",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dS3Bucket.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=d*b/61.5;d=d*c/63.8;var f=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(e,d);a.setShadow(!1);a.setStrokeWidth(d);a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==f&&a.setShadow(!0);a.begin();a.moveTo(0,.2774*c);a.lineTo(.5*b,0);a.lineTo(b,.2774*c);a.lineTo(.7967*b,.8307*c);a.lineTo(.5*
|
|
b,c);a.lineTo(.1951*b,.8307*c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dS3Bucket.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(0,.2774*c);a.lineTo(.5*b,.5564*c);a.lineTo(.5*b,c);a.lineTo(.1984*b,.8307*c);a.close();a.fill();"0"==f?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();a.moveTo(.5*b,.5533*c);a.lineTo(b,
|
|
.2774*c);a.lineTo(.7967*b,.8307*c);a.lineTo(.5*b,c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(0,.2774*c);a.lineTo(.5*b,.5564*c);a.lineTo(b,.2774*c);a.stroke();a.begin();a.moveTo(.5*b,.5564*c);a.lineTo(.5*b,c);a.stroke();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.2774*c);a.lineTo(.5008*b,0);a.lineTo(b,.2774*c);a.lineTo(.7967*b,.8307*c);a.lineTo(.5008*b,c);a.lineTo(.1951*b,.8307*c);a.close();a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dS3Bucket.prototype.cst.S3_BUCKET,mxShapeAws3dS3Bucket);function mxShapeAws3dS3(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dS3,mxShape);mxShapeAws3dS3.prototype.cst={S3:"mxgraph.aws3d.s3",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dS3.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/231.5,d*c/239);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dS3.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7782*c);a.lineTo(0,.3406*c);a.lineTo(.5974*b,0);a.lineTo(b,.2218*c);a.lineTo(b,.6674*c);a.lineTo(.3991*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dS3.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dS3.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(0,.3406*c);a.lineTo(.3991*b,.5548*c);a.lineTo(.3991*b,c);a.lineTo(0,.7782*c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.3991*b,.5548*
|
|
c);a.lineTo(b,.2218*c);a.lineTo(b,.6661*c);a.lineTo(.3991*b,c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(0,.3406*c);a.lineTo(.3991*b,.5548*c);a.lineTo(b,.2218*c);a.moveTo(.3991*b,.5548*c);a.lineTo(.3991*b,c);a.moveTo(.3991*b,.3335*c);a.lineTo(.2009*b,.448*c);a.lineTo(.2009*b,.8891*c);a.moveTo(.5983*b,.2209*c);a.lineTo(.7948*b,.1109*c);a.moveTo(.2022*b,.2218*c);a.lineTo(.5991*b,.4448*c);a.lineTo(.5991*b,.8891*c);a.moveTo(.4004*b,.1117*c);a.lineTo(.7978*
|
|
b,.3335*c);a.lineTo(.7978*b,.7791*c);a.stroke();d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.4773*b,.2155*c);a.arcTo(.0086*b,.0046*c,0,0,1,.4903*b,.2096*c);a.arcTo(.2808*b,.272*c,0,0,1,.6004*b,.2619*c);a.arcTo(.108*b,.105*c,0,0,1,.6177*b,.277*c);a.arcTo(.0065*b,.0063*c,0,0,1,.6099*b,.2879*c);a.arcTo(.1944*b,.1883*c,0,0,1,.5378*b,.2607*c);a.arcTo(.216*b,.2092*c,0,0,1,.4773*b,.2155*c);a.close();a.fill();a.begin();a.moveTo(.4687*b,.2138*c);a.arcTo(.1512*
|
|
b,.1464*c,0,0,0,.4838*b,.2343*c);a.arcTo(.2376*b,.2301*c,0,0,0,.5529*b,.2774*c);a.arcTo(.1728*b,.1674*c,0,0,0,.6091*b,.2954*c);a.lineTo(.4946*b,.3339*c);a.arcTo(.1944*b,.1883*c,0,0,1,.4549*b,.3205*c);a.arcTo(.1944*b,.1883*c,0,0,1,.419*b,.3004*c);a.arcTo(.1944*b,.1883*c,0,0,1,.3965*b,.2795*c);a.close();a.fill();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7782*c);a.lineTo(0,.3406*c);a.lineTo(.5974*b,0);a.lineTo(b,.2218*c);a.lineTo(b,.6674*c);a.lineTo(.3991*
|
|
b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dS3.prototype.cst.S3,mxShapeAws3dS3);function mxShapeAws3dSimpleDB(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dSimpleDB,mxShape);mxShapeAws3dSimpleDB.prototype.cst={SIMPLE_DB:"mxgraph.aws3d.simpleDb",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dSimpleDB.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/123,d*c/133);a.setStrokeWidth(d);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dSimpleDB.prototype.background=function(a,d,e,b,c,f){a.save();a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7331*c);a.lineTo(0,.3346*c);a.lineTo(.126*b,.1316*c);a.lineTo(.374*b,0);a.lineTo(.626*b,0);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3346*c);a.lineTo(b,.7331*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dSimpleDB.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dSimpleDB.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(.126*b,.1316*c);a.lineTo(.126*b,.267*c);a.lineTo(.378*b,.4023*c);a.lineTo(.5*b,.6015*c);a.lineTo(.5*b,c);a.lineTo(0,.7331*c);a.lineTo(0,.3346*c);a.close();
|
|
a.moveTo(.874*b,.267*c);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3308*c);a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.5*b,c);a.lineTo(.5*b,.6015*c);a.lineTo(.622*b,.4023*c);a.lineTo(.874*b,.267*c);a.lineTo(b,.3308*c);a.lineTo(b,.7331*c);a.close();a.fill();a.restore();d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.setShadow(!1);a.begin();a.moveTo(.1821*b,.182*c);a.lineTo(.4659*b,.0308*c);a.lineTo(.822*b,.2218*c);a.lineTo(.539*b,.3714*c);a.close();
|
|
a.fill();a.setLineJoin("round");a.begin();a.moveTo(.126*b,.1316*c);a.lineTo(.126*b,.267*c);a.lineTo(.378*b,.4023*c);a.lineTo(.5*b,.6015*c);a.lineTo(.622*b,.4023*c);a.lineTo(.874*b,.267*c);a.lineTo(.874*b,.1316*c);a.moveTo(0,.3346*c);a.lineTo(.126*b,.267*c);a.moveTo(.5*b,.6015*c);a.lineTo(.5*b,c);a.moveTo(b,.3346*c);a.lineTo(.87*b,.267*c);a.moveTo(.378*b,.4023*c);a.lineTo(.622*b,.4023*c);a.stroke();a.restore();a.setShadow(!1);d=mxUtils.getValue(this.state.style,"fillColor","#ffffff");a.setStrokeColor(d);
|
|
a.setStrokeWidth(2.2*f);a.begin();a.moveTo(.2382*b,.2218*c);a.lineTo(.5415*b,.0602*c);a.moveTo(.3821*b,.0564*c);a.lineTo(.7737*b,.2656*c);a.moveTo(.2967*b,.0915*c);a.lineTo(.7114*b,.312*c);a.moveTo(.2209*b,.1316*c);a.lineTo(.6179*b,.3434*c);a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.begin();a.moveTo(0,.7331*c);a.lineTo(0,.3346*c);a.lineTo(.126*b,.1316*c);a.lineTo(.374*b,0);a.lineTo(.626*b,0);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3346*c);a.lineTo(b,.7331*c);a.lineTo(.5*b,c);a.close();
|
|
a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dSimpleDB.prototype.cst.SIMPLE_DB,mxShapeAws3dSimpleDB);function mxShapeAws3dSqs(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dSqs,mxShape);mxShapeAws3dSqs.prototype.cst={SQS:"mxgraph.aws3d.sqs",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dSqs.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/184,d*c/212.75);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dSqs.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7485*c);a.lineTo(0,.584*c);a.lineTo(.1658*b,.1666*c);a.lineTo(.5*b,0);a.lineTo(.8337*b,.1666*c);a.lineTo(b,.584*c);a.lineTo(b,.7485*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dSqs.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dSqs.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(.1658*b,.1671*c);a.lineTo(.5*b,.334*c);a.lineTo(.5*b,c);a.lineTo(0,.7485*c);a.lineTo(0,.584*c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();
|
|
a.moveTo(.5*b,.3344*c);a.lineTo(.8332*b,.1671*c);a.lineTo(b,.584*c);a.lineTo(b,.7509*c);a.lineTo(.5*b,c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(.6674*b,.0844*c);a.lineTo(.3337*b,.2512*c);a.lineTo(.25*b,.7109*c);a.lineTo(.25*b,.8736*c);a.moveTo(.3326*b,.0839*c);a.lineTo(.6674*b,.2512*c);a.lineTo(.75*b,.7053*c);a.lineTo(.75*b,.874*c);a.moveTo(0,.584*c);a.lineTo(.5*b,.8331*c);a.lineTo(b,.584*c);a.moveTo(.1658*b,.1671*c);a.lineTo(.5*b,.334*c);a.lineTo(.8332*
|
|
b,.1671*c);a.moveTo(.5*b,.334*c);a.lineTo(.5*b,c);a.stroke();d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.3337*b,.1511*c);a.lineTo(.4668*b,.0848*c);a.lineTo(.6663*b,.184*c);a.lineTo(.5337*b,.2503*c);a.close();a.fill();d=mxUtils.getValue(this.state.style,"fillColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.3902*b,.153*c);a.lineTo(.4701*b,.113*c);a.lineTo(.4701*b,.153*c);a.close();a.moveTo(.4402*b,.1784*c);a.lineTo(.5196*b,.1384*c);a.lineTo(.5196*
|
|
b,.1784*c);a.close();a.moveTo(.4908*b,.2033*c);a.lineTo(.5701*b,.1633*c);a.lineTo(.5701*b,.2033*c);a.close();a.fill();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7485*c);a.lineTo(0,.584*c);a.lineTo(.1658*b,.1666*c);a.lineTo(.5*b,0);a.lineTo(.8337*b,.1666*c);a.lineTo(b,.584*c);a.lineTo(b,.7485*c);a.lineTo(.5*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dSqs.prototype.cst.SQS,mxShapeAws3dSqs);
|
|
function mxShapeAws3dVpcGateway(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dVpcGateway,mxShape);mxShapeAws3dVpcGateway.prototype.cst={VPC_GATEWAY:"mxgraph.aws3d.vpcGateway",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dVpcGateway.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/116.7,d*c/102.8);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dVpcGateway.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.save();a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(.5801*b,.5447*c);a.lineTo(.5801*b,.035*c);a.lineTo(.1054*b,0);a.lineTo(0,.0691*c);a.lineTo(0,.4134*c);a.lineTo(.3188*b,.7247*c);a.close();a.fillAndStroke();a.restore();a.save();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS,
|
|
"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.5801*b,.5447*c);a.lineTo(.5801*b,.035*c);a.lineTo(.3162*b,.2072*c);a.lineTo(.3162*b,.7247*c);a.close();a.fill();"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(.3162*b,.2072*c);a.lineTo(0,.0691*c);a.lineTo(0,.4134*c);a.lineTo(.3162*b,.7247*c);a.close();a.fill();a.restore();a.setShadow(!1);a.begin();a.moveTo(.5801*b,.5447*c);a.lineTo(.5801*b,.035*
|
|
c);a.lineTo(.3162*b,.2072*c);a.lineTo(.3162*b,.7247*c);a.close();a.stroke();a.restore();a.setLineJoin("round");a.setShadow(!1);a.begin();a.moveTo(.3162*b,.2072*c);a.lineTo(0,.0691*c);a.lineTo(0,.4134*c);a.lineTo(.3162*b,.7247*c);a.close();a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.begin();a.moveTo(.5801*b,.5447*c);a.lineTo(.5801*b,.035*c);a.lineTo(.1054*b,0);a.lineTo(0,.0691*c);a.lineTo(0,.4134*c);a.lineTo(.3188*b,.7247*c);a.close();a.stroke();a.restore();a.setStrokeWidth(2*f);
|
|
a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(b,.929*c);a.lineTo(b,.5866*c);a.lineTo(.6829*b,.1031*c);a.lineTo(.4216*b,.2753*c);a.lineTo(.4216*b,.7928*c);a.lineTo(.8946*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dVpcGateway.prototype.foreground=function(a,d,e,b,c,f){a.restore();d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setShadow(!1);a.setLineJoin("round");a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");var g=mxUtils.getValue(this.state.style,"flipH","0");"0"==g?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();a.moveTo(b,.929*c);a.lineTo(b,.5866*c);a.lineTo(.8946*b,.6537*c);a.lineTo(.8946*
|
|
b,c);a.close();a.fill();"0"==g?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(.8946*b,c);a.lineTo(.8946*b,.6537*c);a.lineTo(.4216*b,.2753*c);a.lineTo(.4216*b,.7928*c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(b,.929*c);a.lineTo(b,.5866*c);a.lineTo(.8946*b,.6537*c);a.lineTo(.8946*b,c);a.close();a.stroke();a.begin();a.moveTo(.8946*b,c);a.lineTo(.8946*b,.6537*c);a.lineTo(.4216*b,.2753*c);a.lineTo(.4216*b,.7928*c);a.close();a.stroke();a.setStrokeWidth(2*
|
|
f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(b,.929*c);a.lineTo(b,.5866*c);a.lineTo(.6829*b,.1031*c);a.lineTo(.4216*b,.2753*c);a.lineTo(.4216*b,.7928*c);a.lineTo(.8946*b,c);a.close();a.stroke();a.setFillColor(d);a.begin();a.moveTo(.5587*b,.7743*c);a.lineTo(.5587*b,.6274*c);a.lineTo(.5775*b,.6342*c);a.lineTo(.5775*b,.57*c);a.arcTo(.0428*b,.0486*c,0,0,1,.6058*b,.5253*c);a.arcTo(.0686*b,.0778*c,0,0,1,.6564*b,.5447*c);a.arcTo(.0857*b,.0973*c,0,0,1,.6847*b,.607*c);a.lineTo(.6847*
|
|
b,.6877*c);a.lineTo(.7001*b,.6946*c);a.lineTo(.7001*b,.8405*c);a.close();a.moveTo(.6564*b,.6741*c);a.lineTo(.6564*b,.6177*c);a.arcTo(.06*b,.0681*c,0,0,0,.6392*b,.57*c);a.arcTo(.0343*b,.0389*c,0,0,0,.6195*b,.5574*c);a.arcTo(.0111*b,.0126*c,0,0,0,.6058*b,.5691*c);a.lineTo(.6058*b,.6498*c);a.close();a.fill()};mxCellRenderer.registerShape(mxShapeAws3dVpcGateway.prototype.cst.VPC_GATEWAY,mxShapeAws3dVpcGateway);
|
|
function mxShapeAws3dWebServer(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dWebServer,mxShape);mxShapeAws3dWebServer.prototype.cst={WEB_SERVER:"mxgraph.aws3d.webServer",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dWebServer.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/123,d*c/106);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dWebServer.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.6651*c);a.lineTo(0,.3349*c);a.lineTo(.5*b,0);a.lineTo(b,.3349*c);a.lineTo(b,.6651*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dWebServer.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dWebServer.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(0,.3349*c);a.lineTo(.5*b,.6651*c);a.lineTo(.5*b,c);a.lineTo(0,.6651*c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.5*
|
|
b,.6651*c);a.lineTo(b,.3349*c);a.lineTo(b,.6651*c);a.lineTo(.5*b,c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(0,.3349*c);a.lineTo(.5*b,.6651*c);a.lineTo(.5*b,c);a.lineTo(0,.6651*c);a.close();a.stroke();a.begin();a.moveTo(.5*b,.6651*c);a.lineTo(b,.3349*c);a.lineTo(b,.6651*c);a.lineTo(.5*b,c);a.close();a.stroke();a.setLineJoin("miter");d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.374*b,.5189*c);a.arcTo(.0325*
|
|
b,.0236*c,0,0,1,.374*b,.4858*c);a.lineTo(.4797*b,.4151*c);a.arcTo(.0325*b,.0236*c,0,0,1,.5203*b,.4151*c);a.lineTo(.626*b,.4858*c);a.arcTo(.0325*b,.0236*c,0,0,1,.626*b,.516*c);a.lineTo(.5203*b,.5868*c);a.arcTo(.0325*b,.0236*c,0,0,1,.4797*b,.5868*c);a.close();a.fill();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.6651*c);a.lineTo(0,.3349*c);a.lineTo(.5*b,0);a.lineTo(b,.3349*c);a.lineTo(b,.6651*c);a.lineTo(.5*b,c);a.close();a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dWebServer.prototype.cst.WEB_SERVER,mxShapeAws3dWebServer);function mxShapeAws3dDynamoDB(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dDynamoDB,mxShape);mxShapeAws3dDynamoDB.prototype.cst={DYNAMO_DB:"mxgraph.aws3d.dynamoDb",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dDynamoDB.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/181.5,d*c/210);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dDynamoDB.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.8333*c);a.lineTo(0,.1667*c);a.lineTo(.3333*b,.0014*c);a.lineTo(.4986*b,.1667*c);a.lineTo(.6639*b,0);a.lineTo(b,.169*c);a.lineTo(b,.8333*c);a.lineTo(.6667*b,c);a.lineTo(.5014*b,.9162*c);a.lineTo(.3333*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dDynamoDB.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(.168*b,.3333*c);a.lineTo(0,.3333*c);a.lineTo(.3333*b,.5*c);a.lineTo(.3333*b,c);a.lineTo(0,.8333*c);a.lineTo(0,.1714*c);a.close();a.moveTo(.4986*b,.1667*c);
|
|
a.lineTo(.6667*b,0);a.lineTo(b,.169*c);a.lineTo(.832*b,.3348*c);a.lineTo(b,.3333*c);a.lineTo(.6667*b,.5*c);a.lineTo(.5014*b,.5*c);a.lineTo(.832*b,.3348*c);a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.3333*b,.5*c);a.lineTo(.4986*b,.5*c);a.lineTo(.4986*b,.9162*c);a.lineTo(.3333*b,c);a.close();a.moveTo(.6667*b,c);a.lineTo(.6667*b,.5*c);a.lineTo(b,.3333*c);a.lineTo(.832*b,.3348*c);a.lineTo(b,.169*c);a.lineTo(b,.831*c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");
|
|
a.begin();a.moveTo(.168*b,.3333*c);a.lineTo(0,.3333*c);a.lineTo(.3333*b,.5*c);a.lineTo(.3333*b,c);a.lineTo(0,.8333*c);a.lineTo(0,.1714*c);a.close();a.moveTo(.4986*b,.1667*c);a.lineTo(.6667*b,0);a.lineTo(b,.169*c);a.lineTo(.832*b,.3348*c);a.lineTo(b,.3333*c);a.lineTo(.6667*b,.5*c);a.lineTo(.5014*b,.5*c);a.lineTo(.832*b,.3348*c);a.close();a.moveTo(.3333*b,.5*c);a.lineTo(.4986*b,.5*c);a.lineTo(.4986*b,.9162*c);a.lineTo(.3333*b,c);a.close();a.moveTo(.6667*b,c);a.lineTo(.6667*b,.5*c);a.lineTo(b,.3333*
|
|
c);a.lineTo(b,.831*c);a.close();a.moveTo(.168*b,.3333*c);a.lineTo(.5*b,.1667*c);a.moveTo(.168*b,.3333*c);a.lineTo(.5014*b,.5*c);a.stroke();d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.4876*b,.2262*c);a.arcTo(.303*b,.2619*c,0,0,1,.5647*b,.25*c);a.arcTo(.4407*b,.381*c,0,0,1,.6419*b,.2905*c);a.arcTo(.303*b,.2619*c,0,0,1,.6799*b,.32*c);a.arcTo(.0132*b,.0076*c,0,0,1,.6634*b,.3314*c);a.arcTo(.303*b,.2619*c,0,0,1,.5978*b,.3119*c);a.arcTo(.4408*b,.381*
|
|
c,0,0,1,.508*b,.2667*c);a.arcTo(.303*b,.2619*c,0,0,1,.4711*b,.2343*c);a.arcTo(.0132*b,.0076*c,0,0,1,.4876*b,.2262*c);a.close();a.fill();a.begin();a.moveTo(.5124*b,.4143*c);a.arcTo(.1102*b,.0952*c,0,0,1,.4683*b,.4095*c);a.arcTo(.4408*b,.381*c,0,0,1,.3829*b,.3757*c);a.arcTo(.4408*b,.381*c,0,0,1,.3196*b,.3371*c);a.arcTo(.0661*b,.0357*c,0,0,1,.3058*b,.3081*c);a.lineTo(.4612*b,.2333*c);a.arcTo(.0661*b,.0476*c,0,0,0,.4744*b,.2548*c);a.arcTo(.3306*b,.2857*c,0,0,0,.53*b,.2905*c);a.arcTo(.4408*b,.381*c,0,
|
|
0,0,.6198*b,.3295*c);a.arcTo(.1102*b,.0952*c,0,0,0,.665*b,.3367*c);a.close();a.moveTo(.5052*b,.3714*c);a.arcTo(.0275*b,.019*c,0,0,1,.5135*b,.3581*c);a.arcTo(.0275*b,.0238*c,0,0,1,.5344*b,.3571*c);a.lineTo(.5405*b,.3471*c);a.arcTo(.0275*b,.0143*c,0,0,1,.5278*b,.3381*c);a.arcTo(.022*b,.0119*c,0,0,1,.5372*b,.3271*c);a.lineTo(.5306*b,.3186*c);a.arcTo(.0331*b,.0286*c,0,0,1,.5041*b,.3143*c);a.arcTo(.0275*b,.0143*c,0,0,1,.4975*b,.3029*c);a.lineTo(.4777*b,.2995*c);a.arcTo(.0331*b,.0286*c,0,0,1,.4628*b,.3033*
|
|
c);a.arcTo(.0331*b,.0286*c,0,0,1,.4408*b,.2967*c);a.lineTo(.4187*b,.3*c);a.arcTo(.011*b,.0081*c,0,0,1,.4132*b,.3124*c);a.arcTo(.0386*b,.0333*c,0,0,1,.395*b,.3129*c);a.lineTo(.3873*b,.3224*c);a.arcTo(.0165*b,.0143*c,0,0,1,.3994*b,.3333*c);a.arcTo(.0138*b,.0119*c,0,0,1,.3901*b,.3433*c);a.lineTo(.3994*b,.3514*c);a.arcTo(.0331*b,.0286*c,0,0,1,.4215*b,.3548*c);a.arcTo(.0165*b,.0119*c,0,0,1,.4298*b,.3667*c);a.lineTo(.449*b,.3714*c);a.arcTo(.0331*b,.0286*c,0,0,1,.4711*b,.3657*c);a.arcTo(.0331*b,.0286*c,
|
|
0,0,1,.4887*b,.3724*c);a.close();a.moveTo(.4986*b,.351*c);a.arcTo(.0441*b,.0381*c,0,0,1,.4804*b,.3552*c);a.arcTo(.1102*b,.0952*c,0,0,1,.443*b,.349*c);a.lineTo(.4413*b,.3529*c);a.lineTo(.4242*b,.3371*c);a.arcTo(.1102*b,.0952*c,0,0,0,.4545*b,.3462*c);a.arcTo(.1102*b,.0952*c,0,0,0,.4793*b,.3476*c);a.arcTo(.0441*b,.0381*c,0,0,0,.4986*b,.3448*c);a.close();a.moveTo(.503*b,.3349*c);a.arcTo(.1102*b,.0952*c,0,0,0,.4766*b,.3233*c);a.arcTo(.0826*b,.0714*c,0,0,0,.4529*b,.32*c);a.arcTo(.0551*b,.0476*c,0,0,0,.4325*
|
|
b,.3238*c);a.lineTo(.427*b,.3195*c);a.arcTo(.0826*b,.0714*c,0,0,1,.4556*b,.3157*c);a.arcTo(.0826*b,.0714*c,0,0,1,.4851*b,.3232*c);a.lineTo(.4876*b,.3181*c);a.close();a.fill();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.8333*c);a.lineTo(0,.1667*c);a.lineTo(.3333*b,.0014*c);a.lineTo(.4986*b,.1667*c);a.lineTo(.6639*b,0);a.lineTo(b,.169*c);a.lineTo(b,.8333*c);a.lineTo(.6667*b,c);a.lineTo(.5014*b,.9162*c);a.lineTo(.3333*b,c);a.close();a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dDynamoDB.prototype.cst.DYNAMO_DB,mxShapeAws3dDynamoDB);function mxShapeAws3dElasticMapReduce(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dElasticMapReduce,mxShape);mxShapeAws3dElasticMapReduce.prototype.cst={ELASTIC_MAP_REDUCE:"mxgraph.aws3d.elasticMapReduce",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dElasticMapReduce.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/123,d*c/133);a.setStrokeWidth(d);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dElasticMapReduce.prototype.background=function(a,d,e,b,c,f){a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7331*c);a.lineTo(0,.3346*c);a.lineTo(.126*b,.1316*c);a.lineTo(.374*b,0);a.lineTo(.626*b,0);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3346*c);a.lineTo(b,.7331*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dElasticMapReduce.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(.126*b,.1316*c);a.lineTo(.126*b,.267*c);a.lineTo(.378*b,.4023*c);a.lineTo(.5*b,.6015*c);a.lineTo(.5*b,c);a.lineTo(0,.7331*c);a.lineTo(0,.3346*c);a.close();
|
|
a.moveTo(.874*b,.267*c);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3308*c);a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.5*b,c);a.lineTo(.5*b,.6015*c);a.lineTo(.622*b,.4023*c);a.lineTo(.874*b,.267*c);a.lineTo(b,.3308*c);a.lineTo(b,.7331*c);a.close();a.fill();a.restore();d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.setShadow(!1);a.begin();a.moveTo(.3336*b,.1789*c);a.arcTo(.0328*b,.0301*c,0,0,1,.359*b,.1789*c);a.lineTo(.4001*b,.2015*c);a.arcTo(.0074*
|
|
b,.0068*c,0,0,1,.4008*b,.2135*c);a.lineTo(.3574*b,.2368*c);a.arcTo(.0328*b,.0301*c,0,0,1,.3352*b,.2368*c);a.lineTo(.2934*b,.2143*c);a.arcTo(.0074*b,.0068*c,0,0,1,.2934*b,.2015*c);a.close();a.moveTo(.3705*b,.1729*c);a.arcTo(.0074*b,.0068*c,0,0,1,.3705*b,.1602*c);a.lineTo(.4139*b,.1368*c);a.arcTo(.0328*b,.0301*c,0,0,1,.4336*b,.1368*c);a.lineTo(.4811*b,.1617*c);a.arcTo(.0074*b,.0068*c,0,0,1,.4811*b,.1708*c);a.lineTo(.4328*b,.1955*c);a.arcTo(.0328*b,.0301*c,0,0,1,.4156*b,.1955*c);a.close();a.moveTo(.4467*
|
|
b,.1308*c);a.arcTo(.0074*b,.0068*c,0,0,1,.4467*b,.1203*c);a.lineTo(.491*b,.0962*c);a.arcTo(.0328*b,.0301*c,0,0,1,.5123*b,.0962*c);a.lineTo(.559*b,.1203*c);a.arcTo(.0074*b,.0068*c,0,0,1,.559*b,.1293*c);a.lineTo(.5123*b,.1549*c);a.arcTo(.0328*b,.0301*c,0,0,1,.4918*b,.1549*c);a.close();a.moveTo(.568*b,.1383*c);a.arcTo(.0328*b,.0301*c,0,0,1,.5918*b,.1383*c);a.lineTo(.6361*b,.1624*c);a.arcTo(.0074*b,.0068*c,0,0,1,.6366*b,.1714*c);a.lineTo(.5885*b,.1955*c);a.arcTo(.0328*b,.0301*c,0,0,1,.568*b,.1955*c);
|
|
a.lineTo(.523*b,.1714*c);a.arcTo(.0074*b,.0068*c,0,0,1,.523*b,.1616*c);a.close();a.moveTo(.6451*b,.1789*c);a.arcTo(.0328*b,.0301*c,0,0,1,.6697*b,.1789*c);a.lineTo(.7123*b,.2023*c);a.arcTo(.0074*b,.0068*c,0,0,1,.7123*b,.2128*c);a.lineTo(.6664*b,.2376*c);a.arcTo(.0328*b,.0301*c,0,0,1,.6492*b,.2376*c);a.lineTo(.6016*b,.2135*c);a.arcTo(.0074*b,.0068*c,0,0,1,.6016*b,.2023*c);a.close();a.moveTo(.6369*b,.2451*c);a.arcTo(.0074*b,.0068*c,0,0,1,.6369*b,.2526*c);a.lineTo(.5172*b,.3173*c);a.arcTo(.0328*b,.0301*
|
|
c,0,0,1,.4893*b,.3173*c);a.lineTo(.3697*b,.2541*c);a.arcTo(.0074*b,.0068*c,0,0,1,.3697*b,.2436*c);a.lineTo(.4918*b,.1782*c);a.arcTo(.0328*b,.0301*c,0,0,1,.5131*b,.1782*c);a.close();a.fill();a.moveTo(0*b,0*c);a.lineTo(0*b,0*c);a.arcTo(0*b,0*c,0,0,1,0*b,0*c);a.setLineJoin("round");a.begin();a.moveTo(.126*b,.1316*c);a.lineTo(.126*b,.267*c);a.lineTo(.378*b,.4023*c);a.lineTo(.5*b,.6015*c);a.lineTo(.622*b,.4023*c);a.lineTo(.874*b,.267*c);a.lineTo(.874*b,.1316*c);a.moveTo(0,.3346*c);a.lineTo(.126*b,.267*
|
|
c);a.moveTo(.5*b,.6015*c);a.lineTo(.5*b,c);a.moveTo(b,.3346*c);a.lineTo(.87*b,.267*c);a.moveTo(.378*b,.4023*c);a.lineTo(.622*b,.4023*c);a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.begin();a.moveTo(0,.7331*c);a.lineTo(0,.3346*c);a.lineTo(.126*b,.1316*c);a.lineTo(.374*b,0);a.lineTo(.626*b,0);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3346*c);a.lineTo(b,.7331*c);a.lineTo(.5*b,c);a.close();a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dElasticMapReduce.prototype.cst.ELASTIC_MAP_REDUCE,mxShapeAws3dElasticMapReduce);function mxShapeAws3dRdsSlave(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dRdsSlave,mxShape);mxShapeAws3dRdsSlave.prototype.cst={RDS_SLAVE:"mxgraph.aws3d.rdsSlave"};
|
|
mxShapeAws3dRdsSlave.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/123,d*c/133);a.setStrokeWidth(d);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dRdsSlave.prototype.background=function(a,d,e,b,c,f){a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7331*c);a.lineTo(0,.3346*c);a.lineTo(.126*b,.1316*c);a.lineTo(.374*b,0);a.lineTo(.626*b,0);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3346*c);a.lineTo(b,.7331*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dRdsSlave.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");a.setAlpha("0.1");a.begin();a.moveTo(.126*b,.1316*c);a.lineTo(.126*b,.267*c);a.lineTo(.378*b,.4023*c);a.lineTo(.5*b,.6015*c);a.lineTo(.5*b,c);a.lineTo(0,.7331*c);a.lineTo(0,.3346*c);a.close();a.moveTo(.874*b,.267*c);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3308*c);a.fill();a.setAlpha("0.3");a.begin();a.moveTo(.5*b,c);a.lineTo(.5*b,.6015*c);a.lineTo(.622*b,.4023*c);a.lineTo(.874*b,.267*
|
|
c);a.lineTo(b,.3308*c);a.lineTo(b,.7331*c);a.close();a.fill();a.restore();d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.setShadow(!1);a.begin();a.moveTo(.2457*b,.2137*c);a.lineTo(.5393*b,.0593*c);a.lineTo(.6875*b,.1377*c);a.arcTo(.0871*b,.0799*c,0,0,1,.7137*b,.1625*c);a.arcTo(.0348*b,.032*c,0,0,1,.7076*b,.1968*c);a.arcTo(.1743*b,.1599*c,0,0,1,.6597*b,.2249*c);a.arcTo(.1307*b,.1199*c,0,0,1,.5943*b,.232*c);a.arcTo(.1307*b,.1199*c,0,0,1,.5542*b,.2225*c);a.arcTo(.0871*
|
|
b,.0799*c,0,0,1,.5673*b,.2353*c);a.arcTo(.0261*b,.024*c,0,0,1,.5611*b,.2729*c);a.lineTo(.4889*b,.316*c);a.arcTo(.0261*b,.024*c,0,0,0,.4766*b,.3352*c);a.lineTo(.4052*b,.2992*c);a.arcTo(.0173*b,.0159*c,0,0,1,.4121*b,.2841*c);a.lineTo(.4914*b,.2368*c);a.arcTo(.0218*b,.02*c,0,0,0,.4897*b,.2129*c);a.lineTo(.4409*b,.1857*c);a.lineTo(.3145*b,.2529*c);a.close();a.moveTo(.4801*b,.1633*c);a.lineTo(.5263*b,.1865*c);a.arcTo(.0871*b,.0799*c,0,0,0,.583*b,.1905*c);a.arcTo(.1307*b,.1199*c,0,0,0,.6196*b,.1721*c);
|
|
a.arcTo(.0261*b,.024*c,0,0,0,.6117*b,.1441*c);a.lineTo(.5655*b,.1193*c);a.fill();a.setLineJoin("round");a.begin();a.moveTo(.126*b,.1316*c);a.lineTo(.126*b,.267*c);a.lineTo(.378*b,.4023*c);a.lineTo(.5*b,.6015*c);a.lineTo(.622*b,.4023*c);a.lineTo(.874*b,.267*c);a.lineTo(.874*b,.1316*c);a.moveTo(0,.3346*c);a.lineTo(.126*b,.267*c);a.moveTo(.5*b,.6015*c);a.lineTo(.5*b,c);a.moveTo(b,.3346*c);a.lineTo(.87*b,.267*c);a.moveTo(.378*b,.4023*c);a.lineTo(.622*b,.4023*c);a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");
|
|
a.begin();a.moveTo(0,.7331*c);a.lineTo(0,.3346*c);a.lineTo(.126*b,.1316*c);a.lineTo(.374*b,0);a.lineTo(.626*b,0);a.lineTo(.874*b,.1316*c);a.lineTo(b,.3346*c);a.lineTo(b,.7331*c);a.lineTo(.5*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dRdsSlave.prototype.cst.RDS_SLAVE,mxShapeAws3dRdsSlave);function mxShapeAws3dAMI2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dAMI2,mxShape);
|
|
mxShapeAws3dAMI2.prototype.cst={AMI_2:"mxgraph.aws3d.ami2",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dAMI2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(d*b/92,d*c/60);a.setStrokeWidth(d);a.setShadow(!1);a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==e&&a.setShadow(!0);a.begin();a.moveTo(0,.572*c);a.lineTo(.0865*b,.284*c);a.lineTo(.4203*b,0);a.lineTo(.5865*b,0);a.lineTo(.919*b,.286*c);
|
|
a.lineTo(b,.566*c);a.lineTo(.5027*b,c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dAMI2.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");var f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(0,.566*c);a.lineTo(.0892*b,.282*c);a.lineTo(.0878*b,.426*c);a.lineTo(.4216*b,.712*c);a.lineTo(.5865*b,.712*c);a.lineTo(.5027*b,c);a.close();a.fill();"0"==f?a.setAlpha(e[1]):
|
|
a.setAlpha(e[0]);a.begin();a.moveTo(.5027*b,c);a.lineTo(.5865*b,.712*c);a.lineTo(.9176*b,.43*c);a.lineTo(b,.566*c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(0,.566*c);a.lineTo(.0892*b,.282*c);a.lineTo(.0878*b,.426*c);a.lineTo(.4216*b,.712*c);a.lineTo(.5865*b,.712*c);a.lineTo(.5027*b,c);a.close();a.moveTo(.5027*b,c);a.lineTo(.5865*b,.712*c);a.lineTo(.9176*b,.43*c);a.lineTo(b,.566*c);a.close();a.moveTo(0,.572*c);a.lineTo(.0892*b,.422*c);a.moveTo(.5027*b,c);a.lineTo(.4189*
|
|
b,.708*c);a.moveTo(.9176*b,.43*c);a.lineTo(.9176*b,.29*c);a.stroke();a.setStrokeWidth(2*d);a.setLineJoin("round");a.begin();a.moveTo(.2095*b,.376*c);a.lineTo(.527*b,.104*c);a.lineTo(.6338*b,.194*c);a.lineTo(.3149*b,.468*c);a.close();a.moveTo(.3716*b,.518*c);a.lineTo(.6892*b,.246*c);a.lineTo(.796*b,.336*c);a.lineTo(.477*b,.61*c);a.close();a.moveTo(.3108*b,.282*c);a.lineTo(.4257*b,.38*c);a.moveTo(.4189*b,.194*c);a.lineTo(.5297*b,.288*c);a.moveTo(.5838*b,.338*c);a.lineTo(.6892*b,.426*c);a.moveTo(.4757*
|
|
b,.426*c);a.lineTo(.5838*b,.518*c);a.stroke();a.setStrokeColor("#292929");a.begin();a.moveTo(0,.572*c);a.lineTo(.0865*b,.284*c);a.lineTo(.4203*b,0);a.lineTo(.5865*b,0);a.lineTo(.919*b,.286*c);a.lineTo(b,.566*c);a.lineTo(.5027*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dAMI2.prototype.cst.AMI_2,mxShapeAws3dAMI2);function mxShapeAws3dEbs(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dEbs,mxShape);
|
|
mxShapeAws3dEbs.prototype.cst={EBS:"mxgraph.aws3d.ebs",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dEbs.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=d*b/92;d=d*c/60;var f=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(e,d);a.setStrokeWidth(d);a.setShadow(!1);a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==f&&a.setShadow(!0);a.begin();a.moveTo(0,.5276*c);a.lineTo(0,.4188*c);a.lineTo(.071*b,.2898*c);a.lineTo(.4033*b,0);a.lineTo(.9301*
|
|
b,.464*c);a.lineTo(b,.5863*c);a.lineTo(b,.7035*c);a.lineTo(.6667*b,c);a.lineTo(.5355*b,c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dEbs.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(.071*b,.2948*c);a.lineTo(.6011*b,.7621*c);a.lineTo(.6667*b,c);a.lineTo(.5355*b,c);a.lineTo(0,.5276*c);a.lineTo(0,.4137*c);
|
|
a.close();a.fill();"0"==f?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();a.moveTo(.6011*b,.7655*c);a.lineTo(.9344*b,.4724*c);a.lineTo(b,.7035*c);a.lineTo(.6667*b,c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(.071*b,.2948*c);a.lineTo(.6011*b,.7621*c);a.lineTo(.6667*b,c);a.lineTo(.5355*b,c);a.lineTo(0,.5276*c);a.lineTo(0,.4137*c);a.close();a.moveTo(.6011*b,.7655*c);a.lineTo(.9344*b,.4724*c);a.lineTo(b,.7035*c);a.lineTo(.6667*b,c);a.close();a.moveTo(.0033*b,.5276*c);a.lineTo(.071*
|
|
b,.2898*c);a.moveTo(.5325*b,.9976*c);a.lineTo(.603*b,.7593*c);a.stroke();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.5276*c);a.lineTo(0,.4188*c);a.lineTo(.071*b,.2898*c);a.lineTo(.4033*b,0);a.lineTo(.9301*b,.464*c);a.lineTo(b,.5863*c);a.lineTo(b,.7035*c);a.lineTo(.6667*b,c);a.lineTo(.5355*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dEbs.prototype.cst.EBS,mxShapeAws3dEbs);
|
|
function mxShapeAws3dOracleServer(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dOracleServer,mxShape);mxShapeAws3dOracleServer.prototype.cst={ORACLE_SERVER:"mxgraph.aws3d.oracleServer"};
|
|
mxShapeAws3dOracleServer.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/123,d*c/133);a.setStrokeWidth(d);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dOracleServer.prototype.background=function(a,d,e,b,c,f){a.save();a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7464*c);a.lineTo(0,.25*c);a.lineTo(.5*b,0);a.lineTo(b,.25*c);a.lineTo(b,.7464*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dOracleServer.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");a.setAlpha("0.1");a.begin();a.moveTo(0,.7464*c);a.lineTo(0,.25*c);a.lineTo(.5*b,.5*c);a.lineTo(.5*b,c);a.close();a.fill();a.setAlpha("0.3");a.begin();a.moveTo(.5*b,.5*c);a.lineTo(b,.25*c);a.lineTo(b,.7464*c);a.lineTo(.5*b,c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.setFillColor("#ff0000");a.begin();a.moveTo(0,.5866*c);a.lineTo(.5*b,.8359*c);a.lineTo(b,
|
|
.5866*c);a.lineTo(b,.6986*c);a.lineTo(.5*b,.9486*c);a.lineTo(0,.6986*c);a.fill();a.setStrokeWidth(.5*f);a.setStrokeColor("#ffffff");a.setFillColor("#ffffff");a.begin();a.moveTo(0,.5866*c);a.lineTo(.5*b,.8359*c);a.lineTo(b,.5866*c);a.moveTo(b,.6986*c);a.lineTo(.5*b,.9486*c);a.lineTo(0,.6986*c);a.stroke();a.begin();a.moveTo(.0813*b,.7113*c);a.arcTo(.0569*b,.0493*c,0,0,1,.065*b,.6831*c);a.arcTo(.065*b,.0563*c,0,0,1,.065*b,.6613*c);a.arcTo(.0163*b,.0141*c,0,0,1,.0797*b,.6549*c);a.lineTo(.122*b,.6754*
|
|
c);a.arcTo(.065*b,.0563*c,0,0,1,.1358*b,.6937*c);a.arcTo(.065*b,.0563*c,0,0,1,.139*b,.7232*c);a.arcTo(.0179*b,.0155*c,0,0,1,.1187*b,.7296*c);a.close();a.moveTo(.1163*b,.7183*c);a.arcTo(.0089*b,.0077*c,0,0,0,.1285*b,.7148*c);a.arcTo(.0407*b,.0352*c,0,0,0,.1293*b,.7021*c);a.arcTo(.0407*b,.0352*c,0,0,0,.1179*b,.6831*c);a.lineTo(.087*b,.6676*c);a.arcTo(.0081*b,.007*c,0,0,0,.0764*b,.6697*c);a.arcTo(.0325*b,.0352*c,0,0,0,.078*b,.6937*c);a.arcTo(.0407*b,.0352*c,0,0,0,.087*b,.7035*c);a.close();a.moveTo(.1439*
|
|
b,.743*c);a.lineTo(.1439*b,.6866*c);a.lineTo(.1846*b,.707*c);a.arcTo(.0407*b,.0352*c,0,0,1,.1967*b,.7183*c);a.arcTo(.0407*b,.0352*c,0,0,1,.2*b,.738*c);a.arcTo(.0138*b,.0155*c,0,0,1,.1813*b,.743*c);a.lineTo(.1992*b,.769*c);a.lineTo(.187*b,.7641*c);a.lineTo(.1577*b,.7218*c);a.lineTo(.1854*b,.7345*c);a.arcTo(.0041*b,.0035*c,0,0,0,.1911*b,.7317*c);a.arcTo(.0163*b,.0141*c,0,0,0,.1894*b,.7225*c);a.arcTo(.0325*b,.0282*c,0,0,0,.1821*b,.7155*c);a.lineTo(.1528*b,.7007*c);a.lineTo(.1528*b,.7472*c);a.close();
|
|
a.moveTo(.2008*b,.7711*c);a.lineTo(.2293*b,.7338*c);a.arcTo(.0065*b,.0056*c,0,0,1,.2382*b,.7324*c);a.arcTo(.0407*b,.0352*c,0,0,1,.2431*b,.7415*c);a.lineTo(.2699*b,.8035*c);a.lineTo(.2602*b,.8007*c);a.lineTo(.252*b,.7859*c);a.lineTo(.2293*b,.7754*c);a.lineTo(.2244*b,.7634*c);a.lineTo(.248*b,.7739*c);a.lineTo(.235*b,.7444*c);a.lineTo(.2122*b,.7768*c);a.close();a.moveTo(.3244*b,.8225*c);a.lineTo(.3171*b,.8289*c);a.lineTo(.2854*b,.8127*c);a.arcTo(.0407*b,.0352*c,0,0,1,.2724*b,.7986*c);a.arcTo(.0569*b,
|
|
.0493*c,0,0,1,.265*b,.7746*c);a.arcTo(.0407*b,.0352*c,0,0,1,.2683*b,.762*c);a.arcTo(.0163*b,.0141*c,0,0,1,.2829*b,.757*c);a.lineTo(.3228*b,.7761*c);a.lineTo(.3179*b,.7831*c);a.lineTo(.2878*b,.7683*c);a.arcTo(.0081*b,.007*c,0,0,0,.2789*b,.7697*c);a.arcTo(.0244*b,.0211*c,0,0,0,.2748*b,.7831*c);a.arcTo(.0407*b,.0352*c,0,0,0,.2878*b,.8042*c);a.close();a.moveTo(.3276*b,.7789*c);a.lineTo(.3366*b,.7831*c);a.lineTo(.3366*b,.8289*c);a.lineTo(.3805*b,.8507*c);a.lineTo(.3748*b,.857*c);a.lineTo(.3317*b,.8359*
|
|
c);a.arcTo(.0163*b,.0141*c,0,0,1,.3276*b,.8275*c);a.close();a.moveTo(.435*b,.8775*c);a.lineTo(.4325*b,.8866*c);a.lineTo(.3959*b,.8683*c);a.arcTo(.0407*b,.0352*c,0,0,1,.3862*b,.8563*c);a.arcTo(.0528*b,.0458*c,0,0,1,.3805*b,.8183*c);a.arcTo(.0163*b,.0141*c,0,0,1,.3951*b,.8134*c);a.lineTo(.435*b,.8324*c);a.lineTo(.4285*b,.838*c);a.lineTo(.4008*b,.8246*c);a.arcTo(.0098*b,.0085*c,0,0,0,.3878*b,.831*c);a.lineTo(.4333*b,.8542*c);a.lineTo(.426*b,.8606*c);a.lineTo(.3878*b,.8415*c);a.arcTo(.0325*b,.0282*c,
|
|
0,0,0,.3976*b,.8585*c);a.close();a.moveTo(.6171*b,.8063*c);a.arcTo(.0163*b,.0141*c,0,0,1,.6366*b,.8092*c);a.arcTo(.0325*b,.0282*c,0,0,1,.639*b,.8303*c);a.arcTo(.065*b,.0563*c,0,0,1,.6211*b,.8592*c);a.lineTo(.5894*b,.8761*c);a.arcTo(.0203*b,.0176*c,0,0,1,.565*b,.8732*c);a.arcTo(.0407*b,.0352*c,0,0,1,.5659*b,.8458*c);a.arcTo(.0488*b,.0422*c,0,0,1,.5805*b,.8246*c);a.close();a.moveTo(.5886*b,.8296*c);a.arcTo(.0325*b,.0282*c,0,0,0,.5748*b,.8472*c);a.arcTo(.0325*b,.0282*c,0,0,0,.574*b,.862*c);a.arcTo(.0098*
|
|
b,.0085*c,0,0,0,.587*b,.8676*c);a.lineTo(.6163*b,.8528*c);a.arcTo(.0407*b,.0352*c,0,0,0,.6285*b,.8359*c);a.arcTo(.0244*b,.0211*c,0,0,0,.6293*b,.8225*c);a.arcTo(.0098*b,.0085*c,0,0,0,.6163*b,.8155*c);a.close();a.moveTo(.64*b,.85*c);a.lineTo(.64*b,.793*c);a.lineTo(.6854*b,.7718*c);a.arcTo(.0106*b,.0092*c,0,0,1,.7008*b,.7782*c);a.arcTo(.0407*b,.0352*c,0,0,1,.6959*b,.8*c);a.arcTo(.0407*b,.0352*c,0,0,1,.6805*b,.8127*c);a.lineTo(.6992*b,.8218*c);a.lineTo(.6854*b,.8282*c);a.lineTo(.6569*b,.8141*c);a.lineTo(.6805*
|
|
b,.8021*c);a.arcTo(.0203*b,.0176*c,0,0,0,.6894*b,.7923*c);a.arcTo(.0244*b,.0211*c,0,0,0,.6894*b,.7845*c);a.arcTo(.0041*b,.0035*c,0,0,0,.6837*b,.7831*c);a.lineTo(.6528*b,.7979*c);a.lineTo(.6528*b,.8437*c);a.close();a.moveTo(.7*b,.8204*c);a.lineTo(.7301*b,.7507*c);a.arcTo(.0098*b,.0085*c,0,0,1,.7358*b,.7444*c);a.arcTo(.0098*b,.0085*c,0,0,1,.7415*b,.7486*c);a.lineTo(.7699*b,.7852*c);a.lineTo(.7602*b,.7908*c);a.lineTo(.7537*b,.7838*c);a.lineTo(.7276*b,.7958*c);a.lineTo(.7228*b,.788*c);a.lineTo(.748*b,
|
|
.7768*c);a.lineTo(.7358*b,.7585*c);a.lineTo(.7114*b,.8155*c);a.close();a.moveTo(.8244*b,.7486*c);a.lineTo(.8171*b,.762*c);a.lineTo(.7894*b,.7761*c);a.arcTo(.0244*b,.0211*c,0,0,1,.7683*b,.7746*c);a.arcTo(.0407*b,.0352*c,0,0,1,.7667*b,.7507*c);a.arcTo(.0488*b,.0423*c,0,0,1,.7937*b,.7162*c);a.lineTo(.822*b,.7035*c);a.lineTo(.8171*b,.7155*c);a.lineTo(.7902*b,.7296*c);a.arcTo(.0325*b,.0282*c,0,0,0,.778*b,.743*c);a.arcTo(.0407*b,.0352*c,0,0,0,.7756*b,.7606*c);a.arcTo(.0077*b,.0067*c,0,0,0,.787*b,.767*c);
|
|
a.close();a.moveTo(.8366*b,.6949*c);a.lineTo(.8366*b,.7423*c);a.lineTo(.878*b,.7231*c);a.lineTo(.874*b,.7338*c);a.lineTo(.8333*b,.7535*c);a.arcTo(.0041*b,.0035*c,0,0,1,.8268*b,.75*c);a.lineTo(.8268*b,.7007*c);a.close();a.moveTo(.9342*b,.6472*c);a.lineTo(.9293*b,.6599*c);a.lineTo(.9033*b,.6725*c);a.arcTo(.0325*b,.0282*c,0,0,0,.8927*b,.6817*c);a.arcTo(.0406*b,.0352*c,0,0,0,.887*b,.6937*c);a.lineTo(.9309*b,.6725*c);a.lineTo(.9268*b,.6845*c);a.lineTo(.887*b,.7035*c);a.arcTo(.0089*b,.0077*c,0,0,0,.8992*
|
|
b,.7106*c);a.lineTo(.935*b,.693*c);a.lineTo(.9285*b,.7063*c);a.lineTo(.9008*b,.7197*c);a.arcTo(.0163*b,.0141*c,0,0,1,.8829*b,.7204*c);a.arcTo(.0407*b,.0352*c,0,0,1,.8764*b,.7028*c);a.arcTo(.065*b,.0563*c,0,0,1,.8959*b,.6669*c);a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(0,.7464*c);a.lineTo(0,.25*c);a.lineTo(.5*b,.5*c);a.lineTo(.5*b,c);a.close();a.moveTo(.5*b,.5*c);a.lineTo(b,.25*c);a.lineTo(b,.7464*c);a.lineTo(.5*b,c);a.close();a.stroke();a.setLineJoin("miter");
|
|
d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.374*b,.3873*c);a.arcTo(.0325*b,.01764*c,0,0,1,.374*b,.3626*c);a.lineTo(.4797*b,.3098*c);a.arcTo(.0325*b,.0141*c,0,0,1,.5203*b,.3098*c);a.lineTo(.626*b,.3626*c);a.arcTo(.0325*b,.01764*c,0,0,1,.626*b,.3852*c);a.lineTo(.5203*b,.438*c);a.arcTo(.0325*b,.0141*c,0,0,1,.4797*b,.438*c);a.close();a.fill();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7464*c);a.lineTo(0,
|
|
.25*c);a.lineTo(.5*b,0);a.lineTo(b,.25*c);a.lineTo(b,.7464*c);a.lineTo(.5*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dOracleServer.prototype.cst.ORACLE_SERVER,mxShapeAws3dOracleServer);function mxShapeAws3dSecureConnection(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dSecureConnection,mxShape);mxShapeAws3dSecureConnection.prototype.cst={SECURE_CONNECTION:"mxgraph.aws3d.secureConnection"};
|
|
mxShapeAws3dSecureConnection.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/57,d*c/34);a.setStrokeWidth(d);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dSecureConnection.prototype.background=function(a,d,e,b,c,f){a.begin();a.moveTo(.0058*b,.3889*c);a.arcTo(.2096*b,.3536*c,0,0,1,.0774*b,.1856*c);a.arcTo(.5241*b,.8839*c,0,0,1,.308*b,.0262*c);a.arcTo(.8735*b,1.4732*c,0,0,1,.6417*b,.056*c);a.arcTo(.6988*b,1.1786*c,0,0,1,.9106*b,.277*c);a.arcTo(.2621*b,.442*c,0,0,1,b,.5451*c);a.arcTo(.2096*b,.3536*c,0,0,1,.9474*b,.7808*c);a.arcTo(.4368*b,.7366*c,0,0,1,.7186*b,.9605*c);a.arcTo(.8735*b,1.4732*c,0,0,1,.3045*b,.9104*c);a.arcTo(.6115*b,1.0312*c,
|
|
0,0,1,.0687*b,.6747*c);a.arcTo(.2096*b,.3536*c,0,0,1,.0058*b,.3889*c);a.close();a.fill()};
|
|
mxShapeAws3dSecureConnection.prototype.foreground=function(a,d,e,b,c,f){d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.2661*b,.5068*c);a.lineTo(.5002*b,.7336*c);a.lineTo(.6626*b,.5775*c);a.lineTo(.6469*b,.5539*c);a.lineTo(.6958*b,.5097*c);a.arcTo(.0874*b,.1473*c,0,0,0,.7325*b,.4066*c);a.arcTo(.0874*b,.1473*c,0,0,0,.6889*b,.3153*c);a.arcTo(.1747*b,.2946*c,0,0,0,.5928*b,.2622*c);a.arcTo(.1398*b,.2357*c,0,0,0,.5107*b,.3005*c);a.lineTo(.446*b,.3654*
|
|
c);a.lineTo(.4268*b,.3477*c);a.close();a.moveTo(.4949*b,.4184*c);a.lineTo(.5491*b,.3624*c);a.arcTo(.1222*b,.2062*c,0,0,1,.6277*b,.3536*c);a.arcTo(.0874*b,.1179*c,0,0,1,.6679*b,.3978*c);a.arcTo(.0175*b,.0295*c,0,0,1,.6626*b,.439*c);a.lineTo(.5928*b,.5068*c);a.close();a.fill()};mxCellRenderer.registerShape(mxShapeAws3dSecureConnection.prototype.cst.SECURE_CONNECTION,mxShapeAws3dSecureConnection);
|
|
function mxShapeAws3dEmailService(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dEmailService,mxShape);mxShapeAws3dEmailService.prototype.cst={EMAIL_SERVICE:"mxgraph.aws3d.email_service",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dEmailService.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/151,d*c/192);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dEmailService.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.8182*c);a.lineTo(0,.1818*c);a.lineTo(.4007*b,0);a.lineTo(.606*b,0);a.lineTo(b,.1792*c);a.lineTo(b,.8182*c);a.lineTo(.5993*b,c);a.lineTo(.4007*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dEmailService.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dEmailService.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(0,.2727*c);a.lineTo(.4007*b,.4546*c);a.lineTo(.5993*b,.4546*c);a.lineTo(.5993*b,c);a.lineTo(.4007*b,c);a.lineTo(0,.8182*c);a.close();a.fill();"0"==
|
|
e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.5993*b,.4546*c);a.lineTo(b,.2727*c);a.lineTo(.8013*b,.1792*c);a.lineTo(.8013*b,.0883*c);a.lineTo(b,.1792*c);a.lineTo(b,.8182*c);a.lineTo(.5993*b,c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(0,.2727*c);a.lineTo(.4007*b,.4546*c);a.lineTo(.5993*b,.4546*c);a.lineTo(.5993*b,c);a.lineTo(.4007*b,c);a.lineTo(0,.8182*c);a.close();a.stroke();a.begin();a.moveTo(.5993*b,.4546*c);a.lineTo(b,.2727*c);a.lineTo(.8013*
|
|
b,.1792*c);a.lineTo(.8013*b,.0883*c);a.lineTo(b,.1792*c);a.lineTo(b,.8182*c);a.lineTo(.5993*b,c);a.close();a.stroke();a.begin();a.moveTo(.202*b,.0883*c);a.lineTo(.202*b,.1818*c);a.lineTo(.4007*b,.2727*c);a.lineTo(.5993*b,.2727*c);a.lineTo(.798*b,.1818*c);a.moveTo(.2053*b,.1818*c);a.lineTo(.0033*b,.2714*c);a.moveTo(.4007*b,.2727*c);a.lineTo(.4007*b,.9961*c);a.moveTo(.5993*b,.2727*c);a.lineTo(.5993*b,.4546*c);a.stroke();a.setLineJoin("miter");d=mxUtils.getValue(this.state.style,"strokeColor","#000000");
|
|
a.setFillColor(d);a.begin();a.moveTo(.4437*b,.0779*c);a.arcTo(.0662*b,.0519*c,0,0,1,.404*b,.0706*c);a.arcTo(.0464*b,.0364*c,0,0,1,.3815*b,.0421*c);a.arcTo(.053*b,.026*c,0,0,1,.4205*b,.0187*c);a.arcTo(.1987*b,.1558*c,0,0,1,.4768*b,.0203*c);a.arcTo(.0795*b,.0364*c,0,0,1,.5199*b,.0494*c);a.arcTo(.0265*b,.0208*c,0,0,1,.5099*b,.0649*c);a.arcTo(.0795*b,.0623*c,0,0,1,.4536*b,.0727*c);a.arcTo(.0199*b,.0156*c,0,0,1,.4404*b,.0597*c);a.arcTo(.0265*b,.0208*c,0,0,1,.4219*b,.0566*c);a.arcTo(.0199*b,.0114*c,0,0,
|
|
1,.4172*b,.0431*c);a.arcTo(.0265*b,.0208*c,0,0,1,.4483*b,.0416*c);a.arcTo(.0132*b,.0104*c,0,0,1,.457*b,.053*c);a.arcTo(.0132*b,.0104*c,0,0,0,.4669*b,.0431*c);a.arcTo(.0166*b,.0166*c,0,0,0,.4464*b,.0358*c);a.lineTo(.4437*b,.0338*c);a.arcTo(.0199*b,.0156*c,0,0,1,.4603*b,.0322*c);a.arcTo(.0397*b,.0156*c,0,0,1,.4755*b,.0462*c);a.arcTo(.0199*b,.0156*c,0,0,1,.4669*b,.0545*c);a.arcTo(.053*b,.0416*c,0,0,1,.453*b,.0608*c);a.arcTo(.0099*b,.0078*c,0,0,0,.4636*b,.0675*c);a.arcTo(.0662*b,.0519*c,0,0,0,.498*b,
|
|
.0623*c);a.arcTo(.0185*b,.0145*c,0,0,0,.5079*b,.0457*c);a.arcTo(.053*b,.0416*c,0,0,0,.4848*b,.0296*c);a.arcTo(.0993*b,.0779*c,0,0,0,.455*b,.0234*c);a.arcTo(.1325*b,.1039*c,0,0,0,.4172*b,.026*c);a.arcTo(.0397*b,.0312*c,0,0,0,.3927*b,.039*c);a.arcTo(.0265*b,.0208*c,0,0,0,.3974*b,.0571*c);a.arcTo(.053*b,.0416*c,0,0,0,.4205*b,.0701*c);a.arcTo(.0331*b,.026*c,0,0,0,.4404*b,.0722*c);a.moveTo(.42*b,.049*c);a.arcTo(.02*b,.02*c,0,0,0,.435*b,.055*c);a.arcTo(.02*b,.02*c,0,0,0,.45*b,.049*c);a.arcTo(.02*b,.02*
|
|
c,0,0,0,.435*b,.043*c);a.arcTo(.02*b,.02*c,0,0,0,.42*b,.049*c);a.close();a.moveTo(.4669*b,.0894*c);a.arcTo(.1325*b,.1039*c,0,0,0,.5099*b,.0831*c);a.lineTo(.6689*b,.1543*c);a.lineTo(.4887*b,.1371*c);a.close();a.moveTo(.3887*b,.0769*c);a.arcTo(.0662*b,.0519*c,0,0,0,.4205*b,.0888*c);a.arcTo(.0662*b,.026*c,0,0,0,.447*b,.0894*c);a.lineTo(.4735*b,.1512*c);a.lineTo(.6689*b,.1688*c);a.lineTo(.5199*b,.2364*c);a.lineTo(.2815*b,.1273*c);a.close();a.fill();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");
|
|
a.begin();a.moveTo(0,.8182*c);a.lineTo(0,.1818*c);a.lineTo(.4007*b,0);a.lineTo(.606*b,0);a.lineTo(b,.1792*c);a.lineTo(b,.8182*c);a.lineTo(.5993*b,c);a.lineTo(.4007*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dEmailService.prototype.cst.EMAIL_SERVICE,mxShapeAws3dEmailService);function mxShapeAws3dWorker(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dWorker,mxShape);
|
|
mxShapeAws3dWorker.prototype.cst={WORKER:"mxgraph.aws3d.worker",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dWorker.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(d*b/74,d*c/50);a.setStrokeWidth(d);a.setShadow(!1);a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==e&&a.setShadow(!0);a.begin();a.moveTo(0,.572*c);a.lineTo(.0865*b,.284*c);a.lineTo(.4203*b,0);a.lineTo(.5865*b,0);a.lineTo(.919*b,.286*
|
|
c);a.lineTo(b,.566*c);a.lineTo(.5027*b,c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dWorker.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");var f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(0,.566*c);a.lineTo(.0892*b,.282*c);a.lineTo(.0878*b,.426*c);a.lineTo(.4216*b,.712*c);a.lineTo(.5865*b,.712*c);a.lineTo(.5027*b,c);a.close();a.fill();"0"==f?a.setAlpha(e[1]):
|
|
a.setAlpha(e[0]);a.begin();a.moveTo(.5027*b,c);a.lineTo(.5865*b,.712*c);a.lineTo(.9176*b,.43*c);a.lineTo(b,.566*c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(0,.566*c);a.lineTo(.0892*b,.282*c);a.lineTo(.0878*b,.426*c);a.lineTo(.4216*b,.712*c);a.lineTo(.5865*b,.712*c);a.lineTo(.5027*b,c);a.close();a.moveTo(.5027*b,c);a.lineTo(.5865*b,.712*c);a.lineTo(.9176*b,.43*c);a.lineTo(b,.566*c);a.close();a.moveTo(0,.572*c);a.lineTo(.0892*b,.422*c);a.moveTo(.5027*b,c);a.lineTo(.4189*
|
|
b,.708*c);a.moveTo(.9176*b,.43*c);a.lineTo(.9176*b,.29*c);a.stroke();e=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(e);a.setLineJoin("round");a.begin();a.moveTo(.2892*b,.2104*c);a.lineTo(.3595*b,.1503*c);a.lineTo(.3973*b,.1844*c);a.arcTo(.2703*b,.4008*c,0,0,1,.4486*b,.1703*c);a.lineTo(.4486*b,.1242*c);a.lineTo(.5527*b,.1242*c);a.lineTo(.5527*b,.1703*c);a.arcTo(.2703*b,.4008*c,0,0,1,.6149*b,.1924*c);a.lineTo(.6527*b,.1603*c);a.lineTo(.7257*b,.2224*c);a.lineTo(.6892*b,.2545*
|
|
c);a.arcTo(.2027*b,.3006*c,0,0,1,.7162*b,.3106*c);a.lineTo(.7676*b,.3106*c);a.lineTo(.7676*b,.3988*c);a.lineTo(.7162*b,.3988*c);a.arcTo(.2027*b,.3006*c,0,0,1,.6973*b,.4409*c);a.lineTo(.7378*b,.475*c);a.lineTo(.6635*b,.5371*c);a.lineTo(.6297*b,.505*c);a.arcTo(.2703*b,.4008*c,0,0,1,.5527*b,.5351*c);a.lineTo(.5527*b,.5812*c);a.lineTo(.45*b,.5812*c);a.lineTo(.45*b,.5351*c);a.arcTo(.2703*b,.4008*c,0,0,1,.3878*b,.513*c);a.lineTo(.3514*b,.5431*c);a.lineTo(.2784*b,.481*c);a.lineTo(.3149*b,.4509*c);a.arcTo(.2027*
|
|
b,.3006*c,0,0,1,.2865*b,.3968*c);a.lineTo(.2351*b,.3968*c);a.lineTo(.2351*b,.3086*c);a.lineTo(.2865*b,.3086*c);a.arcTo(.2027*b,.3006*c,0,0,1,.3203*b,.2425*c);a.close();a.moveTo(.4054*b,.2445*c);a.arcTo(.1351*b,.2004*c,0,0,0,.3554*b,.2986*c);a.arcTo(.0676*b,.1002*c,0,0,0,.3432*b,.3567*c);a.arcTo(.0811*b,.1202*c,0,0,0,.3635*b,.4208*c);a.arcTo(.1351*b,.2004*c,0,0,0,.4122*b,.4649*c);a.arcTo(.2027*b,.3006*c,0,0,0,.4122*b,.4649*c);a.arcTo(.2027*b,.3006*c,0,0,0,.5676*b,.4749*c);a.arcTo(.1351*b,.2004*c,0,
|
|
0,0,.6351*b,.4228*c);a.arcTo(.0676*b,.1002*c,0,0,0,.6595*b,.3467*c);a.arcTo(.0811*b,.1202*c,0,0,0,.6149*b,.2605*c);a.arcTo(.2027*b,.3006*c,0,0,0,.5419*b,.2204*c);a.arcTo(.3378*b,.501*c,0,0,0,.4649*b,.2184*c);a.arcTo(.2027*b,.3006*c,0,0,0,.4054*b,.2445*c);a.close();a.moveTo(.473*b,.2806*c);a.arcTo(.2027*b,.3006*c,0,0,1,.55*b,.2866*c);a.arcTo(.0676*b,.1002*c,0,0,1,.5892*b,.3307*c);a.arcTo(.0338*b,.0501*c,0,0,1,.5824*b,.3888*c);a.arcTo(.0946*b,.1403*c,0,0,1,.5216*b,.4269*c);a.arcTo(.1622*b,.2405*c,0,
|
|
0,1,.4432*b,.4128*c);a.arcTo(.0541*b,.0802*c,0,0,1,.4108*b,.3527*c);a.arcTo(.0541*b,.0802*c,0,0,1,.4351*b,.2986*c);a.arcTo(.0811*b,.1202*c,0,0,1,.473*b,.2806*c);a.close();a.fill();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.begin();a.moveTo(0,.572*c);a.lineTo(.0865*b,.284*c);a.lineTo(.4203*b,0);a.lineTo(.5865*b,0);a.lineTo(.919*b,.286*c);a.lineTo(b,.566*c);a.lineTo(.5027*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dWorker.prototype.cst.WORKER,mxShapeAws3dWorker);
|
|
function mxShapeAws3dApplication2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dApplication2,mxShape);mxShapeAws3dApplication2.prototype.cst={APPLICATION2:"mxgraph.aws3d.application2",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dApplication2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=d*b/62;d=d*c/53.5;var f=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(e,d);a.setShadow(!1);a.setStrokeWidth(d);a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==f&&a.setShadow(!0);a.begin();a.moveTo(0,.6766*c);a.lineTo(0,.3271*c);a.lineTo(.5*b,0);a.lineTo(b,.3271*c);a.lineTo(b,
|
|
.6766*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dApplication2.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(0,.3271*c);a.lineTo(.5*b,.6449*c);a.lineTo(.5*b,c);a.lineTo(0,.6766*c);a.close();a.fill();"0"==f?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();a.moveTo(.5*b,.6449*c);a.lineTo(b,.3271*
|
|
c);a.lineTo(b,.6766*c);a.lineTo(.5*b,c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(0,.3271*c);a.lineTo(.5*b,.6449*c);a.lineTo(.5*b,c);a.lineTo(0,.6766*c);a.close();a.stroke();a.begin();a.moveTo(.5*b,.6449*c);a.lineTo(b,.3271*c);a.lineTo(b,.6766*c);a.lineTo(.5*b,c);a.close();a.stroke();a.setLineJoin("miter");e=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(e);a.begin();a.moveTo(.1742*b,.6355*c);a.lineTo(.1742*b,.4393*c);a.lineTo(.6726*b,.1121*
|
|
c);a.lineTo(.7661*b,.1738*c);a.lineTo(.2661*b,.4991*c);a.lineTo(.2661*b,.6916*c);a.close();a.moveTo(.2871*b,.7084*c);a.lineTo(.2871*b,.514*c);a.lineTo(.7823*b,.1869*c);a.lineTo(.8629*b,.2374*c);a.lineTo(.379*b,.5626*c);a.lineTo(.379*b,.7607*c);a.close();a.fill();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.6766*c);a.lineTo(0,.3271*c);a.lineTo(.5*b,0);a.lineTo(b,.3271*c);a.lineTo(b,.6766*c);a.lineTo(.5*b,c);a.close();a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dApplication2.prototype.cst.APPLICATION2,mxShapeAws3dApplication2);function mxShapeAws3dElasticBeanstalk(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dElasticBeanstalk,mxShape);mxShapeAws3dElasticBeanstalk.prototype.cst={ELASTIC_BEANSTALK:"mxgraph.aws3d.elasticBeanstalk",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dElasticBeanstalk.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=d*b/181.5;d=d*c/140;var f=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(e,d);a.setShadow(!1);a.setStrokeWidth(d);a.save();a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==f&&a.setShadow(!0);a.begin();a.moveTo(0,.6239*c);a.lineTo(0,.3754*c);a.lineTo(.5*b,0);a.lineTo(b,.3754*
|
|
c);a.lineTo(b,.6239*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dElasticBeanstalk.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(0,.3754*c);a.lineTo(.5*b,.7514*c);a.lineTo(.5*b,c);a.lineTo(0,.6239*c);a.close();a.fill();"0"==f?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();a.moveTo(.5*b,.7514*
|
|
c);a.lineTo(b,.3754*c);a.lineTo(b,.6239*c);a.lineTo(.5*b,c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(0,.3754*c);a.lineTo(.5*b,.7514*c);a.lineTo(.5*b,c);a.lineTo(0,.6239*c);a.close();a.moveTo(.5*b,.7514*c);a.lineTo(b,.3754*c);a.lineTo(b,.6239*c);a.lineTo(.5*b,c);a.close();a.moveTo(.2485*b,.187*c);a.lineTo(.7493*b,.5623*c);a.lineTo(.7493*b,.8123*c);a.stroke();a.setLineJoin("miter");e=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(e);a.begin();
|
|
a.moveTo(.7763*b,.2063*c);a.lineTo(.2749*b,.5817*c);a.lineTo(.2749*b,.8309*c);a.lineTo(.2204*b,.7894*c);a.lineTo(.2204*b,.5394*c);a.lineTo(.7185*b,.1619*c);a.close();a.fill();a.restore();a.begin();a.moveTo(.1713*b,.543*c);a.arcTo(.1653*b,.2149*c,0,0,1,.2028*b,.5723*c);a.arcTo(.1653*b,.2149*c,0,0,1,.2281*b,.6096*c);a.arcTo(.1102*b,.1433*c,0,0,1,.2402*b,.644*c);a.arcTo(.1102*b,.1433*c,0,0,1,.2424*b,.6848*c);a.arcTo(.1653*b,.2149*c,0,0,1,.216*b,.6612*c);a.arcTo(.1653*b,.2149*c,0,0,1,.1895*b,.6239*c);
|
|
a.arcTo(.1102*b,.1433*c,0,0,1,.1719*b,.5824*c);a.arcTo(.0826*b,.1074*c,0,0,1,.1713*b,.543*c);a.close();a.moveTo(.2507*b,.7794*c);a.arcTo(.1653*b,.2149*c,0,0,1,.254*b,.7421*c);a.arcTo(.022*b,.0287*c,0,0,1,.27*b,.7264*c);a.arcTo(.0551*b,.0716*c,0,0,1,.2986*b,.73*c);a.arcTo(.1653*b,.2149*c,0,0,1,.3234*b,.7457*c);a.arcTo(.1653*b,.2149*c,0,0,1,.3218*b,.7815*c);a.arcTo(.022*b,.0287*c,0,0,1,.3019*b,.7987*c);a.arcTo(.0826*b,.1074*c,0,0,1,.27*b,.7923*c);a.arcTo(.1653*b,.2149*c,0,0,1,.2507*b,.7794*c);a.close();
|
|
a.moveTo(.2799*b,.5265*c);a.arcTo(.1102*b,.1433*c,0,0,1,.3003*b,.515*c);a.arcTo(.0826*b,.1074*c,0,0,1,.3317*b,.515*c);a.arcTo(.1653*b,.2149*c,0,0,1,.3774*b,.5315*c);a.arcTo(.1653*b,.2149*c,0,0,1,.4033*b,.5487*c);a.arcTo(.0826*b,.1074*c,0,0,1,.3906*b,.5595*c);a.arcTo(.0826*b,.1074*c,0,0,1,.3493*b,.5616*c);a.arcTo(.1653*b,.2149*c,0,0,1,.3069*b,.5444*c);a.arcTo(.1653*b,.2149*c,0,0,1,.2799*b,.5265*c);a.close();a.moveTo(.2887*b,.3933*c);a.arcTo(.1653*b,.2149*c,0,0,1,.314*b,.414*c);a.arcTo(.1653*b,.2149*
|
|
c,0,0,1,.3322*b,.4391*c);a.arcTo(.0193*b,.0251*c,0,0,1,.3344*b,.4699*c);a.arcTo(.0551*b,.0716*c,0,0,1,.3196*b,.485*c);a.arcTo(.1653*b,.2149*c,0,0,1,.2887*b,.4592*c);a.arcTo(.1102*b,.1433*c,0,0,1,.27*b,.4269*c);a.arcTo(.0165*b,.0215*c,0,0,1,.2727*b,.4054*c);a.arcTo(.0551*b,.0716*c,0,0,1,.2887*b,.3933*c);a.close();a.moveTo(.4613*b,.262*c);a.arcTo(.1653*b,.2149*c,0,0,1,.4867*b,.2827*c);a.arcTo(.1653*b,.2149*c,0,0,1,.5049*b,.3078*c);a.arcTo(.0193*b,.0251*c,0,0,1,.5071*b,.3386*c);a.arcTo(.0551*b,.0716*
|
|
c,0,0,1,.4922*b,.3537*c);a.arcTo(.1653*b,.2149*c,0,0,1,.4613*b,.3279*c);a.arcTo(.1102*b,.1433*c,0,0,1,.4426*b,.2956*c);a.arcTo(.0165*b,.0215*c,0,0,1,.4453*b,.2741*c);a.arcTo(.0551*b,.0716*c,0,0,1,.4613*b,.262*c);a.close();a.moveTo(.4525*b,.3952*c);a.arcTo(.1102*b,.1433*c,0,0,1,.4729*b,.3837*c);a.arcTo(.0826*b,.1074*c,0,0,1,.5043*b,.3837*c);a.arcTo(.1653*b,.2149*c,0,0,1,.55*b,.4002*c);a.arcTo(.1653*b,.2149*c,0,0,1,.5759*b,.4174*c);a.arcTo(.0826*b,.1074*c,0,0,1,.5633*b,.4282*c);a.arcTo(.0826*b,.1074*
|
|
c,0,0,1,.5219*b,.4303*c);a.arcTo(.1653*b,.1074*c,0,0,1,.4795*b,.4131*c);a.arcTo(.1653*b,.2149*c,0,0,1,.4525*b,.3952*c);a.close();a.moveTo(.6217*b,.1426*c);a.arcTo(.1653*b,.2149*c,0,0,1,.6471*b,.1633*c);a.arcTo(.1653*b,.2149*c,0,0,1,.6652*b,.1884*c);a.arcTo(.0193*b,.0251*c,0,0,1,.6674*b,.2192*c);a.arcTo(.0551*b,.0716*c,0,0,1,.6526*b,.2342*c);a.arcTo(.1653*b,.2149*c,0,0,1,.6217*b,.2085*c);a.arcTo(.1102*b,.1433*c,0,0,1,.603*b,.1762*c);a.arcTo(.0165*b,.0215*c,0,0,1,.6057*b,.1547*c);a.arcTo(.0551*b,.0716*
|
|
c,0,0,1,.6217*b,.1426*c);a.close();a.moveTo(.6129*b,.2758*c);a.arcTo(.1102*b,.1433*c,0,0,1,.6333*b,.2643*c);a.arcTo(.0826*b,.1433*c,0,0,1,.6647*b,.2643*c);a.arcTo(.1653*b,.2149*c,0,0,1,.7104*b,.2808*c);a.arcTo(.1653*b,.2149*c,0,0,1,.7363*b,.298*c);a.arcTo(.0826*b,.2149*c,0,0,1,.7363*b,.298*c);a.arcTo(.0826*b,.1074*c,0,0,1,.6823*b,.3109*c);a.arcTo(.1653*b,.2149*c,0,0,1,.6399*b,.2937*c);a.arcTo(.1653*b,.2149*c,0,0,1,.6129*b,.2758*c);a.close();a.fillAndStroke();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");
|
|
a.setLineJoin("round");a.begin();a.moveTo(0,.6239*c);a.lineTo(0,.3754*c);a.lineTo(.5*b,0);a.lineTo(b,.3754*c);a.lineTo(b,.6239*c);a.lineTo(.5*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dElasticBeanstalk.prototype.cst.ELASTIC_BEANSTALK,mxShapeAws3dElasticBeanstalk);function mxShapeAws3dSimpleDB2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dSimpleDB2,mxShape);
|
|
mxShapeAws3dSimpleDB2.prototype.cst={SIMPLE_DB_2:"mxgraph.aws3d.simpleDb2",SHADING_COLORS:"shadingCols"};mxShapeAws3dSimpleDB2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/181.5,d*c/210);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dSimpleDB2.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.8183*c);a.lineTo(0,.1848*c);a.lineTo(.3366*b,0);a.lineTo(.6293*b,.0021*c);a.lineTo(b,.1833*c);a.lineTo(b,.8183*c);a.lineTo(.6694*b,c);a.lineTo(.4986*b,.9091*c);a.lineTo(.3333*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dSimpleDB2.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dSimpleDB2.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(0,.1848*c);a.lineTo(.168*b,.1833*c);a.lineTo(0,.365*c);a.lineTo(.3333*b,.5467*c);a.lineTo(.3333*b,c);a.lineTo(0,.8183*c);a.close();a.moveTo(.4986*b,.9078*
|
|
c);a.lineTo(.4986*b,.3655*c);a.lineTo(.6667*b,.5457*c);a.lineTo(.6667*b,c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.3333*b,.5467*c);a.lineTo(.4986*b,.3655*c);a.lineTo(.4986*b,.9076*c);a.lineTo(.3333*b,c);a.close();a.moveTo(.8292*b,.1822*c);a.lineTo(b,.1848*c);a.lineTo(b,.8183*c);a.lineTo(.6667*b,c);a.lineTo(.6667*b,.5441*c);a.lineTo(b,.3666*c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(0,.1848*c);a.lineTo(.168*b,
|
|
.1833*c);a.lineTo(0,.365*c);a.lineTo(.3333*b,.5467*c);a.lineTo(.3333*b,c);a.lineTo(0,.8183*c);a.close();a.moveTo(.4986*b,.9078*c);a.lineTo(.4986*b,.3655*c);a.lineTo(.6667*b,.5457*c);a.lineTo(.6667*b,c);a.close();a.moveTo(.3333*b,.5467*c);a.lineTo(.4986*b,.3655*c);a.lineTo(.4986*b,.9076*c);a.lineTo(.3333*b,c);a.close();a.moveTo(.8292*b,.1822*c);a.lineTo(b,.1848*c);a.lineTo(b,.8183*c);a.lineTo(.6667*b,c);a.lineTo(.6667*b,.5441*c);a.lineTo(b,.3666*c);a.close();a.moveTo(.1669*b,.1828*c);a.lineTo(.4986*
|
|
b,.3655*c);a.lineTo(.8314*b,.1833*c);a.lineTo(.4986*b,.0031*c);a.close();a.stroke();d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.2634*b,.1833*c);a.lineTo(.5003*b,.0535*c);a.lineTo(.7394*b,.1833*c);a.lineTo(.5003*b,.3136*c);a.close();a.fill();d=mxUtils.getValue(this.state.style,"fillColor","#000000");a.restore();a.setShadow(!1);a.setStrokeWidth(3*f);a.setStrokeColor(d);a.begin();a.moveTo(.3003*b,.2108*c);a.lineTo(.5642*b,.068*c);a.moveTo(.4429*
|
|
b,.0693*c);a.lineTo(.7059*b,.2121*c);a.moveTo(.6667*b,.2458*c);a.lineTo(.3974*b,.0992*c);a.moveTo(.3499*b,.1277*c);a.lineTo(.6088*b,.2698*c);a.moveTo(.3009*b,.1556*c);a.lineTo(.5496*b,.2913*c);a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.8183*c);a.lineTo(0,.1848*c);a.lineTo(.3366*b,0);a.lineTo(.6293*b,.0021*c);a.lineTo(b,.1833*c);a.lineTo(b,.8183*c);a.lineTo(.6694*b,c);a.lineTo(.4986*b,.9091*c);a.lineTo(.3333*b,c);a.close();a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dSimpleDB2.prototype.cst.SIMPLE_DB_2,mxShapeAws3dSimpleDB2);function mxShapeAws3dWorkflowService(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dWorkflowService,mxShape);mxShapeAws3dWorkflowService.prototype.cst={WORKFLOW_SERVICE:"mxgraph.aws3d.workflowService",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dWorkflowService.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/181.5,d*c/210);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dWorkflowService.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.6456*c);a.lineTo(.2481*b,0);a.lineTo(.7497*b,0);a.lineTo(b,.6456*c);a.lineTo(.4984*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dWorkflowService.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dWorkflowService.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(0,.6456*c);a.lineTo(.2486*b,0);a.lineTo(.2486*b,.3531*c);a.lineTo(.4984*b,c);a.close();a.moveTo(.7497*b,.3531*c);a.lineTo(.7497*b,0);a.lineTo(b,
|
|
.6456*c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.4984*b,c);a.lineTo(.7486*b,.3531*c);a.lineTo(b,.6456*c);a.lineTo(.4967*b,c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(.7497*b,.3531*c);a.lineTo(.7497*b,0);a.lineTo(b,.6456*c);a.close();a.moveTo(0,.6456*c);a.lineTo(.2486*b,0);a.lineTo(.2486*b,.3531*c);a.lineTo(.4984*b,c);a.lineTo(.7486*b,.3531*c);a.lineTo(b,.6456*c);a.lineTo(.4967*b,c);a.close();a.moveTo(.2486*b,.3531*
|
|
c);a.lineTo(.7508*b,.3531*c);a.moveTo(.2488*b,.353*c);a.lineTo(0,.6486*c);a.stroke();a.restore();a.setShadow(!1);d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.setStrokeWidth(2*f);a.begin();a.ellipse(.2925*b,.031*c,.4116*b,.2925*c);a.fill();d=mxUtils.getValue(this.state.style,"fillColor","#ffffff");a.setStrokeColor(d);a.begin();a.moveTo(.5252*b,.0465*c);a.lineTo(.5873*b,.0903*c);a.lineTo(.5483*b,.1173*c);a.lineTo(.4874*b,.0728*c);a.close();a.moveTo(.4896*b,.1132*
|
|
c);a.lineTo(.5005*b,.1705*c);a.lineTo(.4182*b,.1631*c);a.lineTo(.4122*b,.1058*c);a.close();a.moveTo(.3584*b,.1631*c);a.lineTo(.4204*b,.2062*c);a.lineTo(.3825*b,.2332*c);a.lineTo(.32*b,.19*c);a.close();a.moveTo(.4594*b,.2338*c);a.lineTo(.5214*b,.2783*c);a.lineTo(.4835*b,.3053*c);a.lineTo(.4215*b,.2608*c);a.close();a.moveTo(.5187*b,.0943*c);a.lineTo(.4879*b,.1152*c);a.moveTo(.421*b,.1624*c);a.lineTo(.3895*b,.1846*c);a.moveTo(.5*b,.1698*c);a.lineTo(.5554*b,.2089*c);a.lineTo(.4885*b,.2567*c);a.stroke();
|
|
a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.6456*c);a.lineTo(.2481*b,0);a.lineTo(.7497*b,0);a.lineTo(b,.6456*c);a.lineTo(.4984*b,c);a.close();a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dWorkflowService.prototype.cst.WORKFLOW_SERVICE,mxShapeAws3dWorkflowService);function mxShapeAws3dDecider(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dDecider,mxShape);
|
|
mxShapeAws3dDecider.prototype.cst={DECIDER:"mxgraph.aws3d.decider",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dDecider.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(d*b/74,d*c/50);a.setStrokeWidth(d);a.setShadow(!1);a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==e&&a.setShadow(!0);a.begin();a.moveTo(0,.572*c);a.lineTo(.0865*b,.284*c);a.lineTo(.4203*b,0);a.lineTo(.5865*b,0);a.lineTo(.919*b,.286*
|
|
c);a.lineTo(b,.566*c);a.lineTo(.5027*b,c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dDecider.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");var f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(0,.566*c);a.lineTo(.0892*b,.282*c);a.lineTo(.0878*b,.426*c);a.lineTo(.4216*b,.712*c);a.lineTo(.5865*b,.712*c);a.lineTo(.5027*b,c);a.close();a.fill();"0"==f?a.setAlpha(e[1]):
|
|
a.setAlpha(e[0]);a.begin();a.moveTo(.5027*b,c);a.lineTo(.5865*b,.712*c);a.lineTo(.9176*b,.43*c);a.lineTo(b,.566*c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(0,.566*c);a.lineTo(.0892*b,.282*c);a.lineTo(.0878*b,.426*c);a.lineTo(.4216*b,.712*c);a.lineTo(.5865*b,.712*c);a.lineTo(.5027*b,c);a.close();a.moveTo(.5027*b,c);a.lineTo(.5865*b,.712*c);a.lineTo(.9176*b,.43*c);a.lineTo(b,.566*c);a.close();a.moveTo(0,.572*c);a.lineTo(.0892*b,.422*c);a.moveTo(.5027*b,c);a.lineTo(.4189*
|
|
b,.708*c);a.moveTo(.9176*b,.43*c);a.lineTo(.9176*b,.29*c);a.stroke();a.setStrokeWidth(1.6*d);a.setLineJoin("square");a.begin();a.moveTo(.4973*b,.1523*c);a.lineTo(.5608*b,.0982*c);a.lineTo(.6581*b,.1844*c);a.lineTo(.5986*b,.2365*c);a.close();a.moveTo(.3784*b,.2164*c);a.lineTo(.5054*b,.2305*c);a.lineTo(.5203*b,.3407*c);a.lineTo(.3892*b,.3246*c);a.close();a.moveTo(.2932*b,.3246*c);a.lineTo(.3919*b,.4128*c);a.lineTo(.3334*b,.4647*c);a.lineTo(.2357*b,.38*c);a.close();a.moveTo(.4568*b,.4649*c);a.lineTo(.5554*
|
|
b,.5511*c);a.lineTo(.4932*b,.6032*c);a.lineTo(.3946*b,.517*c);a.close();a.moveTo(.5473*b,.1924*c);a.lineTo(.5027*b,.2365*c);a.moveTo(.4*b,.3186*c);a.lineTo(.3446*b,.3667*c);a.moveTo(.5189*b,.3387*c);a.lineTo(.6081*b,.4148*c);a.lineTo(.5068*b,.501*c);a.stroke();a.setStrokeColor("#292929");a.begin();a.moveTo(0,.572*c);a.lineTo(.0865*b,.284*c);a.lineTo(.4203*b,0);a.lineTo(.5865*b,0);a.lineTo(.919*b,.286*c);a.lineTo(b,.566*c);a.lineTo(.5027*b,c);a.close();a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dDecider.prototype.cst.DECIDER,mxShapeAws3dDecider);function mxShapeAws3dSearchEngine(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dSearchEngine,mxShape);mxShapeAws3dSearchEngine.prototype.cst={SEARCH_ENGINE:"mxgraph.aws3d.searchEngine",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dSearchEngine.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/180,d*c/192);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dSearchEngine.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7281*c);a.lineTo(.1667*b,.5444*c);a.lineTo(.1667*b,.1832*c);a.lineTo(.5011*b,0);a.lineTo(.8333*b,.1832*c);a.lineTo(.8333*b,.5446*c);a.lineTo(b,.7281*c);a.lineTo(.7486*b,.7735*c);a.lineTo(.5819*b,.8617*c);a.lineTo(.5011*b,c);a.lineTo(.4169*b,.8653*c);a.lineTo(.2475*b,.7704*c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dSearchEngine.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dSearchEngine.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(.1672*b,.1837*c);a.lineTo(.4989*b,.3638*c);a.lineTo(.4989*b,.7291*c);a.lineTo(.5825*b,.8633*c);a.lineTo(.4989*b,c);a.lineTo(.4164*b,.8622*c);a.lineTo(.2458*
|
|
b,.7719*c);a.lineTo(0,.7276*c);a.lineTo(.1661*b,.5454*c);a.close();a.moveTo(.7486*b,.7714*c);a.lineTo(.8317*b,.5459*c);a.lineTo(b,.727*c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.4989*b,.3643*c);a.lineTo(.8317*b,.1827*c);a.lineTo(.8317*b,.5465*c);a.lineTo(.7508*b,.7714*c);a.lineTo(.5836*b,.8633*c);a.lineTo(.4989*b,.727*c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(.1672*b,.1837*c);a.lineTo(.4989*b,.3638*c);a.lineTo(.4989*
|
|
b,.7291*c);a.lineTo(.5825*b,.8633*c);a.lineTo(.4989*b,c);a.lineTo(.4164*b,.8622*c);a.lineTo(.2458*b,.7719*c);a.lineTo(0,.7276*c);a.lineTo(.1661*b,.5454*c);a.close();a.moveTo(.7486*b,.7714*c);a.lineTo(.8317*b,.5459*c);a.lineTo(b,.727*c);a.close();a.moveTo(.4989*b,.3643*c);a.lineTo(.8317*b,.1827*c);a.lineTo(.8317*b,.5465*c);a.lineTo(.7508*b,.7714*c);a.lineTo(.5836*b,.8633*c);a.lineTo(.4989*b,.727*c);a.close();a.moveTo(.1667*b,.5459*c);a.lineTo(.2486*b,.7704*c);a.moveTo(.4164*b,.8633*c);a.lineTo(.4989*
|
|
b,.727*c);a.lineTo(.4989*b,c);a.stroke();a.restore();a.setShadow(!1);d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.3427*b,.179*c);a.arcTo(.0277*b,.0261*c,0,0,1,.3267*b,.1487*c);a.arcTo(.0664*b,.0365*c,0,0,1,.3621*b,.1227*c);a.arcTo(.1052*b,.0992*c,0,0,1,.4247*b,.1195*c);a.arcTo(.1274*b,.12*c,0,0,1,.4884*b,.1018*c);a.arcTo(.1329*b,.1253*c,0,0,1,.5548*b,.1112*c);a.arcTo(.0377*b,.0344*c,0,0,1,.572*b,.166*c);a.arcTo(.0388*b,.0365*c,0,0,1,.6047*b,.1775*
|
|
c);a.arcTo(.021*b,.0198*c,0,0,1,.5936*b,.2046*c);a.arcTo(.0332*b,.0313*c,0,0,1,.6008*b,.2416*c);a.arcTo(.072*b,.0678*c,0,0,1,.5437*b,.2677*c);a.arcTo(.1052*b,.0939*c,0,0,1,.4828*b,.2563*c);a.close();a.moveTo(.448*b,.2156*c);a.arcTo(.0111*b,.0104*c,0,0,0,.459*b,.2255*c);a.arcTo(.0138*b,.013*c,0,0,0,.4729*b,.2182*c);a.lineTo(.4773*b,.1874*c);a.arcTo(.0664*b,.0626*c,0,0,0,.5116*b,.1759*c);a.arcTo(.0277*b,.0626*c,0,0,0,.5233*b,.1503*c);a.arcTo(.0554*b,.0261*c,0,0,0,.5022*b,.1336*c);a.arcTo(.0886*b,.0835*
|
|
c,0,0,0,.4607*b,.1305*c);a.arcTo(.0664*b,.0626*c,0,0,0,.4313*b,.142*c);a.arcTo(.0332*b,.0313*c,0,0,0,.4175*b,.1597*c);a.arcTo(.0249*b,.0235*c,0,0,0,.4313*b,.1822*c);a.arcTo(.0443*b,.0418*c,0,0,0,.4535*b,.1884*c);a.close();a.moveTo(.4718*b,.1764*c);a.arcTo(.0443*b,.0418*c,0,0,1,.4496*b,.1754*c);a.arcTo(.0221*b,.0157*c,0,0,1,.4369*b,.1634*c);a.arcTo(.0221*b,.0183*c,0,0,1,.4496*b,.1467*c);a.arcTo(.0609*b,.0574*c,0,0,1,.4759*b,.1414*c);a.arcTo(.0388*b,.0365*c,0,0,1,.5033*b,.1514*c);a.arcTo(.0443*b,.0209*
|
|
c,0,0,1,.495*b,.1701*c);a.arcTo(.0388*b,.0365*c,0,0,1,.4718*b,.1764*c);a.close();a.fill();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7281*c);a.lineTo(.1667*b,.5444*c);a.lineTo(.1667*b,.1832*c);a.lineTo(.5011*b,0);a.lineTo(.8333*b,.1832*c);a.lineTo(.8333*b,.5446*c);a.lineTo(b,.7281*c);a.lineTo(.7486*b,.7735*c);a.lineTo(.5819*b,.8617*c);a.lineTo(.5011*b,c);a.lineTo(.4169*b,.8653*c);a.lineTo(.2475*b,.7704*c);a.close();a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dSearchEngine.prototype.cst.SEARCH_ENGINE,mxShapeAws3dSearchEngine);function mxShapeAws3dSecurityTokenService(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dSecurityTokenService,mxShape);mxShapeAws3dSecurityTokenService.prototype.cst={SECURITY_TOKEN_SERVICE:"mxgraph.aws3d.securityTokenService",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dSecurityTokenService.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/180,d*c/192);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dSecurityTokenService.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.7281*c);a.lineTo(.1667*b,.5444*c);a.lineTo(.1667*b,.1832*c);a.lineTo(.5011*b,0);a.lineTo(.8333*b,.1832*c);a.lineTo(.8333*b,.5446*c);a.lineTo(b,.7281*c);a.lineTo(.7486*b,.7735*c);a.lineTo(.5819*b,.8617*c);a.lineTo(.5011*b,c);a.lineTo(.4169*b,.8653*c);a.lineTo(.2475*b,.7704*c);a.close();
|
|
a.fillAndStroke()};
|
|
mxShapeAws3dSecurityTokenService.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dSecurityTokenService.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(.1672*b,.1837*c);a.lineTo(.4989*b,.3638*c);a.lineTo(.4989*b,.7291*c);a.lineTo(.5825*b,.8633*c);a.lineTo(.4989*b,c);a.lineTo(.4164*b,
|
|
.8622*c);a.lineTo(.2458*b,.7719*c);a.lineTo(0,.7276*c);a.lineTo(.1661*b,.5454*c);a.close();a.moveTo(.7486*b,.7714*c);a.lineTo(.8317*b,.5459*c);a.lineTo(b,.727*c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.4989*b,.3643*c);a.lineTo(.8317*b,.1827*c);a.lineTo(.8317*b,.5465*c);a.lineTo(.7508*b,.7714*c);a.lineTo(.5836*b,.8633*c);a.lineTo(.4989*b,.727*c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(.1672*b,.1837*c);a.lineTo(.4989*
|
|
b,.3638*c);a.lineTo(.4989*b,.7291*c);a.lineTo(.5825*b,.8633*c);a.lineTo(.4989*b,c);a.lineTo(.4164*b,.8622*c);a.lineTo(.2458*b,.7719*c);a.lineTo(0,.7276*c);a.lineTo(.1661*b,.5454*c);a.close();a.moveTo(.7486*b,.7714*c);a.lineTo(.8317*b,.5459*c);a.lineTo(b,.727*c);a.close();a.moveTo(.4989*b,.3643*c);a.lineTo(.8317*b,.1827*c);a.lineTo(.8317*b,.5465*c);a.lineTo(.7508*b,.7714*c);a.lineTo(.5836*b,.8633*c);a.lineTo(.4989*b,.727*c);a.close();a.moveTo(.1667*b,.5459*c);a.lineTo(.2486*b,.7704*c);a.moveTo(.4164*
|
|
b,.8633*c);a.lineTo(.4989*b,.727*c);a.lineTo(.4989*b,c);a.stroke();a.restore();a.setShadow(!1);d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.4773*b,.1915*c);a.arcTo(.1274*b,.12*c,0,0,1,.4358*b,.1968*c);a.arcTo(.1107*b,.1044*c,0,0,1,.3937*b,.1905*c);a.arcTo(.0554*b,.0522*c,0,0,1,.3682*b,.1707*c);a.arcTo(.0332*b,.0313*c,0,0,1,.3699*b,.1414*c);a.arcTo(.0775*b,.0731*c,0,0,1,.4009*b,.118*c);a.arcTo(.1107*b,.1044*c,0,0,1,.4524*b,.1059*c);a.arcTo(.1107*
|
|
b,.1044*c,0,0,1,.5028*b,.1112*c);a.arcTo(.0664*b,.0626*c,0,0,1,.531*b,.1315*c);a.arcTo(.0332*b,.0313*c,0,0,1,.531*b,.1597*c);a.lineTo(.5615*b,.1754*c);a.lineTo(.5526*b,.1905*c);a.lineTo(.5759*b,.1999*c);a.lineTo(.5753*b,.2109*c);a.lineTo(.5792*b,.2161*c);a.lineTo(.6135*b,.2182*c);a.lineTo(.6113*b,.2416*c);a.lineTo(.5819*b,.2474*c);a.close();a.moveTo(.4756*b,.1816*c);a.arcTo(.0554*b,.0522*c,0,0,0,.5*b,.1691*c);a.arcTo(.0332*b,.0313*c,0,0,0,.5144*b,.1435*c);a.arcTo(.0277*b,.0261*c,0,0,0,.4967*b,.1247*
|
|
c);a.arcTo(.0554*b,.0522*c,0,0,0,.4729*b,.1174*c);a.arcTo(.1107*b,.1044*c,0,0,0,.4452*b,.1169*c);a.arcTo(.0831*b,.0783*c,0,0,0,.4197*b,.1232*c);a.arcTo(.0554*b,.0522*c,0,0,0,.397*b,.1357*c);a.arcTo(.0388*b,.0365*c,0,0,0,.3859*b,.1555*c);a.arcTo(.0305*b,.0287*c,0,0,0,.4053*b,.178*c);a.arcTo(.072*b,.0678*c,0,0,0,.4385*b,.1863*c);a.arcTo(.0831*b,.0783*c,0,0,0,.4596*b,.1848*c);a.arcTo(.0664*b,.0626*c,0,0,0,.4756*b,.1816*c);a.fill();a.setStrokeWidth(1.5*f);a.setLineJoin("round");a.setLineCap("round");
|
|
a.begin();a.moveTo(.4939*b,.1326*c);a.lineTo(.4474*b,.1508*c);a.lineTo(.4812*b,.1576*c);a.moveTo(.4889*b,.1733*c);a.lineTo(.4939*b,.1775*c);a.moveTo(.5061*b,.1576*c);a.lineTo(.5199*b,.1597*c);a.moveTo(.5094*b,.1394*c);a.lineTo(.5244*b,.1378*c);a.moveTo(.4945*b,.1247*c);a.lineTo(.4994*b,.1185*c);a.moveTo(.4679*b,.1175*c);a.lineTo(.4707*b,.1117*c);a.moveTo(.4396*b,.1195*c);a.lineTo(.4374*b,.1138*c);a.moveTo(.412*b,.1284*c);a.lineTo(.4059*b,.1232*c);a.moveTo(.3948*b,.1441*c);a.lineTo(.3804*b,.1425*c);
|
|
a.moveTo(.3931*b,.1608*c);a.lineTo(.3804*b,.1649*c);a.moveTo(.4059*b,.1754*c);a.lineTo(.3998*b,.1801*c);a.moveTo(.4308*b,.1822*c);a.lineTo(.4286*b,.1884*c);a.moveTo(.4618*b,.1827*c);a.lineTo(.4635*b,.1868*c);a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.begin();a.moveTo(0,.7281*c);a.lineTo(.1667*b,.5444*c);a.lineTo(.1667*b,.1832*c);a.lineTo(.5011*b,0);a.lineTo(.8333*b,.1832*c);a.lineTo(.8333*b,.5446*c);a.lineTo(b,.7281*c);a.lineTo(.7486*b,.7735*c);a.lineTo(.5819*b,.8617*c);a.lineTo(.5011*
|
|
b,c);a.lineTo(.4169*b,.8653*c);a.lineTo(.2475*b,.7704*c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dSecurityTokenService.prototype.cst.SECURITY_TOKEN_SERVICE,mxShapeAws3dSecurityTokenService);function mxShapeAws3dGlacier(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dGlacier,mxShape);mxShapeAws3dGlacier.prototype.cst={GLACIER:"mxgraph.aws3d.glacier",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dGlacier.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/180,d*c/192);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dGlacier.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.8177*c);a.lineTo(0,.5448*c);a.lineTo(.168*b,.1792*c);a.lineTo(.5008*b,0);a.lineTo(.8309*b,.1812*c);a.lineTo(b,.5469*c);a.lineTo(b,.8188*c);a.lineTo(.6661*b,c);a.lineTo(.3333*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dGlacier.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dGlacier.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(.1658*b,.1802*c);a.lineTo(.5008*b,.3651*c);a.lineTo(.6661*b,.9089*c);a.lineTo(.6661*b,c);a.lineTo(.3339*b,c);a.lineTo(0,.8177*c);a.lineTo(0,.5427*c);a.close();
|
|
a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.5008*b,.362*c);a.lineTo(.8314*b,.1823*c);a.lineTo(b,.5469*c);a.lineTo(b,.8177*c);a.lineTo(.6661*b,c);a.lineTo(.6661*b,.9089*c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(.1658*b,.1802*c);a.lineTo(.5008*b,.3651*c);a.lineTo(.6661*b,.9089*c);a.lineTo(.6661*b,c);a.lineTo(.3339*b,c);a.lineTo(0,.8177*c);a.lineTo(0,.5427*c);a.close();a.moveTo(.5008*b,.362*c);a.lineTo(.8314*b,.1823*c);a.lineTo(b,
|
|
.5469*c);a.lineTo(b,.8177*c);a.lineTo(.6661*b,c);a.lineTo(.6661*b,.9089*c);a.close();a.moveTo(.1675*b,.1797*c);a.lineTo(0,.7281*c);a.lineTo(.3284*b,.9089*c);a.lineTo(.6661*b,.9089*c);a.lineTo(b,.7266*c);a.lineTo(.8309*b,.1823*c);a.moveTo(.5003*b,.362*c);a.lineTo(.3311*b,.9089*c);a.lineTo(.3311*b,c);a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.begin();a.moveTo(0,.8177*c);a.lineTo(0,.5448*c);a.lineTo(.168*b,.1792*c);a.lineTo(.5008*b,0);a.lineTo(.8309*b,.1812*c);a.lineTo(b,.5469*c);
|
|
a.lineTo(b,.8188*c);a.lineTo(.6661*b,c);a.lineTo(.3333*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dGlacier.prototype.cst.GLACIER,mxShapeAws3dGlacier);function mxShapeAws3dCustomerGateway(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dCustomerGateway,mxShape);mxShapeAws3dCustomerGateway.prototype.cst={CUSTOMER_GATEWAY:"mxgraph.aws3d.customerGateway",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dCustomerGateway.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/116.7,d*c/102.8);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dCustomerGateway.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.save();a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(.4199*b,.5447*c);a.lineTo(.4199*b,.035*c);a.lineTo(.8946*b,0);a.lineTo(b,.0691*c);a.lineTo(b,.4134*c);a.lineTo(.6812*b,.7247*c);a.close();a.fillAndStroke();a.restore();a.save();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS,
|
|
"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(.4199*b,.5447*c);a.lineTo(.4199*b,.035*c);a.lineTo(.6838*b,.2072*c);a.lineTo(.6838*b,.7247*c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.6838*b,.2072*c);a.lineTo(b,.0691*c);a.lineTo(b,.4134*c);a.lineTo(.6838*b,.7247*c);a.close();a.fill();a.restore();a.setShadow(!1);a.begin();a.moveTo(.4199*b,.5447*c);a.lineTo(.4199*b,.035*
|
|
c);a.lineTo(.6838*b,.2072*c);a.lineTo(.6838*b,.7247*c);a.close();a.stroke();a.restore();a.setLineJoin("round");a.setShadow(!1);a.begin();a.moveTo(.6838*b,.2072*c);a.lineTo(b,.0691*c);a.lineTo(b,.4134*c);a.lineTo(.6838*b,.7247*c);a.close();a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.begin();a.moveTo(.4199*b,.5447*c);a.lineTo(.4199*b,.035*c);a.lineTo(.8946*b,0);a.lineTo(b,.0691*c);a.lineTo(b,.4134*c);a.lineTo(.6812*b,.7247*c);a.close();a.stroke();a.restore();a.setStrokeWidth(2*f);
|
|
a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.929*c);a.lineTo(0,.5866*c);a.lineTo(.3171*b,.1031*c);a.lineTo(.5784*b,.2753*c);a.lineTo(.5784*b,.7928*c);a.lineTo(.1054*b,c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dCustomerGateway.prototype.foreground=function(a,d,e,b,c,f){a.restore();d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setShadow(!1);a.setLineJoin("round");a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");var g=mxUtils.getValue(this.state.style,"flipH","0");"0"==g?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(0,.929*c);a.lineTo(0,.5866*c);a.lineTo(.1054*b,.6537*
|
|
c);a.lineTo(.1054*b,c);a.close();a.fill();"0"==g?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();a.moveTo(.1054*b,c);a.lineTo(.1054*b,.6537*c);a.lineTo(.5784*b,.2753*c);a.lineTo(.5784*b,.7928*c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(0,.929*c);a.lineTo(0,.5866*c);a.lineTo(.1054*b,.6537*c);a.lineTo(.1054*b,c);a.close();a.stroke();a.begin();a.moveTo(.1054*b,c);a.lineTo(.1054*b,.6537*c);a.lineTo(.5784*b,.2753*c);a.lineTo(.5784*b,.7928*c);a.close();a.stroke();
|
|
a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.929*c);a.lineTo(0,.5866*c);a.lineTo(.3171*b,.1031*c);a.lineTo(.5784*b,.2753*c);a.lineTo(.5784*b,.7928*c);a.lineTo(.1054*b,c);a.close();a.stroke();a.setFillColor(d);a.begin();a.moveTo(.7575*b,.3969*c);a.arcTo(.2142*b,.2432*c,0,0,1,.7686*b,.3259*c);a.arcTo(.2142*b,.2432*c,0,0,1,.8055*b,.2481*c);a.arcTo(.2142*b,.2432*c,0,0,1,.8406*b,.2091*c);a.lineTo(.8269*b,.2665*c);a.lineTo(.8372*b,.2607*c);a.lineTo(.8372*
|
|
b,.3444*c);a.lineTo(.7832*b,.3804*c);a.lineTo(.7832*b,.3658*c);a.close();a.moveTo(.8466*b,.2082*c);a.arcTo(.0514*b,.0584*c,0,0,1,.8766*b,.1955*c);a.arcTo(.0514*b,.0584*c,0,0,1,.9186*b,.2286*c);a.arcTo(.12*b,.1362*c,0,0,1,.9297*b,.2821*c);a.lineTo(.9006*b,.2831*c);a.lineTo(.9006*b,.3016*c);a.lineTo(.85*b,.3366*c);a.lineTo(.85*b,.251*c);a.lineTo(.8586*b,.2471*c);a.close();a.moveTo(.9297*b,.2967*c);a.arcTo(.2142*b,.2432*c,0,0,1,.9195*b,.3667*c);a.arcTo(.2571*b,.2918*c,0,0,1,.8869*b,.4436*c);a.arcTo(.1714*
|
|
b,.1946*c,0,0,1,.8466*b,.4903*c);a.lineTo(.8595*b,.4358*c);a.lineTo(.8492*b,.4416*c);a.lineTo(.8492*b,.357*c);a.lineTo(.9006*b,.32004*c);a.lineTo(.9006*b,.3346*c);a.close();a.moveTo(.838*b,.4942*c);a.arcTo(.0857*b,.0973*c,0,0,1,.8072*b,.5049*c);a.arcTo(.0514*b,.0584*c,0,0,1,.7712*b,.4815*c);a.arcTo(.1714*b,.1946*c,0,0,1,.7566*b,.4163*c);a.lineTo(.7832*b,.4173*c);a.lineTo(.7832*b,.4008*c);a.lineTo(.8372*b,.3638*c);a.lineTo(.8372*b,.4494*c);a.lineTo(.8278*b,.4562*c);a.close();a.fill()};
|
|
mxCellRenderer.registerShape(mxShapeAws3dCustomerGateway.prototype.cst.CUSTOMER_GATEWAY,mxShapeAws3dCustomerGateway);function mxShapeAws3dRedshift(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dRedshift,mxShape);mxShapeAws3dRedshift.prototype.cst={REDSHIFT:"mxgraph.aws3d.redshift",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dRedshift.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/149.5,d*c/187.5);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dRedshift.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.6517*c);a.lineTo(0,.0912*c);a.lineTo(.0368*b,.0155*c);a.lineTo(.2047*b,0);a.lineTo(.3378*b,.0619*c);a.lineTo(.3378*b,.0912*c);a.lineTo(.3819*b,.0693*c);a.lineTo(.6154*b,.0693*c);a.lineTo(.8502*b,.1776*c);a.lineTo(.8502*b,.3083*c);a.lineTo(.8682*b,.3061*c);a.lineTo(b,.3664*c);a.lineTo(b,.9099*c);
|
|
a.lineTo(.9672*b,.9861*c);a.lineTo(.7926*b,c);a.lineTo(.6629*b,.9392*c);a.lineTo(.6629*b,.9099*c);a.lineTo(.6167*b,.9317*c);a.lineTo(.3813*b,.9317*c);a.lineTo(.1478*b,.8219*c);a.lineTo(.1478*b,.7093*c);a.lineTo(.1365*b,.7163*c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dRedshift.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dRedshift.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(0,.6541*c);a.lineTo(0,.0933*c);a.lineTo(.1371*b,.1573*c);a.lineTo(.1371*b,.7157*c);a.close();a.moveTo(.1485*b,.8219*c);a.lineTo(.1485*b,.2864*c);a.lineTo(.3846*
|
|
b,.3941*c);a.lineTo(.3846*b,.9317*c);a.close();a.moveTo(.6642*b,.9392*c);a.lineTo(.6642*b,.4011*c);a.lineTo(.796*b,.4597*c);a.lineTo(.796*b,c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.1371*b,.7157*c);a.lineTo(.1371*b,.1568*c);a.lineTo(.2027*b,.1525*c);a.lineTo(.1498*b,.1771*c);a.lineTo(.1498*b,.7061*c);a.close();a.moveTo(.3846*b,.3941*c);a.lineTo(.614*b,.3941*c);a.lineTo(.6809*b,.3632*c);a.lineTo(.6642*b,.4*c);a.lineTo(.6642*b,.9067*c);a.lineTo(.6191*b,.9317*
|
|
c);a.lineTo(.3833*b,.9317*c);a.close();a.moveTo(.796*b,.4608*c);a.lineTo(.9639*b,.4469*c);a.lineTo(b,.3691*c);a.lineTo(b,.9077*c);a.lineTo(.9686*b,.9856*c);a.lineTo(.796*b,c);a.close();a.moveTo(.3378*b,.0608*c);a.lineTo(.3378*b,.0907*c);a.lineTo(.3197*b,.1008*c);a.close();a.moveTo(.8502*b,.2843*c);a.lineTo(.8502*b,.3083*c);a.lineTo(.794*b,.3136*c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(0,.6541*c);a.lineTo(0,.0933*c);a.lineTo(.1371*b,.1573*c);a.lineTo(.1371*
|
|
b,.7157*c);a.close();a.moveTo(.1485*b,.8219*c);a.lineTo(.1485*b,.2864*c);a.lineTo(.3846*b,.3941*c);a.lineTo(.3846*b,.9317*c);a.close();a.moveTo(.6642*b,.9392*c);a.lineTo(.6642*b,.4011*c);a.lineTo(.796*b,.4597*c);a.lineTo(.796*b,c);a.close();a.moveTo(.1371*b,.7157*c);a.lineTo(.1371*b,.1568*c);a.lineTo(.2027*b,.1525*c);a.lineTo(.1498*b,.1771*c);a.lineTo(.1498*b,.7061*c);a.close();a.moveTo(.3846*b,.3941*c);a.lineTo(.614*b,.3941*c);a.lineTo(.6809*b,.3632*c);a.lineTo(.6642*b,.4*c);a.lineTo(.6642*b,.9067*
|
|
c);a.lineTo(.6191*b,.9317*c);a.lineTo(.3833*b,.9317*c);a.close();a.moveTo(.796*b,.4608*c);a.lineTo(.9639*b,.4469*c);a.lineTo(b,.3691*c);a.lineTo(b,.9077*c);a.lineTo(.9686*b,.9856*c);a.lineTo(.796*b,c);a.close();a.moveTo(.3378*b,.0608*c);a.lineTo(.3378*b,.0907*c);a.lineTo(.3197*b,.1008*c);a.close();a.moveTo(.8502*b,.2843*c);a.lineTo(.8502*b,.3083*c);a.lineTo(.794*b,.3136*c);a.close();a.moveTo(.6167*b,.3941*c);a.lineTo(.6167*b,.9317*c);a.moveTo(.9652*b,.4448*c);a.lineTo(.9652*b,.9851*c);a.stroke();
|
|
a.restore();a.setShadow(!1);d=mxUtils.getValue(this.state.style,"strokeColor","#000000");a.setFillColor(d);a.begin();a.moveTo(.4903*b,.1259*c);a.arcTo(.01*b,.008*c,0,0,1,.5023*b,.1189*c);a.arcTo(.2007*b,.16*c,0,0,1,.5639*b,.1333*c);a.arcTo(.602*b,.48*c,0,0,1,.7157*b,.2005*c);a.arcTo(.2006*b,.16*c,0,0,1,.7565*b,.2315*c);a.arcTo(.01*b,.008*c,0,0,1,.7445*b,.2421*c);a.arcTo(.2676*b,.2133*c,0,0,1,.6742*b,.2251*c);a.arcTo(.602*b,.48*c,0,0,1,.5204*b,.1541*c);a.arcTo(.1338*b,.1067*c,0,0,1,.4903*b,.1259*c);
|
|
a.close();a.moveTo(.4789*b,.1275*c);a.arcTo(.0334*b,.0267*c,0,0,0,.487*b,.1461*c);a.arcTo(.1672*b,.1333*c,0,0,0,.5237*b,.1728*c);a.arcTo(.6689*b,.5333*c,0,0,0,.6609*b,.2352*c);a.arcTo(.2676*b,.2133*c,0,0,0,.7244*b,.2501*c);a.arcTo(.0201*b,.016*c,0,0,0,.7411*b,.2475*c);a.lineTo(.5385*b,.3408*c);a.arcTo(.0669*b,.05333*c,0,0,1,.512*b,.3397*c);a.arcTo(.2676*b,.2133*c,0,0,1,.4548*b,.3248*c);a.arcTo(.6689*b,.5333*c,0,0,1,.3084*b,.2565*c);a.arcTo(.1672*b,.1333*c,0,0,1,.2776*b,.2304*c);a.arcTo(.01*b,.008*
|
|
c,0,0,1,.2776*b,.2197*c);a.close();a.fill();d=mxUtils.getValue(this.state.style,"fillColor","#ffffff");a.setFillColor(d);a.setLineJoin("round");a.setLineCap("round");a.begin();a.moveTo(.3398*b,.2421*c);a.lineTo(.4769*b,.1797*c);a.lineTo(.6341*b,.2512*c);a.lineTo(.4936*b,.3147*c);a.fill();a.begin();a.moveTo(.4334*b,.1941*c);a.lineTo(.6207*b,.2811*c);a.moveTo(.5338*b,.1995*c);a.lineTo(.3866*b,.2688*c);a.moveTo(.5873*b,.2235*c);a.lineTo(.4334*b,.2955*c);a.stroke();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");
|
|
a.begin();a.moveTo(0,.6517*c);a.lineTo(0,.0912*c);a.lineTo(.0368*b,.0155*c);a.lineTo(.2047*b,0);a.lineTo(.3378*b,.0619*c);a.lineTo(.3378*b,.0912*c);a.lineTo(.3819*b,.0693*c);a.lineTo(.6154*b,.0693*c);a.lineTo(.8502*b,.1776*c);a.lineTo(.8502*b,.3083*c);a.lineTo(.8682*b,.3061*c);a.lineTo(b,.3664*c);a.lineTo(b,.9099*c);a.lineTo(.9672*b,.9861*c);a.lineTo(.7926*b,c);a.lineTo(.6629*b,.9392*c);a.lineTo(.6629*b,.9099*c);a.lineTo(.6167*b,.9317*c);a.lineTo(.3813*b,.9317*c);a.lineTo(.1478*b,.8219*c);a.lineTo(.1478*
|
|
b,.7093*c);a.lineTo(.1365*b,.7163*c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dRedshift.prototype.cst.REDSHIFT,mxShapeAws3dRedshift);function mxShapeAws3dLambda(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dLambda,mxShape);mxShapeAws3dLambda.prototype.cst={LAMBDA:"mxgraph.aws3d.lambda",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dLambda.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));d=Math.min(d*b/92,d*c/109.5);this.background(a,0,0,b,c,d);a.setShadow(!1);this.foreground(a,0,0,b,c,d)};
|
|
mxShapeAws3dLambda.prototype.background=function(a,d,e,b,c,f){a.setStrokeWidth(f);a.save();a.save();a.save();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.1671*c);a.lineTo(.3424*b,0);a.lineTo(.663*b,0);a.lineTo(b,.1671*c);a.lineTo(b,.8365*c);a.lineTo(.663*b,c);a.lineTo(.3424*b,c);a.lineTo(0,.8365*c);a.close();a.fillAndStroke()};
|
|
mxShapeAws3dLambda.prototype.foreground=function(a,d,e,b,c,f){a.restore();a.setShadow(!1);a.setFillColor("#000000");d=mxUtils.getValue(this.state.style,mxShapeAws3dLambda.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");e=mxUtils.getValue(this.state.style,"flipH","0");"0"==e?a.setAlpha(d[0]):a.setAlpha(d[1]);a.begin();a.moveTo(0,.3242*c);a.lineTo(.3424*b,.4895*c);a.lineTo(.663*b,.4895*c);a.lineTo(.663*b,c);a.lineTo(.3424*b,c);a.lineTo(0,.8365*c);a.close();a.moveTo(0*b,0*c);a.lineTo(0*
|
|
b,0*c);a.lineTo(0*b,0*c);a.lineTo(0*b,0*c);a.lineTo(0*b,0*c);a.lineTo(0*b,0*c);a.close();a.moveTo(0*b,0*c);a.lineTo(0*b,0*c);a.lineTo(0*b,0*c);a.lineTo(0*b,0*c);a.lineTo(0*b,0*c);a.lineTo(0*b,0*c);a.close();a.fill();"0"==e?a.setAlpha(d[1]):a.setAlpha(d[0]);a.begin();a.moveTo(.663*b,.4895*c);a.lineTo(b,.3242*c);a.lineTo(b,.8365*c);a.lineTo(.663*b,c);a.close();a.fill();a.restore();a.setShadow(!1);a.setLineJoin("round");a.begin();a.moveTo(0,.3242*c);a.lineTo(.3424*b,.4895*c);a.lineTo(.663*b,.4895*c);
|
|
a.lineTo(b,.3242*c);a.moveTo(.3424*b,.4895*c);a.lineTo(.3424*b,c);a.moveTo(.663*b,.4895*c);a.lineTo(.663*b,c);a.stroke();a.setFillColor("#5E5E5E");a.begin();a.moveTo(.3804*b,.1169*c);a.arcTo(.5435*b,.4566*c,0,0,1,.6087*b,.1123*c);a.arcTo(.33804*b,.3196*c,0,0,1,.725*b,.1553*c);a.arcTo(.1304*b,.1096*c,0,0,1,.7924*b,.2402*c);a.arcTo(.1522*b,.1279*c,0,0,1,.725*b,.3333*c);a.arcTo(.4416*b,.274*c,0,0,1,.6087*b,.3772*c);a.arcTo(.5435*b,.4566*c,0,0,1,.3804*b,.3708*c);a.arcTo(.3804*b,.3196*c,0,0,1,.2772*b,
|
|
.3324*c);a.arcTo(.1522*b,.1279*c,0,0,1,.2163*b,.2539*c);a.arcTo(.1522*b,.1279*c,0,0,1,.2663*b,.1644*c);a.arcTo(.3804*b,.3196*c,0,0,1,.3804*b,.1169*c);a.fill();a.setFillColor("#ffffff");a.begin();a.moveTo(.5565*b,.2174*c);a.arcTo(.0652*b,.0548*c,0,0,0,.5837*b,.1945*c);a.arcTo(.0326*b,.0274*c,0,0,0,.5793*b,.1671*c);a.arcTo(.0652*b,.0548*c,0,0,0,.525*b,.1598*c);a.arcTo(.0652*b,.0548*c,0,0,1,.5543*b,.1443*c);a.arcTo(.0761*b,.0639*c,0,0,1,.6163*b,.1662*c);a.arcTo(.0598*b,.0502*c,0,0,1,.6087*b,.2091*c);
|
|
a.lineTo(.5*b,.3032*c);a.arcTo(.0978*b,.0822*c,0,0,0,.4728*b,.3379*c);a.arcTo(.0272*b,.0228*c,0,0,0,.4924*b,.3571*c);a.arcTo(.0326*b,.0274*c,0,0,1,.4489*b,.3571*c);a.arcTo(.038*b,.032*c,0,0,1,.437*b,.3242*c);a.arcTo(.1087*b,.0913*c,0,0,1,.4674*b,.2886*c);a.lineTo(.5141*b,.2557*c);a.lineTo(.3185*b,.2895*c);a.lineTo(.2641*b,.2648*c);a.close();a.fill();a.setStrokeWidth(2*f);a.setStrokeColor("#292929");a.begin();a.moveTo(0,.1671*c);a.lineTo(.3424*b,0);a.lineTo(.663*b,0);a.lineTo(b,.1671*c);a.lineTo(b,
|
|
.8365*c);a.lineTo(.663*b,c);a.lineTo(.3424*b,c);a.lineTo(0,.8365*c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dLambda.prototype.cst.LAMBDA,mxShapeAws3dLambda);function mxShapeAws3dEbs2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAws3dEbs2,mxShape);mxShapeAws3dEbs2.prototype.cst={EBS2:"mxgraph.aws3d.ebs2",SHADING_COLORS:"shadingCols"};
|
|
mxShapeAws3dEbs2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.state.style,"strokeWidth","1"));e=d*b/92;d=d*c/60;var f=parseFloat(mxUtils.getValue(this.state.style,"shadow","0"));d=Math.min(e,d);a.setStrokeWidth(d);a.setShadow(!1);a.save();a.save();a.setStrokeWidth(2*d);a.setStrokeColor("#292929");a.setLineJoin("round");1==f&&a.setShadow(!0);a.begin();a.moveTo(0,.5276*c);a.lineTo(0,.4188*c);a.lineTo(.071*b,.2898*c);a.lineTo(.4033*b,0);a.lineTo(.9301*
|
|
b,.464*c);a.lineTo(b,.5863*c);a.lineTo(b,.7035*c);a.lineTo(.6667*b,c);a.lineTo(.5355*b,c);a.close();a.fillAndStroke();a.restore();a.setFillColor("#000000");e=mxUtils.getValue(this.state.style,mxShapeAws3dEbs2.prototype.cst.SHADING_COLORS,"0.1,0.3").toString().split(",");f=mxUtils.getValue(this.state.style,"flipH","0");"0"==f?a.setAlpha(e[0]):a.setAlpha(e[1]);a.begin();a.moveTo(.071*b,.2948*c);a.lineTo(.6011*b,.7621*c);a.lineTo(.6667*b,c);a.lineTo(.5355*b,c);a.lineTo(0,.5276*c);a.lineTo(0,.4137*c);
|
|
a.close();a.fill();"0"==f?a.setAlpha(e[1]):a.setAlpha(e[0]);a.begin();a.moveTo(.6011*b,.7655*c);a.lineTo(.9344*b,.4724*c);a.lineTo(b,.7035*c);a.lineTo(.6667*b,c);a.close();a.fill();a.restore();a.setLineJoin("round");a.begin();a.moveTo(.071*b,.2948*c);a.lineTo(.6011*b,.7621*c);a.lineTo(.6667*b,c);a.lineTo(.5355*b,c);a.lineTo(0,.5276*c);a.lineTo(0,.4137*c);a.close();a.moveTo(.6011*b,.7655*c);a.lineTo(.9344*b,.4724*c);a.lineTo(b,.7035*c);a.lineTo(.6667*b,c);a.close();a.moveTo(.0033*b,.5276*c);a.lineTo(.071*
|
|
b,.2898*c);a.moveTo(.5325*b,.9976*c);a.lineTo(.603*b,.7593*c);a.stroke();a.setStrokeWidth(2*d);a.setLineCap("round");a.begin();a.moveTo(.3388*b,.3802*c);a.lineTo(.5027*b,.2345*c);a.lineTo(.6667*b,.3802*c);a.lineTo(.5027*b,.526*c);a.close();a.moveTo(.4426*b,.3802*c);a.lineTo(.5027*b,.3266*c);a.lineTo(.5628*b,.3802*c);a.lineTo(.5027*b,.4338*c);a.close();a.moveTo(.3867*b,.3284*c);a.lineTo(.3541*b,.2998*c);a.moveTo(.4436*b,.2748*c);a.lineTo(.4077*b,.2412*c);a.moveTo(.5704*b,.2803*c);a.lineTo(.5992*b,
|
|
.2513*c);a.moveTo(.6231*b,.3284*c);a.lineTo(.6503*b,.3032*c);a.moveTo(.622*b,.4338*c);a.lineTo(.6557*b,.4606*c);a.moveTo(.5667*b,.4845*c);a.lineTo(.5992*b,.5156*c);a.moveTo(.4414*b,.4874*c);a.lineTo(.412*b,.5159*c);a.moveTo(.3889*b,.4405*c);a.lineTo(.3607*b,.4657*c);a.stroke();a.setStrokeColor("#292929");a.setLineJoin("round");a.begin();a.moveTo(0,.5276*c);a.lineTo(0,.4188*c);a.lineTo(.071*b,.2898*c);a.lineTo(.4033*b,0);a.lineTo(.9301*b,.464*c);a.lineTo(b,.5863*c);a.lineTo(b,.7035*c);a.lineTo(.6667*
|
|
b,c);a.lineTo(.5355*b,c);a.close();a.stroke()};mxCellRenderer.registerShape(mxShapeAws3dEbs2.prototype.cst.EBS2,mxShapeAws3dEbs2);function mxShapeAndroidTabBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAndroidTabBar,mxShape);
|
|
mxShapeAndroidTabBar.prototype.cst={MAIN_TEXT:"mainText",SHAPE_TAB_BAR:"mxgraph.android.tabBar",TEXT_COLOR:"textColor",TEXT_COLOR2:"textColor2",STROKE_COLOR2:"strokeColor2",FILL_COLOR2:"fillColor2",SELECTED:"+",TEXT_SIZE:"textSize"};
|
|
mxShapeAndroidTabBar.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxShapeAndroidTabBar.prototype.cst.MAIN_TEXT,"+Tab 1, Tab 2, Tab 3").toString().split(","),g=mxUtils.getValue(this.style,mxShapeAndroidTabBar.prototype.cst.TEXT_COLOR,"none"),h=mxUtils.getValue(this.style,mxShapeAndroidTabBar.prototype.cst.TEXT_COLOR2,"none"),k=mxUtils.getValue(this.style,mxShapeAndroidTabBar.prototype.cst.TEXT_SIZE,"17").toString(),l=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,
|
|
"none"),n=mxUtils.getValue(this.style,mxShapeAndroidTabBar.prototype.cst.STROKE_COLOR2,"none"),m=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"none"),p=mxUtils.getValue(this.style,mxShapeAndroidTabBar.prototype.cst.FILL_COLOR2,"none"),q=f.length,u=Array(q),t=0,v=-1,r=0;r<q;r++){var w=f[r];w.charAt(0)===mxShapeAndroidTabBar.prototype.cst.SELECTED&&(w=f[r].substring(1),v=r);u[r]=mxUtils.getSizeForString(w,k,mxConstants.DEFAULT_FONTFAMILY).width;t+=u[r]}c=Math.max(c,1.5*k,7);t=10*q+t;b=Math.max(b,
|
|
t);a.translate(d,e);this.background(a,b,c,q,u,5,t,l,n,m,p,v);a.setShadow(!1);a.setFontStyle(mxConstants.FONT_BOLD);for(r=d=0;r<q;r++)r===v?a.setFontColor(h):a.setFontColor(g),d+=5,this.buttonText(a,d,c,f[r],u[r],k,t,b),d=d+u[r]+5};
|
|
mxShapeAndroidTabBar.prototype.background=function(a,d,e,b,c,f,g,h,k,l,n,m){a.begin();a.setStrokeColor(h);a.setFillColor(l);a.rect(0,0,d,e);a.fillAndStroke();a.setStrokeColor(k);a.begin();for(h=1;h<b;h++)if(h!==m&&h!==m+1){for(l=k=0;l<h;l++)k+=c[l]+2*f;k=k*d/g;a.moveTo(k,.2*e);a.lineTo(k,.8*e)}a.stroke();b=0;a.setFillColor(n);for(h=0;h<m;h++)b+=c[h]+2*f;b=b*d/g;d=(c[m]+2*f)*d/g;d+=b;a.rect(b,0,d-b,e);a.fill();a.setAlpha(1);a.setFillColor("#33b5e5");a.rect(b,.9*e,d-b,.1*e);a.fill()};
|
|
mxShapeAndroidTabBar.prototype.buttonText=function(a,d,e,b,c,f,g,h){b.charAt(0)===mxShapeAndroidTabBar.prototype.cst.SELECTED&&(b=b.substring(1));a.begin();a.setFontSize(f);a.text((d+.5*c)*h/g,.5*e,0,0,b,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeAndroidTabBar.prototype.cst.SHAPE_TAB_BAR]=mxShapeAndroidTabBar;
|
|
function mxShapeAndroidPhone(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAndroidPhone,mxShape);mxShapeAndroidPhone.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.roundrect(0,0,b,c,25,25);a.fillAndStroke();a.setShadow(!1);this.foreground(a,d,e,b,c,25)};
|
|
mxShapeAndroidPhone.prototype.foreground=function(a,d,e,b,c,f){a.rect(.0625*b,.15*c,.875*b,.7*c);a.stroke();a.ellipse(.4875*b,.04125*c,.025*b,.0125*c);a.stroke();a.roundrect(.375*b,.075*c,.25*b,.01875*c,.02*b,.01*c);a.stroke();a.ellipse(.4*b,.875*c,.2*b,.1*c);a.stroke();a.roundrect(.4575*b,.905*c,.085*b,.04375*c,.00625*c,.00625*c);a.stroke()};mxCellRenderer.prototype.defaultShapes["mxgraph.android.phone"]=mxShapeAndroidPhone;
|
|
function mxShapeAndroidStatusBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAndroidStatusBar,mxShape);mxShapeAndroidStatusBar.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeAndroidStatusBar.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fill()};
|
|
mxShapeAndroidStatusBar.prototype.foreground=function(a,d,e,b,c){a.rect(0,0,b,c);a.fill();a.setFontColor(mxUtils.getValue(this.style,mxConstants.STYLE_FONTCOLOR,"#222222"));a.setFontSize(mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"5"));a.text(b-30,.5*c+1,0,0,"12:00",mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setFillColor("#444444");a.begin();a.moveTo(b-37,.5*c+6);a.lineTo(b-37,.5*c-5);a.lineTo(b-36,.5*c-5);a.lineTo(b-36,.5*c-6);a.lineTo(b-32,.5*c-6);a.lineTo(b-32,
|
|
.5*c-5);a.lineTo(b-31,.5*c-5);a.lineTo(b-31,.5*c+6);a.close();a.fill();a.setFillColor(mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"none"));a.ellipse(b-56,.5*c+2,2,2);a.fillAndStroke();a.setStrokeWidth(2);a.begin();a.moveTo(b-52,.5*c+1);a.arcTo(3.5,3.5,0,0,0,b-58,.5*c+1);a.stroke();a.begin();a.moveTo(b-50,.5*c-1);a.arcTo(6,6,0,0,0,b-60,.5*c-1);a.stroke();a.setStrokeWidth(1);a.rect(b-51,.5*c+5,2,1);a.fill();a.rect(b-48,.5*c+2,2,4);a.fill();a.rect(b-45,.5*c-1,2,7);a.fill();a.rect(b-42,
|
|
.5*c-4,2,10);a.fill();a.rect(b-37,.5*c-2,6,8);a.fill()};mxCellRenderer.prototype.defaultShapes["mxgraph.android.statusBar"]=mxShapeAndroidStatusBar;function mxShapeAndroidCheckboxGroup(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAndroidCheckboxGroup,mxShape);mxShapeAndroidCheckboxGroup.prototype.cst={STYLE_TEXTCOLOR2:"textColor2",STYLE_STROKECOLOR2:"strokeColor2",BUTTON_TEXT:"buttonText",SELECTED:"+"};
|
|
mxShapeAndroidCheckboxGroup.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);var f=mxUtils.getValue(this.style,mxConstants.STYLE_TEXTCOLOR,"#666666"),g=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"8").toString();d=mxUtils.getValue(this.style,mxShapeAndroidCheckboxGroup.prototype.cst.BUTTON_TEXT,"Option 1").toString().split(",");var h=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"none");e=mxUtils.getValue(this.style,mxShapeAndroidCheckboxGroup.prototype.cst.STYLE_STROKECOLOR2,
|
|
"none");a.setStrokeColor(e);e=d.length;var k=Math.max(1.5*g,5),l=0,n=-1,m=e*k;c=Math.max(c,m);for(var p=0;p<e;p++){var q=d[p];q.charAt(0)===mxShapeAndroidCheckboxGroup.prototype.cst.SELECTED&&(q=d[p].substring(1),n=p);q=mxUtils.getSizeForString(q,g,mxConstants.DEFAULT_FONTFAMILY).width;q>l&&(l=q)}a.roundrect(0,0,Math.max(b,5+l+10),c,2.5,2.5);a.fillAndStroke();a.setShadow(!1);a.setFontSize(g);a.setFontColor(f);a.setStrokeColor(h);for(p=0;p<e;p++)b=(p*k+.5*k)*c/m,q=d[p],q.charAt(0)===mxShapeAndroidCheckboxGroup.prototype.cst.SELECTED&&
|
|
(q=d[p].substring(1),n=p),a.text(12.5,b,0,0,q,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),b-=2.5,n===p?(a.rect(2.5,b,5,5),a.fillAndStroke(),a.begin(),a.moveTo(3.75,b+2.5),a.lineTo(5,b+3.75),a.lineTo(6.25,b+1.25),a.stroke()):(a.rect(2.5,b,5,5),a.fillAndStroke()),n=-1};mxCellRenderer.prototype.defaultShapes["mxgraph.android.checkboxGroup"]=mxShapeAndroidCheckboxGroup;
|
|
function mxShapeAndroidRadioGroup(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAndroidRadioGroup,mxShape);mxShapeAndroidRadioGroup.prototype.cst={STYLE_TEXTCOLOR2:"textColor2",STYLE_STROKECOLOR2:"strokeColor2",BUTTON_TEXT:"buttonText",SELECTED:"+"};
|
|
mxShapeAndroidRadioGroup.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);var f=mxUtils.getValue(this.style,mxConstants.STYLE_TEXTCOLOR,"#666666"),g=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"8").toString();d=mxUtils.getValue(this.style,mxShapeAndroidRadioGroup.prototype.cst.BUTTON_TEXT,"Option 1").toString().split(",");var h=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"none");e=mxUtils.getValue(this.style,mxShapeAndroidRadioGroup.prototype.cst.STYLE_STROKECOLOR2,
|
|
"none");a.setStrokeColor(e);e=d.length;var k=Math.max(1.5*g,5),l=0,n=-1,m=e*k;c=Math.max(c,m);for(var p=0;p<e;p++){var q=d[p];q.charAt(0)===mxShapeAndroidRadioGroup.prototype.cst.SELECTED&&(q=d[p].substring(1),n=p);q=mxUtils.getSizeForString(q,g,mxConstants.DEFAULT_FONTFAMILY).width;q>l&&(l=q)}a.roundrect(0,0,Math.max(b,5+l+10),c,2.5,2.5);a.fillAndStroke();a.setShadow(!1);a.setFontSize(g);a.setFontColor(f);a.setStrokeColor(h);a.setFillColor(h);for(p=0;p<e;p++)b=(p*k+.5*k)*c/m,q=d[p],q.charAt(0)===
|
|
mxShapeAndroidRadioGroup.prototype.cst.SELECTED&&(q=d[p].substring(1),n=p),a.text(12.5,b,0,0,q,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),b-=2.5,n===p?(a.ellipse(2.5,b,5,5),a.stroke(),a.ellipse(3.75,b+1.25,2.5,2.5),a.fillAndStroke()):(a.ellipse(2.5,b,5,5),a.stroke())};mxCellRenderer.prototype.defaultShapes["mxgraph.android.radioGroup"]=mxShapeAndroidRadioGroup;
|
|
function mxShapeAndroidMenuBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAndroidMenuBar,mxShape);mxShapeAndroidMenuBar.prototype.cst={MENU_TEXT:"menuText"};
|
|
mxShapeAndroidMenuBar.prototype.paintVertexShape=function(a,d,e,b,c){for(var f=mxUtils.getValue(this.style,mxShapeAndroidMenuBar.prototype.cst.MENU_TEXT,"Item 1, Item 2, Item 3").toString().split(","),g=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"12"),h=f.length,k=0,l=0;l<h;l++){var n=mxUtils.getSizeForString(f[l],g,mxConstants.DEFAULT_FONTFAMILY).width;n>k&&(k=n)}g*=1.5;k=h*g;c=Math.max(c,k);a.translate(d,e);a.rect(0,0,b,c);a.fillAndStroke();a.setShadow(!1);a.begin();for(l=1;l<h;l++)d=
|
|
l*g*c/k,a.moveTo(0,d),a.lineTo(b,d);a.stroke();for(l=0;l<h;l++)n+=2.5,d=(l*g+.5*g)*c/k,a.text(10,d,0,0,f[l],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes["mxgraph.android.menuBar"]=mxShapeAndroidMenuBar;function mxShapeAndroidTextSelHandles(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAndroidTextSelHandles,mxShape);
|
|
mxShapeAndroidTextSelHandles.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"none");a.translate(d,e);d=Math.max(0,c-22.5);a.setAlpha(.5);a.rect(15,0,b-30,d);a.fill();a.begin();a.moveTo(0,c-15);a.lineTo(7.5,c-22.5);a.lineTo(15,c-15);a.close();a.moveTo(b-15,c-15);a.lineTo(b-7.5,c-22.5);a.lineTo(b,c-15);a.close();a.fill();a.setFillColor(f);a.rect(0,c-15,15,15);a.fill();a.rect(b-15,c-15,15,15);a.fill()};
|
|
mxCellRenderer.prototype.defaultShapes["mxgraph.android.textSelHandles"]=mxShapeAndroidTextSelHandles;function mxShapeAndroidIndeterminateSpinner(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAndroidIndeterminateSpinner,mxShape);mxShapeAndroidIndeterminateSpinner.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxShapeAndroidIndeterminateSpinner.prototype.background=function(a,d,e,b,c){a.setGradient("#aaaaaa","#dddddd",.325*b,0,.675*b,.5*c,mxConstants.DIRECTION_SOUTH,1,1);a.begin();a.moveTo(.5*b,.1*c);a.arcTo(.4*b,.4*c,0,0,0,.5*b,.9*c);a.lineTo(.5*b,c);a.arcTo(.5*b,.5*c,0,0,1,.5*b,0);a.close();a.fill();a.setGradient("#ffffff","#dddddd",.325*b,0,.675*b,.5*c,mxConstants.DIRECTION_SOUTH,1,1);a.begin();a.moveTo(.5*b,.1*c);a.arcTo(.4*b,.4*c,0,0,1,.5*b,.9*c);a.lineTo(.5*b,c);a.arcTo(.5*b,.5*c,0,0,0,.5*b,0);a.close();
|
|
a.fill()};mxCellRenderer.prototype.defaultShapes["mxgraph.android.indeterminateSpinner"]=mxShapeAndroidIndeterminateSpinner;function mxShapeAndroidAnchor(a,d,e,b){mxShape.call(this);this.bounds=a}mxUtils.extend(mxShapeAndroidAnchor,mxShape);mxShapeAndroidAnchor.prototype.cst={ANCHOR:"mxgraph.android.anchor"};mxShapeAndroidAnchor.prototype.paintVertexShape=function(a,d,e,b,c){};mxCellRenderer.registerShape(mxShapeAndroidAnchor.prototype.cst.ANCHOR,mxShapeAndroidAnchor);
|
|
function mxShapeAndroidRRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAndroidRRect,mxShape);mxShapeAndroidRRect.prototype.cst={RRECT:"mxgraph.android.rrect",R_SIZE:"rSize"};mxShapeAndroidRRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeAndroidRRect.prototype.cst.R_SIZE,"10"));a.roundrect(0,0,b,c,d);a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeAndroidRRect.prototype.cst.RRECT,mxShapeAndroidRRect);function mxShapeAndroidCheckbox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAndroidCheckbox,mxShape);mxShapeAndroidCheckbox.prototype.cst={CHECKBOX:"mxgraph.android.checkbox"};
|
|
mxShapeAndroidCheckbox.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,0,b,c);a.fillAndStroke();a.begin();a.moveTo(.8*b,.2*c);a.lineTo(.4*b,.8*c);a.lineTo(.25*b,.6*c);a.stroke()};mxCellRenderer.registerShape(mxShapeAndroidCheckbox.prototype.cst.CHECKBOX,mxShapeAndroidCheckbox);function mxShapeAndroidProgressBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx1=.8;this.dx2=.6}mxUtils.extend(mxShapeAndroidProgressBar,mxShape);
|
|
mxShapeAndroidProgressBar.prototype.cst={PROGRESS_BAR:"mxgraph.android.progressBar"};
|
|
mxShapeAndroidProgressBar.prototype.paintVertexShape=function(a,d,e,b,c){var f=b*Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx1",this.dx1)))),g=b*Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx2",this.dx2))));a.translate(d,e);a.save();a.save();a.setStrokeColor("#444444");a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.stroke();a.restore();a.setShadow(!1);a.begin();a.moveTo(0,.5*c);a.lineTo(f,.5*c);a.stroke();a.setStrokeColor("#000000");a.setAlpha("0.2");a.begin();
|
|
a.moveTo(0,.5*c);a.lineTo(f,.5*c);a.stroke();a.restore();a.setShadow(!1);a.begin();a.moveTo(0,.5*c);a.lineTo(g,.5*c);a.stroke()};mxCellRenderer.registerShape(mxShapeAndroidProgressBar.prototype.cst.PROGRESS_BAR,mxShapeAndroidProgressBar);mxShapeAndroidProgressBar.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeAndroidProgressBar.prototype.cst.PROGRESS_BAR]=function(a){var d=[Graph.createHandle(a,["dx1"],function(a){var b=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1))));return new mxPoint(a.x+b*a.width,a.y+a.height/2)},function(a,b){this.state.style.dx1=Math.round(100*Math.max(0,Math.min(1,(b.x-a.x)/a.width)))/100})];a=Graph.createHandle(a,["dx2"],function(a){var b=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dx2",this.dx1))));
|
|
return new mxPoint(a.x+b*a.width,a.y+a.height/2)},function(a,b){this.state.style.dx2=Math.round(100*Math.max(0,Math.min(1,(b.x-a.x)/a.width)))/100});d.push(a);return d};function mxShapeAndroidProgressScrubberDisabled(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=.3}mxUtils.extend(mxShapeAndroidProgressScrubberDisabled,mxShape);mxShapeAndroidProgressScrubberDisabled.prototype.cst={PROGRESS_SCRUBBER_DISABLED:"mxgraph.android.progressScrubberDisabled"};
|
|
mxShapeAndroidProgressScrubberDisabled.prototype.paintVertexShape=function(a,d,e,b,c){var f=b*Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));a.translate(d,e);a.save();a.save();a.setStrokeColor("#444444");a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.stroke();a.restore();a.setShadow(!1);a.setAlpha("0.5");a.setFillColor("#666666");a.begin();d=Math.min(c,.1*b)/2;a.ellipse(f-d,.5*c-d,2*d,2*d);a.fill();a.restore();a.setShadow(!1);a.begin();d=Math.min(c,.1*b)/8;a.ellipse(f-
|
|
d,.5*c-d,2*d,2*d);a.fill()};mxCellRenderer.registerShape(mxShapeAndroidProgressScrubberDisabled.prototype.cst.PROGRESS_SCRUBBER_DISABLED,mxShapeAndroidProgressScrubberDisabled);mxShapeAndroidProgressScrubberDisabled.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeAndroidProgressScrubberDisabled.prototype.cst.PROGRESS_SCRUBBER_DISABLED]=function(a){return[Graph.createHandle(a,["dx"],function(a){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx))));return new mxPoint(a.x+d*a.width,a.y+a.height/2)},function(a,e){this.state.style.dx=Math.round(100*Math.max(0,Math.min(1,(e.x-a.x)/a.width)))/100})]};
|
|
function mxShapeAndroidProgressScrubberFocused(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=.3}mxUtils.extend(mxShapeAndroidProgressScrubberFocused,mxShape);mxShapeAndroidProgressScrubberFocused.prototype.cst={PROGRESS_SCRUBBER_FOCUSED:"mxgraph.android.progressScrubberFocused"};
|
|
mxShapeAndroidProgressScrubberFocused.prototype.paintVertexShape=function(a,d,e,b,c){var f=b*Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),g=mxUtils.getValue(this.style,"fillColor","#ffffff");a.translate(d,e);a.save();a.save();a.setStrokeColor("#444444");a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.stroke();a.restore();a.setShadow(!1);a.setAlpha("0.75");a.begin();d=Math.min(c,.1*b)/2;a.ellipse(f-d,.5*c-d,2*d,2*d);a.fill();a.restore();a.setShadow(!1);a.setStrokeColor(g);
|
|
a.begin();a.moveTo(0,.5*c);a.lineTo(f,.5*c);a.stroke();a.begin();d=Math.min(c,.1*b)/8;a.ellipse(f-d,.5*c-d,2*d,2*d);a.fill()};mxCellRenderer.registerShape(mxShapeAndroidProgressScrubberFocused.prototype.cst.PROGRESS_SCRUBBER_FOCUSED,mxShapeAndroidProgressScrubberFocused);mxShapeAndroidProgressScrubberFocused.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeAndroidProgressScrubberFocused.prototype.cst.PROGRESS_SCRUBBER_FOCUSED]=function(a){return[Graph.createHandle(a,["dx"],function(a){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx))));return new mxPoint(a.x+d*a.width,a.y+a.height/2)},function(a,e){this.state.style.dx=Math.round(100*Math.max(0,Math.min(1,(e.x-a.x)/a.width)))/100})]};
|
|
function mxShapeAndroidProgressScrubberPressed(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=.3}mxUtils.extend(mxShapeAndroidProgressScrubberPressed,mxShape);mxShapeAndroidProgressScrubberPressed.prototype.cst={PROGRESS_SCRUBBER_PRESSED:"mxgraph.android.progressScrubberPressed"};
|
|
mxShapeAndroidProgressScrubberPressed.prototype.paintVertexShape=function(a,d,e,b,c){var f=b*Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx)))),g=mxUtils.getValue(this.style,"fillColor","#ffffff");a.translate(d,e);a.save();a.save();a.setStrokeColor("#444444");a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.stroke();a.restore();a.setShadow(!1);a.setStrokeColor(g);a.setAlpha("0.5");a.begin();d=Math.min(c,.1*b)/2;a.ellipse(f-d,.5*c-d,2*d,2*d);a.fillAndStroke();a.restore();a.setShadow(!1);
|
|
a.setStrokeColor(g);a.begin();a.moveTo(0,.5*c);a.lineTo(f,.5*c);a.stroke();a.begin();d=Math.min(c,.1*b)/8;a.ellipse(f-d,.5*c-d,2*d,2*d);a.fill()};mxCellRenderer.registerShape(mxShapeAndroidProgressScrubberPressed.prototype.cst.PROGRESS_SCRUBBER_PRESSED,mxShapeAndroidProgressScrubberPressed);mxShapeAndroidProgressScrubberPressed.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeAndroidProgressScrubberPressed.prototype.cst.PROGRESS_SCRUBBER_PRESSED]=function(a){return[Graph.createHandle(a,["dx"],function(a){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx))));return new mxPoint(a.x+d*a.width,a.y+a.height/2)},function(a,e){this.state.style.dx=Math.round(100*Math.max(0,Math.min(1,(e.x-a.x)/a.width)))/100})]};
|
|
function mxShapeAndroidQuickscroll2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dy=.5}mxUtils.extend(mxShapeAndroidQuickscroll2,mxShape);mxShapeAndroidQuickscroll2.prototype.cst={QUICKSCROLL:"mxgraph.android.quickscroll2"};
|
|
mxShapeAndroidQuickscroll2.prototype.paintVertexShape=function(a,d,e,b,c){var f=Math.min(c-20,Math.max(20,c*Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))))));mxUtils.getValue(this.style,"fillColor","#ffffff");a.translate(d,e);a.save();a.save();a.setStrokeColor("#cccccc");a.begin();a.moveTo(b-3,0);a.lineTo(b-3,c);a.stroke();a.restore();a.begin();a.roundrect(b-6,f-10,6,20,1,1);a.fillAndStroke();a.setFillColor("#cccccc");a.begin();a.rect(0,f-20,b-18,40);a.fill();a.setFillColor("#666666");
|
|
a.begin();a.moveTo(b-18,f-20);a.lineTo(b-6,f);a.lineTo(b-18,f+20);a.close();a.fill();a.setFontSize("12");a.text(.5*(b-18),f,0,0,"Aa",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.registerShape(mxShapeAndroidQuickscroll2.prototype.cst.QUICKSCROLL,mxShapeAndroidQuickscroll2);mxShapeAndroidQuickscroll2.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeAndroidQuickscroll2.prototype.cst.QUICKSCROLL]=function(a){return[Graph.createHandle(a,["dy"],function(a){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+a.width-3,a.y+Math.min(a.height-20,Math.max(20,d*a.height)))},function(a,e){this.state.style.dy=Math.round(1E3*Math.max(0,Math.min(1,(e.y-a.y)/a.height)))/1E3})]};
|
|
function mxShapeAndroidQuickscroll3(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dy=.5}mxUtils.extend(mxShapeAndroidQuickscroll3,mxShape);mxShapeAndroidQuickscroll3.prototype.cst={QUICKSCROLL:"mxgraph.android.quickscroll3"};
|
|
mxShapeAndroidQuickscroll3.prototype.paintVertexShape=function(a,d,e,b,c){var f=Math.min(c-10,Math.max(10,c*Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))))));mxUtils.getValue(this.style,"fillColor","#ffffff");a.translate(d,e);a.save();a.setStrokeColor("#cccccc");a.begin();a.moveTo(.5*b,0);a.lineTo(.5*b,c);a.stroke();a.restore();a.begin();a.roundrect(.5*b-3,f-10,6,20,1,1);a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeAndroidQuickscroll3.prototype.cst.QUICKSCROLL,mxShapeAndroidQuickscroll3);mxShapeAndroidQuickscroll3.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeAndroidQuickscroll3.prototype.cst.QUICKSCROLL]=function(a){return[Graph.createHandle(a,["dy"],function(a){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+.5*a.width,a.y+Math.min(a.height-10,Math.max(10,d*a.height)))},function(a,e){this.state.style.dy=Math.round(1E3*Math.max(0,Math.min(1,(e.y-a.y)/a.height)))/1E3})]};
|
|
function mxShapeAndroidScrollbars2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAndroidScrollbars2,mxShape);mxShapeAndroidScrollbars2.prototype.cst={SCROLLBARS:"mxgraph.android.scrollbars2"};mxShapeAndroidScrollbars2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.rect(b-5,0,5,c-7);a.fillAndStroke();a.begin();a.rect(0,c-5,b-7,5);a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeAndroidScrollbars2.prototype.cst.SCROLLBARS,mxShapeAndroidScrollbars2);mxShapeAndroidScrollbars2.prototype.constraints=null;function mxShapeAndroidSpinner2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeAndroidSpinner2,mxShape);mxShapeAndroidSpinner2.prototype.cst={SPINNER:"mxgraph.android.spinner2"};
|
|
mxShapeAndroidSpinner2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(0,c);a.lineTo(b,c);a.stroke();d=Math.min(b/10,c);a.begin();a.moveTo(b-d,c);a.lineTo(b,c-d);a.lineTo(b,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeAndroidSpinner2.prototype.cst.SPINNER,mxShapeAndroidSpinner2);mxShapeAndroidSpinner2.prototype.constraints=null;
|
|
function mxArchiMateLocation(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMateLocation,mxShape);mxArchiMateLocation.prototype.cst={LOCATION:"mxgraph.archimate.location"};mxArchiMateLocation.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);a.translate(b-20,5);this.foreground(a,b-20,5,15,15)};
|
|
mxArchiMateLocation.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};mxArchiMateLocation.prototype.foreground=function(a,d,e,b,c){a.setDashed(!1);a.translate(3,0);b-=6;a.begin();a.moveTo(.5*b,c);a.arcTo(.1775*b,.3*c,0,0,0,.345*b,.7*c);a.arcTo(.538*b,.364*c,0,0,1,.5*b,0);a.arcTo(.538*b,.364*c,0,0,1,.655*b,.7*c);a.arcTo(.1775*b,.3*c,0,0,0,.5*b,c);a.stroke()};mxCellRenderer.registerShape(mxArchiMateLocation.prototype.cst.LOCATION,mxArchiMateLocation);
|
|
function mxArchiMateBusiness(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMateBusiness,mxShape);mxArchiMateBusiness.prototype.cst={BUSINESS:"mxgraph.archimate.business",TYPE:"busType",PROCESS:"process",FUNCTION:"function",INTERACTION:"interaction",EVENT:"event",SERVICE:"service"};
|
|
mxArchiMateBusiness.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);a.translate(b-20,5);this.foreground(a,b-20,5,15,15)};mxArchiMateBusiness.prototype.background=function(a,d,e,b,c){a.roundrect(0,0,b,c,10,10);a.fillAndStroke()};
|
|
mxArchiMateBusiness.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxArchiMateBusiness.prototype.cst.TYPE,mxArchiMateBusiness.prototype.cst.PROCESS);a.setDashed(!1);d===mxArchiMateBusiness.prototype.cst.PROCESS?(a.translate(0,2),c-=4,a.begin(),a.moveTo(0,.15*c),a.lineTo(.65*b,.15*c),a.lineTo(.65*b,0),a.lineTo(b,.5*c),a.lineTo(.65*b,c),a.lineTo(.65*b,.85*c),a.lineTo(0,.85*c),a.close(),a.stroke()):d===mxArchiMateBusiness.prototype.cst.FUNCTION?(a.translate(2,0),b-=4,a.begin(),
|
|
a.moveTo(0,.15*c),a.lineTo(.5*b,0),a.lineTo(b,.15*c),a.lineTo(b,c),a.lineTo(.5*b,.85*c),a.lineTo(0,c),a.close(),a.stroke()):d===mxArchiMateBusiness.prototype.cst.INTERACTION?(a.begin(),a.moveTo(.55*b,0),a.arcTo(.45*b,.5*c,0,0,1,.55*b,c),a.close(),a.moveTo(.45*b,0),a.arcTo(.45*b,.5*c,0,0,0,.45*b,c),a.close(),a.stroke()):d===mxArchiMateBusiness.prototype.cst.EVENT?(a.translate(0,3),c-=6,a.begin(),a.moveTo(b-.5*c,0),a.arcTo(.5*c,.5*c,0,0,1,b-.5*c,c),a.lineTo(0,c),a.arcTo(.5*c,.5*c,0,0,0,0,0),a.close(),
|
|
a.stroke()):d===mxArchiMateBusiness.prototype.cst.SERVICE&&(a.translate(0,3),c-=6,a.begin(),a.moveTo(b-.5*c,0),a.arcTo(.5*c,.5*c,0,0,1,b-.5*c,c),a.lineTo(0,c),a.arcTo(.5*c,.5*c,0,0,1,0,0),a.close(),a.stroke())};mxCellRenderer.registerShape(mxArchiMateBusiness.prototype.cst.BUSINESS,mxArchiMateBusiness);function mxArchiMateBusinessObject(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMateBusinessObject,mxShape);
|
|
mxArchiMateBusinessObject.prototype.cst={BUSINESS_OBJECT:"mxgraph.archimate.businessObject"};mxArchiMateBusinessObject.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);this.foreground(a,0,0,b,c)};mxArchiMateBusinessObject.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};mxArchiMateBusinessObject.prototype.foreground=function(a,d,e,b,c){15<=c&&(a.begin(),a.moveTo(0,15),a.lineTo(b,15),a.stroke())};
|
|
mxCellRenderer.registerShape(mxArchiMateBusinessObject.prototype.cst.BUSINESS_OBJECT,mxArchiMateBusinessObject);function mxArchiMateRepresentation(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMateRepresentation,mxShape);mxArchiMateRepresentation.prototype.cst={REPRESENTATION:"mxgraph.archimate.representation"};mxArchiMateRepresentation.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c)};
|
|
mxArchiMateRepresentation.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,.85*c);a.arcTo(.35*b,.35*c,0,0,0,.5*b,.85*c);a.arcTo(.35*b,.35*c,0,0,1,0,.85*c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMateRepresentation.prototype.cst.REPRESENTATION,mxArchiMateRepresentation);function mxArchiMateProduct(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMateProduct,mxShape);
|
|
mxArchiMateProduct.prototype.cst={PRODUCT:"mxgraph.archimate.product"};mxArchiMateProduct.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);this.foreground(a,0,0,b,c)};mxArchiMateProduct.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};mxArchiMateProduct.prototype.foreground=function(a,d,e,b,c){15<=c&&(a.begin(),a.moveTo(0,15),a.lineTo(.6*b,15),a.lineTo(.6*b,0),a.stroke())};
|
|
mxCellRenderer.registerShape(mxArchiMateProduct.prototype.cst.PRODUCT,mxArchiMateProduct);function mxArchiMateApplication(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMateApplication,mxShape);
|
|
mxArchiMateApplication.prototype.cst={APPLICATION:"mxgraph.archimate.application",TYPE:"appType",COMPONENT:"comp",INTERFACE:"interface",INTERFACE2:"interface2",FUNCTION:"function",INTERACTION:"interaction",SERVICE:"service",NODE:"node",NETWORK:"network",COMM_PATH:"commPath",SYS_SW:"sysSw",ARTIFACT:"artifact",ACTOR:"actor",ROLE:"role",COLLABORATION:"collab"};
|
|
mxArchiMateApplication.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);a.translate(b-20,5);this.foreground(a,b-20,5,15,15)};mxArchiMateApplication.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxArchiMateApplication.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxArchiMateApplication.prototype.cst.TYPE,mxArchiMateApplication.prototype.cst.COMPONENT);a.setDashed(!1);d===mxArchiMateApplication.prototype.cst.COMPONENT?(a.translate(1,0),b-=2,a.rect(.25*b,0,.75*b,c),a.stroke(),a.rect(0,.25*c,.5*b,.15*c),a.fillAndStroke(),a.rect(0,.6*c,.5*b,.15*c),a.fillAndStroke()):d===mxArchiMateApplication.prototype.cst.COLLABORATION?(a.translate(0,3),c-=6,a.ellipse(0,0,.6*b,c),a.stroke(),
|
|
a.ellipse(.4*b,0,.6*b,c),a.fillAndStroke()):d===mxArchiMateApplication.prototype.cst.INTERFACE?(a.translate(0,4),c-=8,a.ellipse(.5*b,0,.5*b,c),a.stroke(),a.begin(),a.moveTo(0,.5*c),a.lineTo(.5*b,.5*c),a.stroke()):d===mxArchiMateApplication.prototype.cst.INTERFACE2?(a.translate(0,1),c-=2,a.begin(),a.moveTo(0,.5*c),a.lineTo(.6*b,.5*c),a.moveTo(b,0),a.arcTo(.4*b,.5*c,0,0,0,b,c),a.stroke()):d===mxArchiMateApplication.prototype.cst.FUNCTION?(a.begin(),a.moveTo(.5*b,0),a.lineTo(b,.2*c),a.lineTo(b,c),a.lineTo(.5*
|
|
b,.8*c),a.lineTo(0,c),a.lineTo(0,.2*c),a.close(),a.stroke()):d===mxArchiMateApplication.prototype.cst.INTERACTION?(a.begin(),a.moveTo(.55*b,0),a.arcTo(.45*b,.5*c,0,0,1,.55*b,c),a.close(),a.moveTo(.45*b,0),a.arcTo(.45*b,.5*c,0,0,0,.45*b,c),a.close(),a.stroke()):d===mxArchiMateApplication.prototype.cst.SERVICE?(a.translate(0,3),c-=6,a.begin(),a.moveTo(b-.5*c,0),a.arcTo(.5*c,.5*c,0,0,1,b-.5*c,c),a.lineTo(0,c),a.arcTo(.5*c,.5*c,0,0,1,0,0),a.close(),a.stroke()):d===mxArchiMateApplication.prototype.cst.NODE?
|
|
(a.begin(),a.moveTo(0,.25*c),a.lineTo(.25*b,0),a.lineTo(b,0),a.lineTo(b,.75*c),a.lineTo(.75*b,c),a.lineTo(0,c),a.close(),a.moveTo(0,.25*c),a.lineTo(.75*b,.25*c),a.lineTo(.75*b,c),a.moveTo(b,0),a.lineTo(.75*b,.25*c),a.stroke()):d===mxArchiMateApplication.prototype.cst.NETWORK?(a.translate(0,2),c-=4,a.begin(),a.moveTo(.4*b,.2*c),a.lineTo(.85*b,.2*c),a.lineTo(.6*b,.8*c),a.lineTo(.15*b,.8*c),a.close(),a.stroke(),e=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000"),a.setFillColor(e),
|
|
a.ellipse(.25*b,0,.3*b,.4*c),a.fill(),a.ellipse(.7*b,0,.3*b,.4*c),a.fill(),a.ellipse(0,.6*c,.3*b,.4*c),a.fill(),a.ellipse(.45*b,.6*c,.3*b,.4*c),a.fill()):d===mxArchiMateApplication.prototype.cst.COMM_PATH?(a.translate(0,5),c-=10,a.begin(),a.moveTo(.1*b,0),a.lineTo(0,.5*c),a.lineTo(.1*b,c),a.moveTo(.9*b,0),a.lineTo(b,.5*c),a.lineTo(.9*b,c),a.stroke(),a.setDashed(!0),a.begin(),a.moveTo(0,.5*c),a.lineTo(b,.5*c),a.stroke()):d===mxArchiMateApplication.prototype.cst.SYS_SW?(a.ellipse(.3*b,0,.7*b,.7*c),
|
|
a.stroke(),a.ellipse(0,.02*c,.98*b,.98*c),a.fillAndStroke()):d===mxArchiMateApplication.prototype.cst.ARTIFACT?(a.translate(2,0),b-=4,a.begin(),a.moveTo(0,0),a.lineTo(.7*b,0),a.lineTo(b,.22*c),a.lineTo(b,c),a.lineTo(0,c),a.close(),a.moveTo(.7*b,0),a.lineTo(.7*b,.22*c),a.lineTo(b,.22*c),a.stroke()):d===mxArchiMateApplication.prototype.cst.ACTOR&&(a.translate(3,0),b-=6,a.ellipse(.2*b,0,.6*b,.3*c),a.stroke(),a.begin(),a.moveTo(.5*b,.3*c),a.lineTo(.5*b,.75*c),a.moveTo(0,.45*c),a.lineTo(b,.45*c),a.moveTo(0,
|
|
c),a.lineTo(.5*b,.75*c),a.lineTo(b,c),a.stroke());d===mxArchiMateApplication.prototype.cst.ROLE&&(a.translate(0,4),c-=8,a.begin(),a.moveTo(.8*b,0),a.lineTo(.2*b,0),a.arcTo(.2*b,.5*c,0,0,0,.2*b,c),a.lineTo(.8*b,c),a.stroke(),a.ellipse(.6*b,0,.4*b,c),a.stroke())};mxCellRenderer.registerShape(mxArchiMateApplication.prototype.cst.APPLICATION,mxArchiMateApplication);function mxArchiMateTech(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxArchiMateTech,mxShape);mxArchiMateTech.prototype.cst={TECH:"mxgraph.archimate.tech",TYPE:"techType",DEVICE:"device",PLATEAU:"plateau"};mxArchiMateTech.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);a.translate(b-30,15);this.foreground(a,b-30,15,15,15)};
|
|
mxArchiMateTech.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,10);a.lineTo(10,0);a.lineTo(b,0);a.lineTo(b,c-10);a.lineTo(b-10,c);a.lineTo(0,c);a.close();a.moveTo(0,10);a.lineTo(b-10,10);a.lineTo(b-10,c);a.moveTo(b,0);a.lineTo(b-10,10);a.fillAndStroke()};
|
|
mxArchiMateTech.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxArchiMateTech.prototype.cst.TYPE,mxArchiMateTech.prototype.cst.DEVICE);a.setDashed(!1);d===mxArchiMateTech.prototype.cst.DEVICE?(a.roundrect(0,0,b,.88*c,.05*b,.05*c),a.stroke(),a.begin(),a.moveTo(.1*b,.88*c),a.lineTo(0,c),a.lineTo(b,c),a.lineTo(.9*b,.88*c),a.stroke()):d===mxArchiMateTech.prototype.cst.PLATEAU&&(d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000"),a.setFillColor(d),a.rect(.4*
|
|
b,0,.6*b,.2*c),a.fill(),a.rect(.2*b,.4*c,.6*b,.2*c),a.fill(),a.rect(0,.8*c,.6*b,.2*c),a.fill())};mxCellRenderer.registerShape(mxArchiMateTech.prototype.cst.TECH,mxArchiMateTech);function mxArchiMateMotivational(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMateMotivational,mxShape);
|
|
mxArchiMateMotivational.prototype.cst={MOTIV:"mxgraph.archimate.motiv",TYPE:"motivType",STAKE:"stake",DRIVER:"driver",ASSESSMENT:"assess",GOAL:"goal",REQUIREMENT:"req",CONSTRAINT:"const",PRINCIPLE:"princ"};mxArchiMateMotivational.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);a.translate(b-20,5);this.foreground(a,b-20,5,15,15)};
|
|
mxArchiMateMotivational.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(10,0);a.lineTo(b-10,0);a.lineTo(b,10);a.lineTo(b,c-10);a.lineTo(b-10,c);a.lineTo(10,c);a.lineTo(0,c-10);a.lineTo(0,10);a.close();a.fillAndStroke()};
|
|
mxArchiMateMotivational.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxArchiMateMotivational.prototype.cst.TYPE,mxArchiMateMotivational.prototype.cst.STAKE);a.setDashed(!1);d===mxArchiMateMotivational.prototype.cst.STAKE?(a.translate(0,4),c-=8,a.begin(),a.moveTo(.8*b,0),a.lineTo(.2*b,0),a.arcTo(.2*b,.5*c,0,0,0,.2*b,c),a.lineTo(.8*b,c),a.stroke(),a.ellipse(.6*b,0,.4*b,c),a.stroke()):d===mxArchiMateMotivational.prototype.cst.DRIVER?(a.ellipse(.1*b,.1*c,.8*b,.8*c),a.stroke(),
|
|
a.begin(),a.moveTo(0,.5*c),a.lineTo(b,.5*c),a.moveTo(.5*b,0),a.lineTo(.5*b,c),a.moveTo(.145*b,.145*c),a.lineTo(.855*b,.855*c),a.moveTo(.145*b,.855*c),a.lineTo(.855*b,.145*c),a.stroke(),d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000"),a.setFillColor(d),a.ellipse(.35*b,.35*c,.3*b,.3*c),a.fillAndStroke()):d===mxArchiMateMotivational.prototype.cst.ASSESSMENT?(a.ellipse(.2*b,0,.8*b,.8*c),a.stroke(),a.begin(),a.moveTo(0,c),a.lineTo(.32*b,.68*c),a.stroke()):d===mxArchiMateMotivational.prototype.cst.GOAL?
|
|
(a.ellipse(0,0,b,c),a.stroke(),a.ellipse(.15*b,.15*c,.7*b,.7*c),a.stroke(),d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000"),a.setFillColor(d),a.ellipse(.3*b,.3*c,.4*b,.4*c),a.fillAndStroke()):d===mxArchiMateMotivational.prototype.cst.REQUIREMENT?(a.translate(0,4),c-=8,a.begin(),a.moveTo(.25*b,0),a.lineTo(b,0),a.lineTo(.75*b,c),a.lineTo(0,c),a.close(),a.stroke()):d===mxArchiMateMotivational.prototype.cst.CONSTRAINT?(a.translate(0,4),c-=8,a.begin(),a.moveTo(.25*b,0),a.lineTo(b,
|
|
0),a.lineTo(.75*b,c),a.lineTo(0,c),a.close(),a.moveTo(.45*b,0),a.lineTo(.2*b,c),a.stroke()):d===mxArchiMateMotivational.prototype.cst.PRINCIPLE&&(a.begin(),a.moveTo(.05*b,.05*c),a.arcTo(2.3*b,2.3*c,0,0,1,.95*b,.05*c),a.arcTo(2.3*b,2.3*c,0,0,1,.95*b,.95*c),a.arcTo(2.3*b,2.3*c,0,0,1,.05*b,.95*c),a.arcTo(2.3*b,2.3*c,0,0,1,.05*b,.05*c),a.close(),a.stroke(),d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000"),a.setFillColor(d),a.begin(),a.moveTo(.45*b,.7*c),a.lineTo(.42*b,.15*c),a.lineTo(.58*
|
|
b,.15*c),a.lineTo(.55*b,.7*c),a.close(),a.fill(),a.rect(.45*b,.75*c,.1*b,.1*c),a.fill())};mxCellRenderer.registerShape(mxArchiMateMotivational.prototype.cst.MOTIV,mxArchiMateMotivational);function mxArchiMateGap(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMateGap,mxShape);mxArchiMateGap.prototype.cst={GAP:"mxgraph.archimate.gap"};
|
|
mxArchiMateGap.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);a.translate(b-20,5);this.foreground(a,b-20,5,15,15)};mxArchiMateGap.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,.85*c);a.arcTo(.35*b,.35*c,0,0,0,.5*b,.85*c);a.arcTo(.35*b,.35*c,0,0,1,0,.85*c);a.close();a.fillAndStroke()};
|
|
mxArchiMateGap.prototype.foreground=function(a,d,e,b,c){a.setDashed(!1);a.translate(0,2);c-=4;a.ellipse(.15*b,0,.7*b,c);a.stroke();a.begin();a.moveTo(0,.35*c);a.lineTo(b,.35*c);a.moveTo(0,.65*c);a.lineTo(b,.65*c);a.stroke()};mxCellRenderer.registerShape(mxArchiMateGap.prototype.cst.GAP,mxArchiMateGap);function mxArchiMate3Application(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Application,mxShape);
|
|
mxArchiMate3Application.prototype.cst={APPLICATION:"mxgraph.archimate3.application",TYPE:"appType",COMPONENT:"comp",COLLABORATION:"collab",INTERFACE:"interface",INTERFACE2:"interface2",FUNCTION:"func",INTERACTION:"interaction",SERVICE:"serv",EVENT:"event",EVENT2:"event2",NODE:"node",NETWORK:"netw",COMM_PATH:"commPath",ACTOR:"actor",ASSESSMENT:"assess",GOAL:"goal",OUTCOME:"outcome",ROLE:"role",PROCESS:"proc",DRIVER:"driver",PRINCIPLE:"principle",REQUIREMENT:"requirement",CONSTRAINT:"constraint",RESOURCE:"resource",
|
|
CAPABILITY:"capability",COURSE:"course",MATERIAL:"material",DISTRIBUTION:"distribution",SYS_SW:"sysSw",ARTIFACT:"artifact",PATH:"path",ARCHI_TYPE:"archiType",TYPE_SQUARE:"square",TYPE_ROUNDED:"rounded",TYPE_OCT:"oct"};mxArchiMate3Application.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);a.translate(b-20,5);this.foreground(a,b-20,5,15,15)};
|
|
mxArchiMate3Application.prototype.background=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxArchiMate3Application.prototype.cst.ARCHI_TYPE,"square");"rounded"===d?a.roundrect(0,0,b,c,10,10):"oct"===d&&20<=b&&20<=c?(a.begin(),a.moveTo(0,10),a.lineTo(10,0),a.lineTo(b-10,0),a.lineTo(b,10),a.lineTo(b,c-10),a.lineTo(b-10,c),a.lineTo(10,c),a.lineTo(0,c-10),a.close(),a.fillAndStroke()):a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxArchiMate3Application.prototype.foreground=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxArchiMate3Application.prototype.cst.TYPE,"");a.setDashed(!1);f===mxArchiMate3Application.prototype.cst.COMPONENT?(a.translate(1,0),mxArchiMate3Component.prototype.background(a,d,e,b-2,c)):f===mxArchiMate3Application.prototype.cst.COLLABORATION?(a.translate(0,3),mxArchiMate3Collaboration.prototype.background(a,d,e,b,c-6)):f===mxArchiMate3Application.prototype.cst.INTERFACE?(a.translate(0,4),mxArchiMate3Interface.prototype.background(a,
|
|
d,e,b,c-8)):f===mxArchiMate3Application.prototype.cst.INTERFACE2?(a.translate(0,1),c-=2,a.begin(),a.moveTo(0,.5*c),a.lineTo(.6*b,.5*c),a.moveTo(b,0),a.arcTo(.4*b,.5*c,0,0,0,b,c),a.stroke()):f===mxArchiMate3Application.prototype.cst.FUNCTION?mxArchiMate3Function.prototype.background(a,d,e,b,c):f===mxArchiMate3Application.prototype.cst.INTERACTION?mxArchiMate3Interaction.prototype.background(a,d,e,b,c):f===mxArchiMate3Application.prototype.cst.SERVICE?(a.translate(0,3),mxArchiMate3Service.prototype.background(a,
|
|
d,e,b,c-6)):f===mxArchiMate3Application.prototype.cst.EVENT?(a.translate(0,3),mxArchiMate3Event.prototype.background(a,d,e,b,c-6)):f===mxArchiMate3Application.prototype.cst.EVENT2?(a.translate(0,3),mxArchiMate3Event2.prototype.background(a,d,e,b,c-6)):f===mxArchiMate3Application.prototype.cst.NODE?mxArchiMate3Node.prototype.background(a,d,e,b,c):f===mxArchiMate3Application.prototype.cst.NETWORK?(a.translate(0,2),c-=4,a.begin(),a.moveTo(.4*b,.2*c),a.lineTo(.85*b,.2*c),a.lineTo(.6*b,.8*c),a.lineTo(.15*
|
|
b,.8*c),a.close(),a.stroke(),d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000"),a.setFillColor(d),a.ellipse(.25*b,0,.3*b,.4*c),a.fill(),a.ellipse(.7*b,0,.3*b,.4*c),a.fill(),a.ellipse(0,.6*c,.3*b,.4*c),a.fill(),a.ellipse(.45*b,.6*c,.3*b,.4*c),a.fill()):f===mxArchiMate3Application.prototype.cst.COMM_PATH?(a.translate(0,5),c-=10,a.begin(),a.moveTo(.1*b,0),a.lineTo(0,.5*c),a.lineTo(.1*b,c),a.moveTo(.9*b,0),a.lineTo(b,.5*c),a.lineTo(.9*b,c),a.stroke(),a.setDashed(!0),a.begin(),a.moveTo(0,
|
|
.5*c),a.lineTo(b,.5*c),a.stroke()):f===mxArchiMate3Application.prototype.cst.ARTIFACT?(a.translate(2,0),b-=4,a.begin(),a.moveTo(0,0),a.lineTo(.7*b,0),a.lineTo(b,.22*c),a.lineTo(b,c),a.lineTo(0,c),a.close(),a.moveTo(.7*b,0),a.lineTo(.7*b,.22*c),a.lineTo(b,.22*c),a.stroke()):f===mxArchiMate3Application.prototype.cst.ACTOR?(a.translate(3,0),mxArchiMate3Actor.prototype.background(a,d,e,b-6,c)):f===mxArchiMate3Application.prototype.cst.ROLE?(a.translate(0,4),mxArchiMate3Role.prototype.background(a,d,e,
|
|
b,c-8)):f===mxArchiMate3Application.prototype.cst.PROCESS?(a.translate(0,3),mxArchiMate3Process.prototype.background(a,d,e,b,c-6)):f===mxArchiMate3Application.prototype.cst.DRIVER?(a.ellipse(.1*b,.1*c,.8*b,.8*c),a.stroke(),a.begin(),a.moveTo(0,.5*c),a.lineTo(b,.5*c),a.moveTo(.5*b,0),a.lineTo(.5*b,c),a.moveTo(.145*b,.145*c),a.lineTo(.855*b,.855*c),a.moveTo(.145*b,.855*c),a.lineTo(.855*b,.145*c),a.stroke(),d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000"),a.setFillColor(d),a.ellipse(.35*
|
|
b,.35*c,.3*b,.3*c),a.fillAndStroke()):f===mxArchiMate3Application.prototype.cst.ASSESSMENT?(a.ellipse(.2*b,0,.8*b,.8*c),a.stroke(),a.begin(),a.moveTo(0,c),a.lineTo(.32*b,.68*c),a.stroke()):f===mxArchiMate3Application.prototype.cst.GOAL?(a.ellipse(0,0,b,c),a.stroke(),a.ellipse(.15*b,.15*c,.7*b,.7*c),a.stroke(),d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000"),a.setFillColor(d),a.ellipse(.3*b,.3*c,.4*b,.4*c),a.fillAndStroke()):f===mxArchiMate3Application.prototype.cst.OUTCOME?(a.ellipse(0,
|
|
.2*b,.8*b,.8*c),a.stroke(),a.ellipse(.15*b,.35*b,.5*b,.5*c),a.stroke(),a.ellipse(.3*b,.5*b,.2*b,.2*c),a.stroke(),a.begin(),a.moveTo(.4*b,.6*c),a.lineTo(.9*b,.1*c),a.moveTo(.42*b,.4*c),a.lineTo(.4*b,.6*c),a.lineTo(.6*b,.58*c),a.moveTo(.8*b,0),a.lineTo(.75*b,.25*c),a.lineTo(b,.2*c),a.stroke()):f===mxArchiMate3Application.prototype.cst.PRINCIPLE?(a.begin(),a.moveTo(.05*b,.05*c),a.arcTo(2.3*b,2.3*c,0,0,1,.95*b,.05*c),a.arcTo(2.3*b,2.3*c,0,0,1,.95*b,.95*c),a.arcTo(2.3*b,2.3*c,0,0,1,.05*b,.95*c),a.arcTo(2.3*
|
|
b,2.3*c,0,0,1,.05*b,.05*c),a.close(),a.stroke(),d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000"),a.setFillColor(d),a.begin(),a.moveTo(.45*b,.7*c),a.lineTo(.42*b,.15*c),a.lineTo(.58*b,.15*c),a.lineTo(.55*b,.7*c),a.close(),a.fill(),a.rect(.45*b,.75*c,.1*b,.1*c),a.fill()):f===mxArchiMate3Application.prototype.cst.REQUIREMENT?(a.translate(0,4),mxArchiMate3Requirement.prototype.background(a,d,e,b,c-8)):f===mxArchiMate3Application.prototype.cst.CONSTRAINT?(a.translate(0,4),mxArchiMate3Constraint.prototype.background(a,
|
|
d,e,b,c-8)):f===mxArchiMate3Application.prototype.cst.MATERIAL?(a.translate(0,1),c-=2,a.begin(),a.moveTo(0,.5*c),a.lineTo(.25*b,0),a.lineTo(.75*b,0),a.lineTo(b,.5*c),a.lineTo(.75*b,c),a.lineTo(.25*b,c),a.close(),a.moveTo(.15*b,.5*c),a.lineTo(.31*b,.2*c),a.moveTo(.69*b,.2*c),a.lineTo(.85*b,.5*c),a.moveTo(.68*b,.8*c),a.lineTo(.32*b,.8*c),a.stroke()):f===mxArchiMate3Application.prototype.cst.DISTRIBUTION?(a.translate(0,4),mxArchiMate3Distribution.prototype.background(a,d,e,b,c-8)):f===mxArchiMate3Application.prototype.cst.RESOURCE?
|
|
(a.translate(0,1),mxArchiMate3Resource.prototype.background(a,d,e,b,c-2)):f===mxArchiMate3Application.prototype.cst.CAPABILITY?mxArchiMate3Capability.prototype.background(a,d,e,b,c):f===mxArchiMate3Application.prototype.cst.COURSE?mxArchiMate3Course.prototype.background(a,d,e,b,c):f===mxArchiMate3Application.prototype.cst.SYS_SW?mxArchiMate3SysSw.prototype.background(a,d,e,b,c):f===mxArchiMate3Application.prototype.cst.ARTIFACT?(a.translate(2,0),mxArchiMate3Artifact.prototype.background(a,d,e,b-4,
|
|
c)):f===mxArchiMate3Application.prototype.cst.PATH&&(a.translate(0,5),mxArchiMate3Path.prototype.background(a,d,e,b,c-10))};mxCellRenderer.registerShape(mxArchiMate3Application.prototype.cst.APPLICATION,mxArchiMate3Application);function mxArchiMate3Component(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Component,mxShape);mxArchiMate3Component.prototype.cst={COMPONENT:"mxgraph.archimate3.component"};
|
|
mxArchiMate3Component.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};mxArchiMate3Component.prototype.background=function(a,d,e,b,c){a.rect(.25*b,0,.75*b,c);a.fillAndStroke();a.rect(0,.25*c,.5*b,.15*c);a.fillAndStroke();a.rect(0,.6*c,.5*b,.15*c);a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3Component.prototype.cst.COMPONENT,mxArchiMate3Component);
|
|
function mxArchiMate3Collaboration(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Collaboration,mxShape);mxArchiMate3Collaboration.prototype.cst={COLLABORATION:"mxgraph.archimate3.collaboration"};mxArchiMate3Collaboration.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};
|
|
mxArchiMate3Collaboration.prototype.background=function(a,d,e,b,c){a.ellipse(0,0,.6*b,c);a.fillAndStroke();a.ellipse(.4*b,0,.6*b,c);a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3Collaboration.prototype.cst.COLLABORATION,mxArchiMate3Collaboration);function mxArchiMate3Interface(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Interface,mxShape);mxArchiMate3Interface.prototype.cst={INTERFACE:"mxgraph.archimate3.interface"};
|
|
mxArchiMate3Interface.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};mxArchiMate3Interface.prototype.background=function(a,d,e,b,c){a.ellipse(.5*b,0,.5*b,c);a.fillAndStroke();a.begin();a.moveTo(0,.5*c);a.lineTo(.5*b,.5*c);a.stroke()};mxCellRenderer.registerShape(mxArchiMate3Interface.prototype.cst.INTERFACE,mxArchiMate3Interface);
|
|
function mxArchiMate3Process(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Process,mxShape);mxArchiMate3Process.prototype.cst={PROCESS:"mxgraph.archimate3.process"};mxArchiMate3Process.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};
|
|
mxArchiMate3Process.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,.3*c);a.lineTo(.6*b,.3*c);a.lineTo(.6*b,0);a.lineTo(b,.5*c);a.lineTo(.6*b,c);a.lineTo(.6*b,.7*c);a.lineTo(0,.7*c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3Process.prototype.cst.PROCESS,mxArchiMate3Process);function mxArchiMate3Function(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Function,mxShape);
|
|
mxArchiMate3Function.prototype.cst={FUNCTION:"mxgraph.archimate3.function"};mxArchiMate3Function.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};mxArchiMate3Function.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(.5*b,0);a.lineTo(b,.2*c);a.lineTo(b,c);a.lineTo(.5*b,.8*c);a.lineTo(0,c);a.lineTo(0,.2*c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3Function.prototype.cst.FUNCTION,mxArchiMate3Function);
|
|
function mxArchiMate3Interaction(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Interaction,mxShape);mxArchiMate3Interaction.prototype.cst={INTERACTION:"mxgraph.archimate3.interaction"};mxArchiMate3Interaction.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};
|
|
mxArchiMate3Interaction.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(.55*b,0);a.arcTo(.45*b,.5*c,0,0,1,.55*b,c);a.close();a.moveTo(.45*b,0);a.arcTo(.45*b,.5*c,0,0,0,.45*b,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3Interaction.prototype.cst.INTERACTION,mxArchiMate3Interaction);function mxArchiMate3Service(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Service,mxShape);
|
|
mxArchiMate3Service.prototype.cst={SERVICE:"mxgraph.archimate3.service"};mxArchiMate3Service.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};mxArchiMate3Service.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(b-.5*c,0);a.arcTo(.5*c,.5*c,0,0,1,b-.5*c,c);a.lineTo(.5*c,c);a.arcTo(.5*c,.5*c,0,0,1,.5*c,0);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3Service.prototype.cst.SERVICE,mxArchiMate3Service);
|
|
function mxArchiMate3Requirement(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Requirement,mxShape);mxArchiMate3Requirement.prototype.cst={REQUIREMENT:"mxgraph.archimate3.requirement"};mxArchiMate3Requirement.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};
|
|
mxArchiMate3Requirement.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(.25*b,0);a.lineTo(b,0);a.lineTo(.75*b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3Requirement.prototype.cst.REQUIREMENT,mxArchiMate3Requirement);function mxArchiMate3Constraint(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Constraint,mxShape);mxArchiMate3Constraint.prototype.cst={CONSTRAINT:"mxgraph.archimate3.constraint"};
|
|
mxArchiMate3Constraint.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};mxArchiMate3Constraint.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(.25*b,0);a.lineTo(b,0);a.lineTo(.75*b,c);a.lineTo(0,c);a.close();a.moveTo(.45*b,0);a.lineTo(.2*b,c);a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3Constraint.prototype.cst.CONSTRAINT,mxArchiMate3Constraint);
|
|
function mxArchiMate3Event(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Event,mxShape);mxArchiMate3Event.prototype.cst={EVENT:"mxgraph.archimate3.event"};mxArchiMate3Event.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};
|
|
mxArchiMate3Event.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(b-.5*c,0);a.arcTo(.5*c,.5*c,0,0,1,b-.5*c,c);a.lineTo(0,c);a.lineTo(.5*c,.5*c);a.lineTo(0,0);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3Event.prototype.cst.EVENT,mxArchiMate3Event);function mxArchiMate3Event2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Event2,mxShape);mxArchiMate3Event2.prototype.cst={EVENT2:"mxgraph.archimate3.event2"};
|
|
mxArchiMate3Event2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};mxArchiMate3Event2.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(b-.5*c,0);a.arcTo(.5*c,.5*c,0,0,1,b-.5*c,c);a.lineTo(0,c);a.arcTo(.5*c,.5*c,0,0,0,0,0);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3Event2.prototype.cst.EVENT2,mxArchiMate3Event2);
|
|
function mxArchiMate3Actor(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Actor,mxShape);mxArchiMate3Actor.prototype.cst={ACTOR:"mxgraph.archimate3.actor"};mxArchiMate3Actor.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};
|
|
mxArchiMate3Actor.prototype.background=function(a,d,e,b,c){a.ellipse(.2*b,0,.6*b,.3*c);a.fillAndStroke();a.begin();a.moveTo(.5*b,.3*c);a.lineTo(.5*b,.75*c);a.moveTo(0,.45*c);a.lineTo(b,.45*c);a.moveTo(0,c);a.lineTo(.5*b,.75*c);a.lineTo(b,c);a.stroke()};mxCellRenderer.registerShape(mxArchiMate3Actor.prototype.cst.ACTOR,mxArchiMate3Actor);function mxArchiMate3Role(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Role,mxShape);
|
|
mxArchiMate3Role.prototype.cst={ROLE:"mxgraph.archimate3.role"};mxArchiMate3Role.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};mxArchiMate3Role.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(.8*b,0);a.lineTo(.2*b,0);a.arcTo(.2*b,.5*c,0,0,0,.2*b,c);a.lineTo(.8*b,c);a.fillAndStroke();a.ellipse(.6*b,0,.4*b,c);a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3Role.prototype.cst.ROLE,mxArchiMate3Role);
|
|
function mxArchiMate3BusinessObject(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3BusinessObject,mxShape);mxArchiMate3BusinessObject.prototype.cst={BUSINESS_OBJECT:"mxgraph.archimate3.businessObject"};mxArchiMate3BusinessObject.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);this.foreground(a,0,0,b,c)};
|
|
mxArchiMate3BusinessObject.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};mxArchiMate3BusinessObject.prototype.foreground=function(a,d,e,b,c){15<=c&&(a.begin(),a.moveTo(0,15),a.lineTo(b,15),a.stroke())};mxCellRenderer.registerShape(mxArchiMate3BusinessObject.prototype.cst.BUSINESS_OBJECT,mxArchiMate3BusinessObject);function mxArchiMate3Contract(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxArchiMate3Contract,mxShape);mxArchiMate3Contract.prototype.cst={CONTRACT:"mxgraph.archimate3.contract"};mxArchiMate3Contract.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);this.foreground(a,0,0,b,c)};mxArchiMate3Contract.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxArchiMate3Contract.prototype.foreground=function(a,d,e,b,c){15<=c&&(a.begin(),a.moveTo(0,15),a.lineTo(b,15),a.stroke());30<=c&&(a.begin(),a.moveTo(0,c-15),a.lineTo(b,c-15),a.stroke())};mxCellRenderer.registerShape(mxArchiMate3Contract.prototype.cst.CONTRACT,mxArchiMate3Contract);function mxArchiMate3Product(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Product,mxShape);mxArchiMate3Product.prototype.cst={PRODUCT:"mxgraph.archimate3.product"};
|
|
mxArchiMate3Product.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);this.foreground(a,0,0,b,c)};mxArchiMate3Product.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};mxArchiMate3Product.prototype.foreground=function(a,d,e,b,c){15<=c&&(a.begin(),a.moveTo(0,15),a.lineTo(.6*b,15),a.lineTo(.6*b,0),a.stroke())};mxCellRenderer.registerShape(mxArchiMate3Product.prototype.cst.PRODUCT,mxArchiMate3Product);
|
|
function mxArchiMate3Representation(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Representation,mxShape);mxArchiMate3Representation.prototype.cst={REPRESENTATION:"mxgraph.archimate3.representation"};mxArchiMate3Representation.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c)};
|
|
mxArchiMate3Representation.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,.85*c);a.arcTo(.35*b,.35*c,0,0,0,.5*b,.85*c);a.arcTo(.35*b,.35*c,0,0,1,0,.85*c);a.close();a.fillAndStroke();20<=c&&a.begin();a.moveTo(0,15);a.lineTo(b,15);a.stroke()};mxCellRenderer.registerShape(mxArchiMate3Representation.prototype.cst.REPRESENTATION,mxArchiMate3Representation);
|
|
function mxArchiMate3Deliverable(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Deliverable,mxShape);mxArchiMate3Deliverable.prototype.cst={DELIVERABLE:"mxgraph.archimate3.deliverable"};mxArchiMate3Deliverable.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c)};
|
|
mxArchiMate3Deliverable.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,.85*c);a.arcTo(.35*b,.35*c,0,0,0,.5*b,.85*c);a.arcTo(.35*b,.35*c,0,0,1,0,.85*c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3Deliverable.prototype.cst.DELIVERABLE,mxArchiMate3Deliverable);function mxArchiMate3Location(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Location,mxShape);
|
|
mxArchiMate3Location.prototype.cst={LOCATION:"mxgraph.archimate3.location"};mxArchiMate3Location.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);a.translate(b-20,5);this.foreground(a,b-20,5,15,15)};mxArchiMate3Location.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxArchiMate3Location.prototype.foreground=function(a,d,e,b,c){a.setDashed(!1);a.translate(3,0);b-=6;a.begin();a.moveTo(.5*b,c);a.arcTo(.1775*b,.3*c,0,0,0,.345*b,.7*c);a.arcTo(.538*b,.364*c,0,0,1,.5*b,0);a.arcTo(.538*b,.364*c,0,0,1,.655*b,.7*c);a.arcTo(.1775*b,.3*c,0,0,0,.5*b,c);a.stroke()};mxCellRenderer.registerShape(mxArchiMate3Location.prototype.cst.LOCATION,mxArchiMate3Location);
|
|
function mxArchiMate3Gap(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Gap,mxShape);mxArchiMate3Gap.prototype.cst={GAP:"mxgraph.archimate3.gap"};mxArchiMate3Gap.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);a.translate(b-20,5);this.foreground(a,b-20,5,15,15)};
|
|
mxArchiMate3Gap.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,.85*c);a.arcTo(.35*b,.35*c,0,0,0,.5*b,.85*c);a.arcTo(.35*b,.35*c,0,0,1,0,.85*c);a.close();a.fillAndStroke()};mxArchiMate3Gap.prototype.foreground=function(a,d,e,b,c){a.setDashed(!1);a.translate(0,2);c-=4;a.ellipse(.15*b,0,.7*b,c);a.stroke();a.begin();a.moveTo(0,.35*c);a.lineTo(b,.35*c);a.moveTo(0,.65*c);a.lineTo(b,.65*c);a.stroke()};
|
|
mxCellRenderer.registerShape(mxArchiMate3Gap.prototype.cst.GAP,mxArchiMate3Gap);function mxArchiMate3Tech(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Tech,mxShape);mxArchiMate3Tech.prototype.cst={TECH:"mxgraph.archimate3.tech",TYPE:"techType",DEVICE:"device",PLATEAU:"plateau",FACILITY:"facility",EQUIPMENT:"equipment",SYS_SW:"sysSw"};
|
|
mxArchiMate3Tech.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);a.translate(b-30,15);this.foreground(a,b-30,15,15,15)};mxArchiMate3Tech.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,10);a.lineTo(10,0);a.lineTo(b,0);a.lineTo(b,c-10);a.lineTo(b-10,c);a.lineTo(0,c);a.close();a.moveTo(0,10);a.lineTo(b-10,10);a.lineTo(b-10,c);a.moveTo(b,0);a.lineTo(b-10,10);a.fillAndStroke()};
|
|
mxArchiMate3Tech.prototype.foreground=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxArchiMate3Tech.prototype.cst.TYPE,mxArchiMate3Tech.prototype.cst.DEVICE);a.setDashed(!1);f===mxArchiMate3Tech.prototype.cst.PLATEAU?(d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000"),a.setFillColor(d),a.rect(.4*b,0,.6*b,.2*c),a.fill(),a.rect(.2*b,.4*c,.6*b,.2*c),a.fill(),a.rect(0,.8*c,.6*b,.2*c),a.fill()):f===mxArchiMate3Tech.prototype.cst.FACILITY?(a.begin(),a.moveTo(0,c),a.lineTo(0,
|
|
0),a.lineTo(.13*b,0),a.lineTo(.13*b,.7*c),a.lineTo(.42*b,.55*c),a.lineTo(.42*b,.7*c),a.lineTo(.71*b,.55*c),a.lineTo(.71*b,.7*c),a.lineTo(b,.55*c),a.lineTo(b,c),a.close(),a.stroke()):f===mxArchiMate3Tech.prototype.cst.EQUIPMENT?(a.begin(),a.moveTo(.72*b,.38*c),a.curveTo(.78*b,.38*b,.85*b,.34*c,.85*b,.26*c),a.curveTo(.85*b,.18*b,.78*b,.14*c,.73*b,.14*c),a.curveTo(.64*b,.14*b,.59*b,.2*c,.59*b,.26*c),a.curveTo(.59*b,.33*c,.65*b,.38*b,.72*b,.38*c),a.close(),a.moveTo(.68*b,.52*c),a.lineTo(.67*b,.45*c),
|
|
a.lineTo(.61*b,.43*c),a.lineTo(.56*b,.48*c),a.lineTo(.5*b,.42*c),a.lineTo(.54*b,.36*c),a.lineTo(.52*b,.31*c),a.lineTo(.45*b,.31*c),a.lineTo(.45*b,.22*c),a.lineTo(.52*b,.21*c),a.lineTo(.54*b,.16*c),a.lineTo(.5*b,.11*c),a.lineTo(.56*b,.05*c),a.lineTo(.62*b,.09*c),a.lineTo(.67*b,.07*c),a.lineTo(.68*b,0),a.lineTo(.77*b,0),a.lineTo(.78*b,.07*c),a.lineTo(.83*b,.09*c),a.lineTo(.89*b,.05*c),a.lineTo(.95*b,.11*c),a.lineTo(.91*b,.16*c),a.lineTo(.93*b,.21*c),a.lineTo(b,.22*c),a.lineTo(b,.31*c),a.lineTo(.93*
|
|
b,.31*c),a.lineTo(.91*b,.36*c),a.lineTo(.95*b,.41*c),a.lineTo(.89*b,.47*c),a.lineTo(.83*b,.43*c),a.lineTo(.78*b,.45*c),a.lineTo(.77*b,.52*c),a.lineTo(.68*b,.52*c),a.close(),a.moveTo(.36*b,.81*c),a.curveTo(.44*b,.81*c,.52*b,.75*c,.52*b,.67*c),a.curveTo(.52*b,.59*c,.45*b,.51*c,.35*b,.51*c),a.curveTo(.27*b,.51*c,.19*b,.58*c,.19*b,.67*c),a.curveTo(.19*b,.74*c,.27*b,.82*c,.36*b,.81*c),a.close(),a.moveTo(.21*b,.98*c),a.lineTo(.22*b,.89*c),a.lineTo(.16*b,.85*c),a.lineTo(.08*b,.88*c),a.lineTo(.02*b,.79*c),
|
|
a.lineTo(.09*b,.74*c),a.lineTo(.08*b,.67*c),a.lineTo(0,.63*c),a.lineTo(.03*b,.53*c),a.lineTo(.12*b,.54*c),a.lineTo(.16*b,.48*c),a.lineTo(.13*b,.4*c),a.lineTo(.22*b,.35*c),a.lineTo(.28*b,.42*c),a.lineTo(.36*b,.41*c),a.lineTo(.39*b,.33*c),a.lineTo(.5*b,.36*c),a.lineTo(.49*b,.45*c),a.lineTo(.55*b,.49*c),a.lineTo(.63*b,.45*c),a.lineTo(.69*b,.54*c),a.lineTo(.62*b,.6*c),a.lineTo(.63*b,.67*c),a.lineTo(.71*b,.7*c),a.lineTo(.68*b,.8*c),a.lineTo(.59*b,.79*c),a.lineTo(.55*b,.85*c),a.lineTo(.59*b,.79*c),a.lineTo(.55*
|
|
b,.85*c),a.lineTo(.59*b,.93*c),a.lineTo(.49*b,.98*c),a.lineTo(.43*b,.91*c),a.lineTo(.36*b,.92*c),a.lineTo(.32*b,c),a.lineTo(.21*b,.98*c),a.close(),a.stroke()):f===mxArchiMate3Tech.prototype.cst.SYS_SW?mxArchiMate3SysSw.prototype.background(a,d,e,b,c):f===mxArchiMate3Tech.prototype.cst.DEVICE&&mxArchiMate3Device.prototype.background(a,d,e,b,c)};mxCellRenderer.registerShape(mxArchiMate3Tech.prototype.cst.TECH,mxArchiMate3Tech);
|
|
function mxArchiMate3Distribution(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Distribution,mxShape);mxArchiMate3Distribution.prototype.cst={DISTRIBUTION:"mxgraph.archimate3.distribution"};mxArchiMate3Distribution.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};
|
|
mxArchiMate3Distribution.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(.1*b,.25*c);a.lineTo(.9*b,.25*c);a.lineTo(b,.5*c);a.lineTo(.9*b,.75*c);a.lineTo(.1*b,.75*c);a.lineTo(0,.5*c);a.fillAndStroke();a.begin();a.moveTo(.2*b,0);a.lineTo(0,.5*c);a.lineTo(.2*b,c);a.moveTo(.8*b,0);a.lineTo(b,.5*c);a.lineTo(.8*b,c);a.stroke()};mxCellRenderer.registerShape(mxArchiMate3Distribution.prototype.cst.DISTRIBUTION,mxArchiMate3Distribution);
|
|
function mxArchiMate3Resource(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Resource,mxShape);mxArchiMate3Resource.prototype.cst={RESOURCE:"mxgraph.archimate3.resource"};mxArchiMate3Resource.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};
|
|
mxArchiMate3Resource.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(.51*b,.34*c);a.lineTo(.51*b,.65*c);a.moveTo(.35*b,.34*c);a.lineTo(.35*b,.65*c);a.moveTo(.19*b,.34*c);a.lineTo(.19*b,.65*c);a.moveTo(.91*b,.4*c);a.curveTo(.93*b,.39*c,.95*b,.39*c,.97*b,.4*c);a.curveTo(.99*b,.4*c,b,.41*c,b,.43*c);a.curveTo(b,.48*c,b,.52*c,b,.57*c);a.curveTo(b,.58*c,.99*b,.59*c,.98*b,.6*c);a.curveTo(.96*b,.6*c,.93*b,.6*c,.91*b,.6*c);a.moveTo(0,.73*c);a.curveTo(0,.6*c,0,.43*c,0,.27*c);a.curveTo(0,.24*c,.03*
|
|
b,.21*c,.08*b,.21*c);a.curveTo(.33*b,.2*c,.61*b,.2*c,.84*b,.21*c);a.curveTo(.88*b,.22*c,.89*b,.24*c,.9*b,.26*c);a.curveTo(.91*b,.41*c,.91*b,.57*c,.9*b,.72*c);a.curveTo(.9*b,.74*c,.88*b,.78*c,.83*b,.79*c);a.curveTo(.57*b,.79*c,.32*b,.79*c,.06*b,.79*c);a.curveTo(.02*b,.78*c,0,.76*c,0,.73*c);a.close();a.stroke()};mxCellRenderer.registerShape(mxArchiMate3Resource.prototype.cst.RESOURCE,mxArchiMate3Resource);
|
|
function mxArchiMate3Capability(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Capability,mxShape);mxArchiMate3Capability.prototype.cst={CAPABILITY:"mxgraph.archimate3.capability"};mxArchiMate3Capability.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};
|
|
mxArchiMate3Capability.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(b,0);a.lineTo(b,c);a.lineTo(0,c);a.lineTo(0,.67*c);a.lineTo(.33*b,.67*c);a.lineTo(.33*b,.33*c);a.lineTo(.67*b,.33*c);a.lineTo(.67*b,0);a.close();a.moveTo(.67*b,.33*c);a.lineTo(b,.33*c);a.moveTo(.33*b,.67*c);a.lineTo(b,.67*c);a.moveTo(.33*b,.67*c);a.lineTo(.33*b,c);a.moveTo(.67*b,.33*c);a.lineTo(.67*b,c);a.stroke()};mxCellRenderer.registerShape(mxArchiMate3Capability.prototype.cst.CAPABILITY,mxArchiMate3Capability);
|
|
function mxArchiMate3Course(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Course,mxShape);mxArchiMate3Course.prototype.cst={COURSE:"mxgraph.archimate3.course"};mxArchiMate3Course.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};
|
|
mxArchiMate3Course.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,c);a.arcTo(.7*b,.7*c,0,0,1,.41*b,.56*c);a.moveTo(.14*b,.54*c);a.lineTo(.41*b,.56*c);a.lineTo(.3*b,.78*c);a.stroke();a.ellipse(.4*b,0,.6*b,.6*c);a.stroke();a.ellipse(.5*b,.1*c,.4*b,.4*c);a.stroke();d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#000000");a.setFillColor(d);a.ellipse(.6*b,.2*c,.2*b,.2*c);a.fill()};mxCellRenderer.registerShape(mxArchiMate3Course.prototype.cst.COURSE,mxArchiMate3Course);
|
|
function mxArchiMate3Node(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Node,mxShape);mxArchiMate3Node.prototype.cst={NODE:"mxgraph.archimate3.node"};mxArchiMate3Node.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};
|
|
mxArchiMate3Node.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,.25*c);a.lineTo(.25*b,0);a.lineTo(b,0);a.lineTo(b,.75*c);a.lineTo(.75*b,c);a.lineTo(0,c);a.close();a.moveTo(0,.25*c);a.lineTo(.75*b,.25*c);a.lineTo(.75*b,c);a.moveTo(b,0);a.lineTo(.75*b,.25*c);a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3Node.prototype.cst.NODE,mxArchiMate3Node);function mxArchiMate3Device(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxArchiMate3Device,mxShape);mxArchiMate3Device.prototype.cst={DEVICE:"mxgraph.archimate3.device"};mxArchiMate3Device.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};mxArchiMate3Device.prototype.background=function(a,d,e,b,c){a.roundrect(0,0,b,.88*c,.1*b,.1*c);a.fillAndStroke();a.begin();a.moveTo(.1*b,.88*c);a.lineTo(0,c);a.lineTo(b,c);a.lineTo(.9*b,.88*c);a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxArchiMate3Device.prototype.cst.DEVICE,mxArchiMate3Device);function mxArchiMate3SysSw(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3SysSw,mxShape);mxArchiMate3SysSw.prototype.cst={SYS_SW:"mxgraph.archimate3.sysSw"};mxArchiMate3SysSw.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};
|
|
mxArchiMate3SysSw.prototype.background=function(a,d,e,b,c){a.ellipse(.3*b,0,.7*b,.7*c);a.stroke();a.ellipse(0,.02*c,.98*b,.98*c);a.fillAndStroke()};mxCellRenderer.registerShape(mxArchiMate3SysSw.prototype.cst.SYS_SW,mxArchiMate3SysSw);function mxArchiMate3Artifact(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Artifact,mxShape);mxArchiMate3Artifact.prototype.cst={ARTIFACT:"mxgraph.archimate3.artifact"};
|
|
mxArchiMate3Artifact.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};mxArchiMate3Artifact.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,0);a.lineTo(.7*b,0);a.lineTo(b,.22*c);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke();a.begin();a.moveTo(.7*b,0);a.lineTo(.7*b,.22*c);a.lineTo(b,.22*c);a.stroke()};mxCellRenderer.registerShape(mxArchiMate3Artifact.prototype.cst.ARTIFACT,mxArchiMate3Artifact);
|
|
function mxArchiMate3CommNetw(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3CommNetw,mxShape);mxArchiMate3CommNetw.prototype.cst={COMM_NETW:"mxgraph.archimate3.commNetw"};mxArchiMate3CommNetw.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};
|
|
mxArchiMate3CommNetw.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(.2*b,c);a.lineTo(0,.5*c);a.lineTo(.2*b,0);a.moveTo(.8*b,c);a.lineTo(b,.5*c);a.lineTo(.8*b,0);a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.stroke()};mxCellRenderer.registerShape(mxArchiMate3CommNetw.prototype.cst.COMM_NETW,mxArchiMate3CommNetw);function mxArchiMate3Path(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxArchiMate3Path,mxShape);
|
|
mxArchiMate3Path.prototype.cst={PATH:"mxgraph.archimate3.path"};mxArchiMate3Path.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1)};mxArchiMate3Path.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(.2*b,c);a.lineTo(0,.5*c);a.lineTo(.2*b,0);a.moveTo(.8*b,c);a.lineTo(b,.5*c);a.lineTo(.8*b,0);a.stroke();a.setDashed(!0);a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.stroke()};
|
|
mxCellRenderer.registerShape(mxArchiMate3Path.prototype.cst.PATH,mxArchiMate3Path);function mxShapeArrows2Arrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeArrows2Arrow,mxActor);mxShapeArrows2Arrow.prototype.cst={ARROW:"mxgraph.arrows2.arrow"};
|
|
mxShapeArrows2Arrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=.5*c*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch))));a.begin();a.moveTo(0,d);a.lineTo(b-e,d);a.lineTo(b-e,0);a.lineTo(b,.5*c);a.lineTo(b-e,c);a.lineTo(b-e,c-d);a.lineTo(0,c-d);a.lineTo(f,.5*c);a.close();a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeArrows2Arrow.prototype.cst.ARROW,mxShapeArrows2Arrow);mxShapeArrows2Arrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2Arrow.prototype.cst.ARROW]=function(a){var d=[Graph.createHandle(a,["dx","dy"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),c=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+a.width-b,a.y+c*a.height/2)},function(a,b){this.state.style.dx=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch)),
|
|
a.x+a.width-b.x)))/100;this.state.style.dy=Math.round(100*Math.max(0,Math.min(1,(b.y-a.y)/a.height*2)))/100})];a=Graph.createHandle(a,["notch"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))));return new mxPoint(a.x+b,a.y+a.height/2)},function(a,b){this.state.style.notch=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)),b.x-a.x)))/100});d.push(a);return d};
|
|
function mxShapeArrows2TwoWayArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5}mxUtils.extend(mxShapeArrows2TwoWayArrow,mxActor);mxShapeArrows2TwoWayArrow.prototype.cst={TWO_WAY_ARROW:"mxgraph.arrows2.twoWayArrow"};
|
|
mxShapeArrows2TwoWayArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=.5*c*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));a.begin();a.moveTo(e,d);a.lineTo(b-e,d);a.lineTo(b-e,0);a.lineTo(b,.5*c);a.lineTo(b-e,c);a.lineTo(b-e,c-d);a.lineTo(e,c-d);a.lineTo(e,c);a.lineTo(0,.5*c);a.lineTo(e,0);a.close();a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeArrows2TwoWayArrow.prototype.cst.TWO_WAY_ARROW,mxShapeArrows2TwoWayArrow);mxShapeArrows2TwoWayArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2TwoWayArrow.prototype.cst.TWO_WAY_ARROW]=function(a){return[Graph.createHandle(a,["dx","dy"],function(a){var d=Math.max(0,Math.min(a.width/2,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),b=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+a.width-d,a.y+b*a.height/2)},function(a,e){this.state.style.dx=Math.round(100*Math.max(0,Math.min(a.width/2,a.x+a.width-e.x)))/100;this.state.style.dy=Math.round(100*
|
|
Math.max(0,Math.min(1,(e.y-a.y)/a.height*2)))/100})]};function mxShapeArrows2StylisedArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0;this.feather=.5}mxUtils.extend(mxShapeArrows2StylisedArrow,mxActor);mxShapeArrows2StylisedArrow.prototype.cst={STYLISED_ARROW:"mxgraph.arrows2.stylisedArrow"};
|
|
mxShapeArrows2StylisedArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=.5*c*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch)))),g=.5*c*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"feather",this.feather))));a.begin();a.moveTo(0,g);a.lineTo(b-e,d);a.lineTo(b-e-10,0);
|
|
a.lineTo(b,.5*c);a.lineTo(b-e-10,c);a.lineTo(b-e,c-d);a.lineTo(0,c-g);a.lineTo(f,.5*c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2StylisedArrow.prototype.cst.STYLISED_ARROW,mxShapeArrows2StylisedArrow);mxShapeArrows2StylisedArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2StylisedArrow.prototype.cst.STYLISED_ARROW]=function(a){var d=[Graph.createHandle(a,["dx","dy"],function(a){var b=Math.max(0,Math.min(a.width-10,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+a.width-b,a.y+d*a.height/2)},function(a,c){this.state.style.dx=Math.round(100*Math.max(0,Math.min(a.width-10,a.width-parseFloat(mxUtils.getValue(this.state.style,
|
|
"notch",this.notch)),a.x+a.width-c.x)))/100;this.state.style.dy=Math.round(100*Math.max(0,Math.min(1,(c.y-a.y)/a.height*2)))/100})],e=Graph.createHandle(a,["notch"],function(a){var b=Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)),parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))));return new mxPoint(a.x+b,a.y+a.height/2)},function(a,c){this.state.style.notch=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,
|
|
"dx",this.dx)),c.x-a.x)))/100});d.push(e);a=Graph.createHandle(a,["feather"],function(a){var b=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"feather",this.dy))));return new mxPoint(a.x,a.y+b*a.height/2)},function(a,c){this.state.style.feather=Math.round(100*Math.max(0,Math.min(1,(c.y-a.y)/a.height*2)))/100});d.push(a);return d};
|
|
function mxShapeArrows2SharpArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx2=this.dx1=this.dy1=.5;this.notch=0}mxUtils.extend(mxShapeArrows2SharpArrow,mxActor);mxShapeArrows2SharpArrow.prototype.cst={SHARP_ARROW:"mxgraph.arrows2.sharpArrow"};
|
|
mxShapeArrows2SharpArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=.5*c*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"dy1",this.dy1))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx1",this.dx1))));var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx2",this.dx2)))),g=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch)))),h=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx1",this.dx1)))),
|
|
k=.5*c*Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy1",this.dy1)))),l=0;0!=c&&(l=h+f*k*2/c);a.begin();a.moveTo(0,d);a.lineTo(b-e,d);a.lineTo(b-l,0);a.lineTo(b-f,0);a.lineTo(b,.5*c);a.lineTo(b-f,c);a.lineTo(b-l,c);a.lineTo(b-e,c-d);a.lineTo(0,c-d);a.lineTo(g,.5*c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2SharpArrow.prototype.cst.SHARP_ARROW,mxShapeArrows2SharpArrow);mxShapeArrows2SharpArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2SharpArrow.prototype.cst.SHARP_ARROW]=function(a){var d=[Graph.createHandle(a,["dx1","dy1"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)))),d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1))));return new mxPoint(a.x+a.width-b,a.y+d*a.height/2)},function(a,c){this.state.style.dx1=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"notch",
|
|
this.notch)),a.x+a.width-c.x)))/100;this.state.style.dy1=Math.round(100*Math.max(0,Math.min(1,(c.y-a.y)/a.height*2)))/100})],e=Graph.createHandle(a,["notch"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))));return new mxPoint(a.x+b,a.y+a.height/2)},function(a,c){this.state.style.notch=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)),c.x-a.x)))/100});d.push(e);a=Graph.createHandle(a,
|
|
["dx2"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx2",this.dx2))));return new mxPoint(a.x+a.width-b,a.y)},function(a,c){this.state.style.dx2=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch)),a.x+a.width-c.x)))/100});d.push(a);return d};
|
|
function mxShapeArrows2SharpArrow2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx3=this.dy3=this.dx2=this.dx1=this.dy1=.5;this.notch=0}mxUtils.extend(mxShapeArrows2SharpArrow2,mxActor);mxShapeArrows2SharpArrow2.prototype.cst={SHARP_ARROW2:"mxgraph.arrows2.sharpArrow2"};
|
|
mxShapeArrows2SharpArrow2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=.5*c*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"dy1",this.dy1))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx1",this.dx1))));var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx2",this.dx2)))),g=.5*c*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"dy3",this.dy3)))),h=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx3",
|
|
this.dx3)))),k=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch))));parseFloat(mxUtils.getValue(this.style,"dx1",this.dx1));parseFloat(mxUtils.getValue(this.style,"dy1",this.dy1));a.begin();a.moveTo(0,d);a.lineTo(b-e,d);a.lineTo(b-h,g);a.lineTo(b-f,0);a.lineTo(b,.5*c);a.lineTo(b-f,c);a.lineTo(b-h,c-g);a.lineTo(b-e,c-d);a.lineTo(0,c-d);a.lineTo(k,.5*c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2SharpArrow2.prototype.cst.SHARP_ARROW2,mxShapeArrows2SharpArrow2);
|
|
mxShapeArrows2SharpArrow2.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2SharpArrow2.prototype.cst.SHARP_ARROW2]=function(a){var d=[Graph.createHandle(a,["dx1","dy1"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)))),d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1))));return new mxPoint(a.x+a.width-b,a.y+d*a.height/2)},function(a,c){this.state.style.dx1=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,
|
|
"notch",this.notch)),a.x+a.width-c.x)))/100;this.state.style.dy1=Math.round(100*Math.max(0,Math.min(1,(c.y-a.y)/a.height*2)))/100})],e=Graph.createHandle(a,["notch"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))));return new mxPoint(a.x+b,a.y+a.height/2)},function(a,c){this.state.style.notch=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)),c.x-a.x)))/100});d.push(e);e=Graph.createHandle(a,
|
|
["dx2"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx2",this.dx2))));return new mxPoint(a.x+a.width-b,a.y)},function(a,c){this.state.style.dx2=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch)),a.x+a.width-c.x)))/100});d.push(e);a=Graph.createHandle(a,["dx3","dy3"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx3",this.dx3)))),d=Math.max(0,Math.min(1-
|
|
parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1))/2,parseFloat(mxUtils.getValue(this.state.style,"dy3",this.dy3))));return new mxPoint(a.x+a.width-b,a.y+d*a.height/2)},function(a,c){this.state.style.dx3=Math.round(100*Math.max(parseFloat(mxUtils.getValue(this.state.style,"dx2",this.dx2)),Math.min(a.width,a.x+a.width-c.x)))/100;this.state.style.dy3=Math.round(100*Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1)),(c.y-a.y)/a.height*2)))/100});d.push(a);return d};
|
|
function mxShapeArrows2CalloutArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.arrowHead=this.notch=0}mxUtils.extend(mxShapeArrows2CalloutArrow,mxActor);mxShapeArrows2CalloutArrow.prototype.cst={CALLOUT_ARROW:"mxgraph.arrows2.calloutArrow"};
|
|
mxShapeArrows2CalloutArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch)))),g=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"arrowHead",this.arrowHead))));a.begin();a.moveTo(0,0);a.lineTo(f,0);a.lineTo(f,.5*c-d);a.lineTo(b-
|
|
e,.5*c-d);a.lineTo(b-e,.5*c-d-g);a.lineTo(b,.5*c);a.lineTo(b-e,.5*c+d+g);a.lineTo(b-e,.5*c+d);a.lineTo(f,.5*c+d);a.lineTo(f,c);a.lineTo(0,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2CalloutArrow.prototype.cst.CALLOUT_ARROW,mxShapeArrows2CalloutArrow);mxShapeArrows2CalloutArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2CalloutArrow.prototype.cst.CALLOUT_ARROW]=function(a){var d=[Graph.createHandle(a,["dx","dy"],function(a){var b=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),b=Math.max(0,Math.min(a.height/2-b,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+a.width-d,a.y+a.height/2-b)},function(a,
|
|
c){this.state.style.dx=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch)),a.x+a.width-c.x)))/100;this.state.style.dy=Math.round(100*Math.max(0,Math.min(a.height/2-parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)),a.y+a.height/2-c.y)))/100})],e=Graph.createHandle(a,["notch"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))));return new mxPoint(a.x+b,a.y+a.height/
|
|
2)},function(a,c){this.state.style.notch=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)),c.x-a.x)))/100});d.push(e);a=Graph.createHandle(a,["arrowHead"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),d=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)))),e=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",
|
|
this.arrowHead))));return new mxPoint(a.x+a.width-b,a.y+a.height/2-d-e)},function(a,c){this.state.style.arrowHead=Math.round(100*Math.max(0,Math.min(a.height/2-parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)),a.y+a.height/2-parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))-c.y)))/100});d.push(a);return d};
|
|
function mxShapeArrows2BendArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0;this.arrowHead=40}mxUtils.extend(mxShapeArrows2BendArrow,mxActor);mxShapeArrows2BendArrow.prototype.cst={BEND_ARROW:"mxgraph.arrows2.bendArrow"};
|
|
mxShapeArrows2BendArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));var f=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"notch",this.notch)))),g=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"arrowHead",this.arrowHead)))),h=mxUtils.getValue(this.style,"rounded","0");a.begin();a.moveTo(b-e,0);
|
|
a.lineTo(b,.5*g);a.lineTo(b-e,g);a.lineTo(b-e,g/2+d);"1"==h?(a.lineTo(2.2*d,g/2+d),a.arcTo(.2*d,.2*d,0,0,0,2*d,g/2+1.2*d)):a.lineTo(2*d,g/2+d);a.lineTo(2*d,c);a.lineTo(d,c-f);a.lineTo(0,c);"1"==h?(a.lineTo(0,g/2+d),a.arcTo(2*d,2*d,0,0,1,2*d,g/2-d)):a.lineTo(0,g/2-d);a.lineTo(b-e,g/2-d);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2BendArrow.prototype.cst.BEND_ARROW,mxShapeArrows2BendArrow);mxShapeArrows2BendArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2BendArrow.prototype.cst.BEND_ARROW]=function(a){var d=[Graph.createHandle(a,["dx","dy"],function(a){var b=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+a.width-d,a.y+b/2-e)},function(a,c){this.state.style.dx=
|
|
Math.round(100*Math.max(0,Math.min(a.width-2.2*parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)),a.x+a.width-c.x)))/100;this.state.style.dy=Math.round(100*Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))/2,a.y+parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))/2-c.y)))/100})],e=Graph.createHandle(a,["notch"],function(a){var b=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),
|
|
d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)))),b=Math.max(0,Math.min(a.height-b/2-d,parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))));return new mxPoint(a.x+d,a.y+a.height-b)},function(a,c){this.state.style.notch=Math.round(100*Math.max(0,Math.min(a.height-parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))/2-parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)),a.y+a.height-c.y)))/100});d.push(e);a=Graph.createHandle(a,
|
|
["arrowHead"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),d=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))));return new mxPoint(a.x+a.width-b,a.y+d)},function(a,c){this.state.style.arrowHead=Math.round(100*Math.max(2*parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)),Math.min(a.height,c.y-a.y)))/100});d.push(a);return d};
|
|
function mxShapeArrows2BendDoubleArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0;this.arrowHead=40}mxUtils.extend(mxShapeArrows2BendDoubleArrow,mxActor);mxShapeArrows2BendDoubleArrow.prototype.cst={BEND_DOUBLE_ARROW:"mxgraph.arrows2.bendDoubleArrow"};
|
|
mxShapeArrows2BendDoubleArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"arrowHead",this.arrowHead)))),g=mxUtils.getValue(this.style,"rounded","0");a.begin();a.moveTo(b-e,0);a.lineTo(b,.5*f);a.lineTo(b-e,f);a.lineTo(b-e,f/2+d);"1"==g?(a.lineTo(f/2+1.2*
|
|
d,f/2+d),a.arcTo(.2*d,.2*d,0,0,0,f/2+d,f/2+1.2*d)):a.lineTo(f/2+d,f/2+d);a.lineTo(f/2+d,c-e);a.lineTo(f,c-e);a.lineTo(f/2,c);a.lineTo(0,c-e);a.lineTo(f/2-d,c-e);"1"==g?(a.lineTo(f/2-d,f/2+d),a.arcTo(2*d,2*d,0,0,1,f/2+d,f/2-d)):a.lineTo(f/2-d,f/2-d);a.lineTo(b-e,f/2-d);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2BendDoubleArrow.prototype.cst.BEND_DOUBLE_ARROW,mxShapeArrows2BendDoubleArrow);mxShapeArrows2BendDoubleArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2BendDoubleArrow.prototype.cst.BEND_DOUBLE_ARROW]=function(a){var d=[Graph.createHandle(a,["dx","dy"],function(a){var b=Math.max(0,Math.min(Math.min(a.height,a.width)-parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)),parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),c=Math.max(0,Math.min(Math.min(a.width,a.height)-b,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.state.style,
|
|
"dy",this.dy))));return new mxPoint(a.x+a.width-c,a.y+b/2-d)},function(a,b){this.state.style.dx=Math.round(100*Math.max(0,Math.min(Math.min(a.width,a.height)-parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)),a.x+a.width-b.x)))/100;this.state.style.dy=Math.round(100*Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))/2,a.y+parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))/2-b.y)))/100})];a=Graph.createHandle(a,
|
|
["arrowHead"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),c=Math.max(0,Math.min(Math.min(a.height,a.width)-b,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))));return new mxPoint(a.x+a.width-b,a.y+c)},function(a,b){this.state.style.arrowHead=Math.round(100*Math.max(2*parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)),Math.min(Math.min(a.height,a.width)-parseFloat(mxUtils.getValue(this.state.style,"dx",
|
|
this.dx)),b.y-a.y)))/100});d.push(a);return d};function mxShapeArrows2CalloutDoubleArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.arrowHead=this.notch=0}mxUtils.extend(mxShapeArrows2CalloutDoubleArrow,mxActor);mxShapeArrows2CalloutDoubleArrow.prototype.cst={CALLOUT_DOUBLE_ARROW:"mxgraph.arrows2.calloutDoubleArrow"};
|
|
mxShapeArrows2CalloutDoubleArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch)))),g=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"arrowHead",this.arrowHead))));a.begin();a.moveTo(b/2-f,0);a.lineTo(b/2+f,0);a.lineTo(b/2+f,
|
|
.5*c-d);a.lineTo(b-e,.5*c-d);a.lineTo(b-e,.5*c-d-g);a.lineTo(b,.5*c);a.lineTo(b-e,.5*c+d+g);a.lineTo(b-e,.5*c+d);a.lineTo(b/2+f,.5*c+d);a.lineTo(b/2+f,c);a.lineTo(b/2-f,c);a.lineTo(b/2-f,.5*c+d);a.lineTo(e,.5*c+d);a.lineTo(e,.5*c+d+g);a.lineTo(0,.5*c);a.lineTo(e,.5*c-d-g);a.lineTo(e,.5*c-d);a.lineTo(b/2-f,.5*c-d);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2CalloutDoubleArrow.prototype.cst.CALLOUT_DOUBLE_ARROW,mxShapeArrows2CalloutDoubleArrow);
|
|
mxShapeArrows2CalloutDoubleArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2CalloutDoubleArrow.prototype.cst.CALLOUT_DOUBLE_ARROW]=function(a){var d=[Graph.createHandle(a,["dx","dy"],function(a){var b=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),b=Math.max(0,Math.min(a.height/2-b,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+a.width-d,a.y+a.height/
|
|
2-b)},function(a,c){this.state.style.dx=Math.round(100*Math.max(0,Math.min(a.width/2-parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch)),a.x+a.width-c.x)))/100;this.state.style.dy=Math.round(100*Math.max(0,Math.min(a.height/2-parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)),a.y+a.height/2-c.y)))/100})],e=Graph.createHandle(a,["notch"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))));return new mxPoint(a.x+
|
|
a.width/2+b,a.y+a.height/2)},function(a,c){this.state.style.notch=Math.round(100*Math.max(0,Math.min(a.width/2-parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)),c.x-a.x-a.width/2)))/100});d.push(e);a=Graph.createHandle(a,["arrowHead"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),d=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)))),e=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,
|
|
"arrowHead",this.arrowHead))));return new mxPoint(a.x+a.width-b,a.y+a.height/2-d-e)},function(a,c){this.state.style.arrowHead=Math.round(100*Math.max(0,Math.min(a.height/2-parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)),a.y+a.height/2-parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))-c.y)))/100});d.push(a);return d};
|
|
function mxShapeArrows2CalloutQuadArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.arrowHead=this.notch=0}mxUtils.extend(mxShapeArrows2CalloutQuadArrow,mxActor);mxShapeArrows2CalloutQuadArrow.prototype.cst={CALLOUT_QUAD_ARROW:"mxgraph.arrows2.calloutQuadArrow"};
|
|
mxShapeArrows2CalloutQuadArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch)))),g=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"arrowHead",this.arrowHead))));a.begin();a.moveTo(.5*b+d,.5*c-f);a.lineTo(.5*b+f,.5*c-f);a.lineTo(.5*
|
|
b+f,.5*c-d);a.lineTo(b-e,.5*c-d);a.lineTo(b-e,.5*c-d-g);a.lineTo(b,.5*c);a.lineTo(b-e,.5*c+d+g);a.lineTo(b-e,.5*c+d);a.lineTo(.5*b+f,.5*c+d);a.lineTo(.5*b+f,.5*c+f);a.lineTo(.5*b+d,.5*c+f);a.lineTo(.5*b+d,c-e);a.lineTo(.5*b+d+g,c-e);a.lineTo(.5*b,c);a.lineTo(.5*b-d-g,c-e);a.lineTo(.5*b-d,c-e);a.lineTo(.5*b-d,.5*c+f);a.lineTo(.5*b-f,.5*c+f);a.lineTo(.5*b-f,.5*c+d);a.lineTo(e,.5*c+d);a.lineTo(e,.5*c+d+g);a.lineTo(0,.5*c);a.lineTo(e,.5*c-d-g);a.lineTo(e,.5*c-d);a.lineTo(.5*b-f,.5*c-d);a.lineTo(.5*b-
|
|
f,.5*c-f);a.lineTo(.5*b-d,.5*c-f);a.lineTo(.5*b-d,e);a.lineTo(.5*b-d-g,e);a.lineTo(.5*b,0);a.lineTo(.5*b+d+g,e);a.lineTo(.5*b+d,e);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2CalloutQuadArrow.prototype.cst.CALLOUT_QUAD_ARROW,mxShapeArrows2CalloutQuadArrow);mxShapeArrows2CalloutQuadArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2CalloutQuadArrow.prototype.cst.CALLOUT_QUAD_ARROW]=function(a){var d=[Graph.createHandle(a,["dx","dy"],function(a){parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead));var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),d=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+a.width-b,a.y+a.height/2-d)},function(a,c){this.state.style.dx=Math.round(100*
|
|
Math.max(0,Math.min(Math.min(a.width,a.height)/2-Math.max(parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch)),parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))),a.x+a.width-c.x)))/100;this.state.style.dy=Math.round(100*Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch)),a.y+a.height/2-c.y)))/100})],e=Graph.createHandle(a,["notch"],function(a){var b=Math.max(parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)),Math.min(Math.min(a.width,
|
|
a.height),parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))));return new mxPoint(a.x+a.width/2+b,a.y+a.height/2)},function(a,c){this.state.style.notch=Math.round(100*Math.max(parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)),Math.min(Math.min(a.width,a.height)/2-parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)),c.x-a.x-a.width/2)))/100});d.push(e);a=Graph.createHandle(a,["arrowHead"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,
|
|
"dx",this.dx)))),d=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)))),e=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))));return new mxPoint(a.x+a.width-b,a.y+a.height/2-d-e)},function(a,c){this.state.style.arrowHead=Math.round(100*Math.max(0,Math.min(a.height/2-parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)),a.y+a.height/2-c.y)))/100});d.push(a);return d};
|
|
function mxShapeArrows2CalloutDouble90Arrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx1=this.dy1=.5;this.arrowHead=this.dy2=this.dx2=0}mxUtils.extend(mxShapeArrows2CalloutDouble90Arrow,mxActor);mxShapeArrows2CalloutDouble90Arrow.prototype.cst={CALLOUT_DOUBLE_90_ARROW:"mxgraph.arrows2.calloutDouble90Arrow"};
|
|
mxShapeArrows2CalloutDouble90Arrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy1",this.dy1))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx1",this.dx1))));var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx2",this.dx2)))),g=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dy2",this.dy2)))),h=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"arrowHead",
|
|
this.arrowHead))));a.begin();a.moveTo(0,0);a.lineTo(f,0);a.lineTo(f,.5*g-d);a.lineTo(b-e,.5*g-d);a.lineTo(b-e,.5*g-d-h);a.lineTo(b,.5*g);a.lineTo(b-e,.5*g+d+h);a.lineTo(b-e,.5*g+d);a.lineTo(f,.5*g+d);a.lineTo(f,g);a.lineTo(f/2+d,g);a.lineTo(f/2+d,c-e);a.lineTo(f/2+d+h,c-e);a.lineTo(f/2,c);a.lineTo(f/2-d-h,c-e);a.lineTo(f/2-d,c-e);a.lineTo(f/2-d,g);a.lineTo(0,g);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2CalloutDouble90Arrow.prototype.cst.CALLOUT_DOUBLE_90_ARROW,mxShapeArrows2CalloutDouble90Arrow);
|
|
mxShapeArrows2CalloutDouble90Arrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2CalloutDouble90Arrow.prototype.cst.CALLOUT_DOUBLE_90_ARROW]=function(a){var d=[Graph.createHandle(a,["dx1","dy1"],function(a){var b=Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2))/2,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),d=Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"dx2",this.dx2)),parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)))),b=Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,
|
|
"dy2",this.dy2))/2-b,parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1))));return new mxPoint(a.x+a.width-d,a.y+parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2))/2-b)},function(a,c){this.state.style.dx1=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"dx2",this.dx2)),a.height-parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2)),a.x+a.width-c.x)))/100;this.state.style.dy1=Math.round(100*Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,
|
|
"dy2",this.dy2))/2-parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)),a.y+parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2))/2-c.y)))/100})],e=Graph.createHandle(a,["dx2","dy2"],function(a){var b=Math.max(parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1))+parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)),Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)),parseFloat(mxUtils.getValue(this.state.style,"dx2",
|
|
this.dx2)))),d=Math.max(parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1))+parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)),Math.min(a.height-parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1)),parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2))));return new mxPoint(a.x+b,a.y+d)},function(a,c){this.state.style.dx2=Math.round(100*Math.max(parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1))+parseFloat(mxUtils.getValue(this.state.style,
|
|
"arrowHead",this.arrowHead)),Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)),c.x-a.x)))/100;this.state.style.dy2=Math.round(100*Math.max(parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1))+parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)),Math.min(a.height-parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)),c.y-a.y)))/100});d.push(e);a=Graph.createHandle(a,["arrowHead"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,
|
|
"dx1",this.dx1)))),d=Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2))/2,parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1)))),e=Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2))/2,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))));return new mxPoint(a.x+a.width-b,a.y+parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2))/2-d-e)},function(a,c){this.state.style.arrowHead=Math.round(100*Math.max(0,
|
|
Math.min(parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2))/2-parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1)),a.y+parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2))/2-parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1))-c.y)))/100});d.push(a);return d};function mxShapeArrows2QuadArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.arrowHead=this.notch=0}
|
|
mxUtils.extend(mxShapeArrows2QuadArrow,mxActor);mxShapeArrows2QuadArrow.prototype.cst={QUAD_ARROW:"mxgraph.arrows2.quadArrow"};
|
|
mxShapeArrows2QuadArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));var f=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"arrowHead",this.arrowHead))));a.begin();a.moveTo(.5*b+d,.5*c-d);a.lineTo(b-e,.5*c-d);a.lineTo(b-e,.5*c-d-f);a.lineTo(b,.5*c);a.lineTo(b-e,.5*c+d+f);a.lineTo(b-e,.5*c+d);a.lineTo(.5*b+d,
|
|
.5*c+d);a.lineTo(.5*b+d,c-e);a.lineTo(.5*b+d+f,c-e);a.lineTo(.5*b,c);a.lineTo(.5*b-d-f,c-e);a.lineTo(.5*b-d,c-e);a.lineTo(.5*b-d,.5*c+d);a.lineTo(e,.5*c+d);a.lineTo(e,.5*c+d+f);a.lineTo(0,.5*c);a.lineTo(e,.5*c-d-f);a.lineTo(e,.5*c-d);a.lineTo(.5*b-d,.5*c-d);a.lineTo(.5*b-d,e);a.lineTo(.5*b-d-f,e);a.lineTo(.5*b,0);a.lineTo(.5*b+d+f,e);a.lineTo(.5*b+d,e);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2QuadArrow.prototype.cst.QUAD_ARROW,mxShapeArrows2QuadArrow);
|
|
mxShapeArrows2QuadArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2QuadArrow.prototype.cst.QUAD_ARROW]=function(a){var d=[Graph.createHandle(a,["dx","dy"],function(a){parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead));var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),c=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+a.width-b,a.y+a.height/2-c)},function(a,b){this.state.style.dx=Math.round(100*Math.max(0,
|
|
Math.min(Math.min(a.width,a.height)/2-parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))-parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)),a.x+a.width-b.x)))/100;this.state.style.dy=Math.round(100*Math.max(0,Math.min(a.height/2-parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)),a.y+a.height/2-b.y)))/100})];a=Graph.createHandle(a,["arrowHead"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),
|
|
c=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)))),d=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))));return new mxPoint(a.x+a.width-b,a.y+a.height/2-c-d)},function(a,b){this.state.style.arrowHead=Math.round(100*Math.max(0,Math.min(a.height/2-parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)),a.y+a.height/2-b.y)))/100});d.push(a);return d};
|
|
function mxShapeArrows2TriadArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.arrowHead=0}mxUtils.extend(mxShapeArrows2TriadArrow,mxActor);mxShapeArrows2TriadArrow.prototype.cst={TRIAD_ARROW:"mxgraph.arrows2.triadArrow"};
|
|
mxShapeArrows2TriadArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));var f=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"arrowHead",this.arrowHead))));a.begin();a.moveTo(.5*b+.5*f-d,c-f+d);a.lineTo(b-e,c-f+d);a.lineTo(b-e,c-f);a.lineTo(b,c-.5*f);a.lineTo(b-e,c);a.lineTo(b-e,c-d);a.lineTo(e,c-d);a.lineTo(e,
|
|
c);a.lineTo(0,c-.5*f);a.lineTo(e,c-f);a.lineTo(e,c-f+d);a.lineTo(.5*b-.5*f+d,c-f+d);a.lineTo(.5*b-.5*f+d,e);a.lineTo(.5*b-.5*f,e);a.lineTo(.5*b,0);a.lineTo(.5*b+.5*f,e);a.lineTo(.5*b+.5*f-d,e);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2TriadArrow.prototype.cst.TRIAD_ARROW,mxShapeArrows2TriadArrow);mxShapeArrows2TriadArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2TriadArrow.prototype.cst.TRIAD_ARROW]=function(a){var d=[Graph.createHandle(a,["dx","dy"],function(a){var b=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),c=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),b=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+a.width-c,a.y+a.height-b)},function(a,b){this.state.style.dx=
|
|
Math.round(100*Math.max(0,Math.min(Math.min(a.height-parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)),a.width/2-parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))/2),a.x+a.width-b.x)))/100;this.state.style.dy=Math.round(100*Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))/2,a.y+a.height-b.y)))/100})];a=Graph.createHandle(a,["arrowHead"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,
|
|
"dx",this.dx))));parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy));var c=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))));return new mxPoint(a.x+a.width-b,a.y+a.height-c)},function(a,b){this.state.style.arrowHead=Math.round(100*Math.max(2*parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)),Math.min(a.height-parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)),a.width-2*parseFloat(mxUtils.getValue(this.state.style,"dx",
|
|
this.dx)),a.y+a.height-b.y)))/100});d.push(a);return d};function mxShapeArrows2TailedArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.arrowHead=this.notch=0}mxUtils.extend(mxShapeArrows2TailedArrow,mxActor);mxShapeArrows2TailedArrow.prototype.cst={TAILED_ARROW:"mxgraph.arrows2.tailedArrow"};
|
|
mxShapeArrows2TailedArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy1",this.dy1))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx1",this.dx1))));var f=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy2",this.dy2)))),g=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx2",this.dx2)))),h=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch)))),
|
|
k=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"arrowHead",this.arrowHead)))),l=0;0!=f&&(l=g+f*(f-d)/f);a.begin();a.moveTo(0,.5*c-f);a.lineTo(g,.5*c-f);a.lineTo(l,.5*c-d);a.lineTo(b-e,.5*c-d);a.lineTo(b-e,.5*c-d-k);a.lineTo(b,.5*c);a.lineTo(b-e,.5*c+d+k);a.lineTo(b-e,.5*c+d);a.lineTo(l,.5*c+d);a.lineTo(g,.5*c+f);a.lineTo(0,.5*c+f);a.lineTo(h,.5*c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2TailedArrow.prototype.cst.TAILED_ARROW,mxShapeArrows2TailedArrow);
|
|
mxShapeArrows2TailedArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2TailedArrow.prototype.cst.TAILED_ARROW]=function(a){var d=[Graph.createHandle(a,["dx1","dy1"],function(a){var b=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)))),b=Math.max(0,Math.min(a.height/2-b,parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1))));return new mxPoint(a.x+a.width-d,a.y+a.height/2-b)},function(a,
|
|
c){this.state.style.dx1=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch)),a.width-parseFloat(mxUtils.getValue(this.state.style,"dx2",this.dx2)),a.x+a.width-c.x)))/100;this.state.style.dy1=Math.round(100*Math.max(0,Math.min(a.height/2-parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)),parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2)),a.y+a.height/2-c.y)))/100})],e=Graph.createHandle(a,["notch"],function(a){var b=
|
|
Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))));return new mxPoint(a.x+b,a.y+a.height/2)},function(a,c){this.state.style.notch=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)),parseFloat(mxUtils.getValue(this.state.style,"dx2",this.dx2)),c.x-a.x)))/100});d.push(e);e=Graph.createHandle(a,["arrowHead"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx1",
|
|
this.dx1)))),d=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1)))),e=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))));return new mxPoint(a.x+a.width-b,a.y+a.height/2-d-e)},function(a,c){this.state.style.arrowHead=Math.round(100*Math.max(0,Math.min(a.height/2-parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1)),a.y+a.height/2-c.y)))/100});d.push(e);a=Graph.createHandle(a,["dx2","dy2"],function(a){var b=
|
|
Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx2",this.dx2)))),d=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2))));return new mxPoint(a.x+b,a.y+a.height/2-d)},function(a,c){this.state.style.dx2=Math.round(100*Math.max(parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch)),Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1))-parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2))+parseFloat(mxUtils.getValue(this.state.style,
|
|
"dy1",this.dy1))-1,c.x-a.x)))/100;this.state.style.dy2=Math.round(100*Math.max(parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1)),Math.min(a.height/2,a.y+a.height/2-c.y)))/100});d.push(a);return d};function mxShapeArrows2TailedNotchedArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.arrowHead=this.notch=0}mxUtils.extend(mxShapeArrows2TailedNotchedArrow,mxActor);mxShapeArrows2TailedNotchedArrow.prototype.cst={TAILED_NOTCHED_ARROW:"mxgraph.arrows2.tailedNotchedArrow"};
|
|
mxShapeArrows2TailedNotchedArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy1",this.dy1))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx1",this.dx1))));var f=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy2",this.dy2)))),g=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx2",this.dx2)))),h=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch)))),
|
|
k=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"arrowHead",this.arrowHead)))),l=0;0!=f&&(l=g+h*(f-d)/f);a.begin();a.moveTo(0,.5*c-f);a.lineTo(g,.5*c-f);a.lineTo(l,.5*c-d);a.lineTo(b-e,.5*c-d);a.lineTo(b-e,.5*c-d-k);a.lineTo(b,.5*c);a.lineTo(b-e,.5*c+d+k);a.lineTo(b-e,.5*c+d);a.lineTo(l,.5*c+d);a.lineTo(g,.5*c+f);a.lineTo(0,.5*c+f);a.lineTo(h,.5*c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2TailedNotchedArrow.prototype.cst.TAILED_NOTCHED_ARROW,mxShapeArrows2TailedNotchedArrow);
|
|
mxShapeArrows2TailedNotchedArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2TailedNotchedArrow.prototype.cst.TAILED_NOTCHED_ARROW]=function(a){var d=[Graph.createHandle(a,["dx1","dy1"],function(a){var b=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)))),b=Math.max(0,Math.min(a.height/2-b,parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1))));return new mxPoint(a.x+a.width-d,a.y+a.height/
|
|
2-b)},function(a,c){this.state.style.dx1=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))-parseFloat(mxUtils.getValue(this.state.style,"dx2",this.dx2)),a.x+a.width-c.x)))/100;this.state.style.dy1=Math.round(100*Math.max(0,Math.min(a.height/2-parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)),parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2)),a.y+a.height/2-c.y)))/100})],e=Graph.createHandle(a,["notch"],function(a){var b=
|
|
Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))));return new mxPoint(a.x+b,a.y+a.height/2)},function(a,c){this.state.style.notch=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)),c.x-a.x)))/100});d.push(e);e=Graph.createHandle(a,["arrowHead"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)))),d=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,
|
|
"dy1",this.dy1)))),e=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))));return new mxPoint(a.x+a.width-b,a.y+a.height/2-d-e)},function(a,c){this.state.style.arrowHead=Math.round(100*Math.max(0,Math.min(a.height/2-parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1)),a.y+a.height/2-c.y)))/100});d.push(e);a=Graph.createHandle(a,["dx2","dy2"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx2",
|
|
this.dx2)))),d=Math.max(0,Math.min(a.height/2,parseFloat(mxUtils.getValue(this.state.style,"dy2",this.dy2))));return new mxPoint(a.x+b,a.y+a.height/2-d)},function(a,c){this.state.style.dx2=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))-parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1)),c.x-a.x)))/100;this.state.style.dy2=Math.round(100*Math.max(parseFloat(mxUtils.getValue(this.state.style,"dy1",this.dy1)),Math.min(a.height/2,
|
|
a.y+a.height/2-c.y)))/100});d.push(a);return d};function mxShapeArrows2StripedArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.notch=0}mxUtils.extend(mxShapeArrows2StripedArrow,mxActor);mxShapeArrows2StripedArrow.prototype.cst={STRIPED_ARROW:"mxgraph.arrows2.stripedArrow"};
|
|
mxShapeArrows2StripedArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=.5*c*Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch))));a.begin();a.moveTo(f,d);a.lineTo(b-e,d);a.lineTo(b-e,0);a.lineTo(b,.5*c);a.lineTo(b-e,c);a.lineTo(b-e,c-d);a.lineTo(f,c-d);a.close();a.moveTo(0,c-d);a.lineTo(.16*
|
|
f,c-d);a.lineTo(.16*f,d);a.lineTo(0,d);a.close();a.moveTo(.32*f,c-d);a.lineTo(.8*f,c-d);a.lineTo(.8*f,d);a.lineTo(.32*f,d);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2StripedArrow.prototype.cst.STRIPED_ARROW,mxShapeArrows2StripedArrow);mxShapeArrows2StripedArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2StripedArrow.prototype.cst.STRIPED_ARROW]=function(a){var d=[Graph.createHandle(a,["dx","dy"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),c=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+a.width-b,a.y+c*a.height/2)},function(a,b){this.state.style.dx=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"notch",
|
|
this.notch)),a.x+a.width-b.x)))/100;this.state.style.dy=Math.round(100*Math.max(0,Math.min(1,(b.y-a.y)/a.height*2)))/100})];a=Graph.createHandle(a,["notch"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))));return new mxPoint(a.x+b,a.y+a.height/2)},function(a,b){this.state.style.notch=Math.round(100*Math.max(0,Math.min(a.width-parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)),b.x-a.x)))/100});d.push(a);return d};
|
|
function mxShapeArrows2JumpInArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.arrowHead=40}mxUtils.extend(mxShapeArrows2JumpInArrow,mxActor);mxShapeArrows2JumpInArrow.prototype.cst={JUMP_IN_ARROW:"mxgraph.arrows2.jumpInArrow"};
|
|
mxShapeArrows2JumpInArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));var f=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"arrowHead",this.arrowHead))));a.begin();a.moveTo(b-e,0);a.lineTo(b,.5*f);a.lineTo(b-e,f);a.lineTo(b-e,f/2+d);a.arcTo(b-e,c-f/2-d,0,0,0,0,c);a.arcTo(b-e,c-f/2+d,0,0,1,b-e,f/2-d);a.close();
|
|
a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2JumpInArrow.prototype.cst.JUMP_IN_ARROW,mxShapeArrows2JumpInArrow);mxShapeArrows2JumpInArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2JumpInArrow.prototype.cst.JUMP_IN_ARROW]=function(a){var d=[Graph.createHandle(a,["dx","dy"],function(a){var b=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),c=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+a.width-c,a.y+b/2-d)},function(a,b){this.state.style.dx=
|
|
Math.round(100*Math.max(0,Math.min(a.width,a.x+a.width-b.x)))/100;this.state.style.dy=Math.round(100*Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))/2,a.y+parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))/2-b.y)))/100})];a=Graph.createHandle(a,["arrowHead"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),c=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,
|
|
"arrowHead",this.arrowHead))));return new mxPoint(a.x+a.width-b,a.y+c)},function(a,b){this.state.style.arrowHead=Math.round(100*Math.max(2*parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)),Math.min(a.height,b.y-a.y)))/100});d.push(a);return d};function mxShapeArrows2UTurnArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.arrowHead=40}mxUtils.extend(mxShapeArrows2UTurnArrow,mxActor);
|
|
mxShapeArrows2UTurnArrow.prototype.cst={U_TURN_ARROW:"mxgraph.arrows2.uTurnArrow"};
|
|
mxShapeArrows2UTurnArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));e=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"arrowHead",this.arrowHead))));var f=(c-e/2+d)/2,g=Math.max(0,parseFloat(mxUtils.getValue(this.style,"dx2",this.dx2)));a.begin();a.moveTo(f,0);a.lineTo(f+g,.5*e);a.lineTo(f,e);a.lineTo(f,e/2+d);a.arcTo(f-2*d,f-2*d,0,0,0,f,c-2*d);a.lineTo(Math.max(b,f),c-2*d);a.lineTo(Math.max(b,
|
|
f),c);a.lineTo(f,c);a.arcTo(f,f,0,0,1,f,e/2-d);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeArrows2UTurnArrow.prototype.cst.U_TURN_ARROW,mxShapeArrows2UTurnArrow);mxShapeArrows2UTurnArrow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeArrows2UTurnArrow.prototype.cst.U_TURN_ARROW]=function(a){var d=[Graph.createHandle(a,["dy"],function(a){var b=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+(a.height-b/2+d)/2,a.y+b/2-d)},function(a,c){this.state.style.dy=Math.round(100*Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,"arrowHead",
|
|
this.arrowHead))/2,a.y+parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead))/2-c.y)))/100})],e=Graph.createHandle(a,["dx2"],function(a){var b=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)))),d=(a.height-b/2+d)/2,e=Math.max(0,Math.min(a.width-d,parseFloat(mxUtils.getValue(this.state.style,"dx2",this.dx2))));return new mxPoint(a.x+d+e,a.y+
|
|
b/2)},function(a,c){var b=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)))),b=(a.height-b/2+d)/2;this.state.style.dx2=Math.round(100*Math.max(0,Math.min(Math.max(a.width,b),c.x-a.x-b)))/100});d.push(e);a=Graph.createHandle(a,["arrowHead"],function(a){var b=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"arrowHead",this.arrowHead)))),
|
|
d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+(a.height-b/2+d)/2,a.y+b)},function(a,c){this.state.style.arrowHead=Math.round(100*Math.max(2*parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy)),Math.min(a.height/2,c.y-a.y)))/100});d.push(a);return d};function mxShapeBasicCross(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=.5}mxUtils.extend(mxShapeBasicCross,mxActor);
|
|
mxShapeBasicCross.prototype.cst={CROSS:"mxgraph.basic.cross2"};mxShapeBasicCross.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));a.begin();a.moveTo(.5*b+d,0);a.lineTo(.5*b+d,.5*c-d);a.lineTo(b,.5*c-d);a.lineTo(b,.5*c+d);a.lineTo(.5*b+d,.5*c+d);a.lineTo(.5*b+d,c);a.lineTo(.5*b-d,c);a.lineTo(.5*b-d,.5*c+d);a.lineTo(0,.5*c+d);a.lineTo(0,.5*c-d);a.lineTo(.5*b-d,.5*c-d);a.lineTo(.5*b-d,0);a.close();a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeBasicCross.prototype.cst.CROSS,mxShapeBasicCross);mxShapeBasicCross.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeBasicCross.prototype.cst.CROSS]=function(a){return[Graph.createHandle(a,["dx"],function(a){var d=Math.max(0,Math.min(a.width/2,a.width/2,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx))));return new mxPoint(a.x+a.width/2+d,a.y+a.height/2-d)},function(a,e){this.state.style.dx=Math.round(100*Math.max(0,Math.min(a.height/2,a.width/2,e.x-a.x-a.width/2)))/100})]};
|
|
function mxShapeBasicRectCallout(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5}mxUtils.extend(mxShapeBasicRectCallout,mxActor);mxShapeBasicRectCallout.prototype.cst={RECT_CALLOUT:"mxgraph.basic.rectCallout"};
|
|
mxShapeBasicRectCallout.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));e=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));a.begin();a.moveTo(d-.5*e,c-e);a.lineTo(0,c-e);a.lineTo(0,0);a.lineTo(b,0);a.lineTo(b,c-e);a.lineTo(d+.5*e,c-e);a.lineTo(d-e,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeBasicRectCallout.prototype.cst.RECT_CALLOUT,mxShapeBasicRectCallout);
|
|
mxShapeBasicRectCallout.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeBasicRectCallout.prototype.cst.RECT_CALLOUT]=function(a){return[Graph.createHandle(a,["dx","dy"],function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),b=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+d,a.y+a.height-b)},function(a,e){var b=.6*parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy));this.state.style.dx=Math.round(100*Math.max(b,Math.min(a.width-
|
|
b,e.x-a.x)))/100;this.state.style.dy=Math.round(100*Math.max(0,Math.min(a.height,a.y+a.height-e.y)))/100})]};function mxShapeBasicRoundRectCallout(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx=this.dy=.5;this.size=10}mxUtils.extend(mxShapeBasicRoundRectCallout,mxActor);mxShapeBasicRoundRectCallout.prototype.cst={ROUND_RECT_CALLOUT:"mxgraph.basic.roundRectCallout"};
|
|
mxShapeBasicRoundRectCallout.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx",this.dx))));e=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));var f=Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"size",this.size)))),f=Math.min((c-e)/2,b/2,f);d=Math.max(f+.5*e,d);d=Math.min(b-f-.5*e,d);a.begin();a.moveTo(d-.5*e,c-e);a.lineTo(f,c-e);a.arcTo(f,f,0,0,1,0,c-e-f);a.lineTo(0,f);a.arcTo(f,
|
|
f,0,0,1,f,0);a.lineTo(b-f,0);a.arcTo(f,f,0,0,1,b,f);a.lineTo(b,c-e-f);a.arcTo(f,f,0,0,1,b-f,c-e);a.lineTo(d+.5*e,c-e);a.arcTo(1.9*e,1.4*e,0,0,1,d-e,c);a.arcTo(.9*e,1.4*e,0,0,0,d-.5*e,c-e);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeBasicRoundRectCallout.prototype.cst.ROUND_RECT_CALLOUT,mxShapeBasicRoundRectCallout);mxShapeBasicRoundRectCallout.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeBasicRoundRectCallout.prototype.cst.ROUND_RECT_CALLOUT]=function(a){var d=[Graph.createHandle(a,["dx","dy"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx",this.dx)))),c=Math.max(0,Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+b,a.y+a.height-c)},function(a,b){var c=.6*parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy));this.state.style.dx=Math.round(100*Math.max(c,
|
|
Math.min(a.width-c,b.x-a.x)))/100;this.state.style.dy=Math.round(100*Math.max(0,Math.min(a.height,a.y+a.height-b.y)))/100})];a=Graph.createHandle(a,["size"],function(a){var b=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"size",this.size))));return new mxPoint(a.x+a.width-b,a.y+10)},function(a,b){var c=parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy));this.state.style.size=Math.round(100*Math.max(0,Math.min(a.width/2,(a.height-c)/2,a.x+a.width-b.x)))/100});d.push(a);
|
|
return d};function mxShapeBasicWave(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dy=.5}mxUtils.extend(mxShapeBasicWave,mxActor);mxShapeBasicWave.prototype.cst={WAVE:"mxgraph.basic.wave2"};
|
|
mxShapeBasicWave.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=c*Math.max(0,Math.min(c,parseFloat(mxUtils.getValue(this.style,"dy",this.dy))));a.begin();a.moveTo(0,d/2);a.quadTo(b/6,d*(1-1.4),b/3,d/2);a.quadTo(b/2,1.4*d,2*b/3,d/2);a.quadTo(5*b/6,d*(1-1.4),b,d/2);a.lineTo(b,c-d/2);a.quadTo(5*b/6,c-1.4*d,2*b/3,c-d/2);a.quadTo(b/2,c-d*(1-1.4),b/3,c-d/2);a.quadTo(b/6,c-1.4*d,0,c-d/2);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeBasicWave.prototype.cst.WAVE,mxShapeBasicWave);
|
|
mxShapeBasicWave.prototype.constraints=null;Graph.handleFactory[mxShapeBasicWave.prototype.cst.WAVE]=function(a){return[Graph.createHandle(a,["dy"],function(a){var d=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dy",this.dy))));return new mxPoint(a.x+a.width/2,a.y+d*a.height)},function(a,e){this.state.style.dy=Math.round(100*Math.max(0,Math.min(1,(e.y-a.y)/a.height)))/100})]};
|
|
function mxShapeBootstrapRRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBootstrapRRect,mxShape);mxShapeBootstrapRRect.prototype.cst={PACKAGE:"mxgraph.bootstrap.rrect",R_SIZE:"rSize"};mxShapeBootstrapRRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeBootstrapRRect.prototype.cst.R_SIZE,"10"));a.roundrect(0,0,b,c,d);a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeBootstrapRRect.prototype.cst.PACKAGE,mxShapeBootstrapRRect);function mxShapeBootstrapTopButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBootstrapTopButton,mxShape);mxShapeBootstrapTopButton.prototype.cst={TOP_BUTTON:"mxgraph.bootstrap.topButton",R_SIZE:"rSize"};
|
|
mxShapeBootstrapTopButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeBootstrapTopButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(0,d);a.arcTo(d,d,0,0,1,d,0);a.lineTo(b-d,0);a.arcTo(d,d,0,0,1,b,d);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeBootstrapTopButton.prototype.cst.TOP_BUTTON,mxShapeBootstrapTopButton);
|
|
function mxShapeBootstrapBottomButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBootstrapBottomButton,mxShape);mxShapeBootstrapBottomButton.prototype.cst={BOTTOM_BUTTON:"mxgraph.bootstrap.bottomButton",R_SIZE:"rSize"};
|
|
mxShapeBootstrapBottomButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeBootstrapBottomButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c-d);a.arcTo(d,d,0,0,1,b-d,c);a.lineTo(d,c);a.arcTo(d,d,0,0,1,0,c-d);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeBootstrapBottomButton.prototype.cst.BOTTOM_BUTTON,mxShapeBootstrapBottomButton);
|
|
function mxShapeBootstrapRightButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBootstrapRightButton,mxShape);mxShapeBootstrapRightButton.prototype.cst={RIGHT_BUTTON:"mxgraph.bootstrap.rightButton",R_SIZE:"rSize"};
|
|
mxShapeBootstrapRightButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeBootstrapRightButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(0,0);a.lineTo(b-d,0);a.arcTo(d,d,0,0,1,b,d);a.lineTo(b,c-d);a.arcTo(d,d,0,0,1,b-d,c);a.lineTo(0,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeBootstrapRightButton.prototype.cst.RIGHT_BUTTON,mxShapeBootstrapRightButton);
|
|
function mxShapeBootstrapLeftButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBootstrapLeftButton,mxShape);mxShapeBootstrapLeftButton.prototype.cst={LEFT_BUTTON:"mxgraph.bootstrap.leftButton",R_SIZE:"rSize"};
|
|
mxShapeBootstrapLeftButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeBootstrapLeftButton.prototype.cst.R_SIZE,"10"));a.begin();a.moveTo(b,0);a.lineTo(b,c);a.lineTo(d,c);a.arcTo(d,d,0,0,1,0,c-d);a.lineTo(0,d);a.arcTo(d,d,0,0,1,d,0);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeBootstrapLeftButton.prototype.cst.LEFT_BUTTON,mxShapeBootstrapLeftButton);
|
|
function mxShapeBootstrapLeftButtonStriped(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBootstrapLeftButtonStriped,mxShape);mxShapeBootstrapLeftButtonStriped.prototype.cst={LEFT_BUTTON_STRIPED:"mxgraph.bootstrap.leftButtonStriped"};
|
|
mxShapeBootstrapLeftButtonStriped.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);rSize=5;a.begin();a.moveTo(b,0);a.lineTo(b,c);a.lineTo(rSize,c);a.arcTo(rSize,rSize,0,0,1,0,c-rSize);a.lineTo(0,rSize);a.arcTo(rSize,rSize,0,0,1,rSize,0);a.close();a.fill();a.setAlpha("0.2");d=.5*c;a.setFillColor("#ffffff");a.begin();a.moveTo(0,.75*c);a.lineTo(0,.25*c);a.lineTo(.75*c,c);a.lineTo(.25*c,c);a.close();a.fill();e=!1;for(var f=.5*d;!e;)a.begin(),a.moveTo(f,0),f+d>=b?(a.lineTo(b,0),a.lineTo(b,
|
|
b-f)):(a.lineTo(f+d,0),f+d+c>b?(a.lineTo(b,b-f-d),b-f>c?(a.lineTo(b,c),a.lineTo(f+c,c)):a.lineTo(b,b-f)):(a.lineTo(f+d+c,c),a.lineTo(f+c,c))),a.close(),a.fill(),f+=2*d,f>b&&(e=!0)};mxCellRenderer.registerShape(mxShapeBootstrapLeftButtonStriped.prototype.cst.LEFT_BUTTON_STRIPED,mxShapeBootstrapLeftButtonStriped);function mxShapeBootstrapRoundedButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBootstrapRoundedButton,mxShape);
|
|
mxShapeBootstrapRoundedButton.prototype.cst={ROUNDED_BUTTON:"mxgraph.bootstrap.roundedButton"};mxShapeBootstrapRoundedButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);b>c?(d=.5*c,a.begin(),a.moveTo(b-d,0),a.arcTo(d,d,0,0,1,b-d,c),a.lineTo(d,c),a.arcTo(d,d,0,0,1,d,0)):(d=.5*b,a.begin(),a.moveTo(0,c-d),a.arcTo(d,d,0,0,0,b,c-d),a.lineTo(b,d),a.arcTo(d,d,0,0,0,0,d));a.close();a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeBootstrapRoundedButton.prototype.cst.ROUNDED_BUTTON,mxShapeBootstrapRoundedButton);function mxShapeBootstrapArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBootstrapArrow,mxShape);mxShapeBootstrapArrow.prototype.cst={ARROW:"mxgraph.bootstrap.arrow"};
|
|
mxShapeBootstrapArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.moveTo(.9*b,0);a.lineTo(b,.5*c);a.lineTo(.9*b,c);a.stroke()};mxCellRenderer.registerShape(mxShapeBootstrapArrow.prototype.cst.ARROW,mxShapeBootstrapArrow);function mxShapeBootstrapTabTop(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBootstrapTabTop,mxShape);
|
|
mxShapeBootstrapTabTop.prototype.cst={TAB_TOP:"mxgraph.bootstrap.tabTop",R_SIZE:"rSize"};
|
|
mxShapeBootstrapTabTop.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseInt(mxUtils.getValue(this.style,mxShapeBootstrapTopButton.prototype.cst.R_SIZE,"10"));e=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");var f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff");a.setStrokeColor(f);a.begin();a.moveTo(0,d);a.arcTo(d,d,0,0,1,d,0);a.lineTo(b-d,0);a.arcTo(d,d,0,0,1,b,d);a.lineTo(b,c);a.lineTo(0,c);a.close();a.fillAndStroke();a.setStrokeColor(e);
|
|
a.begin();a.moveTo(0,c);a.lineTo(0,d);a.arcTo(d,d,0,0,1,d,0);a.lineTo(b-d,0);a.arcTo(d,d,0,0,1,b,d);a.lineTo(b,c);a.stroke()};mxCellRenderer.registerShape(mxShapeBootstrapTabTop.prototype.cst.TAB_TOP,mxShapeBootstrapTabTop);function mxShapeBootstrapImage(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBootstrapImage,mxShape);mxShapeBootstrapImage.prototype.cst={IMAGE:"mxgraph.bootstrap.image",R_SIZE:"rSize"};
|
|
mxShapeBootstrapImage.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.max(0,parseInt(mxUtils.getValue(this.style,mxShapeBootstrapTopButton.prototype.cst.R_SIZE,"10")));mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff");a.begin();a.moveTo(0,d);a.arcTo(d,d,0,0,1,d,0);a.lineTo(b-d,0);a.arcTo(d,d,0,0,1,b,d);a.lineTo(b,c-d);a.arcTo(d,d,0,0,1,b-d,c);a.lineTo(d,c);a.arcTo(d,d,0,0,1,0,c-d);a.close();
|
|
a.stroke();e=.5*d;a.translate(e,e);b=Math.max(0,b-d);c=Math.max(0,c-d);a.begin();a.moveTo(0,e);a.arcTo(e,e,0,0,1,e,0);a.lineTo(b-e,0);a.arcTo(e,e,0,0,1,b,e);a.lineTo(b,c-e);a.arcTo(e,e,0,0,1,b-e,c);a.lineTo(e,c);a.arcTo(e,e,0,0,1,0,c-e);a.close();a.fill()};mxCellRenderer.registerShape(mxShapeBootstrapImage.prototype.cst.IMAGE,mxShapeBootstrapImage);function mxShapeBootstrapCheckbox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeBootstrapCheckbox,mxShape);mxShapeBootstrapCheckbox.prototype.cst={CHECKBOX:"mxgraph.bootstrap.checkbox"};mxShapeBootstrapCheckbox.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.roundrect(0,0,b,c,3,3);a.stroke();a.setStrokeWidth("3");a.begin();a.moveTo(.8*b,.2*c);a.lineTo(.4*b,.8*c);a.lineTo(.25*b,.6*c);a.stroke()};mxCellRenderer.registerShape(mxShapeBootstrapCheckbox.prototype.cst.CHECKBOX,mxShapeBootstrapCheckbox);
|
|
function mxShapeBootstrapRadioButton(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBootstrapRadioButton,mxShape);mxShapeBootstrapRadioButton.prototype.cst={RADIO_BUTTON:"mxgraph.bootstrap.radioButton"};
|
|
mxShapeBootstrapRadioButton.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.ellipse(0,0,b,c);a.stroke();a.setFillColor(d);a.ellipse(.25*b,.25*c,.5*b,.5*c);a.fill()};mxCellRenderer.registerShape(mxShapeBootstrapRadioButton.prototype.cst.RADIO_BUTTON,mxShapeBootstrapRadioButton);function mxShapeBootstrapHorLines(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeBootstrapHorLines,mxShape);mxShapeBootstrapHorLines.prototype.cst={HOR_LINES:"mxgraph.bootstrap.horLines"};mxShapeBootstrapHorLines.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,0,b,c);a.fill();a.begin();a.moveTo(0,0);a.lineTo(b,0);a.moveTo(0,c);a.lineTo(b,c);a.stroke()};mxCellRenderer.registerShape(mxShapeBootstrapHorLines.prototype.cst.HOR_LINES,mxShapeBootstrapHorLines);
|
|
function mxShapeBootstrapUserTwo(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBootstrapUserTwo,mxShape);mxShapeBootstrapUserTwo.prototype.cst={USER2:"mxgraph.bootstrap.user2"};
|
|
mxShapeBootstrapUserTwo.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(0,.95*c);a.arcTo(.3*b,.3*c,0,0,1,.02*b,.87*c);a.arcTo(.1*b,.1*c,0,0,1,.08*b,.812*c);a.arcTo(3*b,3*c,0,0,1,.29*b,.732*c);a.arcTo(.15*b,.15*c,0,0,0,.385*b,.607*c);a.arcTo(.11*b,.11*c,0,0,0,.355*b,.53*c);a.arcTo(.3*b,.3*c,0,0,1,.305*b,.44*c);a.arcTo(.33*b,.38*c,0,0,1,.312*b,.15*c);a.arcTo(.218*b,.218*c,0,0,1,.688*b,.15*c);a.arcTo(.33*b,.38*c,0,0,1,.693*b,.44*c);a.arcTo(.25*b,.25*c,0,0,1,.645*b,
|
|
.53*c);a.arcTo(.1*b,.1*c,0,0,0,.612*b,.6*c);a.arcTo(.15*b,.15*c,0,0,0,.7*b,.726*c);a.arcTo(3*b,3*c,0,0,1,.92*b,.812*c);a.arcTo(.1*b,.1*c,0,0,1,.97*b,.865*c);a.arcTo(.2*b,.2*c,0,0,1,.995*b,.952*c);a.close();a.fill()};mxCellRenderer.registerShape(mxShapeBootstrapUserTwo.prototype.cst.USER2,mxShapeBootstrapUserTwo);function mxShapeBootstrapRating(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeBootstrapRating,mxShape);
|
|
mxShapeBootstrapRating.prototype.cst={RATING:"mxgraph.bootstrap.rating",RATING_STYLE:"ratingStyle",RATING_SCALE:"ratingScale",RATING_HEART:"heart",RATING_STAR:"star",EMPTY_FILL_COLOR:"emptyFillColor",GRADE:"grade"};
|
|
mxShapeBootstrapRating.prototype.paintVertexShape=function(a,d,e,b,c){b=mxUtils.getValue(this.style,mxShapeBootstrapRating.prototype.cst.RATING_STYLE,mxShapeBootstrapRating.prototype.cst.RATING_STAR);var f=mxUtils.getValue(this.style,mxShapeBootstrapRating.prototype.cst.GRADE,"5"),g=mxUtils.getValue(this.style,mxShapeBootstrapRating.prototype.cst.RATING_SCALE,"10");a.translate(d,e);if(b===mxShapeBootstrapRating.prototype.cst.RATING_STAR)for(d=0;d<f;d++)a.begin(),a.moveTo(d*c*1.2,.33*c),a.lineTo(d*
|
|
c*1.2+.364*c,.33*c),a.lineTo(d*c*1.2+.475*c,0),a.lineTo(d*c*1.2+.586*c,.33*c),a.lineTo(d*c*1.2+.95*c,.33*c),a.lineTo(d*c*1.2+.66*c,.551*c),a.lineTo(d*c*1.2+.775*c,.9*c),a.lineTo(d*c*1.2+.475*c,.684*c),a.lineTo(d*c*1.2+.175*c,.9*c),a.lineTo(d*c*1.2+.29*c,.551*c),a.close(),a.fillAndStroke();else if(b===mxShapeBootstrapRating.prototype.cst.RATING_HEART)for(d=0;d<f;d++)a.begin(),a.moveTo(d*c*1.2+.519*c,.947*c),a.curveTo(d*c*1.2+.558*c,.908*c,d*c*1.5+.778*c,.682*c,d*c*1.5+.916*c,.54*c),a.curveTo(d*c*1.2+
|
|
1.039*c,.414*c,d*c*1.5+1.036*c,.229*c,d*c*1.5+.924*c,.115*c),a.curveTo(d*c*1.2+.812*c,0,d*c*1.5+.631*c,0,d*c*1.5+.519*c,.115*c),a.curveTo(d*c*1.2+.408*c,0,d*c*1.5+.227*c,0,d*c*1.5+.115*c,.115*c),a.curveTo(d*c*1.2+.03*c,.229*c,d*c*1.5,.414*c,d*c*1.5+.123*c,.54*c),a.close(),a.fillAndStroke();d=mxUtils.getValue(this.style,mxShapeBootstrapRating.prototype.cst.EMPTY_FILL_COLOR,"#ffffff");a.setFillColor(d);if(b===mxShapeBootstrapRating.prototype.cst.RATING_STAR)for(d=f;d<g;d++)a.begin(),a.moveTo(d*c*1.2,
|
|
.33*c),a.lineTo(d*c*1.2+.364*c,.33*c),a.lineTo(d*c*1.2+.475*c,0),a.lineTo(d*c*1.2+.586*c,.33*c),a.lineTo(d*c*1.2+.95*c,.33*c),a.lineTo(d*c*1.2+.66*c,.551*c),a.lineTo(d*c*1.2+.775*c,.9*c),a.lineTo(d*c*1.2+.475*c,.684*c),a.lineTo(d*c*1.2+.175*c,.9*c),a.lineTo(d*c*1.2+.29*c,.551*c),a.close(),a.fillAndStroke();else if(b===mxShapeBootstrapRating.prototype.cst.RATING_HEART)for(d=f;d<g;d++)a.begin(),a.moveTo(d*c*1.2+.519*c,.947*c),a.curveTo(d*c*1.2+.558*c,.908*c,d*c*1.5+.778*c,.682*c,d*c*1.5+.916*c,.54*
|
|
c),a.curveTo(d*c*1.2+1.039*c,.414*c,d*c*1.5+1.036*c,.229*c,d*c*1.5+.924*c,.115*c),a.curveTo(d*c*1.2+.812*c,0,d*c*1.5+.631*c,0,d*c*1.5+.519*c,.115*c),a.curveTo(d*c*1.2+.408*c,0,d*c*1.5+.227*c,0,d*c*1.5+.115*c,.115*c),a.curveTo(d*c*1.2+.03*c,.229*c,d*c*1.5,.414*c,d*c*1.5+.123*c,.54*c),a.close(),a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeBootstrapRating.prototype.cst.RATING]=mxShapeBootstrapRating;function mxShapeBoostrapAnchor(a,d,e,b){mxShape.call(this);this.bounds=a}
|
|
mxUtils.extend(mxShapeBoostrapAnchor,mxShape);mxShapeBoostrapAnchor.prototype.cst={ANCHOR:"mxgraph.bootstrap.anchor"};mxShapeBoostrapAnchor.prototype.paintVertexShape=function(a,d,e,b,c){};mxCellRenderer.registerShape(mxShapeBoostrapAnchor.prototype.cst.ANCHOR,mxShapeBoostrapAnchor);function mxCabinetsCabinet(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxCabinetsCabinet,mxShape);
|
|
mxCabinetsCabinet.prototype.cst={HAS_STAND:"hasStand",CABINET:"mxgraph.cabinets.cabinet"};mxCabinetsCabinet.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);this.foreground(a,0,0,b,c)};mxCabinetsCabinet.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxCabinetsCabinet.prototype.foreground=function(a,d,e,b,c){a.rect(0,0,b,15);a.stroke();a.begin();a.moveTo(15,15);a.lineTo(15,c);a.moveTo(b-15,15);a.lineTo(b-15,c);a.stroke();1===mxUtils.getValue(this.style,mxCabinetsCabinet.prototype.cst.HAS_STAND,"1")?a.rect(0,c-40,b,40):a.rect(0,c-15,b,15);a.fillAndStroke()};mxCellRenderer.registerShape(mxCabinetsCabinet.prototype.cst.CABINET,mxCabinetsCabinet);
|
|
function mxCabinetsCoverPlate(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxCabinetsCoverPlate,mxShape);mxCabinetsCoverPlate.prototype.cst={COVER_PLATE:"mxgraph.cabinets.coverPlate"};mxCabinetsCoverPlate.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);this.foreground(a,0,0,b,c)};
|
|
mxCabinetsCoverPlate.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.lineTo(0,c);a.close();a.moveTo(10,.5*c-12.5);a.lineTo(10,.5*c+12.5);a.lineTo(b-10,.5*c+12.5);a.lineTo(b-10,.5*c-12.5);a.close();a.fillAndStroke()};mxCabinetsCoverPlate.prototype.foreground=function(a,d,e,b,c){};mxCellRenderer.registerShape(mxCabinetsCoverPlate.prototype.cst.COVER_PLATE,mxCabinetsCoverPlate);
|
|
function mxCabinetsDimension(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxCabinetsDimension,mxShape);mxCabinetsDimension.prototype.cst={DIMENSION:"mxgraph.cabinets.dimension"};mxCabinetsDimension.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxCabinetsDimension.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,20);a.lineTo(b,20);a.moveTo(10,15);a.lineTo(0,20);a.lineTo(10,25);a.moveTo(b-10,15);a.lineTo(b,20);a.lineTo(b-10,25);a.moveTo(0,15);a.lineTo(0,c);a.moveTo(b,15);a.lineTo(b,c);a.stroke()};mxCellRenderer.registerShape(mxCabinetsDimension.prototype.cst.DIMENSION,mxCabinetsDimension);function mxCabinetsDimensionBottom(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxCabinetsDimensionBottom,mxShape);mxCabinetsDimensionBottom.prototype.cst={DIMENSION:"mxgraph.cabinets.dimensionBottom"};mxCabinetsDimensionBottom.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxCabinetsDimensionBottom.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,c-20);a.lineTo(b,c-20);a.moveTo(10,c-15);a.lineTo(0,c-20);a.lineTo(10,c-25);a.moveTo(b-10,c-15);a.lineTo(b,c-20);a.lineTo(b-10,c-25);a.moveTo(0,c-15);a.lineTo(0,0);a.moveTo(b,c-15);a.lineTo(b,0);a.stroke()};mxCellRenderer.registerShape(mxCabinetsDimensionBottom.prototype.cst.DIMENSION,mxCabinetsDimensionBottom);
|
|
function mxShapeEipMessageExpiration(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEipMessageExpiration,mxShape);mxShapeEipMessageExpiration.prototype.cst={SHAPE_MESS_EXP:"mxgraph.eip.messExp"};mxShapeEipMessageExpiration.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxShapeEipMessageExpiration.prototype.background=function(a,d,e,b,c){a.ellipse(0,0,b,c);a.stroke();a.setStrokeColor("#808080");a.begin();a.moveTo(.5*b,.1*c);a.lineTo(.5*b,.5*c);a.lineTo(.6*b,.8*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeEipMessageExpiration.prototype.cst.SHAPE_MESS_EXP]=mxShapeEipMessageExpiration;function mxShapeEipReturnAddress(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeEipReturnAddress,mxShape);mxShapeEipReturnAddress.prototype.cst={SHAPE_RET_ADDR:"mxgraph.eip.retAddr"};mxShapeEipReturnAddress.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeEipReturnAddress.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapeEipReturnAddress.prototype.foreground=function(a,d,e,b,c){a.begin();a.moveTo(.05*b,.11*c);a.lineTo(.25*b,.11*c);a.moveTo(.05*b,.18*c);a.lineTo(.25*b,.18*c);a.moveTo(.05*b,.25*c);a.lineTo(.25*b,.25*c);a.setStrokeWidth(2);a.moveTo(.3*b,.63*c);a.lineTo(.8*b,.63*c);a.moveTo(.3*b,.72*c);a.lineTo(.8*b,.72*c);a.moveTo(.3*b,.8*c);a.lineTo(.8*b,.8*c);a.stroke();a.setFillColor("#EDEDED");a.rect(.8*b,.1*c,.12*b,.19*c);a.fillAndStroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeEipReturnAddress.prototype.cst.SHAPE_RET_ADDR]=mxShapeEipReturnAddress;function mxShapeEipAnchor(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEipAnchor,mxShape);mxShapeEipAnchor.prototype.cst={SHAPE_ANCHOR:"mxgraph.eip.anchor"};mxShapeEipAnchor.prototype.paintVertexShape=function(a,d,e,b,c){};mxCellRenderer.prototype.defaultShapes[mxShapeEipAnchor.prototype.cst.SHAPE_ANCHOR]=mxShapeEipAnchor;
|
|
function mxShapeEipMessageChannel(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEipMessageChannel,mxShape);mxShapeEipMessageChannel.prototype.cst={SHAPE_MESSAGE_CHANNEL:"mxgraph.eip.messageChannel"};mxShapeEipMessageChannel.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeEipMessageChannel.prototype.background=function(a,d,e,b,c){a.setGradient("#e6e6e6","#808080",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.begin();a.moveTo(8,.5*c+10);a.arcTo(12,12,0,0,1,8,.5*c-10);a.lineTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.close();a.fillAndStroke()};mxShapeEipMessageChannel.prototype.foreground=function(a,d,e,b,c){a.setFillColor("#e6e6e6");a.begin();a.moveTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.arcTo(12,12,0,0,1,b-8,.5*c-10);a.fillAndStroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeEipMessageChannel.prototype.cst.SHAPE_MESSAGE_CHANNEL]=mxShapeEipMessageChannel;
|
|
mxShapeEipMessageChannel.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(.05,0),!0),new mxConnectionConstraint(new mxPoint(.1,0),!0),new mxConnectionConstraint(new mxPoint(.15,0),!0),new mxConnectionConstraint(new mxPoint(.2,0),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.3,0),!0),new mxConnectionConstraint(new mxPoint(.35,0),!0),new mxConnectionConstraint(new mxPoint(.4,
|
|
0),!0),new mxConnectionConstraint(new mxPoint(.45,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.55,0),!0),new mxConnectionConstraint(new mxPoint(.6,0),!0),new mxConnectionConstraint(new mxPoint(.65,0),!0),new mxConnectionConstraint(new mxPoint(.7,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(.8,0),!0),new mxConnectionConstraint(new mxPoint(.85,0),!0),new mxConnectionConstraint(new mxPoint(.9,0),!0),
|
|
new mxConnectionConstraint(new mxPoint(.95,0),!0),new mxConnectionConstraint(new mxPoint(.05,1),!0),new mxConnectionConstraint(new mxPoint(.1,1),!0),new mxConnectionConstraint(new mxPoint(.15,1),!0),new mxConnectionConstraint(new mxPoint(.2,1),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.3,1),!0),new mxConnectionConstraint(new mxPoint(.35,1),!0),new mxConnectionConstraint(new mxPoint(.4,1),!0),new mxConnectionConstraint(new mxPoint(.45,1),!0),new mxConnectionConstraint(new mxPoint(.5,
|
|
1),!0),new mxConnectionConstraint(new mxPoint(.55,1),!0),new mxConnectionConstraint(new mxPoint(.6,1),!0),new mxConnectionConstraint(new mxPoint(.65,1),!0),new mxConnectionConstraint(new mxPoint(.7,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(.8,1),!0),new mxConnectionConstraint(new mxPoint(.85,1),!0),new mxConnectionConstraint(new mxPoint(.9,1),!0),new mxConnectionConstraint(new mxPoint(.95,1),!0)];
|
|
function mxShapeEipDatatypeChannel(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEipDatatypeChannel,mxShape);mxShapeEipDatatypeChannel.prototype.cst={SHAPE_DATATYPE_CHANNEL:"mxgraph.eip.dataChannel"};mxShapeEipDatatypeChannel.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeEipDatatypeChannel.prototype.background=function(a,d,e,b,c){a.setGradient("#e6e6e6","#808080",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.begin();a.moveTo(8,.5*c+10);a.arcTo(12,12,0,0,1,8,.5*c-10);a.lineTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.close();a.fillAndStroke()};
|
|
mxShapeEipDatatypeChannel.prototype.foreground=function(a,d,e,b,c){a.setFillColor("#e6e6e6");a.begin();a.moveTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.arcTo(12,12,0,0,1,b-8,.5*c-10);a.fillAndStroke();a.setFillColor("#fffbc0");a.setStrokeWidth("1");for(d=1;20*d+10<b-14;d++)a.rect(20*d,.5*c-5,10,10),a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeEipDatatypeChannel.prototype.cst.SHAPE_DATATYPE_CHANNEL]=mxShapeEipDatatypeChannel;
|
|
mxShapeEipDatatypeChannel.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(.05,0),!0),new mxConnectionConstraint(new mxPoint(.1,0),!0),new mxConnectionConstraint(new mxPoint(.15,0),!0),new mxConnectionConstraint(new mxPoint(.2,0),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.3,0),!0),new mxConnectionConstraint(new mxPoint(.35,0),!0),new mxConnectionConstraint(new mxPoint(.4,
|
|
0),!0),new mxConnectionConstraint(new mxPoint(.45,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.55,0),!0),new mxConnectionConstraint(new mxPoint(.6,0),!0),new mxConnectionConstraint(new mxPoint(.65,0),!0),new mxConnectionConstraint(new mxPoint(.7,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(.8,0),!0),new mxConnectionConstraint(new mxPoint(.85,0),!0),new mxConnectionConstraint(new mxPoint(.9,0),!0),
|
|
new mxConnectionConstraint(new mxPoint(.95,0),!0),new mxConnectionConstraint(new mxPoint(.05,1),!0),new mxConnectionConstraint(new mxPoint(.1,1),!0),new mxConnectionConstraint(new mxPoint(.15,1),!0),new mxConnectionConstraint(new mxPoint(.2,1),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.3,1),!0),new mxConnectionConstraint(new mxPoint(.35,1),!0),new mxConnectionConstraint(new mxPoint(.4,1),!0),new mxConnectionConstraint(new mxPoint(.45,1),!0),new mxConnectionConstraint(new mxPoint(.5,
|
|
1),!0),new mxConnectionConstraint(new mxPoint(.55,1),!0),new mxConnectionConstraint(new mxPoint(.6,1),!0),new mxConnectionConstraint(new mxPoint(.65,1),!0),new mxConnectionConstraint(new mxPoint(.7,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(.8,1),!0),new mxConnectionConstraint(new mxPoint(.85,1),!0),new mxConnectionConstraint(new mxPoint(.9,1),!0),new mxConnectionConstraint(new mxPoint(.95,1),!0)];
|
|
function mxShapeEipDeadLetterChannel(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEipDeadLetterChannel,mxShape);mxShapeEipDeadLetterChannel.prototype.cst={SHAPE_DEAD_LETTER_CHANNEL:"mxgraph.eip.deadLetterChannel"};mxShapeEipDeadLetterChannel.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeEipDeadLetterChannel.prototype.background=function(a,d,e,b,c){a.setGradient("#e6e6e6","#808080",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.begin();a.moveTo(8,.5*c+10);a.arcTo(12,12,0,0,1,8,.5*c-10);a.lineTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.close();a.fillAndStroke()};
|
|
mxShapeEipDeadLetterChannel.prototype.foreground=function(a,d,e,b,c){a.setFillColor("#e6e6e6");a.begin();a.moveTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.arcTo(12,12,0,0,1,b-8,.5*c-10);a.fillAndStroke();a.setFillColor("#ff0000");a.setStrokeWidth("1");a.begin();a.moveTo(.5*b-6,.5*c-3);a.lineTo(.5*b-3,.5*c-6);a.lineTo(.5*b+3,.5*c-6);a.lineTo(.5*b+6,.5*c-3);a.lineTo(.5*b+6,.5*c+3);a.lineTo(.5*b+3,.5*c+6);a.lineTo(.5*b-3,.5*c+6);a.lineTo(.5*b-6,.5*c+3);a.close();a.fillAndStroke();a.setStrokeWidth("2");
|
|
a.setStrokeColor("#ffffff");a.begin();a.moveTo(.5*b-4,.5*c);a.lineTo(.5*b+4,.5*c);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeEipDeadLetterChannel.prototype.cst.SHAPE_DEAD_LETTER_CHANNEL]=mxShapeEipDeadLetterChannel;
|
|
mxShapeEipDeadLetterChannel.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(.05,0),!0),new mxConnectionConstraint(new mxPoint(.1,0),!0),new mxConnectionConstraint(new mxPoint(.15,0),!0),new mxConnectionConstraint(new mxPoint(.2,0),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.3,0),!0),new mxConnectionConstraint(new mxPoint(.35,0),!0),new mxConnectionConstraint(new mxPoint(.4,
|
|
0),!0),new mxConnectionConstraint(new mxPoint(.45,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.55,0),!0),new mxConnectionConstraint(new mxPoint(.6,0),!0),new mxConnectionConstraint(new mxPoint(.65,0),!0),new mxConnectionConstraint(new mxPoint(.7,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(.8,0),!0),new mxConnectionConstraint(new mxPoint(.85,0),!0),new mxConnectionConstraint(new mxPoint(.9,0),!0),
|
|
new mxConnectionConstraint(new mxPoint(.95,0),!0),new mxConnectionConstraint(new mxPoint(.05,1),!0),new mxConnectionConstraint(new mxPoint(.1,1),!0),new mxConnectionConstraint(new mxPoint(.15,1),!0),new mxConnectionConstraint(new mxPoint(.2,1),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.3,1),!0),new mxConnectionConstraint(new mxPoint(.35,1),!0),new mxConnectionConstraint(new mxPoint(.4,1),!0),new mxConnectionConstraint(new mxPoint(.45,1),!0),new mxConnectionConstraint(new mxPoint(.5,
|
|
1),!0),new mxConnectionConstraint(new mxPoint(.55,1),!0),new mxConnectionConstraint(new mxPoint(.6,1),!0),new mxConnectionConstraint(new mxPoint(.65,1),!0),new mxConnectionConstraint(new mxPoint(.7,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(.8,1),!0),new mxConnectionConstraint(new mxPoint(.85,1),!0),new mxConnectionConstraint(new mxPoint(.9,1),!0),new mxConnectionConstraint(new mxPoint(.95,1),!0)];
|
|
function mxShapeEipInvalidMessageChannel(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeEipInvalidMessageChannel,mxShape);mxShapeEipInvalidMessageChannel.prototype.cst={SHAPE_INVALID_MESSAGE_CHANNEL:"mxgraph.eip.invalidMessageChannel"};mxShapeEipInvalidMessageChannel.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeEipInvalidMessageChannel.prototype.background=function(a,d,e,b,c){a.setGradient("#e6e6e6","#808080",0,0,b,c,mxConstants.DIRECTION_SOUTH,1,1);a.begin();a.moveTo(8,.5*c+10);a.arcTo(12,12,0,0,1,8,.5*c-10);a.lineTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.close();a.fillAndStroke()};
|
|
mxShapeEipInvalidMessageChannel.prototype.foreground=function(a,d,e,b,c){a.setFillColor("#e6e6e6");a.begin();a.moveTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.arcTo(12,12,0,0,1,b-8,.5*c-10);a.fillAndStroke();a.setFillColor("#ffe040");a.setStrokeWidth("1");a.begin();a.moveTo(.5*b-6,.5*c+5);a.lineTo(.5*b,.5*c-5);a.lineTo(.5*b+6,.5*c+5);a.close();a.fillAndStroke();a.setStrokeWidth("1");a.begin();a.moveTo(.5*b,.5*c-2);a.lineTo(.5*b,.5*c+2);a.moveTo(.5*b,.5*c+3);a.lineTo(.5*b,.5*c+4);a.stroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeEipInvalidMessageChannel.prototype.cst.SHAPE_INVALID_MESSAGE_CHANNEL]=mxShapeEipInvalidMessageChannel;
|
|
mxShapeEipInvalidMessageChannel.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(.05,0),!0),new mxConnectionConstraint(new mxPoint(.1,0),!0),new mxConnectionConstraint(new mxPoint(.15,0),!0),new mxConnectionConstraint(new mxPoint(.2,0),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.3,0),!0),new mxConnectionConstraint(new mxPoint(.35,0),!0),new mxConnectionConstraint(new mxPoint(.4,
|
|
0),!0),new mxConnectionConstraint(new mxPoint(.45,0),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.55,0),!0),new mxConnectionConstraint(new mxPoint(.6,0),!0),new mxConnectionConstraint(new mxPoint(.65,0),!0),new mxConnectionConstraint(new mxPoint(.7,0),!0),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(.8,0),!0),new mxConnectionConstraint(new mxPoint(.85,0),!0),new mxConnectionConstraint(new mxPoint(.9,0),!0),
|
|
new mxConnectionConstraint(new mxPoint(.95,0),!0),new mxConnectionConstraint(new mxPoint(.05,1),!0),new mxConnectionConstraint(new mxPoint(.1,1),!0),new mxConnectionConstraint(new mxPoint(.15,1),!0),new mxConnectionConstraint(new mxPoint(.2,1),!0),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.3,1),!0),new mxConnectionConstraint(new mxPoint(.35,1),!0),new mxConnectionConstraint(new mxPoint(.4,1),!0),new mxConnectionConstraint(new mxPoint(.45,1),!0),new mxConnectionConstraint(new mxPoint(.5,
|
|
1),!0),new mxConnectionConstraint(new mxPoint(.55,1),!0),new mxConnectionConstraint(new mxPoint(.6,1),!0),new mxConnectionConstraint(new mxPoint(.65,1),!0),new mxConnectionConstraint(new mxPoint(.7,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0),new mxConnectionConstraint(new mxPoint(.8,1),!0),new mxConnectionConstraint(new mxPoint(.85,1),!0),new mxConnectionConstraint(new mxPoint(.9,1),!0),new mxConnectionConstraint(new mxPoint(.95,1),!0)];
|
|
function mxShapeElectricalTestPoint(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeElectricalTestPoint,mxShape);mxShapeElectricalTestPoint.prototype.cst={SHAPE_TEST_POINT:"mxgraph.electrical.transmission.testPoint"};
|
|
mxShapeElectricalTestPoint.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");e=Math.min(b,c);a.setFillColor(d);a.begin();a.ellipse(.5*b-e/2,0,e,e);a.fillAndStroke();c>b&&(a.begin(),a.moveTo(.5*b,e),a.lineTo(.5*b,c),a.stroke())};mxCellRenderer.prototype.defaultShapes[mxShapeElectricalTestPoint.prototype.cst.SHAPE_TEST_POINT]=mxShapeElectricalTestPoint;
|
|
mxShapeElectricalTestPoint.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0)];function mxShapeElectricalStraightBus(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeElectricalStraightBus,mxShape);mxShapeElectricalStraightBus.prototype.cst={SHAPE_STRAIGHT_BUS:"mxgraph.electrical.transmission.straightBus"};
|
|
mxShapeElectricalStraightBus.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=.2*b;e=b>c?.5*c:b/2;a.begin();a.moveTo(b-d,0);a.lineTo(b-d,c-e);a.lineTo(b,c-e);a.lineTo(.5*b,c);a.lineTo(0,c-e);a.lineTo(d,c-e);a.lineTo(d,0);a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeElectricalStraightBus.prototype.cst.SHAPE_STRAIGHT_BUS]=mxShapeElectricalStraightBus;
|
|
mxShapeElectricalStraightBus.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0)];function mxShapeElectricalTwoLineBusElbow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.notch=0}mxUtils.extend(mxShapeElectricalTwoLineBusElbow,mxShape);mxShapeElectricalTwoLineBusElbow.prototype.cst={SHAPE_TWO_LINE_BUS_ELBOW:"mxgraph.electrical.transmission.twoLineBusElbow"};
|
|
mxShapeElectricalTwoLineBusElbow.prototype.paintVertexShape=function(a,d,e,b,c){var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch))));a.translate(d,e);a.begin();a.moveTo(0,c);a.lineTo(b,c);a.lineTo(b,0);a.stroke();d=Math.min(b,f);f=Math.min(c,f);a.begin();a.moveTo(0,c-f);a.lineTo(b-d,c-f);a.lineTo(b-d,0);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeElectricalTwoLineBusElbow.prototype.cst.SHAPE_TWO_LINE_BUS_ELBOW]=mxShapeElectricalTwoLineBusElbow;
|
|
mxShapeElectricalTwoLineBusElbow.prototype.constraints=null;Graph.handleFactory[mxShapeElectricalTwoLineBusElbow.prototype.cst.SHAPE_TWO_LINE_BUS_ELBOW]=function(a){return[Graph.createHandle(a,["notch"],function(a){var d=Math.max(Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))),0);return new mxPoint(a.x+a.width/4,a.y+a.height-d)},function(a,e){this.state.style.notch=Math.round(.2*Math.max(0,a.width-e.y+a.y))/.2})]};
|
|
function mxShapeElectricalThreeLineBusElbow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.notch=0}mxUtils.extend(mxShapeElectricalThreeLineBusElbow,mxShape);mxShapeElectricalThreeLineBusElbow.prototype.cst={SHAPE_THREE_LINE_BUS_ELBOW:"mxgraph.electrical.transmission.threeLineBusElbow"};
|
|
mxShapeElectricalThreeLineBusElbow.prototype.paintVertexShape=function(a,d,e,b,c){var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch))));a.translate(d,e);a.begin();a.moveTo(0,c);a.lineTo(b,c);a.lineTo(b,0);a.stroke();d=Math.min(b,f);f=Math.min(c,f);a.begin();a.moveTo(0,c-f);a.lineTo(b-d,c-f);a.lineTo(b-d,0);a.stroke();a.begin();a.moveTo(0,c-f/2);a.lineTo(b-d/2,c-f/2);a.lineTo(b-d/2,0);a.stroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeElectricalThreeLineBusElbow.prototype.cst.SHAPE_THREE_LINE_BUS_ELBOW]=mxShapeElectricalThreeLineBusElbow;mxShapeElectricalThreeLineBusElbow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeElectricalThreeLineBusElbow.prototype.cst.SHAPE_THREE_LINE_BUS_ELBOW]=function(a){return[Graph.createHandle(a,["notch"],function(a){var d=Math.max(Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))),0);return new mxPoint(a.x+a.width/4,a.y+a.height-d)},function(a,e){this.state.style.notch=Math.round(.2*Math.max(0,a.width-e.y+a.y))/.2})]};
|
|
function mxShapeElectricalFourLineBusElbow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.notch=0}mxUtils.extend(mxShapeElectricalFourLineBusElbow,mxShape);mxShapeElectricalFourLineBusElbow.prototype.cst={SHAPE_FOUR_LINE_BUS_ELBOW:"mxgraph.electrical.transmission.fourLineBusElbow"};
|
|
mxShapeElectricalFourLineBusElbow.prototype.paintVertexShape=function(a,d,e,b,c){var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch))));a.translate(d,e);a.begin();a.moveTo(0,c);a.lineTo(b,c);a.lineTo(b,0);a.stroke();d=Math.min(b,f);f=Math.min(c,f);a.begin();a.moveTo(0,c-f);a.lineTo(b-d,c-f);a.lineTo(b-d,0);a.stroke();a.begin();a.moveTo(0,c-f/3);a.lineTo(b-d/3,c-f/3);a.lineTo(b-d/3,0);a.stroke();a.begin();a.moveTo(0,c-2*f/3);a.lineTo(b-2*d/3,c-2*f/3);a.lineTo(b-2*
|
|
d/3,0);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeElectricalFourLineBusElbow.prototype.cst.SHAPE_FOUR_LINE_BUS_ELBOW]=mxShapeElectricalFourLineBusElbow;mxShapeElectricalFourLineBusElbow.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeElectricalFourLineBusElbow.prototype.cst.SHAPE_FOUR_LINE_BUS_ELBOW]=function(a){return[Graph.createHandle(a,["notch"],function(a){var d=Math.max(Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))),0);return new mxPoint(a.x+a.width/4,a.y+a.height-d)},function(a,e){this.state.style.notch=Math.round(.2*Math.max(0,a.width-e.y+a.y))/.2})]};
|
|
function mxShapeElectricalEightLineBusElbow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.notch=0}mxUtils.extend(mxShapeElectricalEightLineBusElbow,mxShape);mxShapeElectricalEightLineBusElbow.prototype.cst={SHAPE_EIGHT_LINE_BUS_ELBOW:"mxgraph.electrical.transmission.eightLineBusElbow"};
|
|
mxShapeElectricalEightLineBusElbow.prototype.paintVertexShape=function(a,d,e,b,c){var f=Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"notch",this.notch))));a.translate(d,e);a.begin();a.moveTo(0,c);a.lineTo(b,c);a.lineTo(b,0);a.stroke();d=Math.min(b,f);f=Math.min(c,f);a.begin();a.moveTo(0,c-f);a.lineTo(b-d,c-f);a.lineTo(b-d,0);a.stroke();a.begin();a.moveTo(0,c-f/7);a.lineTo(b-d/7,c-f/7);a.lineTo(b-d/7,0);a.stroke();a.begin();a.moveTo(0,c-2*f/7);a.lineTo(b-2*d/7,c-2*f/7);a.lineTo(b-
|
|
2*d/7,0);a.stroke();a.begin();a.moveTo(0,c-3*f/7);a.lineTo(b-3*d/7,c-3*f/7);a.lineTo(b-3*d/7,0);a.stroke();a.begin();a.moveTo(0,c-4*f/7);a.lineTo(b-4*d/7,c-4*f/7);a.lineTo(b-4*d/7,0);a.stroke();a.begin();a.moveTo(0,c-5*f/7);a.lineTo(b-5*d/7,c-5*f/7);a.lineTo(b-5*d/7,0);a.stroke();a.begin();a.moveTo(0,c-6*f/7);a.lineTo(b-6*d/7,c-6*f/7);a.lineTo(b-6*d/7,0);a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeElectricalEightLineBusElbow.prototype.cst.SHAPE_EIGHT_LINE_BUS_ELBOW]=mxShapeElectricalEightLineBusElbow;
|
|
mxShapeElectricalEightLineBusElbow.prototype.constraints=null;Graph.handleFactory[mxShapeElectricalEightLineBusElbow.prototype.cst.SHAPE_EIGHT_LINE_BUS_ELBOW]=function(a){return[Graph.createHandle(a,["notch"],function(a){var d=Math.max(Math.min(a.height,parseFloat(mxUtils.getValue(this.state.style,"notch",this.notch))),0);return new mxPoint(a.x+a.width/4,a.y+a.height-d)},function(a,e){this.state.style.notch=Math.round(.2*Math.max(0,a.width-e.y+a.y))/.2})]};
|
|
function mxFloorplanWall(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxFloorplanWall,mxShape);mxFloorplanWall.prototype.cst={WALL:"mxgraph.floorplan.wall",WALL_THICKNESS:"wallThickness"};mxFloorplanWall.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxFloorplanWall.prototype.background=function(a,d,e,b,c){d=parseFloat(mxUtils.getValue(this.style,mxFloorplanWall.prototype.cst.WALL_THICKNESS,"10"));a.rect(0,.5*c-.5*d,b,d);a.fillAndStroke()};mxCellRenderer.registerShape(mxFloorplanWall.prototype.cst.WALL,mxFloorplanWall);function mxFloorplanWallCorner(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxFloorplanWallCorner,mxShape);
|
|
mxFloorplanWallCorner.prototype.cst={WALL_CORNER:"mxgraph.floorplan.wallCorner",WALL_THICKNESS:"wallThickness"};mxFloorplanWallCorner.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};mxFloorplanWallCorner.prototype.background=function(a,d,e,b,c){d=parseFloat(mxUtils.getValue(this.style,mxFloorplanWallCorner.prototype.cst.WALL_THICKNESS,"10"));a.begin();a.moveTo(0,c);a.lineTo(0,0);a.lineTo(b,0);a.lineTo(b,d);a.lineTo(d,d);a.lineTo(d,c);a.close();a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxFloorplanWallCorner.prototype.cst.WALL_CORNER,mxFloorplanWallCorner);function mxFloorplanWallU(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxFloorplanWallU,mxShape);mxFloorplanWallU.prototype.cst={WALL_U:"mxgraph.floorplan.wallU",WALL_THICKNESS:"wallThickness"};mxFloorplanWallU.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxFloorplanWallU.prototype.background=function(a,d,e,b,c){d=parseFloat(mxUtils.getValue(this.style,mxFloorplanWallU.prototype.cst.WALL_THICKNESS,"10"));a.begin();a.moveTo(0,c);a.lineTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.lineTo(b-d,c);a.lineTo(b-d,d);a.lineTo(d,d);a.lineTo(d,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxFloorplanWallU.prototype.cst.WALL_U,mxFloorplanWallU);
|
|
function mxFloorplanRoom(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxFloorplanRoom,mxShape);mxFloorplanRoom.prototype.cst={ROOM:"mxgraph.floorplan.room",WALL_THICKNESS:"wallThickness"};mxFloorplanRoom.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxFloorplanRoom.prototype.background=function(a,d,e,b,c){d=parseFloat(mxUtils.getValue(this.style,mxFloorplanRoom.prototype.cst.WALL_THICKNESS,"10"));a.begin();a.moveTo(0,c);a.lineTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.close();a.moveTo(d,d);a.lineTo(d,c-d);a.lineTo(b-d,c-d);a.lineTo(b-d,d);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxFloorplanRoom.prototype.cst.ROOM,mxFloorplanRoom);
|
|
function mxFloorplanWindow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxFloorplanWindow,mxShape);mxFloorplanWindow.prototype.cst={WINDOW:"mxgraph.floorplan.window",WALL_THICKNESS:"wallThickness"};mxFloorplanWindow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxFloorplanWindow.prototype.background=function(a,d,e,b,c){d=parseFloat(mxUtils.getValue(this.style,mxFloorplanWindow.prototype.cst.WALL_THICKNESS,"10"));a.rect(0,.5*c-.5*d,b,d);a.fillAndStroke();a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.stroke()};mxCellRenderer.registerShape(mxFloorplanWindow.prototype.cst.WINDOW,mxFloorplanWindow);function mxFloorplanDimension(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxFloorplanDimension,mxShape);mxFloorplanDimension.prototype.cst={DIMENSION:"mxgraph.floorplan.dimension"};mxFloorplanDimension.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};mxFloorplanDimension.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,20);a.lineTo(b,20);a.moveTo(10,15);a.lineTo(0,20);a.lineTo(10,25);a.moveTo(b-10,15);a.lineTo(b,20);a.lineTo(b-10,25);a.moveTo(0,15);a.lineTo(0,c);a.moveTo(b,15);a.lineTo(b,c);a.stroke()};
|
|
mxCellRenderer.registerShape(mxFloorplanDimension.prototype.cst.DIMENSION,mxFloorplanDimension);function mxFloorplanDimensionBottom(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxFloorplanDimensionBottom,mxShape);mxFloorplanDimensionBottom.prototype.cst={DIMENSION:"mxgraph.floorplan.dimensionBottom"};mxFloorplanDimensionBottom.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxFloorplanDimensionBottom.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,c-20);a.lineTo(b,c-20);a.moveTo(10,c-15);a.lineTo(0,c-20);a.lineTo(10,c-25);a.moveTo(b-10,c-15);a.lineTo(b,c-20);a.lineTo(b-10,c-25);a.moveTo(0,c-15);a.lineTo(0,0);a.moveTo(b,c-15);a.lineTo(b,0);a.stroke()};mxCellRenderer.registerShape(mxFloorplanDimensionBottom.prototype.cst.DIMENSION,mxFloorplanDimensionBottom);
|
|
function mxFloorplanStairs(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxFloorplanStairs,mxShape);mxFloorplanStairs.prototype.cst={STAIRS:"mxgraph.floorplan.stairs"};mxFloorplanStairs.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,Math.max(b,50),c)};
|
|
mxFloorplanStairs.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke();a.setShadow(!1);a.begin();for(d=25;d<b;d+=25)a.moveTo(d,0),a.lineTo(d,c);a.stroke();a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.moveTo(b-25,0);a.lineTo(b,.5*c);a.lineTo(b-25,c);a.stroke()};mxCellRenderer.registerShape(mxFloorplanStairs.prototype.cst.STAIRS,mxFloorplanStairs);function mxFloorplanStairsRest(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxFloorplanStairsRest,mxShape);mxFloorplanStairsRest.prototype.cst={STAIRS:"mxgraph.floorplan.stairsRest"};mxFloorplanStairsRest.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,Math.max(b,50,c),c)};
|
|
mxFloorplanStairsRest.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke();a.setShadow(!1);a.begin();for(d=25;d<b-.5*c;d+=25)a.moveTo(d,0),a.lineTo(d,c);a.stroke();a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.moveTo(b,0);a.lineTo(b-.5*c,.5*c);a.lineTo(b,c);a.moveTo(b-.5*c,0);a.lineTo(b-.5*c,c);a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.stroke()};mxCellRenderer.registerShape(mxFloorplanStairsRest.prototype.cst.STAIRS,mxFloorplanStairsRest);
|
|
function mxFloorplanStairsRest(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxFloorplanStairsRest,mxShape);mxFloorplanStairsRest.prototype.cst={STAIRS:"mxgraph.floorplan.stairsRest"};mxFloorplanStairsRest.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,Math.max(b,50,c),c)};
|
|
mxFloorplanStairsRest.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke();a.setShadow(!1);a.begin();for(d=25;d<b-.5*c;d+=25)a.moveTo(d,0),a.lineTo(d,c);a.stroke();a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.moveTo(b,0);a.lineTo(b-.5*c,.5*c);a.lineTo(b,c);a.moveTo(b-.5*c,0);a.lineTo(b-.5*c,c);a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.stroke()};mxCellRenderer.registerShape(mxFloorplanStairsRest.prototype.cst.STAIRS,mxFloorplanStairsRest);
|
|
function mxFloorplanDoorLeft(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxFloorplanDoorLeft,mxShape);mxFloorplanDoorLeft.prototype.cst={DOOR_LEFT:"mxgraph.floorplan.doorLeft"};mxFloorplanDoorLeft.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxFloorplanDoorLeft.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,5);a.fillAndStroke();a.begin();a.moveTo(b,5);a.arcTo(b,b,0,0,1,0,5+b);a.lineTo(0,5);a.stroke()};mxCellRenderer.registerShape(mxFloorplanDoorLeft.prototype.cst.DOOR_LEFT,mxFloorplanDoorLeft);function mxFloorplanDoorRight(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxFloorplanDoorRight,mxShape);mxFloorplanDoorRight.prototype.cst={DOOR_RIGHT:"mxgraph.floorplan.doorRight"};
|
|
mxFloorplanDoorRight.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};mxFloorplanDoorRight.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,5);a.fillAndStroke();a.begin();a.moveTo(0,5);a.arcTo(b,b,0,0,0,b,5+b);a.lineTo(b,5);a.stroke()};mxCellRenderer.registerShape(mxFloorplanDoorRight.prototype.cst.DOOR_RIGHT,mxFloorplanDoorRight);
|
|
function mxFloorplanDoorDouble(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxFloorplanDoorDouble,mxShape);mxFloorplanDoorDouble.prototype.cst={DOOR_DOUBLE:"mxgraph.floorplan.doorDouble"};mxFloorplanDoorDouble.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxFloorplanDoorDouble.prototype.background=function(a,d,e,b,c){d=.5*b;a.rect(0,0,b,5);a.fillAndStroke();a.begin();a.moveTo(d,0);a.lineTo(d,5);a.moveTo(d,5);a.arcTo(d,d,0,0,1,0,5+d);a.lineTo(0,5);a.moveTo(d,5);a.arcTo(d,d,0,0,0,b,5+d);a.lineTo(b,5);a.stroke()};mxCellRenderer.registerShape(mxFloorplanDoorDouble.prototype.cst.DOOR_DOUBLE,mxFloorplanDoorDouble);function mxShapeGmdlPlayer(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeGmdlPlayer,mxShape);mxShapeGmdlPlayer.prototype.cst={SHAPE_PLAYER:"mxgraph.gmdl.player"};mxShapeGmdlPlayer.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.rect(0,0,b,c);a.fill();a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeGmdlPlayer.prototype.foreground=function(a,d,e,b,c){4<=c&&(a.setFillColor("#FFED00"),a.begin(),a.rect(0,0,.8*b,4),a.fill());14<=c&&33<=b&&(a.setFillColor("#717171"),a.begin(),a.rect(b-33,.5*c-7,4,14),a.fill(),a.begin(),a.rect(b-25,.5*c-7,4,14),a.fill())};mxCellRenderer.prototype.defaultShapes[mxShapeGmdlPlayer.prototype.cst.SHAPE_PLAYER]=mxShapeGmdlPlayer;function mxShapeGmdlSwitch(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeGmdlSwitch,mxShape);mxShapeGmdlSwitch.prototype.cst={SHAPE_SWITCH:"mxgraph.gmdl.switch",STATE:"switchState",STATE_ON:"on",STATE_OFF:"off"};mxShapeGmdlSwitch.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);var f=mxUtils.getValue(this.style,mxShapeGmdlSwitch.prototype.cst.STATE,mxShapeGmdlSwitch.prototype.cst.STATE_ON);this.background(a,d,e,b,c,f);a.setShadow(!0);this.foreground(a,d,e,b,c,f)};
|
|
mxShapeGmdlSwitch.prototype.background=function(a,d,e,b,c,f){a.begin();f===mxShapeGmdlSwitch.prototype.cst.STATE_ON?(a.save(),a.setAlpha("0.5"),a.moveTo(.135*b,.8*c),a.arcTo(.135*b,.3*c,0,0,1,.135*b,.2*c),a.lineTo(.675*b,.2*c),a.arcTo(.135*b,.3*c,0,0,1,.675*b,.8*c),a.close(),a.fillAndStroke(),a.restore()):(a.setFillColor("#BCBBBB"),a.moveTo(.225*b,.8*c),a.arcTo(.135*b,.3*c,0,0,1,.225*b,.2*c),a.lineTo(.865*b,.2*c),a.arcTo(.135*b,.3*c,0,0,1,.865*b,.8*c),a.close(),a.fillAndStroke())};
|
|
mxShapeGmdlSwitch.prototype.foreground=function(a,d,e,b,c,f){a.begin();f===mxShapeGmdlSwitch.prototype.cst.STATE_ON?a.ellipse(.36*b,0,.64*b,c):(a.setFillColor("#F1F1F1"),a.ellipse(0,0,.64*b,c));a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeGmdlSwitch.prototype.cst.SHAPE_SWITCH]=mxShapeGmdlSwitch;function mxShapeGmdlMarginRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeGmdlMarginRect,mxShape);
|
|
mxShapeGmdlMarginRect.prototype.cst={SHAPE_MARGIN_RECT:"mxgraph.gmdl.marginRect",MARGIN:"rectMargin",MARGIN_TOP:"rectMarginTop",MARGIN_LEFT:"rectMarginLeft",MARGIN_BOTTOM:"rectMarginBottom",MARGIN_RIGHT:"rectMarginRight"};mxShapeGmdlMarginRect.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};
|
|
mxShapeGmdlMarginRect.prototype.background=function(a,d,e,b,c,f){d=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlMarginRect.prototype.cst.MARGIN,"0"));var g=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlMarginRect.prototype.cst.MARGIN_TOP,"0"));f=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlMarginRect.prototype.cst.MARGIN_LEFT,"0"));e=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlMarginRect.prototype.cst.MARGIN_BOTTOM,"0"));var h=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlMarginRect.prototype.cst.MARGIN_RIGHT,
|
|
"0"));f=d+f;g=d+g;b=b-h-f-d;c=c-e-g-d;0<b&&0<c&&(a.begin(),a.rect(f,g,b,c),a.fillAndStroke())};mxCellRenderer.prototype.defaultShapes[mxShapeGmdlMarginRect.prototype.cst.SHAPE_MARGIN_RECT]=mxShapeGmdlMarginRect;function mxShapeGmdlSliderNormal(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeGmdlSliderNormal,mxShape);mxShapeGmdlSliderNormal.prototype.cst={SHAPE_SLIDER_NORMAL:"mxgraph.gmdl.sliderNormal",HANDLE_SIZE:"handleSize"};
|
|
mxShapeGmdlSliderNormal.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!0)};mxShapeGmdlSliderNormal.prototype.background=function(a,d,e,b,c){d=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlSliderNormal.prototype.cst.HANDLE_SIZE,"10"));a.ellipse(0,.5*c-.5*d,d,d);a.stroke();a.begin();a.moveTo(d,.5*c);a.lineTo(b,.5*c);a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeGmdlSliderNormal.prototype.cst.SHAPE_SLIDER_NORMAL]=mxShapeGmdlSliderNormal;
|
|
function mxShapeGmdlSlider2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeGmdlSlider2,mxShape);mxShapeGmdlSlider2.prototype.cst={SHAPE_SLIDER:"mxgraph.gmdl.slider2",BAR_POS:"barPos",HANDLE_SIZE:"handleSize"};mxShapeGmdlSlider2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!0)};
|
|
mxShapeGmdlSlider2.prototype.background=function(a,d,e,b,c){d=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlSlider2.prototype.cst.HANDLE_SIZE,"10"));e=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlSlider2.prototype.cst.BAR_POS,"40"))/100;e=Math.max(0,Math.min(1,e));a.save();a.setStrokeColor("#bbbbbb");a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.fillAndStroke();a.restore();a.begin();a.moveTo(0,.5*c);a.lineTo(e*b,.5*c);a.fillAndStroke();a.begin();a.ellipse(e*b-.5*d,.5*c-.5*d,d,d);a.fillAndStroke()};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeGmdlSlider2.prototype.cst.SHAPE_SLIDER]=mxShapeGmdlSlider2;mxShapeGmdlSlider2.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeGmdlSlider2.prototype.cst.SHAPE_SLIDER]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"barPos",.4))));return new mxPoint(a.x+d*a.width/100,a.y+a.height/2)},function(a,e){this.state.style.barPos=Math.round(100*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/100})]};
|
|
function mxShapeGmdlSliderFocused(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeGmdlSliderFocused,mxShape);mxShapeGmdlSliderFocused.prototype.cst={SHAPE_SLIDER_FOCUSED:"mxgraph.gmdl.sliderFocused",BAR_POS:"barPos",HANDLE_SIZE:"handleSize"};mxShapeGmdlSliderFocused.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!0)};
|
|
mxShapeGmdlSliderFocused.prototype.background=function(a,d,e,b,c){d=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlSliderFocused.prototype.cst.HANDLE_SIZE,"10"));e=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlSliderFocused.prototype.cst.BAR_POS,"40"))/100;var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#ffffff");e=Math.max(0,Math.min(1,e));a.save();a.setStrokeColor("#bbbbbb");a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.fillAndStroke();a.restore();a.begin();a.moveTo(0,.5*
|
|
c);a.lineTo(e*b,.5*c);a.fillAndStroke();a.begin();a.ellipse(e*b-.167*d,.5*c-.167*d,.33*d,.33*d);a.fillAndStroke();a.setFillColor(f);a.setAlpha(.15);a.begin();a.ellipse(e*b-.5*d,.5*c-.5*d,d,d);a.fill()};mxCellRenderer.prototype.defaultShapes[mxShapeGmdlSliderFocused.prototype.cst.SHAPE_SLIDER_FOCUSED]=mxShapeGmdlSliderFocused;mxShapeGmdlSliderFocused.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeGmdlSliderFocused.prototype.cst.SHAPE_SLIDER_FOCUSED]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"barPos",.4))));return new mxPoint(a.x+d*a.width/100,a.y+a.height/2)},function(a,e){this.state.style.barPos=Math.round(100*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/100})]};
|
|
function mxShapeGmdlSliderDisabled(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeGmdlSliderDisabled,mxShape);mxShapeGmdlSliderDisabled.prototype.cst={SHAPE_SLIDER_DISABLED:"mxgraph.gmdl.sliderDisabled",HANDLE_POSITION:"hPos",HANDLE_SIZE:"handleSize"};mxShapeGmdlSliderDisabled.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!0)};
|
|
mxShapeGmdlSliderDisabled.prototype.background=function(a,d,e,b,c){e=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlSliderDisabled.prototype.cst.HANDLE_SIZE,"10"));d=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlSliderDisabled.prototype.cst.HANDLE_POSITION,"50"))/100;d=Math.max(d,0);d=Math.min(d,1);a.ellipse(b*d-.5*e,.5*(c-e),e,e);a.fillAndStroke();e=b*d-7;d=b*d+7;0<e&&(a.begin(),a.moveTo(0,.5*c),a.lineTo(e,.5*c),a.stroke());d<b&&(a.begin(),a.moveTo(d,.5*c),a.lineTo(b,.5*c),a.stroke())};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeGmdlSliderDisabled.prototype.cst.SHAPE_SLIDER_DISABLED]=mxShapeGmdlSliderDisabled;function mxShapeGmdlSliderDisabled2(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeGmdlSliderDisabled2,mxShape);mxShapeGmdlSliderDisabled2.prototype.cst={SHAPE_SLIDER_DISABLED:"mxgraph.gmdl.sliderDisabled2",HANDLE_POSITION:"hPos",HANDLE_SIZE:"handleSize"};
|
|
mxShapeGmdlSliderDisabled2.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!0)};
|
|
mxShapeGmdlSliderDisabled2.prototype.background=function(a,d,e,b,c){e=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlSliderDisabled2.prototype.cst.HANDLE_SIZE,"10"));d=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlSliderDisabled2.prototype.cst.HANDLE_POSITION,"50"))/100;d=Math.min(Math.max(d,0),1);a.ellipse(b*d-.5*e,.5*(c-e),e,e);a.fillAndStroke();e=b*d-7;d=b*d+7;0<e&&(a.begin(),a.moveTo(0,.5*c),a.lineTo(e,.5*c),a.stroke());d<b&&(a.begin(),a.moveTo(d,.5*c),a.lineTo(b,.5*c),a.stroke())};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeGmdlSliderDisabled2.prototype.cst.SHAPE_SLIDER_DISABLED]=mxShapeGmdlSliderDisabled2;mxShapeGmdlSlider2.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeGmdlSliderDisabled2.prototype.cst.SHAPE_SLIDER_DISABLED]=function(a){return[Graph.createHandle(a,["hPos"],function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"hPos",.4))));return new mxPoint(a.x+d*a.width/100,a.y+a.height/2)},function(a,e){this.state.style.hPos=Math.round(100*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/100})]};
|
|
function mxShapeGmdlSliderDiscrete(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeGmdlSliderDiscrete,mxShape);mxShapeGmdlSliderDiscrete.prototype.cst={SHAPE_DISCRETE:"mxgraph.gmdl.sliderDiscrete",BAR_POS:"barPos",HANDLE_SIZE:"handleSize"};mxShapeGmdlSliderDiscrete.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!0)};
|
|
mxShapeGmdlSliderDiscrete.prototype.background=function(a,d,e,b,c){parseFloat(mxUtils.getValue(this.style,mxShapeGmdlSliderDiscrete.prototype.cst.HANDLE_SIZE,"10"));d=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlSliderDiscrete.prototype.cst.BAR_POS,"40"))/100;e=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"12"));var f=mxUtils.getValue(this.style,mxConstants.STYLE_FONTCOLOR,"#000000");d=Math.max(0,Math.min(1,d));a.save();a.setStrokeColor("#bbbbbb");a.begin();a.moveTo(0,.5*
|
|
c+22.5);a.lineTo(b,.5*c+22.5);a.fillAndStroke();a.restore();a.begin();a.moveTo(0,.5*c+22.5);a.lineTo(d*b,.5*c+22.5);a.fillAndStroke();a.begin();a.moveTo(d*b,.5*c+15.5);a.lineTo(d*b-10.5,.5*c+2.5);a.arcTo(15,15,0,0,1,d*b,.5*c-22.5);a.arcTo(15,15,0,0,1,d*b+10.5,.5*c+2.5);a.close();a.fillAndStroke();a.setFontSize(e);a.setFontColor(f);a.text(d*b,.5*c-9,0,0,Math.round(100*d).toString(),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapeGmdlSliderDiscrete.prototype.cst.SHAPE_DISCRETE]=mxShapeGmdlSliderDiscrete;mxShapeGmdlSliderDiscrete.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeGmdlSliderDiscrete.prototype.cst.SHAPE_DISCRETE]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"barPos",.4))));return new mxPoint(a.x+d*a.width/100,a.y+a.height/2+22.5)},function(a,e){this.state.style.barPos=Math.round(100*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/100})]};
|
|
function mxShapeGmdlSliderDiscreteDots(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeGmdlSliderDiscreteDots,mxShape);mxShapeGmdlSliderDiscreteDots.prototype.cst={SHAPE_DISCRETE_DOTS:"mxgraph.gmdl.sliderDiscreteDots",BAR_POS:"barPos",HANDLE_SIZE:"handleSize"};mxShapeGmdlSliderDiscreteDots.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!0)};
|
|
mxShapeGmdlSliderDiscreteDots.prototype.background=function(a,d,e,b,c){parseFloat(mxUtils.getValue(this.style,mxShapeGmdlSliderDiscreteDots.prototype.cst.HANDLE_SIZE,"10"));d=parseFloat(mxUtils.getValue(this.style,mxShapeGmdlSliderDiscreteDots.prototype.cst.BAR_POS,"40"))/100;e=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"12"));var f=mxUtils.getValue(this.style,mxConstants.STYLE_FONTCOLOR,"#000000"),g=mxUtils.getValue(this.style,"bright","1");d=Math.max(0,Math.min(1,d));a.save();
|
|
a.setStrokeColor("#bebebe");a.begin();a.moveTo(0,.5*c+22.5);a.lineTo(b,.5*c+22.5);a.fillAndStroke();a.restore();.1>=d&&a.setFillColor("#bebebe");a.begin();a.moveTo(0,.5*c+22.5);a.lineTo(d*b,.5*c+22.5);a.fillAndStroke();a.begin();a.moveTo(d*b,.5*c+15.5);a.lineTo(d*b-10.5,.5*c+2.5);a.arcTo(15,15,0,0,1,d*b,.5*c-22.5);a.arcTo(15,15,0,0,1,d*b+10.5,.5*c+2.5);a.close();a.fill();"1"==g?a.setFillColor("#000000"):a.setFillColor("#ffffff");a.ellipse(-1.5,.5*c+21,3,3);a.fill();a.ellipse(.2*b-1.5,.5*c+21,3,3);
|
|
a.fill();a.ellipse(.4*b-1.5,.5*c+21,3,3);a.fill();a.ellipse(.6*b-1.5,.5*c+21,3,3);a.fill();a.ellipse(.8*b-1.5,.5*c+21,3,3);a.fill();a.ellipse(b-1.5,.5*c+21,3,3);a.fill();a.setFontSize(e);a.setFontColor(f);a.text(d*b,.5*c-9,0,0,Math.round(100*d).toString(),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxCellRenderer.prototype.defaultShapes[mxShapeGmdlSliderDiscreteDots.prototype.cst.SHAPE_DISCRETE_DOTS]=mxShapeGmdlSliderDiscreteDots;
|
|
mxShapeGmdlSliderDiscreteDots.prototype.constraints=null;Graph.handleFactory[mxShapeGmdlSliderDiscreteDots.prototype.cst.SHAPE_DISCRETE_DOTS]=function(a){return[Graph.createHandle(a,["barPos"],function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"barPos",.4))));return new mxPoint(a.x+d*a.width/100,a.y+a.height/2+22.5)},function(a,e){this.state.style.barPos=Math.round(.05*Math.max(0,Math.min(100,100*(e.x-a.x)/a.width)))/.05})]};
|
|
function mxShapeGmdlProgressBar(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.dx1=.8}mxUtils.extend(mxShapeGmdlProgressBar,mxShape);mxShapeGmdlProgressBar.prototype.cst={PROGRESS_BAR:"mxgraph.gmdl.progressBar"};
|
|
mxShapeGmdlProgressBar.prototype.paintVertexShape=function(a,d,e,b,c){var f=b*Math.max(0,Math.min(b,parseFloat(mxUtils.getValue(this.style,"dx1",this.dx1))));a.translate(d,e);a.save();a.setStrokeColor("#aaaaaa");a.begin();a.moveTo(0,.5*c);a.lineTo(b,.5*c);a.stroke();a.restore();a.setShadow(!1);a.begin();a.moveTo(0,.5*c);a.lineTo(f,.5*c);a.stroke()};mxCellRenderer.registerShape(mxShapeGmdlProgressBar.prototype.cst.PROGRESS_BAR,mxShapeGmdlProgressBar);mxShapeGmdlProgressBar.prototype.constraints=null;
|
|
Graph.handleFactory[mxShapeGmdlProgressBar.prototype.cst.PROGRESS_BAR]=function(a){var d=[Graph.createHandle(a,["dx1"],function(a){var b=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dx1",this.dx1))));return new mxPoint(a.x+b*a.width,a.y+a.height/2)},function(a,b){this.state.style.dx1=Math.round(100*Math.max(0,Math.min(1,(b.x-a.x)/a.width)))/100})];a=Graph.createHandle(a,["dx2"],function(a){var b=Math.max(0,Math.min(1,parseFloat(mxUtils.getValue(this.state.style,"dx2",this.dx1))));
|
|
return new mxPoint(a.x+b*a.width,a.y+a.height/2)},function(a,b){this.state.style.dx2=Math.round(100*Math.max(0,Math.min(1,(b.x-a.x)/a.width)))/100});d.push(a);return d};function mxLeanBoatShipment(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanBoatShipment,mxShape);
|
|
mxLeanBoatShipment.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(.15*b,.77*c);a.lineTo(.5*b,0);a.lineTo(.85*b,.77*c);a.close();a.moveTo(.2*b,c);a.lineTo(0,.8*c);a.lineTo(b,.8*c);a.lineTo(.8*b,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.boat_shipment",mxLeanBoatShipment);
|
|
mxLeanBoatShipment.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,0),!1),new mxConnectionConstraint(new mxPoint(.5,1),!1),new mxConnectionConstraint(new mxPoint(0,.8),!1),new mxConnectionConstraint(new mxPoint(1,.8),!1),new mxConnectionConstraint(new mxPoint(.2,1),!1),new mxConnectionConstraint(new mxPoint(.8,1),!1),new mxConnectionConstraint(new mxPoint(.26,.5),!1),new mxConnectionConstraint(new mxPoint(.74,.5),!1)];
|
|
function mxLeanSafetyStock(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanSafetyStock,mxShape);mxLeanSafetyStock.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxLeanSafetyStock.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxLeanSafetyStock.prototype.foreground=function(a,d,e){a.begin();a.moveTo(0,.34*e);a.lineTo(d,.34*e);a.moveTo(0,.66*e);a.lineTo(d,.66*e);a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.buffer_or_safety_stock",mxLeanSafetyStock);
|
|
mxLeanSafetyStock.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,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 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)];function mxLeanDataBox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanDataBox,mxShape);
|
|
mxLeanDataBox.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxLeanDataBox.prototype.background=function(a,d,e){a.begin();a.moveTo(0,e);a.lineTo(0,0);a.lineTo(d,0);a.lineTo(d,e);a.fillAndStroke()};mxLeanDataBox.prototype.foreground=function(a,d,e){a.begin();a.moveTo(0,.2*e);a.lineTo(d,.2*e);a.moveTo(0,.4*e);a.lineTo(d,.4*e);a.moveTo(0,.6*e);a.lineTo(d,.6*e);a.moveTo(0,.8*e);a.lineTo(d,.8*e);a.stroke()};
|
|
mxCellRenderer.registerShape("mxgraph.lean_mapping.data_box",mxLeanDataBox);
|
|
mxLeanDataBox.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,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 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)];function mxLeanCustomerSupplier(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanCustomerSupplier,mxShape);
|
|
mxLeanCustomerSupplier.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1)};mxLeanCustomerSupplier.prototype.background=function(a,d,e){a.begin();a.moveTo(0,e);a.lineTo(0,.3*e);a.lineTo(.33*d,.02*e);a.lineTo(.33*d,.3*e);a.lineTo(.67*d,.02*e);a.lineTo(.67*d,.3*e);a.lineTo(d,.02*e);a.lineTo(d,e);a.close();a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.outside_sources",mxLeanCustomerSupplier);
|
|
mxLeanCustomerSupplier.prototype.constraints=[new mxConnectionConstraint(new mxPoint(1,0),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(.33,0),!0),new mxConnectionConstraint(new mxPoint(.67,0),!0),new mxConnectionConstraint(new mxPoint(0,.3),!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)];function mxLeanDedicatedProcess(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanDedicatedProcess,mxShape);
|
|
mxLeanDedicatedProcess.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"8"));this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c,d)};mxLeanDedicatedProcess.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};mxLeanDedicatedProcess.prototype.foreground=function(a,d,e,b){e=Math.min(1.5*b,e);a.begin();a.moveTo(0,e);a.lineTo(d,e);a.stroke()};
|
|
mxCellRenderer.registerShape("mxgraph.lean_mapping.manufacturing_process",mxLeanDedicatedProcess);
|
|
mxLeanDedicatedProcess.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,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 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)];function mxLeanSharedProcess(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanSharedProcess,mxShape);
|
|
mxLeanSharedProcess.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"8"));this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c,d)};mxLeanSharedProcess.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxLeanSharedProcess.prototype.foreground=function(a,d,e,b){b=Math.min(1.5*b,e);a.begin();a.moveTo(0,b);a.lineTo(d,b);a.stroke();var c=0;a.begin();var f=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"2"));for(a.setStrokeWidth(.5*f);c<e+d;)if(c+=10,c>b){var f=Math.max(0,c-e),g=Math.min(c,e),h=Math.min(c-b,d),k;k=Math.max(c-d,b);f<d&&(a.moveTo(f,g),a.lineTo(h,k))}a.stroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.manufacturing_process_shared",mxLeanSharedProcess);
|
|
mxLeanSharedProcess.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,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 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)];function mxLeanWorkcell(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanWorkcell,mxShape);
|
|
mxLeanWorkcell.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.lineTo(.65*b,c);a.lineTo(.65*b,.4*c);a.lineTo(.35*b,.4*c);a.lineTo(.35*b,c);a.lineTo(0,c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.work_cell",mxLeanWorkcell);
|
|
mxLeanWorkcell.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,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 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(.75,1),!0)];function mxLeanInventoryBox(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanInventoryBox,mxShape);
|
|
mxLeanInventoryBox.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(0,c);a.lineTo(.5*b,0);a.lineTo(b,c);a.close();a.fillAndStroke();a.setShadow(!1);a.begin();a.moveTo(.4*b,.45*c);a.lineTo(.6*b,.45*c);a.moveTo(.5*b,.45*c);a.lineTo(.5*b,.85*c);a.moveTo(.4*b,.85*c);a.lineTo(.6*b,.85*c);a.stroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.inventory_box",mxLeanInventoryBox);
|
|
mxLeanInventoryBox.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.375,.25),!1),new mxConnectionConstraint(new mxPoint(.25,.5),!1),new mxConnectionConstraint(new mxPoint(.125,.75),!1),new mxConnectionConstraint(new mxPoint(.625,.25),!1),new mxConnectionConstraint(new mxPoint(.75,.5),!1),new mxConnectionConstraint(new mxPoint(.875,.75),!1),
|
|
new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];function mxLeanPushArrow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanPushArrow,mxShape);mxLeanPushArrow.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};
|
|
mxLeanPushArrow.prototype.background=function(a,d,e){a.begin();a.moveTo(0,.17*e);a.lineTo(.75*d,.17*e);a.lineTo(.75*d,0);a.lineTo(d,.5*e);a.lineTo(.75*d,e);a.lineTo(.75*d,.83*e);a.lineTo(0,.83*e);a.close();a.fillAndStroke()};
|
|
mxLeanPushArrow.prototype.foreground=function(a,d,e,b){b=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(b);a.rect(0,.17*e,.12*d,.66*e);a.fill();a.rect(.24*d,.17*e,.12*d,.66*e);a.fill();a.rect(.48*d,.17*e,.12*d,.66*e);a.fill();a.begin();a.moveTo(.72*d,.17*e);a.lineTo(.75*d,.17*e);a.lineTo(.75*d,0);a.lineTo(d,.5*e);a.lineTo(.75*d,e);a.lineTo(.75*d,.83*e);a.lineTo(.72*d,.83*e);a.close();a.fill()};mxCellRenderer.registerShape("mxgraph.lean_mapping.push_arrow",mxLeanPushArrow);
|
|
mxLeanPushArrow.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.25,.17),!1),new mxConnectionConstraint(new mxPoint(.5,.17),!1),new mxConnectionConstraint(new mxPoint(.75,0),!0),new mxConnectionConstraint(new mxPoint(0,.17),!0),new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(0,.83),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(.25,.83),!1),new mxConnectionConstraint(new mxPoint(.5,.83),!1),new mxConnectionConstraint(new mxPoint(.75,
|
|
1),!0)];function mxLeanSupermarket(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanSupermarket,mxShape);mxLeanSupermarket.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(b,c);a.lineTo(0,c);a.moveTo(0,.33*c);a.lineTo(b,.33*c);a.moveTo(0,.67*c);a.lineTo(b,.67*c);a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.supermarket",mxLeanSupermarket);
|
|
mxLeanSupermarket.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,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 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)];function mxLeanMaterialPull(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanMaterialPull,mxShape);
|
|
mxLeanMaterialPull.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(.732*b,.0736*c);a.arcTo(.4827*b,.4959*c,0,1,0,.9553*b,.6191*c);a.stroke();a.begin();a.moveTo(.9071*b,.6191*c);a.lineTo(.9794*b,.4951*c);a.lineTo(b,.6438*c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.physical_pull",mxLeanMaterialPull);
|
|
mxLeanMaterialPull.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(.98,.5),!0),new mxConnectionConstraint(new mxPoint(.144,.144),!1),new mxConnectionConstraint(new mxPoint(.144,.845),!1),new mxConnectionConstraint(new mxPoint(.845,.845),!1)];
|
|
function mxLeanFifoLane(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanFifoLane,mxShape);mxLeanFifoLane.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"8"));this.background(a,b,c,d);a.setShadow(!1)};
|
|
mxLeanFifoLane.prototype.background=function(a,d,e,b){b=Math.min(1.5*b,e);a.begin();a.moveTo(0,b);a.lineTo(d,b);a.moveTo(0,e);a.lineTo(d,e);a.stroke();a.rect(.02*d,b+4,.26*d,e-b-8);a.fillAndStroke();a.ellipse(.35*d,b+4,.26*d,e-b-8);a.fillAndStroke();a.begin();a.moveTo(.69*d,b+4);a.lineTo(.98*d,b+4);a.lineTo(.835*d,e-4);a.close();a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.fifo_lane",mxLeanFifoLane);
|
|
mxLeanFifoLane.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(.5,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)];function mxLeanTruckShipment(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanTruckShipment,mxShape);mxLeanTruckShipment.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1)};
|
|
mxLeanTruckShipment.prototype.background=function(a,d,e){a.rect(0,0,.6*d,.8*e);a.fillAndStroke();a.rect(.6*d,.35*e,.4*d,.45*e);a.fillAndStroke();var b=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(b);a.ellipse(.15*d,.8*e,.2*d,.2*e);a.fillAndStroke();a.ellipse(.65*d,.8*e,.2*d,.2*e);a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.truck_shipment",mxLeanTruckShipment);
|
|
mxLeanTruckShipment.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(.25,0),!0),new mxConnectionConstraint(new mxPoint(.5,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(.6,.35),!1),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,.8),!1),new mxConnectionConstraint(new mxPoint(.75,1),!0)];function mxLeanProductionControl(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanProductionControl,mxShape);mxLeanProductionControl.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,0,b,c);a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.schedule",mxLeanProductionControl);
|
|
mxLeanProductionControl.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,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 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)];function mxLeanFifoSequence(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanFifoSequence,mxShape);
|
|
mxLeanFifoSequence.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(0,0);a.lineTo(b,0);a.moveTo(0,c);a.lineTo(b,c);a.moveTo(.05*b,.5*c);a.lineTo(.15*b,.5*c);a.moveTo(.75*b,.5*c);a.lineTo(.88*b,.5*c);a.stroke();d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(d);a.begin();a.moveTo(.88*b,.39*c);a.lineTo(.98*b,.5*c);a.lineTo(.88*b,.61*c);a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.fifo_sequence_flow",mxLeanFifoSequence);
|
|
mxLeanFifoSequence.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,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,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0),new mxConnectionConstraint(new mxPoint(.25,
|
|
1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];function mxLeanProductionKanban(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanProductionKanban,mxShape);
|
|
mxLeanProductionKanban.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setDashed(!0);a.begin();a.moveTo(4,c-10);a.lineTo(4,25);a.lineTo(b,25);a.stroke();a.setDashed(!1);a.begin();a.moveTo(b-75,0);a.lineTo(b-30,0);a.lineTo(b-15,15);a.lineTo(b-15,50);a.lineTo(b-75,50);a.close();a.fillAndStroke();d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(d);a.begin();a.moveTo(0,c-10);a.lineTo(4,c);a.lineTo(8,c-10);a.close();a.fillAndStroke()};
|
|
mxCellRenderer.registerShape("mxgraph.lean_mapping.production_kanban",mxLeanProductionKanban);function mxLeanWithdrawalKanban(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanWithdrawalKanban,mxShape);
|
|
mxLeanWithdrawalKanban.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setDashed(!0);a.begin();a.moveTo(4,c-10);a.lineTo(4,25);a.lineTo(b,25);a.stroke();a.setDashed(!1);a.begin();a.moveTo(b-75,0);a.lineTo(b-30,0);a.lineTo(b-15,15);a.lineTo(b-15,50);a.lineTo(b-75,50);a.close();a.fillAndStroke();a.begin();a.moveTo(b-75,45);a.lineTo(b-70,50);a.moveTo(b-75,35);a.lineTo(b-60,50);a.moveTo(b-75,25);a.lineTo(b-50,50);a.moveTo(b-75,15);a.lineTo(b-40,50);a.moveTo(b-75,5);a.lineTo(b-30,50);
|
|
a.moveTo(b-70,0);a.lineTo(b-20,50);a.moveTo(b-60,0);a.lineTo(b-15,45);a.moveTo(b-50,0);a.lineTo(b-15,35);a.moveTo(b-40,0);a.lineTo(b-15,25);a.stroke();d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(d);a.begin();a.moveTo(0,c-10);a.lineTo(4,c);a.lineTo(8,c-10);a.close();a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.withdrawal_kanban",mxLeanWithdrawalKanban);
|
|
function mxLeanSignalKanban(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanSignalKanban,mxShape);
|
|
mxLeanSignalKanban.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.setDashed(!0);a.begin();a.moveTo(4,c-10);a.lineTo(4,15);a.lineTo(b,15);a.stroke();a.setDashed(!1);a.begin();a.moveTo(b-65,0);a.lineTo(b-25,0);a.lineTo(b-45,45);a.close();a.fillAndStroke();d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(d);a.begin();a.moveTo(0,c-10);a.lineTo(4,c);a.lineTo(8,c-10);a.close();a.fillAndStroke()};
|
|
mxCellRenderer.registerShape("mxgraph.lean_mapping.signal_kanban",mxLeanSignalKanban);function mxLeanSequencedPullBall(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanSequencedPullBall,mxShape);
|
|
mxLeanSequencedPullBall.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.ellipse(0,0,b,c);a.fillAndStroke();d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(d);a.setShadow(!1);a.ellipse(.15*b,.15*c,.7*b,.7*c);a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.sequenced_pull_ball",mxLeanSequencedPullBall);
|
|
mxLeanSequencedPullBall.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)];
|
|
function mxLeanRailShipment(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanRailShipment,mxShape);
|
|
mxLeanRailShipment.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(.1*b,0,.35*b,.8*c);a.fillAndStroke();a.rect(.55*b,0,.35*b,.8*c);a.fillAndStroke();a.begin();a.moveTo(0,c);a.lineTo(b,c);a.moveTo(.45*b,.7*c);a.lineTo(.55*b,.7*c);a.stroke();a.ellipse(.15*b,.8*c,.06*b,.2*c);a.fillAndStroke();a.ellipse(.34*b,.8*c,.06*b,.2*c);a.fillAndStroke();a.ellipse(.6*b,.8*c,.06*b,.2*c);a.fillAndStroke();a.ellipse(.79*b,.8*c,.06*b,.2*c);a.fillAndStroke()};
|
|
mxCellRenderer.registerShape("mxgraph.lean_mapping.rail_shipment",mxLeanRailShipment);
|
|
mxLeanRailShipment.prototype.constraints=[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(.1,.25),!1),new mxConnectionConstraint(new mxPoint(.1,.5),!1),new mxConnectionConstraint(new mxPoint(.1,.75),!1),new mxConnectionConstraint(new mxPoint(.9,.25),!1),new mxConnectionConstraint(new mxPoint(.9,
|
|
.5),!1),new mxConnectionConstraint(new mxPoint(.9,.75),!1),new mxConnectionConstraint(new mxPoint(.25,1),!0),new mxConnectionConstraint(new mxPoint(.5,1),!0),new mxConnectionConstraint(new mxPoint(.75,1),!0)];function mxLeanWarehouse(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanWarehouse,mxShape);
|
|
mxLeanWarehouse.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,0,b,c);a.fillAndStroke();a.setShadow(!1);a.begin();a.moveTo(0,.4*c);a.lineTo(b,.4*c);a.moveTo(.15*b,c);a.lineTo(.15*b,.55*c);a.lineTo(.3*b,.55*c);a.lineTo(.3*b,c);a.stroke();a.ellipse(.27*b,.75*c,.02*b,.02*b);a.stroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.warehouse",mxLeanWarehouse);
|
|
mxLeanWarehouse.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,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 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)];function mxLeanTimeline(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanTimeline,mxShape);
|
|
mxLeanTimeline.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);var f=mxUtils.getValue(this.style,"mainText","20,Time 1,50,Time 2,30,Time 3,40,Time 4,30,Time 5,50,Time 6,20,Time 7").toString().split(",");d=mxUtils.getValue(this.style,mxConstants.STYLE_FONTSIZE,"12");e=[];for(var g=0,h=0;h<f.length;h+=2){var k=parseFloat(f[h]);e.push(k);g+=k}b/=g;g=[];for(h=1;h<f.length;h+=2)g.push(f[h]);a.begin();f=0;a.moveTo(0,c);for(h=0;h<g.length;h++)k=e[h]*b,f+=k,0===h%2?(a.lineTo(f,c),a.lineTo(f,
|
|
1.5*d),a.text(f-.5*k,c-.75*d,0,0,g[h],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)):(a.lineTo(f,1.5*d),a.lineTo(f,c),a.text(f-.5*k,.75*d,0,0,g[h],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0));a.stroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.timeline",mxLeanTimeline);function mxLeanCrossDock(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanCrossDock,mxShape);
|
|
mxLeanCrossDock.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,0,b,c);a.fillAndStroke();a.setShadow(!1);a.begin();a.moveTo(0,.25*c);a.lineTo(b,.25*c);a.moveTo(.1*b,.4*c);a.lineTo(.35*b,.4*c);a.arcTo(.15*b,.15*c,0,0,1,.5*b,.5*c);a.arcTo(.15*b,.15*c,0,0,0,.65*b,.6*c);a.lineTo(.9*b,.6*c);a.stroke();a.moveTo(.1*b,.4*c);a.lineTo(.35*b,.4*c);a.arcTo(.15*b,.25*c,0,0,1,.5*b,.55*c);a.arcTo(.15*b,.25*c,0,0,0,.65*b,.7*c);a.lineTo(.9*b,.7*c);a.stroke();a.moveTo(.1*b,.4*c);a.lineTo(.35*
|
|
b,.4*c);a.arcTo(.15*b,.3*c,0,0,1,.5*b,.6*c);a.arcTo(.15*b,.3*c,0,0,0,.65*b,.8*c);a.lineTo(.9*b,.8*c);a.stroke();a.moveTo(.1*b,.8*c);a.lineTo(.35*b,.8*c);a.arcTo(.15*b,.3*c,0,0,0,.5*b,.6*c);a.arcTo(.15*b,.3*c,0,0,1,.65*b,.4*c);a.lineTo(.9*b,.4*c);a.stroke();a.moveTo(.1*b,.8*c);a.lineTo(.35*b,.8*c);a.arcTo(.15*b,.1*c,0,0,0,.5*b,.75*c);a.arcTo(.15*b,.1*c,0,0,1,.65*b,.7*c);a.lineTo(.9*b,.7*c);a.stroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.crossDock",mxLeanCrossDock);
|
|
mxLeanCrossDock.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,0),!0),new mxConnectionConstraint(new mxPoint(1,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 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)];function mxLeanOrders(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanOrders,mxShape);
|
|
mxLeanOrders.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,.56*c,b,.44*c);a.fillAndStroke();d=parseFloat(mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"2"));a.setStrokeWidth(.5*d);a.begin();a.moveTo(.04*b,.5418*c);a.lineTo(.94*b,.5418*c);a.moveTo(.0522*b,.5088*c);a.lineTo(.9522*b,.5088*c);a.moveTo(.05*b,.4738*c);a.lineTo(.95*b,.4738*c);a.moveTo(.0456*b,.4427*c);a.lineTo(.9456*b,.4427*c);a.moveTo(.0422*b,.4135*c);a.lineTo(.9422*b,.4135*c);a.moveTo(.0533*b,.3804*
|
|
c);a.lineTo(.9533*b,.3804*c);a.moveTo(.0556*b,.3454*c);a.lineTo(.9556*b,.3454*c);a.moveTo(.05*b,.3143*c);a.lineTo(.95*b,.3143*c);a.moveTo(.0489*b,.2832*c);a.lineTo(.0489*b,.2832*c);a.moveTo(.0544*b,.254*c);a.lineTo(.9544*b,.254*c);a.moveTo(.0489*b,.221*c);a.lineTo(.9489*b,.221*c);a.moveTo(.0556*b,.1918*c);a.lineTo(.9556*b,.1918*c);a.moveTo(.0522*b,.1587*c);a.lineTo(.9522*b,.1587*c);a.moveTo(.0544*b,.1276*c);a.lineTo(.9544*b,.1276*c);a.moveTo(.0544*b,.0965*c);a.lineTo(.9544*b,.0965*c);a.moveTo(.0556*
|
|
b,.0654*c);a.lineTo(.9556*b,.0654*c);a.moveTo(.0533*b,.0304*c);a.lineTo(.9533*b,.0304*c);a.moveTo(.0556*b,0);a.lineTo(.9556*b,0);a.stroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.orders",mxLeanOrders);
|
|
mxLeanOrders.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.05,0),!0),new mxConnectionConstraint(new mxPoint(.95,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(.05,.25),!1),new mxConnectionConstraint(new mxPoint(.05,.5),!1),new mxConnectionConstraint(new mxPoint(0,
|
|
.75),!0),new mxConnectionConstraint(new mxPoint(.95,.25),!1),new mxConnectionConstraint(new mxPoint(.95,.5),!1),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)];function mxLeanBatchedKanban(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanBatchedKanban,mxShape);
|
|
mxLeanBatchedKanban.prototype.paintVertexShape=function(a,d,e,b,c){b=Math.max(110,b);a.translate(d,e);a.begin();a.moveTo(4,.5*c);a.lineTo(b,.5*c);a.stroke();a.begin();a.moveTo(.5*b-20,.5*c-35);a.lineTo(.5*b+25,.5*c-35);a.lineTo(.5*b+40,.5*c-20);a.lineTo(.5*b+40,.5*c+15);a.lineTo(.5*b-20,.5*c+15);a.close();a.fillAndStroke();a.begin();a.moveTo(.5*b-30,.5*c-25);a.lineTo(.5*b+15,.5*c-25);a.lineTo(.5*b+30,.5*c-10);a.lineTo(.5*b+30,.5*c+25);a.lineTo(.5*b-30,.5*c+25);a.close();a.fillAndStroke();a.begin();
|
|
a.moveTo(.5*b-40,.5*c-15);a.lineTo(.5*b+5,.5*c-15);a.lineTo(.5*b+20,.5*c);a.lineTo(.5*b+20,.5*c+35);a.lineTo(.5*b-40,.5*c+35);a.close();a.fillAndStroke();d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(d);a.begin();a.moveTo(b-10,.5*c-4);a.lineTo(b,.5*c);a.lineTo(b-10,.5*c+4);a.close();a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.lean_mapping.batched_kanban",mxLeanBatchedKanban);
|
|
mxLeanBatchedKanban.prototype.constraints=[new mxConnectionConstraint(new mxPoint(0,.5),!0),new mxConnectionConstraint(new mxPoint(1,.5),!0)];function mxLeanControlCenter(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxLeanControlCenter,mxShape);mxLeanControlCenter.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(.15*b,0,.7*b,.8*c);a.fillAndStroke();a.rect(0,.8*c,b,.2*c);a.fillAndStroke()};
|
|
mxCellRenderer.registerShape("mxgraph.lean_mapping.control_center",mxLeanControlCenter);
|
|
mxLeanControlCenter.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.15,0),!0),new mxConnectionConstraint(new mxPoint(.85,0),!0),new mxConnectionConstraint(new mxPoint(0,1),!0),new mxConnectionConstraint(new mxPoint(1,1),!0),new mxConnectionConstraint(new mxPoint(.5,0),!0),new mxConnectionConstraint(new mxPoint(.15,.25),!1),new mxConnectionConstraint(new mxPoint(.15,.5),!1),new mxConnectionConstraint(new mxPoint(0,.75),!0),new mxConnectionConstraint(new mxPoint(.85,.25),!1),new mxConnectionConstraint(new mxPoint(.85,
|
|
.5),!1),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)];function LeanElectronicInfoShape(){mxArrow.call(this)}mxUtils.extend(LeanElectronicInfoShape,mxArrow);
|
|
LeanElectronicInfoShape.prototype.paintEdgeShape=function(a,d){var e=d[0],b=d[d.length-1],c=b.x-e.x,f=b.y-e.y;e.x+=.05*c;e.y+=.05*f;b.x-=.05*c;b.y-=.05*f;var c=b.x-e.x,f=b.y-e.y,g=Math.sqrt(c*c+f*f),h=c/g,k=f/g,l=e.x+.5*c,n=e.y+.5*f,c=l-h*g*.1-k/3*g*.1,f=n-k*g*.1+h/3*g*.1,l=l+h*g*.1+k/3*g*.1,g=n+k*g*.1-h/3*g*.1;a.begin();a.moveTo(e.x,e.y);a.lineTo(l,g);a.lineTo(c,f);a.lineTo(b.x,b.y);a.stroke();c=b.x-c;f=b.y-f;g=Math.sqrt(c*c+f*f);h=c/g;k=f/g;a.setFillColor(mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,
|
|
"#000000"));a.begin();a.moveTo(b.x-10*h-5*k,b.y-10*k+5*h);a.lineTo(b.x,b.y);a.lineTo(b.x-10*h+5*k,b.y-10*k-5*h);a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes["mxgraph.lean_mapping.electronic_info_flow_edge"]=LeanElectronicInfoShape;function LeanManualInfoShape(){mxArrow.call(this)}mxUtils.extend(LeanManualInfoShape,mxArrow);
|
|
LeanManualInfoShape.prototype.paintEdgeShape=function(a,d){var e=d[0],b=d[d.length-1],c=b.x-e.x,f=b.y-e.y;e.x+=.05*c;e.y+=.05*f;b.x-=.05*c;b.y-=.05*f;var c=b.x-e.x,f=b.y-e.y,g=Math.sqrt(c*c+f*f),c=c/g,f=f/g;a.begin();a.moveTo(e.x,e.y);a.lineTo(b.x,b.y);a.stroke();a.setFillColor(mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000"));a.begin();a.moveTo(b.x-10*c-5*f,b.y-10*f+5*c);a.lineTo(b.x,b.y);a.lineTo(b.x-10*c+5*f,b.y-10*f-5*c);a.fillAndStroke()};
|
|
mxCellRenderer.prototype.defaultShapes["mxgraph.lean_mapping.manual_info_flow_edge"]=LeanManualInfoShape;function mxShapeLeanTimeline(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeLeanTimeline,mxShape);mxShapeLeanTimeline.prototype.cst={SHAPE_TIMELINE:"mxgraph.lean_mapping.timeline2"};
|
|
mxShapeLeanTimeline.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);var f=mxUtils.getValue(this.style,"dy1","0");d=mxUtils.getValue(this.style,"dx2","0");e=mxUtils.getValue(this.style,"dy2","0");var g=mxUtils.getValue(this.style,"dx3","0"),h=mxUtils.getValue(this.style,"dy3","0"),k=mxUtils.getValue(this.style,"dx4","0"),l=mxUtils.getValue(this.style,"dy4","0"),n=mxUtils.getValue(this.style,"dx5","0"),m=mxUtils.getValue(this.style,"dy5","0"),p=mxUtils.getValue(this.style,"dy6","0");
|
|
a.begin();.5>=f?(a.moveTo(0,0),f=!0):(a.moveTo(0,c),f=!1);.5>=e&&f?(a.lineTo(d,0),f=!0):.5<e&&!f?(a.lineTo(d,c),f=!1):.5>=e&&!f?(a.lineTo(d,c),a.lineTo(d,0),f=!0):(a.lineTo(d,0),a.lineTo(d,c),f=!1);.5>=h&&f?(a.lineTo(g,0),f=!0):.5<h&&!f?(a.lineTo(g,c),f=!1):.5>=h&&!f?(a.lineTo(g,c),a.lineTo(g,0),f=!0):(a.lineTo(g,0),a.lineTo(g,c),f=!1);.5>=l&&f?(a.lineTo(k,0),f=!0):.5<l&&!f?(a.lineTo(k,c),f=!1):.5>=l&&!f?(a.lineTo(k,c),a.lineTo(k,0),f=!0):(a.lineTo(k,0),a.lineTo(k,c),f=!1);.5>=m&&f?(a.lineTo(n,0),
|
|
f=!0):.5<m&&!f?(a.lineTo(n,c),f=!1):.5>=m&&!f?(a.lineTo(n,c),a.lineTo(n,0),f=!0):(a.lineTo(n,0),a.lineTo(n,c),f=!1);.5>=p&&f?a.lineTo(b,0):.5<p&&!f?a.lineTo(b,c):.5>=p&&!f?(a.lineTo(b,c),a.lineTo(b,0)):(a.lineTo(b,0),a.lineTo(b,c));a.stroke()};mxCellRenderer.prototype.defaultShapes[mxShapeLeanTimeline.prototype.cst.SHAPE_TIMELINE]=mxShapeLeanTimeline;
|
|
Graph.handleFactory[mxShapeLeanTimeline.prototype.cst.SHAPE_TIMELINE]=function(a){var d=[Graph.createHandle(a,["dy1"],function(a){var b=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"dy1",0))));return new mxPoint(a.x,a.y+b*a.height)},function(a,c){this.state.style.dy1=Math.round(1E3*Math.max(0,Math.min(1,(c.y-a.y)/a.height)))/1E3})],e=Graph.createHandle(a,["dx2","dy2"],function(a){var b=Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,"dx3",0)),parseFloat(mxUtils.getValue(this.state.style,
|
|
"dx2",0)))),d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"dy2",0))));return new mxPoint(a.x+b,a.y+d*a.height)},function(a,c){this.state.style.dx2=Math.round(1E3*Math.max(0,Math.min(parseFloat(mxUtils.getValue(this.state.style,"dx3",0)),c.x-a.x)))/1E3;this.state.style.dy2=Math.round(1E3*Math.max(0,Math.min(1,(c.y-a.y)/a.height)))/1E3});d.push(e);e=Graph.createHandle(a,["dx3","dy3"],function(a){var b=Math.max(parseFloat(mxUtils.getValue(this.state.style,"dx2",0)),Math.min(parseFloat(mxUtils.getValue(this.state.style,
|
|
"dx4",0)),parseFloat(mxUtils.getValue(this.state.style,"dx3",0)))),d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"dy3",0))));return new mxPoint(a.x+b,a.y+d*a.height)},function(a,c){this.state.style.dx3=Math.round(1E3*Math.max(parseFloat(mxUtils.getValue(this.state.style,"dx2",0)),Math.min(parseFloat(mxUtils.getValue(this.state.style,"dx4",0)),c.x-a.x)))/1E3;this.state.style.dy3=Math.round(1E3*Math.max(0,Math.min(1,(c.y-a.y)/a.height)))/1E3});d.push(e);e=Graph.createHandle(a,
|
|
["dx4","dy4"],function(a){var b=Math.max(parseFloat(mxUtils.getValue(this.state.style,"dx3",0)),Math.min(parseFloat(mxUtils.getValue(this.state.style,"dx5",0)),parseFloat(mxUtils.getValue(this.state.style,"dx4",0)))),d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"dy4",0))));return new mxPoint(a.x+b,a.y+d*a.height)},function(a,c){this.state.style.dx4=Math.round(1E3*Math.max(parseFloat(mxUtils.getValue(this.state.style,"dx3",0)),Math.min(parseFloat(mxUtils.getValue(this.state.style,
|
|
"dx5",0)),c.x-a.x)))/1E3;this.state.style.dy4=Math.round(1E3*Math.max(0,Math.min(1,(c.y-a.y)/a.height)))/1E3});d.push(e);e=Graph.createHandle(a,["dx5","dy5"],function(a){var b=Math.max(parseFloat(mxUtils.getValue(this.state.style,"dx4",0)),Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"dx5",0)))),d=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"dy5",0))));return new mxPoint(a.x+b,a.y+d*a.height)},function(a,c){this.state.style.dx5=Math.round(1E3*Math.max(parseFloat(mxUtils.getValue(this.state.style,
|
|
"dx4",0)),Math.min(a.width,c.x-a.x)))/1E3;this.state.style.dy5=Math.round(1E3*Math.max(0,Math.min(1,(c.y-a.y)/a.height)))/1E3});d.push(e);a=Graph.createHandle(a,["dy6"],function(a){var b=Math.max(0,Math.min(100,parseFloat(mxUtils.getValue(this.state.style,"dy6",0))));return new mxPoint(a.x+a.width,a.y+b*a.height)},function(a,c){this.state.style.dy6=Math.round(1E3*Math.max(0,Math.min(1,(c.y-a.y)/a.height)))/1E3});d.push(a);return d};
|
|
function mxShapeNetworksBus(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeNetworksBus,mxShape);mxShapeNetworksBus.prototype.cst={SHAPE_BUS:"mxgraph.networks.bus"};mxShapeNetworksBus.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeNetworksBus.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(8,.5*c+10);a.arcTo(12,12,0,0,1,8,.5*c-10);a.lineTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.close();a.fillAndStroke()};mxShapeNetworksBus.prototype.foreground=function(a,d,e,b,c){a.setFillColor("#ffffff");a.begin();a.moveTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.arcTo(12,12,0,0,1,b-8,.5*c-10);a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapeNetworksBus.prototype.cst.SHAPE_BUS]=mxShapeNetworksBus;
|
|
function mxShapeNetworksCommLinkEdge(){mxArrow.call(this)}mxUtils.extend(mxShapeNetworksCommLinkEdge,mxArrow);
|
|
mxShapeNetworksCommLinkEdge.prototype.paintEdgeShape=function(a,d){var e=d[0],b=d[d.length-1],c=b.x-e.x,f=b.y-e.y;e.x+=.05*c;e.y+=.05*f;b.x-=.05*c;b.y-=.05*f;var c=b.x-e.x,f=b.y-e.y,g=Math.sqrt(c*c+f*f),h=c/g,k=f/g,l=e.x+.5*c,n=e.y+.5*f,f=l+h*g/3*.1-k/3*g*.1,c=n+k*g/3*.1+h/3*g*.1,m=l+h*g*.1+k*g*.1,p=n+k*g*.1-h*g*.1,q=l-h*g/3*.1+k/3*g*.1,u=n-k*g/3*.1-h/3*g*.1,l=l-h*g*.1-k*g*.1,g=n-k*g*.1+h*g*.1;a.begin();a.moveTo(e.x,e.y);a.lineTo(m,p);a.lineTo(f,c);a.lineTo(b.x,b.y);a.lineTo(l,g);a.lineTo(q,u);a.close();
|
|
a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes["mxgraph.networks.comm_link_edge"]=mxShapeNetworksCommLinkEdge;function mxShapeSysMLComposite(){mxCylinder.call(this)}mxUtils.extend(mxShapeSysMLComposite,mxShape);mxShapeSysMLComposite.prototype.isHtmlAllowed=function(){return!1};
|
|
mxShapeSysMLComposite.prototype.paintForeground=function(a,d,e,b,c){if(null!=this.style){var f=mxCellRenderer.prototype.defaultShapes[this.style.symbol0];a.save();var g=new f;g.style=this.style;f.prototype.paintVertexShape.call(g,a,d,e,b,c);a.restore();a.setDashed(!1);var h=1;do{f=mxCellRenderer.prototype.defaultShapes[this.style["symbol"+h]];if(null!=f){var g=this.style["symbol"+h+"Align"],k=this.style["symbol"+h+"VerticalAlign"],l=this.style["symbol"+h+"Width"],n=this.style["symbol"+h+"Height"],
|
|
m=this.style["symbol"+h+"Spacing"]||0,p=this.style["symbol"+h+"VSpacing"]||0,q=this.style["symbol"+h+"ArcSpacing"],u=this.style["symbol"+h+"Direction"];null!=q&&(m+=this.getArcSize(b+this.strokewidth,c+this.strokewidth)*q,p+=this.getArcSize(b+this.strokewidth,c+this.strokewidth)*q);var q=d,t=e,q=g==mxConstants.ALIGN_CENTER?q+(b-l)/2:g==mxConstants.ALIGN_RIGHT?q+(b-l-m):q+m,t=k==mxConstants.ALIGN_MIDDLE?t+(c-n)/2:k==mxConstants.ALIGN_BOTTOM?t+(c-n-p):t+p;a.save();g=new f;g.style=mxUtils.clone(this.style);
|
|
g.direction=u;g.updateTransform(a,q,t,l,n);f.prototype.paintVertexShape.call(g,a,q,t,l,n);a.restore()}h++}while(null!=f)}};mxCellRenderer.prototype.defaultShapes["mxgraph.sysml.composite"]=mxShapeSysMLComposite;function mxShapeSysMLPackage(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLPackage,mxShape);mxShapeSysMLPackage.prototype.cst={PACKAGE:"mxgraph.sysml.package",LABEL_X:"labelX"};
|
|
mxShapeSysMLPackage.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeSysMLPackage.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};mxShapeSysMLPackage.prototype.foreground=function(a,d,e,b,c){d=parseInt(mxUtils.getValue(this.style,mxShapeSysMLPackage.prototype.cst.LABEL_X,"90"));d=Math.min(d,b);20<d&&(a.begin(),a.moveTo(0,20),a.lineTo(d-10,20),a.lineTo(d,10),a.lineTo(d,0),a.stroke())};
|
|
mxCellRenderer.registerShape(mxShapeSysMLPackage.prototype.cst.PACKAGE,mxShapeSysMLPackage);Graph.handleFactory[mxShapeSysMLPackage.prototype.cst.PACKAGE]=function(a){return[Graph.createHandle(a,["labelX"],function(a){var d=Math.max(0,Math.min(a.width,parseFloat(mxUtils.getValue(this.state.style,"labelX",90))));return new mxPoint(a.x+d,a.y+10)},function(a,e){this.state.style.labelX=Math.round(100*Math.max(0,Math.min(a.width,e.x-a.x)))/100})]};
|
|
function mxShapeSysMLNone(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLNone,mxShape);mxShapeSysMLNone.prototype.cst={NONE:"mxgraph.sysml.none"};mxShapeSysMLNone.prototype.paintVertexShape=function(a,d,e,b,c){};mxCellRenderer.registerShape(mxShapeSysMLNone.prototype.cst.NONE,mxShapeSysMLNone);function mxShapeSysMLRect(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeSysMLRect,mxShape);mxShapeSysMLRect.prototype.cst={RECT:"mxgraph.sysml.rect"};mxShapeSysMLRect.prototype.paintVertexShape=function(a,d,e,b,c){a.rect(d,e,b,c);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLRect.prototype.cst.RECT,mxShapeSysMLRect);function mxShapeSysMLPortOne(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLPortOne,mxShape);mxShapeSysMLPortOne.prototype.cst={PORT1:"mxgraph.sysml.port1"};
|
|
mxShapeSysMLPortOne.prototype.paintVertexShape=function(a,d,e,b,c){a.rect(d+.05*b,e,b-.1*b,c);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLPortOne.prototype.cst.PORT1,mxShapeSysMLPortOne);function mxShapeSysMLPortTwo(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLPortTwo,mxShape);mxShapeSysMLPortTwo.prototype.cst={PORT2:"mxgraph.sysml.port2"};
|
|
mxShapeSysMLPortTwo.prototype.paintVertexShape=function(a,d,e,b,c){a.rect(d+.05*b,e,.8*b,c);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLPortTwo.prototype.cst.PORT2,mxShapeSysMLPortTwo);function mxShapeSysMLPortThree(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLPortThree,mxShape);mxShapeSysMLPortThree.prototype.cst={PORT3:"mxgraph.sysml.port3"};
|
|
mxShapeSysMLPortThree.prototype.paintVertexShape=function(a,d,e,b,c){a.rect(d+.07*b,e,.86*b,c);a.fillAndStroke();a.rect(d,e+.125*c,.14*b,.25*c);a.fillAndStroke();a.rect(d,e+.625*c,.14*b,.25*c);a.fillAndStroke();a.rect(d+.86*b,e+.375*c,.14*b,.25*c);a.fillAndStroke();this.drawIn(a,d+.01*b,e+.2*c,.11*b,.1*c);this.drawOut(a,d+.02*b,e+.7*c,.11*b,.1*c);this.drawInOut(a,d+.88*b,e+.45*c,.1*b,.1*c)};
|
|
mxShapeSysMLPortThree.prototype.drawIn=function(a,d,e,b,c){a.begin();a.moveTo(d,e+.5*c);a.lineTo(d+b,e+.5*c);a.moveTo(d+.75*b,e);a.lineTo(d+b,e+.5*c);a.lineTo(d+.75*b,e+c);a.stroke()};mxShapeSysMLPortThree.prototype.drawOut=function(a,d,e,b,c){a.begin();a.moveTo(d,e+.5*c);a.lineTo(d+b,e+.5*c);a.moveTo(d+.25*b,e);a.lineTo(d,e+.5*c);a.lineTo(d+.25*b,e+c);a.stroke()};
|
|
mxShapeSysMLPortThree.prototype.drawInOut=function(a,d,e,b,c){a.begin();a.moveTo(d+.75*b,e);a.lineTo(d+b,e+.5*c);a.lineTo(d+.75*b,e+c);a.moveTo(d+.25*b,e);a.lineTo(d,e+.5*c);a.lineTo(d+.25*b,e+c);a.stroke()};mxCellRenderer.registerShape(mxShapeSysMLPortThree.prototype.cst.PORT3,mxShapeSysMLPortThree);function mxShapeSysMLPortFour(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLPortFour,mxShape);
|
|
mxShapeSysMLPortFour.prototype.cst={PORT4:"mxgraph.sysml.port4"};mxShapeSysMLPortFour.prototype.paintVertexShape=function(a,d,e,b,c){a.rect(d+.05*b,e,b-.05*b,c);a.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)];function mxShapeSysMLItemFlow(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLItemFlow,mxShape);
|
|
mxShapeSysMLItemFlow.prototype.cst={ITEM_FLOW:"mxgraph.sysml.itemFlow",FLOW_DIR:"flowDir",FLOW_TYPE:"flowType"};
|
|
mxShapeSysMLItemFlow.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapeSysMLItemFlow.prototype.cst.FLOW_DIR,"none").toLowerCase(),g=mxUtils.getValue(this.style,mxShapeSysMLItemFlow.prototype.cst.FLOW_TYPE,"none");"n"===f?(a.rect(d,e+10,b,c-10),a.fillAndStroke(),a.setShadow(!1),a.rect(d+.5*b-10,e,20,20),a.fillAndStroke(),"in"===g?this.drawDown(a,d+.5*b-5,e+2,10,16):"out"===g&&this.drawUp(a,d+.5*b-5,e+2,10,16)):"s"===f?(a.rect(d,e,b,c-10),a.fillAndStroke(),a.setShadow(!1),
|
|
a.rect(d+.5*b-10,e+c-20,20,20),a.fillAndStroke(),"in"===g?this.drawUp(a,d+.5*b-5,e+c-18,10,16):"out"===g&&this.drawDown(a,d+.5*b-5,e+c-18,10,16)):"w"===f?(a.rect(d+10,e,b-10,c),a.fillAndStroke(),a.setShadow(!1),a.rect(d,e+.5*c-10,20,20),a.fillAndStroke(),"in"===g?this.drawRight(a,d+2,e+.5*c-5,16,10):"out"===g&&this.drawLeft(a,d+2,e+.5*c-5,16,10)):"e"===f&&(a.rect(d,e,b-10,c),a.fillAndStroke(),a.setShadow(!1),a.rect(d+b-20,e+.5*c-10,20,20),a.fillAndStroke(),"in"===g?this.drawLeft(a,d+b-18,e+.5*c-5,
|
|
16,10):"out"===g&&this.drawRight(a,d+b-18,e+.5*c-5,16,10))};mxShapeSysMLItemFlow.prototype.drawRight=function(a,d,e,b,c){a.begin();a.moveTo(d,e+.5*c);a.lineTo(d+b,e+.5*c);a.moveTo(d+.75*b,e);a.lineTo(d+b,e+.5*c);a.lineTo(d+.75*b,e+c);a.stroke()};mxShapeSysMLItemFlow.prototype.drawDown=function(a,d,e,b,c){a.begin();a.moveTo(d+.5*b,e);a.lineTo(d+.5*b,e+c);a.moveTo(d,e+.75*c);a.lineTo(d+.5*b,e+c);a.lineTo(d+b,e+.75*c);a.stroke()};
|
|
mxShapeSysMLItemFlow.prototype.drawLeft=function(a,d,e,b,c){a.begin();a.moveTo(d,e+.5*c);a.lineTo(d+b,e+.5*c);a.moveTo(d+.25*b,e);a.lineTo(d,e+.5*c);a.lineTo(d+.25*b,e+c);a.stroke()};mxShapeSysMLItemFlow.prototype.drawUp=function(a,d,e,b,c){a.begin();a.moveTo(d+.5*b,e+c);a.lineTo(d+.5*b,e);a.moveTo(d,e+.25*c);a.lineTo(d+.5*b,e);a.lineTo(d+b,e+.25*c);a.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)];function mxShapeSysMLItemFlowLeft(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLItemFlowLeft,mxShape);mxShapeSysMLItemFlowLeft.prototype.cst={ITEM_FLOW_LEFT:"mxgraph.sysml.itemFlowLeft"};
|
|
mxShapeSysMLItemFlowLeft.prototype.paintVertexShape=function(a,d,e,b,c){a.rect(d+10,e,b-10,c);a.fillAndStroke();a.rect(d,e+.25*c-10,20,20);a.fillAndStroke();a.rect(d,e+.5*c-10,20,20);a.fillAndStroke();a.rect(d,e+.75*c-10,20,20);a.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)];function mxShapeSysMLItemFlowRight(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeSysMLItemFlowRight,mxShape);mxShapeSysMLItemFlowRight.prototype.cst={ITEM_FLOW_RIGHT:"mxgraph.sysml.itemFlowRight"};mxShapeSysMLItemFlowRight.prototype.paintVertexShape=function(a,d,e,b,c){a.rect(d,e,b-10,c);a.fillAndStroke();a.rect(d+b-20,e+.25*c-10,20,20);a.fillAndStroke();a.rect(d+b-20,e+.5*c-10,20,20);a.fillAndStroke();a.rect(d+b-20,e+.75*c-10,20,20);a.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)];function mxShapeSysMLNestedPort(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeSysMLNestedPort,mxShape);mxShapeSysMLNestedPort.prototype.cst={NESTED_PORT:"mxgraph.sysml.nestedPort"};mxShapeSysMLNestedPort.prototype.paintVertexShape=function(a,d,e,b,c){a.rect(d+.08*b,e,.92*b,c);a.fillAndStroke();a.rect(d+.03*b,e+.1*c,.1*b,.8*c);a.fillAndStroke();a.rect(d,e+.15*c,.06*b,.16*c);a.fillAndStroke();a.rect(d,e+.42*c,.06*b,.16*c);a.fillAndStroke();a.rect(d,e+.69*c,.06*b,.16*c);a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeSysMLNestedPort.prototype.cst.NESTED_PORT,mxShapeSysMLNestedPort);mxMarker.addMarker("sysMLPackCont",function(a,d,e,b,c,f,g,h,k,l){var n=c*(g+k+1),m=f*(g+k+1),p=g/2;return function(){a.begin();a.moveTo(b.x-n/2-m/2,b.y-m/2+n/2);a.lineTo(b.x-n/2+m/2,b.y-m/2-n/2);a.stroke();a.ellipse(b.x-.5*n-p,b.y-.5*m-p,2*p,2*p);a.stroke()}});
|
|
mxMarker.addMarker("sysMLReqInt",function(a,d,e,b,c,f,g,h,k,l){var n=c*(g+k+1),m=f*(g+k+1),p=g/2;return function(){var c=mxUtils.getValue(d.style,mxConstants.STYLE_FILLCOLOR,"none");a.setFillColor(c);a.ellipse(b.x-.5*n-p,b.y-.5*m-p,2*p,2*p);a.fillAndStroke()}});
|
|
mxMarker.addMarker("sysMLProvInt",function(a,d,e,b,c,f,g,h,k,l){var n=c*(g+k+1),m=f*(g+k+1),p=g/2;return function(){var c=mxUtils.getValue(d.style,mxConstants.STYLE_FILLCOLOR,"none");a.setFillColor(c);a.begin();a.moveTo(b.x-m/2,b.y+n/2);a.arcTo(p,p,0,0,1,b.x+m/2,b.y-n/2);a.fillAndStroke()}});function mxShapeSysMLParametricDiagram(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLParametricDiagram,mxShape);
|
|
mxShapeSysMLParametricDiagram.prototype.cst={PARAM_DGM:"mxgraph.sysml.paramDgm"};mxShapeSysMLParametricDiagram.prototype.paintVertexShape=function(a,d,e,b,c){a.roundrect(d,e,b,c,10,10);a.fillAndStroke();a.setShadow(!1);60<c&&(a.rect(d,e+.25*c-10,20,20),a.stroke(),a.rect(d,e+.75*c-10,20,20),a.stroke())};mxCellRenderer.registerShape(mxShapeSysMLParametricDiagram.prototype.cst.PARAM_DGM,mxShapeSysMLParametricDiagram);
|
|
function mxShapeSysMLConstraintProperty(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLConstraintProperty,mxShape);mxShapeSysMLConstraintProperty.prototype.cst={CONS_PROP:"mxgraph.sysml.consProp"};mxShapeSysMLConstraintProperty.prototype.paintVertexShape=function(a,d,e,b,c){a.rect(d,e,b,c);a.fillAndStroke();a.setShadow(!1);60<c&&(a.rect(d,e+50,20,20),a.stroke(),a.rect(d,e+80,20,20),a.stroke())};
|
|
mxCellRenderer.registerShape(mxShapeSysMLConstraintProperty.prototype.cst.CONS_PROP,mxShapeSysMLConstraintProperty);function mxShapeSysMLCallBehaviorAction(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLCallBehaviorAction,mxShape);mxShapeSysMLCallBehaviorAction.prototype.cst={CALL_BEH_ACT:"mxgraph.sysml.callBehAct"};
|
|
mxShapeSysMLCallBehaviorAction.prototype.paintVertexShape=function(a,d,e,b,c){a.roundrect(d,e,b,c,10,10);a.fillAndStroke();30<c&&40<b&&(a.setShadow(!1),this.drawSymb(a,d+b-30,e+c-30,20,20))};mxShapeSysMLCallBehaviorAction.prototype.drawSymb=function(a,d,e,b,c){a.begin();a.moveTo(d+.5*b,e);a.lineTo(d+.5*b,e+c);a.moveTo(d,e+c);a.lineTo(d,e+.5*c);a.lineTo(d+b,e+.5*c);a.lineTo(d+b,e+c);a.stroke()};mxCellRenderer.registerShape(mxShapeSysMLCallBehaviorAction.prototype.cst.CALL_BEH_ACT,mxShapeSysMLCallBehaviorAction);
|
|
function mxShapeSysMLAcceptEventAction(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLAcceptEventAction,mxShape);mxShapeSysMLAcceptEventAction.prototype.cst={ACC_EVENT:"mxgraph.sysml.accEvent"};mxShapeSysMLAcceptEventAction.prototype.paintVertexShape=function(a,d,e,b,c){a.begin();a.moveTo(d,e);a.lineTo(d+b,e);a.lineTo(d+b,e+c);a.lineTo(d,e+c);a.lineTo(d+.3*c,e+.5*c);a.close();a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeSysMLAcceptEventAction.prototype.cst.ACC_EVENT,mxShapeSysMLAcceptEventAction);function mxShapeSysMLTimeEvent(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLTimeEvent,mxShape);mxShapeSysMLTimeEvent.prototype.cst={TIME_EVENT:"mxgraph.sysml.timeEvent"};
|
|
mxShapeSysMLTimeEvent.prototype.paintVertexShape=function(a,d,e,b,c){a.begin();a.moveTo(d,e);a.lineTo(d+b,e);a.lineTo(d,e+c);a.lineTo(d+b,e+c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLTimeEvent.prototype.cst.TIME_EVENT,mxShapeSysMLTimeEvent);function mxShapeSysMLSendSignalAction(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLSendSignalAction,mxShape);
|
|
mxShapeSysMLSendSignalAction.prototype.cst={SEND_SIG_ACT:"mxgraph.sysml.sendSigAct"};mxShapeSysMLSendSignalAction.prototype.paintVertexShape=function(a,d,e,b,c){a.begin();a.moveTo(d,e);a.lineTo(d+b-.3*c,e);a.lineTo(d+b,e+.5*c);a.lineTo(d+b-.3*c,e+c);a.lineTo(d,e+c);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLSendSignalAction.prototype.cst.SEND_SIG_ACT,mxShapeSysMLSendSignalAction);
|
|
function mxShapeSysMLActivityFinal(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLActivityFinal,mxShape);mxShapeSysMLActivityFinal.prototype.cst={ACT_FINAL:"mxgraph.sysml.actFinal"};mxShapeSysMLActivityFinal.prototype.paintVertexShape=function(a,d,e,b,c){a.ellipse(d,e,b,c);a.fillAndStroke();var f=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(f);a.ellipse(d+5,e+5,b-10,c-10);a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeSysMLActivityFinal.prototype.cst.ACT_FINAL,mxShapeSysMLActivityFinal);function mxShapeSysMLActivityParameterNode(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLActivityParameterNode,mxShape);mxShapeSysMLActivityParameterNode.prototype.cst={ACT_PARAM_NODE:"mxgraph.sysml.actParamNode"};
|
|
mxShapeSysMLActivityParameterNode.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();d=Math.max(.35*b,70);e=Math.min(.65*b,b-10);a.begin();a.moveTo(d,c);a.lineTo(10,c);a.lineTo(10,0);a.lineTo(d,0);a.moveTo(e,c);a.lineTo(b-10,c);a.lineTo(b-10,0);a.lineTo(e,0);a.stroke();d=Math.min(50,b);20<d&&(a.begin(),a.moveTo(10,20),a.lineTo(d-10,20),a.lineTo(d,10),a.lineTo(d,0),a.lineTo(10,0),a.close(),a.fillAndStroke());a.rect(0,.35*c-10,20,20);a.fillAndStroke();a.rect(0,.65*c-10,20,20);
|
|
a.fillAndStroke();a.rect(b-20,.5*c-10,20,20);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLActivityParameterNode.prototype.cst.ACT_PARAM_NODE,mxShapeSysMLActivityParameterNode);function mxShapeSysMLControlOperator(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLControlOperator,mxShape);mxShapeSysMLControlOperator.prototype.cst={CONT_OPER:"mxgraph.sysml.contOper"};
|
|
mxShapeSysMLControlOperator.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapeSysMLControlOperator.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};mxShapeSysMLControlOperator.prototype.foreground=function(a,d,e,b,c){d=Math.min(130,b);20<d&&(a.begin(),a.moveTo(0,20),a.lineTo(d-10,20),a.lineTo(d,10),a.lineTo(d,0),a.stroke())};
|
|
mxCellRenderer.registerShape(mxShapeSysMLControlOperator.prototype.cst.CONT_OPER,mxShapeSysMLControlOperator);function mxShapeSysMLFlowFinal(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLFlowFinal,mxShape);mxShapeSysMLFlowFinal.prototype.cst={FLOW_FINAL:"mxgraph.sysml.flowFinal"};
|
|
mxShapeSysMLFlowFinal.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.ellipse(0,0,b,c);a.fillAndStroke();a.setShadow(!1);a.begin();a.moveTo(.145*b,.145*c);a.lineTo(.855*b,.855*c);a.moveTo(.855*b,.145*c);a.lineTo(.145*b,.855*c);a.stroke()};mxCellRenderer.registerShape(mxShapeSysMLFlowFinal.prototype.cst.FLOW_FINAL,mxShapeSysMLFlowFinal);function mxShapeSysMLIsControl(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeSysMLIsControl,mxShape);mxShapeSysMLIsControl.prototype.cst={IS_CONTROL:"mxgraph.sysml.isControl"};mxShapeSysMLIsControl.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,.5*c-10,10,20);a.fillAndStroke();a.roundrect(10,0,b-20,c,10,10);a.fillAndStroke();a.rect(b-10,.5*c-10,10,20);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLIsControl.prototype.cst.IS_CONTROL,mxShapeSysMLIsControl);
|
|
function mxShapeSysMLIsStream(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLIsStream,mxShape);mxShapeSysMLIsStream.prototype.cst={IS_STREAM:"mxgraph.sysml.isStream"};
|
|
mxShapeSysMLIsStream.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");e=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff");a.setFillColor(d);a.rect(0,.5*c-10,10,20);a.fillAndStroke();a.setFillColor(e);a.roundrect(10,0,b-20,c,10,10);a.fillAndStroke();a.setFillColor(d);a.rect(b-10,.5*c-10,10,20);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLIsStream.prototype.cst.IS_STREAM,mxShapeSysMLIsStream);
|
|
function mxShapeSysMLIsActStream(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLIsActStream,mxShape);mxShapeSysMLIsActStream.prototype.cst={IS_ACT_STREAM:"mxgraph.sysml.isActStream"};
|
|
mxShapeSysMLIsActStream.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.rect(0,0,b-10,c);a.fillAndStroke();d=Math.min(40,b);20<d&&(a.begin(),a.moveTo(0,20),a.lineTo(d-10,20),a.lineTo(d,10),a.lineTo(d,0),a.lineTo(0,0),a.close(),a.fillAndStroke());a.rect(b-20,.5*c-10,20,20);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLIsActStream.prototype.cst.IS_ACT_STREAM,mxShapeSysMLIsActStream);
|
|
function mxShapeSysMLParameterSet(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLParameterSet,mxShape);mxShapeSysMLParameterSet.prototype.cst={PARAM_SET:"mxgraph.sysml.paramSet"};
|
|
mxShapeSysMLParameterSet.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,.5*c-28,10,56);a.fillAndStroke();a.roundrect(10,0,b-20,c,10,10);a.fillAndStroke();a.rect(b-10,.5*c-28,10,56);a.fillAndStroke();a.setShadow(!1);a.rect(4,.5*c-24,6,20);a.fillAndStroke();a.rect(4,.5*c+4,6,20);a.fillAndStroke();a.rect(b-10,.5*c-24,6,20);a.fillAndStroke();a.rect(b-10,.5*c+4,6,20);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLParameterSet.prototype.cst.PARAM_SET,mxShapeSysMLParameterSet);
|
|
function mxShapeSysMLParameterActivitySet(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLParameterActivitySet,mxShape);mxShapeSysMLParameterActivitySet.prototype.cst={PARAM_ACT_SET:"mxgraph.sysml.paramActSet"};
|
|
mxShapeSysMLParameterActivitySet.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.rect(10,0,b-20,c);a.fillAndStroke();d=Math.min(50,b);20<d&&(a.begin(),a.moveTo(10,20),a.lineTo(d-10,20),a.lineTo(d,10),a.lineTo(d,0),a.lineTo(10,0),a.close(),a.fillAndStroke());a.setShadow(!1);70<c&&(a.rect(0,.5*c-28,15,56),a.fillAndStroke(),a.rect(4,.5*c-24,15,20),a.fillAndStroke(),a.rect(4,.5*c+4,15,20),a.fillAndStroke(),a.rect(b-15,.5*c-28,15,56),a.fillAndStroke(),a.rect(b-19,.5*c-24,15,
|
|
20),a.fillAndStroke(),a.rect(b-19,.5*c+4,15,20),a.fillAndStroke())};mxCellRenderer.registerShape(mxShapeSysMLParameterActivitySet.prototype.cst.PARAM_ACT_SET,mxShapeSysMLParameterActivitySet);function mxShapeSysMLProbability(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLProbability,mxShape);mxShapeSysMLProbability.prototype.cst={PROBABILITY:"mxgraph.sysml.probability"};
|
|
mxShapeSysMLProbability.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.roundrect(0,0,b-10,c,10,10);a.fillAndStroke();a.rect(b-10,.25*c-28,10,56);a.fillAndStroke();a.rect(b-10,.75*c-28,10,56);a.fillAndStroke();a.setShadow(!1);a.rect(b-10,.25*c-24,6,20);a.fillAndStroke();a.rect(b-10,.25*c+4,6,20);a.fillAndStroke();a.rect(b-10,.75*c-24,6,20);a.fillAndStroke();a.rect(b-10,.75*c+4,6,20);a.fillAndStroke()};
|
|
mxCellRenderer.registerShape(mxShapeSysMLProbability.prototype.cst.PROBABILITY,mxShapeSysMLProbability);function mxShapeSysMLActivityProbability(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLActivityProbability,mxShape);mxShapeSysMLActivityProbability.prototype.cst={ACT_PROB:"mxgraph.sysml.actProb"};
|
|
mxShapeSysMLActivityProbability.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.rect(0,0,b-10,c);a.fillAndStroke();d=Math.min(40,b);20<d&&(a.begin(),a.moveTo(0,20),a.lineTo(d-10,20),a.lineTo(d,10),a.lineTo(d,0),a.lineTo(0,0),a.close(),a.fillAndStroke());a.setShadow(!1);70<c&&(a.rect(b-15,.25*c-28,15,56),a.fillAndStroke(),a.rect(b-19,.25*c-24,15,20),a.fillAndStroke(),a.rect(b-19,.25*c+4,15,20),a.fillAndStroke(),a.rect(b-15,.75*c-28,15,56),a.fillAndStroke(),a.rect(b-19,.75*
|
|
c-24,15,20),a.fillAndStroke(),a.rect(b-19,.75*c+4,15,20),a.fillAndStroke())};mxCellRenderer.registerShape(mxShapeSysMLActivityProbability.prototype.cst.ACT_PROB,mxShapeSysMLActivityProbability);function mxShapeSysMLObjectFlowRight(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLObjectFlowRight,mxShape);mxShapeSysMLObjectFlowRight.prototype.cst={OBJ_FLOW_R:"mxgraph.sysml.objFlowR"};
|
|
mxShapeSysMLObjectFlowRight.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.roundrect(0,0,b-10,c,10,10);a.fillAndStroke();a.rect(b-10,.5*c-10,10,20);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLObjectFlowRight.prototype.cst.OBJ_FLOW_R,mxShapeSysMLObjectFlowRight);function mxShapeSysMLObjectFlowLeft(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLObjectFlowLeft,mxShape);
|
|
mxShapeSysMLObjectFlowLeft.prototype.cst={OBJ_FLOW_L:"mxgraph.sysml.objFlowL"};mxShapeSysMLObjectFlowLeft.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.rect(0,.5*c-10,10,20);a.fillAndStroke();a.roundrect(10,0,b-10,c,10,10);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLObjectFlowLeft.prototype.cst.OBJ_FLOW_L,mxShapeSysMLObjectFlowLeft);
|
|
function mxShapeSysMLActivityPartition(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLActivityPartition,mxShape);mxShapeSysMLActivityPartition.prototype.cst={ACT_PART:"mxgraph.sysml.actPart"};mxShapeSysMLActivityPartition.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(0,0);a.lineTo(0,c);a.moveTo(b,0);a.lineTo(b,c);a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeSysMLActivityPartition.prototype.cst.ACT_PART,mxShapeSysMLActivityPartition);function mxShapeSysMLContinuation(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLContinuation,mxShape);mxShapeSysMLContinuation.prototype.cst={CONT:"mxgraph.sysml.cont"};
|
|
mxShapeSysMLContinuation.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);b>c?(d=.5*c,a.begin(),a.moveTo(b-d,0),a.arcTo(d,d,0,0,1,b-d,c),a.lineTo(d,c),a.arcTo(d,d,0,0,1,d,0)):(d=.5*b,a.begin(),a.moveTo(0,c-d),a.arcTo(d,d,0,0,0,b,c-d),a.lineTo(b,d),a.arcTo(d,d,0,0,0,0,d));a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLContinuation.prototype.cst.CONT,mxShapeSysMLContinuation);
|
|
function mxShapeSysMLCoregion(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLCoregion,mxShape);mxShapeSysMLCoregion.prototype.cst={COREGION:"mxgraph.sysml.coregion"};mxShapeSysMLCoregion.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);d=Math.min(10,c);a.begin();a.moveTo(0,d);a.lineTo(0,0);a.lineTo(b,0);a.lineTo(b,d);a.moveTo(0,c-d);a.lineTo(0,c);a.lineTo(b,c);a.lineTo(b,c-d);a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeSysMLCoregion.prototype.cst.COREGION,mxShapeSysMLCoregion);mxMarker.addMarker("sysMLx",function(a,d,e,b,c,f,g,h,k,l){var n=c*(g+k+1),m=f*(g+k+1);return function(){a.begin();a.moveTo(b.x-n/2-m/2,b.y-m/2+n/2);a.lineTo(b.x+n/2+m/2,b.y+m/2-n/2);a.moveTo(b.x+n/2-m/2,b.y+m/2+n/2);a.lineTo(b.x-n/2+m/2,b.y-m/2-n/2);a.stroke()}});function mxShapeSysMLDimension(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapeSysMLDimension,mxShape);mxShapeSysMLDimension.prototype.cst={DIMENSION:"mxgraph.sysml.dimension"};mxShapeSysMLDimension.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};mxShapeSysMLDimension.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,20);a.lineTo(b,20);a.moveTo(10,15);a.lineTo(0,20);a.lineTo(10,25);a.moveTo(b-10,15);a.lineTo(b,20);a.lineTo(b-10,25);a.moveTo(0,15);a.lineTo(0,c);a.moveTo(b,15);a.lineTo(b,c);a.stroke()};
|
|
mxCellRenderer.registerShape(mxShapeSysMLDimension.prototype.cst.DIMENSION,mxShapeSysMLDimension);mxMarker.addMarker("sysMLLost",function(a,d,e,b,c,f,g,h,k,l){var n=c*(g+k+1),m=f*(g+k+1),p=g/2;return function(){a.begin();a.moveTo(b.x-1.5*n-m/2,b.y-1.5*m+n/2);a.lineTo(b.x-n/2,b.y-m/2);a.lineTo(b.x-1.5*n+m/2,b.y-1.5*m-n/2);a.stroke();a.ellipse(b.x-.5*n-p,b.y-.5*m-p,2*p,2*p);var c=mxUtils.getValue(d.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(c);a.fillAndStroke()}});
|
|
mxMarker.addMarker("sysMLFound",function(a,d,e,b,c,f,g,h,k,l){var n=c*(g+k+1),m=f*(g+k+1),p=g/2;return function(){a.ellipse(b.x-.5*n-p,b.y-.5*m-p,2*p,2*p);var c=mxUtils.getValue(d.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(c);a.fillAndStroke()}});function mxShapeSysMLCompositeState(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLCompositeState,mxShape);mxShapeSysMLCompositeState.prototype.cst={COMP_STATE:"mxgraph.sysml.compState"};
|
|
mxShapeSysMLCompositeState.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c)};mxShapeSysMLCompositeState.prototype.background=function(a,d,e,b,c){a.roundrect(0,20,b,c-20,10,10);a.fillAndStroke();a.rect(15,0,110,20);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLCompositeState.prototype.cst.COMP_STATE,mxShapeSysMLCompositeState);
|
|
function mxShapeSysMLRegion(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLRegion,mxShape);mxShapeSysMLRegion.prototype.cst={REGION:"mxgraph.sysml.region"};mxShapeSysMLRegion.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c,20,50);a.setShadow(!1);this.foreground(a,d,e,b,c,20,50)};
|
|
mxShapeSysMLRegion.prototype.background=function(a,d,e,b,c,f,g){d=parseInt(mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1"));a.roundrect(0,f,b,c-f,10,10);a.fillAndStroke();a.setStrokeWidth(2*d);a.rect(15,0,g,f);a.fillAndStroke();a.setStrokeWidth(d)};mxShapeSysMLRegion.prototype.foreground=function(a,d,e,b,c,f,g){a.setDashed(!0);a.begin();a.moveTo(.5*b,f);a.lineTo(.5*b,c);a.stroke()};mxCellRenderer.registerShape(mxShapeSysMLRegion.prototype.cst.REGION,mxShapeSysMLRegion);
|
|
function mxShapeSysMLSimpleState(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLSimpleState,mxShape);mxShapeSysMLSimpleState.prototype.cst={SIMPLE_STATE:"mxgraph.sysml.simpleState"};mxShapeSysMLSimpleState.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1)};
|
|
mxShapeSysMLSimpleState.prototype.background=function(a,d,e,b,c){parseInt(mxUtils.getValue(this.style,mxConstants.STYLE_STROKEWIDTH,"1"));a.roundrect(0,0,b,c,10,10);a.fillAndStroke()};mxShapeSysMLSimpleState.prototype.foreground=function(a,d,e,b,c){a.begin();a.moveTo(0,20);a.lineTo(b,20);a.stroke()};mxCellRenderer.registerShape(mxShapeSysMLSimpleState.prototype.cst.SIMPLE_STATE,mxShapeSysMLSimpleState);
|
|
function mxShapeSysMLStateMachine(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLStateMachine,mxShape);mxShapeSysMLStateMachine.prototype.cst={STATE_MACHINE:"mxgraph.sysml.stateMachine"};mxShapeSysMLStateMachine.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeSysMLStateMachine.prototype.background=function(a,d,e,b,c){a.roundrect(0,0,b-10,c,10,10);a.fillAndStroke()};mxShapeSysMLStateMachine.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(d);a.ellipse(b-20,.5*c-10,20,20);a.stroke();a.ellipse(b-17,.5*c-7,14,14);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLStateMachine.prototype.cst.STATE_MACHINE,mxShapeSysMLStateMachine);
|
|
function mxShapeSysMLX(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLX,mxShape);mxShapeSysMLX.prototype.cst={X:"mxgraph.sysml.x"};mxShapeSysMLX.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(0,0);a.lineTo(b,c);a.moveTo(0,c);a.lineTo(b,0);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLX.prototype.cst.X,mxShapeSysMLX);
|
|
function mxShapeSysMLSubmachineState(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLSubmachineState,mxShape);mxShapeSysMLSubmachineState.prototype.cst={SUBMACHINE_STATE:"mxgraph.sysml.submState"};mxShapeSysMLSubmachineState.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeSysMLSubmachineState.prototype.background=function(a,d,e,b,c){a.roundrect(0,0,b-10,c,10,10);a.fillAndStroke()};mxShapeSysMLSubmachineState.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(d);a.ellipse(b-20,.5*c-10,20,20);a.stroke();a.ellipse(b-17,.5*c-7,14,14);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeSysMLSubmachineState.prototype.cst.SUBMACHINE_STATE,mxShapeSysMLSubmachineState);
|
|
function mxShapeSysMLUseCaseExtensionPoints(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapeSysMLUseCaseExtensionPoints,mxShape);mxShapeSysMLUseCaseExtensionPoints.prototype.cst={USE_CASE_EXT_PT:"mxgraph.sysml.useCaseExtPt"};mxShapeSysMLUseCaseExtensionPoints.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapeSysMLUseCaseExtensionPoints.prototype.background=function(a,d,e,b,c){a.ellipse(0,0,b,c);a.fillAndStroke()};mxShapeSysMLUseCaseExtensionPoints.prototype.foreground=function(a,d,e,b,c){a.begin();a.moveTo(.02*b,.35*c);a.lineTo(.98*b,.35*c);a.stroke()};mxCellRenderer.registerShape(mxShapeSysMLUseCaseExtensionPoints.prototype.cst.USE_CASE_EXT_PT,mxShapeSysMLUseCaseExtensionPoints);
|
|
function mxShapePidDiscInst(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapePidDiscInst,mxShape);mxShapePidDiscInst.prototype.cst={SHAPE_DISC_INST:"mxgraph.pid2inst.discInst",MOUNTING:"mounting",FIELD:"field",ROOM:"room",INACCESSIBLE:"inaccessible",LOCAL:"local"};mxShapePidDiscInst.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapePidDiscInst.prototype.background=function(a,d,e,b,c){a.ellipse(0,0,b,c);a.fillAndStroke()};
|
|
mxShapePidDiscInst.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapePidDiscInst.prototype.cst.MOUNTING,"field");d===mxShapePidDiscInst.prototype.cst.ROOM?(a.begin(),a.moveTo(0,.5*c),a.lineTo(b,.5*c),a.stroke()):d===mxShapePidDiscInst.prototype.cst.INACCESSIBLE?(a.setDashed(!0),a.begin(),a.moveTo(0,.5*c),a.lineTo(b,.5*c),a.stroke()):d===mxShapePidDiscInst.prototype.cst.LOCAL&&(a.begin(),a.moveTo(.005*b,.48*c),a.lineTo(.995*b,.48*c),a.moveTo(.005*b,.52*c),a.lineTo(.995*
|
|
b,.52*c),a.stroke())};mxCellRenderer.prototype.defaultShapes[mxShapePidDiscInst.prototype.cst.SHAPE_DISC_INST]=mxShapePidDiscInst;
|
|
mxShapePidDiscInst.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(.145,.145),!1),new mxConnectionConstraint(new mxPoint(.145,.855),!1),new mxConnectionConstraint(new mxPoint(.855,.145),!1),new mxConnectionConstraint(new mxPoint(.855,.855),!1)];
|
|
function mxShapePidSharedCont(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapePidSharedCont,mxShape);mxShapePidSharedCont.prototype.cst={SHAPE_SHARED_CONT:"mxgraph.pid2inst.sharedCont",MOUNTING:"mounting",FIELD:"field",ROOM:"room",INACCESSIBLE:"inaccessible",LOCAL:"local"};mxShapePidSharedCont.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapePidSharedCont.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapePidSharedCont.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapePidSharedCont.prototype.cst.MOUNTING,"field");a.ellipse(0,0,b,c);a.fillAndStroke();d===mxShapePidSharedCont.prototype.cst.ROOM?(a.begin(),a.moveTo(0,.5*c),a.lineTo(b,.5*c),a.stroke()):d===mxShapePidSharedCont.prototype.cst.INACCESSIBLE?(a.setDashed(!0),a.begin(),a.moveTo(0,.5*c),a.lineTo(b,.5*c),a.stroke()):d===mxShapePidDiscInst.prototype.cst.LOCAL&&(a.begin(),a.moveTo(.005*b,.48*c),a.lineTo(.995*b,
|
|
.48*c),a.moveTo(.005*b,.52*c),a.lineTo(.995*b,.52*c),a.stroke())};mxCellRenderer.prototype.defaultShapes[mxShapePidSharedCont.prototype.cst.SHAPE_SHARED_CONT]=mxShapePidSharedCont;
|
|
mxShapePidSharedCont.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(0,0),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];
|
|
function mxShapePidCompFunc(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapePidCompFunc,mxShape);mxShapePidCompFunc.prototype.cst={SHAPE_COMP_FUNC:"mxgraph.pid2inst.compFunc",MOUNTING:"mounting",FIELD:"field",ROOM:"room",INACCESSIBLE:"inaccessible",LOCAL:"local"};mxShapePidCompFunc.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapePidCompFunc.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,.5*c);a.lineTo(.25*b,0);a.lineTo(.75*b,0);a.lineTo(b,.5*c);a.lineTo(.75*b,c);a.lineTo(.25*b,c);a.close();a.fillAndStroke()};
|
|
mxShapePidCompFunc.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapePidCompFunc.prototype.cst.MOUNTING,"field");d===mxShapePidCompFunc.prototype.cst.ROOM?(a.begin(),a.moveTo(0,.5*c),a.lineTo(b,.5*c),a.stroke()):d===mxShapePidCompFunc.prototype.cst.INACCESSIBLE?(a.setDashed(!0),a.begin(),a.moveTo(0,.5*c),a.lineTo(b,.5*c),a.stroke()):d===mxShapePidDiscInst.prototype.cst.LOCAL&&(a.begin(),a.moveTo(.01*b,.48*c),a.lineTo(.99*b,.48*c),a.moveTo(.01*b,.52*c),a.lineTo(.99*b,.52*
|
|
c),a.stroke())};mxCellRenderer.prototype.defaultShapes[mxShapePidCompFunc.prototype.cst.SHAPE_COMP_FUNC]=mxShapePidCompFunc;
|
|
mxShapePidCompFunc.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,0),!1),new mxConnectionConstraint(new mxPoint(.75,0),!1),new mxConnectionConstraint(new mxPoint(.25,1),!1),new mxConnectionConstraint(new mxPoint(.75,1),!1)];
|
|
function mxShapePidProgLogCont(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapePidProgLogCont,mxShape);mxShapePidProgLogCont.prototype.cst={SHAPE_PROG_LOG_CONT:"mxgraph.pid2inst.progLogCont",MOUNTING:"mounting",FIELD:"field",ROOM:"room",INACCESSIBLE:"inaccessible",LOCAL:"local"};
|
|
mxShapePidProgLogCont.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapePidProgLogCont.prototype.background=function(a,d,e,b,c){a.rect(0,0,b,c);a.fillAndStroke()};
|
|
mxShapePidProgLogCont.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapePidProgLogCont.prototype.cst.MOUNTING,"field");a.begin();a.moveTo(0,.5*c);a.lineTo(.5*b,0);a.lineTo(b,.5*c);a.lineTo(.5*b,c);a.close();a.stroke();d===mxShapePidProgLogCont.prototype.cst.ROOM?(a.begin(),a.moveTo(0,.5*c),a.lineTo(b,.5*c),a.stroke()):d===mxShapePidProgLogCont.prototype.cst.INACCESSIBLE?(a.setDashed(!0),a.begin(),a.moveTo(0,.5*c),a.lineTo(b,.5*c),a.stroke()):d===mxShapePidDiscInst.prototype.cst.LOCAL&&
|
|
(a.begin(),a.moveTo(.02*b,.48*c),a.lineTo(.98*b,.48*c),a.moveTo(.02*b,.52*c),a.lineTo(.98*b,.52*c),a.stroke())};mxCellRenderer.prototype.defaultShapes[mxShapePidProgLogCont.prototype.cst.SHAPE_PROG_LOG_CONT]=mxShapePidProgLogCont;
|
|
mxShapePidProgLogCont.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(0,0),!1),new mxConnectionConstraint(new mxPoint(0,1),!1),new mxConnectionConstraint(new mxPoint(1,0),!1),new mxConnectionConstraint(new mxPoint(1,1),!1)];
|
|
function mxShapePidIndicator(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapePidIndicator,mxShape);mxShapePidIndicator.prototype.cst={SHAPE_INDICATOR:"mxgraph.pid2inst.indicator",MOUNTING:"mounting",FIELD:"field",ROOM:"room",INACCESSIBLE:"inaccessible",LOCAL:"local",IND_TYPE:"indType",INSTRUMENT:"inst",CONTROL:"ctrl",FUNCTION:"func",PLC:"plc"};
|
|
mxShapePidIndicator.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapePidIndicator.prototype.background=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapePidIndicator.prototype.cst.IND_TYPE,"inst");a.begin();a.moveTo(.5*b,b);a.lineTo(.5*b,c);a.stroke();d===mxShapePidIndicator.prototype.cst.INSTRUMENT?(a.ellipse(0,0,b,b),a.fillAndStroke()):d===mxShapePidIndicator.prototype.cst.CONTROL?(a.rect(0,0,b,b),a.fillAndStroke()):d===mxShapePidIndicator.prototype.cst.FUNCTION?(a.begin(),a.moveTo(0,.5*b),a.lineTo(.25*b,0),a.lineTo(.75*b,0),a.lineTo(b,.5*b),a.lineTo(.75*
|
|
b,b),a.lineTo(.25*b,b),a.close(),a.fillAndStroke()):d===mxShapePidIndicator.prototype.cst.PLC&&(a.rect(0,0,b,b),a.fillAndStroke())};
|
|
mxShapePidIndicator.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapePidIndicator.prototype.cst.MOUNTING,"field");e=mxUtils.getValue(this.style,mxShapePidIndicator.prototype.cst.IND_TYPE,"inst");e===mxShapePidIndicator.prototype.cst.CONTROL?(a.ellipse(0,0,b,b),a.stroke()):e===mxShapePidIndicator.prototype.cst.PLC&&(a.begin(),a.moveTo(0,.5*b),a.lineTo(.5*b,0),a.lineTo(b,.5*b),a.lineTo(.5*b,b),a.close(),a.stroke());d===mxShapePidIndicator.prototype.cst.ROOM?(a.begin(),a.moveTo(0,
|
|
.5*b),a.lineTo(b,.5*b),a.stroke()):d===mxShapePidIndicator.prototype.cst.INACCESSIBLE?(a.setDashed(!0),a.begin(),a.moveTo(0,.5*b),a.lineTo(b,.5*b),a.stroke()):d===mxShapePidIndicator.prototype.cst.LOCAL&&(a.begin(),a.moveTo(.005*b,.48*b),a.lineTo(.995*b,.48*b),a.moveTo(.005*b,.52*b),a.lineTo(.995*b,.52*b),a.stroke())};mxCellRenderer.prototype.defaultShapes[mxShapePidIndicator.prototype.cst.SHAPE_INDICATOR]=mxShapePidIndicator;
|
|
mxShapePidIndicator.prototype.constraints=[new mxConnectionConstraint(new mxPoint(.5,1),!0)];function mxShapePidLogic(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapePidLogic,mxShape);mxShapePidLogic.prototype.cst={SHAPE_LOGIC:"mxgraph.pid2inst.logic",MOUNTING:"mounting",FIELD:"field",ROOM:"room",INACCESSIBLE:"inaccessible",LOCAL:"local"};
|
|
mxShapePidLogic.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapePidLogic.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(0,.5*c);a.lineTo(.5*b,0);a.lineTo(b,.5*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke()};
|
|
mxShapePidLogic.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,mxShapePidLogic.prototype.cst.MOUNTING,"field");d===mxShapePidLogic.prototype.cst.ROOM?(a.begin(),a.moveTo(0,.5*c),a.lineTo(b,.5*c),a.stroke()):d===mxShapePidLogic.prototype.cst.INACCESSIBLE?(a.setDashed(!0),a.begin(),a.moveTo(0,.5*c),a.lineTo(b,.5*c),a.stroke()):d===mxShapePidLogic.prototype.cst.LOCAL&&(a.begin(),a.moveTo(.02*b,.48*c),a.lineTo(.98*b,.48*c),a.moveTo(.02*b,.52*c),a.lineTo(.98*b,.52*c),a.stroke())};
|
|
mxCellRenderer.prototype.defaultShapes[mxShapePidLogic.prototype.cst.SHAPE_LOGIC]=mxShapePidLogic;
|
|
mxShapePidLogic.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)];
|
|
function mxShapePidFan(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapePidFan,mxShape);mxShapePidFan.prototype.cst={SHAPE_FAN:"mxgraph.pid2misc.fan",FAN_TYPE:"fanType",COMMON:"common",AXIAL:"axial",RADIAL:"radial"};mxShapePidFan.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};
|
|
mxShapePidFan.prototype.background=function(a,d,e,b,c){a.ellipse(0,0,b,c);a.fillAndStroke()};
|
|
mxShapePidFan.prototype.foreground=function(a,d,e,b,c){a.begin();a.moveTo(.3*b,.045*c);a.lineTo(.97*b,.33*c);a.moveTo(.3*b,.955*c);a.lineTo(.97*b,.67*c);a.moveTo(.4228*b,.3655*c);a.arcTo(.15*b,.03*c,50,0,1,.5*b,.5*c);a.arcTo(0*b,15,.03*c,50,0,1,.3772*b,.4045*c);a.arcTo(.15*b,.03*c,50,0,1,.3025*b,.271*c);a.arcTo(.15*b,.03*c,50,0,1,.4228*b,.3655*c);a.close();a.moveTo(.377*b,.5973*c);a.arcTo(.15*b,.03*c,-50,0,1,.4966*b,.5019*c);a.arcTo(0*b,15,.03*c,-50,0,1,.423*b,.636*c);a.arcTo(.15*b,.03*c,-50,0,1,
|
|
.3034*b,.7314*c);a.arcTo(.15*b,.03*c,-50,0,1,.377*b,.5973*c);a.close();a.stroke();a.ellipse(.5*b,.47*c,.3*b,.06*c);a.stroke();d=mxUtils.getValue(this.style,mxShapePidFan.prototype.cst.FAN_TYPE,"common");d===mxShapePidFan.prototype.cst.AXIAL?(a.begin(),a.moveTo(.1*b,.5*c),a.lineTo(.3*b,.5*c),a.stroke()):d===mxShapePidFan.prototype.cst.RADIAL&&(a.begin(),a.moveTo(.2*b,.4*c),a.lineTo(.2*b,.6*c),a.stroke())};mxCellRenderer.prototype.defaultShapes[mxShapePidFan.prototype.cst.SHAPE_FAN]=mxShapePidFan;
|
|
function mxShapePidColumn(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapePidColumn,mxShape);mxShapePidColumn.prototype.cst={SHAPE_COLUMN:"mxgraph.pid2misc.column",COLUMN_TYPE:"columnType",COMMON:"common",FIXED:"fixed",FLUIDIZED:"fluid",BAFFLE:"baffle",VALVE:"valve",BUBBLE:"bubble",NOZZLE:"nozzle",TRAY:"tray"};
|
|
mxShapePidColumn.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1);this.foreground(a,d,e,b,c)};mxShapePidColumn.prototype.background=function(a,d,e,b,c){c=Math.max(c,30);a.begin();a.moveTo(0,15);a.arcTo(.5*b,15,0,0,1,b,15);a.lineTo(b,c-15);a.arcTo(.5*b,15,0,0,1,0,c-15);a.close();a.fillAndStroke()};
|
|
mxShapePidColumn.prototype.foreground=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapePidColumn.prototype.cst.COLUMN_TYPE,"common");if(f===mxShapePidColumn.prototype.cst.FIXED){var g=1.2*b;d=c-50;e=d%g*.5+25;a.begin();for(c=0;c<=d-g;c+=g)a.moveTo(0,c+e+.1*g),a.lineTo(b,c+e+.1*g),a.moveTo(0,c+e+.9*g),a.lineTo(b,c+e+.9*g),a.moveTo(0,c+e+.1*g),a.lineTo(b,c+e+.9*g),a.moveTo(0,c+e+.9*g),a.lineTo(b,c+e+.1*g);a.stroke()}else if(f===mxShapePidColumn.prototype.cst.TRAY){g=.2*b;d=c-50;e=d%g*.5+
|
|
25;a.setDashed(!0);a.begin();for(c=0;c<=d;c+=g)a.moveTo(0,c+e),a.lineTo(b,c+e);a.stroke()}else if(f===mxShapePidColumn.prototype.cst.FLUIDIZED){g=.1*b;f=.1*b;d=c-50;e=25;var h=.02*Math.min(b,c);mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff");var k=mxUtils.getValue(this.style,mxConstants.STYLE_DASHED,"0"),l=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.setFillColor(l);a.setDashed(!0);a.begin();a.moveTo(0,25);a.lineTo(b,25);a.moveTo(0,c-25);a.lineTo(b,c-25);
|
|
a.stroke();"0"===k?a.setDashed(!1):a.setDashed(!0);k=0;for(c=e+.5*g;c<d+e-h;c+=g){var n=f,l=k%2;0===l&&(n=.5*f);for(l=n;l<b;l+=f)a.ellipse(l,c,h,h),a.fillAndStroke();k++}}else if(f===mxShapePidColumn.prototype.cst.BAFFLE){g=.2*b;d=c-50-g;e=25+.5*g;a.setDashed(!0);a.begin();a.moveTo(0,25);a.lineTo(b,25);a.moveTo(0,c-25);a.lineTo(b,c-25);a.stroke();k=0;a.begin();for(c=e+.5*g;c<d+e;c+=g)l=k%2,0===l?(a.moveTo(0,c),a.lineTo(.9*b,c),a.lineTo(.9*b,c-.3*g)):(a.moveTo(.1*b,c-.5*g),a.lineTo(.1*b,c),a.lineTo(b,
|
|
c)),k++;a.stroke()}else if(f===mxShapePidColumn.prototype.cst.VALVE||f===mxShapePidColumn.prototype.cst.BUBBLE){g=.2*b;d=c-50-g;e=25+.5*g;k=mxUtils.getValue(this.style,mxConstants.STYLE_DASHED,"0");a.setFillColor(l);a.setDashed(!0);a.begin();a.moveTo(0,25);a.lineTo(b,25);a.moveTo(0,c-25);a.lineTo(b,c-25);a.stroke();"0"===k?a.setDashed(!1):a.setDashed(!0);a.begin();for(c=e+.5*g;c<d+e;c+=g)a.moveTo(0,c),a.lineTo(.4*b,c),f===mxShapePidColumn.prototype.cst.VALVE?(a.moveTo(.4*b,c-.2*g),a.lineTo(.6*b,c-
|
|
.2*g)):f===mxShapePidColumn.prototype.cst.BUBBLE&&(a.moveTo(.25*b,c-.2*g),a.arcTo(3*g,3*g,0,0,1,.75*b,c-.2*g)),a.moveTo(.6*b,c),a.lineTo(b,c);a.stroke()}else if(f===mxShapePidColumn.prototype.cst.NOZZLE){g=1.2*b;d=c-50;e=d%g*.5+25;k=mxUtils.getValue(this.style,mxConstants.STYLE_DASHED,0);for(c=0;c<=d-g;c+=g)a.setDashed(!0),a.begin(),a.moveTo(0,c+e+.2*g),a.lineTo(b,c+e+.2*g),a.moveTo(0,c+e+.8*g),a.lineTo(b,c+e+.8*g),a.stroke(),0===k?a.setDashed(!1):a.setDashed(!0),a.begin(),a.moveTo(0,c+e+.2*g),a.lineTo(b,
|
|
c+e+.8*g),a.moveTo(0,c+e+.8*g),a.lineTo(b,c+e+.2*g),0!==c&&(a.moveTo(0,c+e),a.lineTo(.5*b,c+e),a.moveTo(.5*b-.08*g,c+e+.08*g),a.lineTo(.5*b,c+e),a.lineTo(.5*b+.08*g,c+e+.08*g),a.moveTo(.5*b,c+e),a.lineTo(.5*b,c+e+.08*g)),a.stroke();a.stroke()}};mxCellRenderer.prototype.defaultShapes[mxShapePidColumn.prototype.cst.SHAPE_COLUMN]=mxShapePidColumn;function mxShapePidConveyor(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxShapePidConveyor,mxShape);mxShapePidConveyor.prototype.cst={SHAPE_CONVEYOR:"mxgraph.pid2misc.conveyor"};mxShapePidConveyor.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,d,e,b,c);a.setShadow(!1)};
|
|
mxShapePidConveyor.prototype.background=function(a,d,e,b,c){d=Math.min(c,.5*b);a.begin();a.moveTo(.5*d,0);a.lineTo(b-.5*d,0);a.stroke();a.ellipse(0,0,d,d);a.fillAndStroke();a.ellipse(b-d,0,d,d);a.fillAndStroke();a.begin();a.moveTo(.5*d,d);a.lineTo(b-.5*d,d);a.stroke();b-=1.8*d;e=.9*d;c=.7*d;for(var f=0;f<b;f+=c)a.rect(e+f,0,.2*d,.1*d),a.fillAndStroke(),a.rect(e+f,.9*d,.2*d,.1*d),a.fillAndStroke()};mxCellRenderer.prototype.defaultShapes[mxShapePidConveyor.prototype.cst.SHAPE_CONVEYOR]=mxShapePidConveyor;
|
|
function mxShapePidValve(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapePidValve,mxShape);
|
|
mxShapePidValve.prototype.cst={SHAPE_VALVE:"mxgraph.pid2valves.valve",DEFAULT_STATE:"defState",CLOSED:"closed",OPEN:"open",ACTUATOR:"actuator",MANUAL:"man",DIAPHRAGM:"diaph",BALANCED_DIAPHRAGM:"balDiaph",MOTOR:"motor",NONE:"none",SPRING:"spring",PILOT:"pilot",SOLENOID:"solenoid",SOLENOID_MANUAL_RESET:"solenoidManRes",SINGLE_ACTING:"singActing",DOUBLE_ACTING:"dblActing",PILOT_CYLINDER:"pilotCyl",DIGITAL:"digital",WEIGHT:"weight",KEY:"key",ELECTRO_HYDRAULIC:"elHyd",VALVE_TYPE:"valveType",BUTTERFLY:"butterfly",
|
|
CHECK:"check",GATE:"gate",GLOBE:"globe",NEEDLE:"needle",PLUG:"plug",SELF_DRAINING:"selfDrain",ANGLE:"angle",ANGLE_GLOBE:"angleGlobe",THREE_WAY:"threeWay",ANGLE_BLOWDOWN:"angBlow",BALL:"ball"};
|
|
mxShapePidValve.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapePidValve.prototype.cst.VALVE_TYPE,"gate"),g=mxUtils.getValue(this.style,mxShapePidValve.prototype.cst.ACTUATOR,mxShapePidValve.prototype.cst.NONE),h=0;"none"!==g&&(h=this.isAngleVariant(f)?.3333*c:.4*c);a.translate(d,e);a.setLineJoin("round");this.background(a,d,e,b,c,f,g,h);a.setShadow(!1);this.foreground(a,d,e,b,c,f,g,h)};
|
|
mxShapePidValve.prototype.background=function(a,d,e,b,c,f,g,h){g!==mxShapePidValve.prototype.cst.NONE&&(this.isAngleVariant(f)?this.drawActuatorBg(a,d,e,b,c/1.2,g,h):this.drawActuatorBg(a,d,e,b,c,g,h));this.isGateVariant(f)?this.drawGateVariantBg(a,0,0,b,c,f,g,h):this.isAngleVariant(f)?this.drawAngleVariantBg(a,0,0,b,c,f,g,h):f===mxShapePidValve.prototype.cst.BUTTERFLY?this.drawButterflyValve(a,0,0,b,c,g,h):f===mxShapePidValve.prototype.cst.CHECK&&this.drawCheckValve(a,0,0,b,c,g,h)};
|
|
mxShapePidValve.prototype.foreground=function(a,d,e,b,c,f,g,h){f=mxUtils.getValue(this.style,mxShapePidValve.prototype.cst.VALVE_TYPE,"gate");g!==mxShapePidValve.prototype.cst.NONE&&(this.isAngleVariant(f)?this.drawActuatorFg(a,d,e,b,c/1.2,g,h):this.drawActuatorFg(a,d,e,b,c,g,h));this.isGateVariant(f)&&this.drawGateVariantFg(a,0,0,b,c,f,g,h);this.isAngleVariant(f)&&this.drawAngleVariantFg(a,0,0,b,c,f,g,h)};
|
|
mxShapePidValve.prototype.drawActuatorBg=function(a,d,e,b,c,f){this.isSquareVariant(f)?(a.translate(.325*b,0),this.drawSquareAct(a,.35*b,.7*c,f),a.translate(.325*-b,0)):f===mxShapePidValve.prototype.cst.MANUAL?(a.translate(.25*b,.15*c),this.drawManAct(a,.5*b,.55*c),a.translate(.25*-b,.15*-c)):f===mxShapePidValve.prototype.cst.DIAPHRAGM?(a.translate(.25*b,.1*c),this.drawDiaphAct(a,.5*b,.6*c),a.translate(.25*-b,.1*-c)):f===mxShapePidValve.prototype.cst.BALANCED_DIAPHRAGM?(a.translate(.25*b,.1*c),this.drawBalDiaphActBg(a,
|
|
.5*b,.6*c),a.translate(.25*-b,.1*-c)):f===mxShapePidValve.prototype.cst.MOTOR||f===mxShapePidValve.prototype.cst.ELECTRO_HYDRAULIC?(a.translate(.325*b,0),this.drawCircleAct(a,.35*b,.7*c,f),a.translate(.325*-b,0)):f===mxShapePidValve.prototype.cst.SPRING?(a.translate(.36*b,0),this.drawSpringAct(a,.28*b,.7*c),a.translate(.36*-b,0)):f===mxShapePidValve.prototype.cst.SOLENOID_MANUAL_RESET?(a.translate(.325*b,0),this.drawSolenoidManResetAct(a,.575*b,.7*c),a.translate(.325*-b,0)):f===mxShapePidValve.prototype.cst.SINGLE_ACTING?
|
|
(a.translate(.35*b,0),this.drawSingActingActBg(a,.65*b,.7*c),a.translate(.35*-b,0)):f===mxShapePidValve.prototype.cst.DOUBLE_ACTING?(a.translate(.35*b,0),this.drawDblActingActBg(a,.65*b,.7*c),a.translate(.35*-b,0)):f===mxShapePidValve.prototype.cst.PILOT_CYLINDER?(a.translate(.35*b,0),this.drawPilotCylinderActBg(a,.65*b,.7*c),a.translate(.35*-b,0)):f===mxShapePidValve.prototype.cst.ANGLE_BLOWDOWN&&(a.translate(.5*b,.2*c),this.drawAngleBlowdownAct(a,.4*b,.5*c),a.translate(.5*-b,.2*-c))};
|
|
mxShapePidValve.prototype.drawActuatorFg=function(a,d,e,b,c,f){if(f===mxShapePidValve.prototype.cst.BALANCED_DIAPHRAGM)a.translate(.25*b,.1*c),this.drawBalDiaphActFg(a,.5*b,.6*c),a.translate(.25*-b,.1*-c);else if(f===mxShapePidValve.prototype.cst.SINGLE_ACTING||f===mxShapePidValve.prototype.cst.DOUBLE_ACTING||f===mxShapePidValve.prototype.cst.PILOT_CYLINDER)a.translate(.35*b,0),this.drawActingActFg(a,.65*b,.7*c),a.translate(.35*-b,0)};
|
|
mxShapePidValve.prototype.drawManAct=function(a,d,e){a.begin();a.moveTo(0,0);a.lineTo(d,0);a.moveTo(.5*d,0);a.lineTo(.5*d,e);a.stroke()};mxShapePidValve.prototype.drawDiaphAct=function(a,d,e){a.begin();a.moveTo(.5*d,.2*e);a.lineTo(.5*d,e);a.stroke();a.moveTo(0,.2*e);a.arcTo(.6*d,.4*e,0,0,1,d,.2*e);a.close();a.fillAndStroke()};mxShapePidValve.prototype.drawBalDiaphActBg=function(a,d,e){a.ellipse(0,0,d,.3*e);a.fillAndStroke();a.begin();a.moveTo(.5*d,.3*e);a.lineTo(.5*d,e);a.stroke()};
|
|
mxShapePidValve.prototype.drawBalDiaphActFg=function(a,d,e){a.begin();a.moveTo(0,.15*e);a.lineTo(d,.15*e);a.stroke()};
|
|
mxShapePidValve.prototype.drawCircleAct=function(a,d,e,b){a.ellipse(0,0,d,.5*e);a.fillAndStroke();a.begin();a.moveTo(.5*d,.5*e);a.lineTo(.5*d,e);a.stroke();var c="";b===mxShapePidValve.prototype.cst.MOTOR?c="M":b===mxShapePidValve.prototype.cst.ELECTRO_HYDRAULIC&&(c="E/H");a.setFontStyle(1);a.setFontFamily("Helvetica");a.setFontSize(.4*Math.min(d,e));a.text(.5*d,.25*e,0,0,c,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxShapePidValve.prototype.drawSpringAct=function(a,d,e){a.begin();a.moveTo(.5*d,0);a.lineTo(.5*d,e);a.moveTo(.32*d,.16*e);a.lineTo(.68*d,.08*e);a.moveTo(.21*d,.32*e);a.lineTo(.79*d,.2*e);a.moveTo(.1*d,.52*e);a.lineTo(.9*d,.36*e);a.moveTo(0,.72*e);a.lineTo(d,.5*e);a.stroke()};
|
|
mxShapePidValve.prototype.drawSolenoidManResetAct=function(a,d,e){a.rect(0,0,.61*d,.46*e);a.fillAndStroke();a.begin();a.moveTo(.56*d,.6*e);a.lineTo(.78*d,.5*e);a.lineTo(d,.6*e);a.lineTo(.78*d,.7*e);a.close();a.fillAndStroke();a.begin();a.moveTo(.305*d,.46*e);a.lineTo(.305*d,e);a.moveTo(.305*d,.6*e);a.lineTo(.56*d,.6*e);a.stroke();a.setFontStyle(1);a.setFontFamily("Helvetica");a.setFontSize(.4*Math.min(d,e));a.text(.305*d,.23*e,0,0,"S",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);
|
|
a.setFontStyle(0);a.setFontSize(.15*Math.min(d,e));a.text(.78*d,.6*e,0,0,"R",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};mxShapePidValve.prototype.drawSingActingActBg=function(a,d,e){a.rect(0,0,.46*d,.46*e);a.fillAndStroke();a.begin();a.moveTo(.23*d,.46*e);a.lineTo(.23*d,e);a.moveTo(.46*d,.23*e);a.lineTo(d,.23*e);a.moveTo(.77*d,.15*e);a.lineTo(.69*d,.31*e);a.moveTo(.82*d,.15*e);a.lineTo(.74*d,.31*e);a.stroke()};
|
|
mxShapePidValve.prototype.drawActingActFg=function(a,d,e){a.begin();a.moveTo(.23*d,.23*e);a.lineTo(.23*d,.46*e);a.moveTo(0,.23*e);a.lineTo(.46*d,.23*e);a.stroke()};
|
|
mxShapePidValve.prototype.drawDblActingActBg=function(a,d,e){a.rect(0,0,.46*d,.46*e);a.fillAndStroke();a.begin();a.moveTo(.23*d,.46*e);a.lineTo(.23*d,e);a.moveTo(.46*d,.115*e);a.lineTo(d,.115*e);a.moveTo(.77*d,.035*e);a.lineTo(.69*d,.195*e);a.moveTo(.82*d,.035*e);a.lineTo(.74*d,.195*e);a.moveTo(.46*d,.345*e);a.lineTo(d,.345*e);a.moveTo(.77*d,.265*e);a.lineTo(.69*d,.425*e);a.moveTo(.82*d,.265*e);a.lineTo(.74*d,.425*e);a.stroke()};
|
|
mxShapePidValve.prototype.drawPilotCylinderActBg=function(a,d,e){a.rect(0,0,.46*d,.46*e);a.fillAndStroke();a.begin();a.moveTo(.23*d,.46*e);a.lineTo(.23*d,e);a.moveTo(.46*d,.23*e);a.lineTo(.77*d,.23*e);a.stroke();a.rect(.77*d,.115*e,.23*d,.23*e);a.fillAndStroke();a.setFontStyle(0);a.setFontFamily("Helvetica");a.setFontSize(.15*Math.min(d,e));a.text(.885*d,.23*e,0,0,"P",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxShapePidValve.prototype.drawAngleBlowdownAct=function(a,d,e){a.begin();a.moveTo(.34*d,0);a.lineTo(d,.405*e);a.moveTo(0,e);a.lineTo(.665*d,.205*e);a.stroke()};
|
|
mxShapePidValve.prototype.drawSquareAct=function(a,d,e,b){a.rect(0,0,d,.5*e);a.fillAndStroke();a.begin();a.moveTo(.5*d,.5*e);a.lineTo(.5*d,e);a.stroke();var c="";b===mxShapePidValve.prototype.cst.PILOT?c="P":b===mxShapePidValve.prototype.cst.SOLENOID?c="S":b===mxShapePidValve.prototype.cst.DIGITAL?c="D":b===mxShapePidValve.prototype.cst.WEIGHT?c="W":b===mxShapePidValve.prototype.cst.KEY&&(c="K");a.setFontStyle(1);a.setFontFamily("Helvetica");a.setFontSize(.4*Math.min(d,e));a.text(.5*d,.25*e,0,0,c,
|
|
mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
mxShapePidValve.prototype.drawGateVariantFg=function(a,d,e,b,c,f,g,h){mxUtils.getValue(this.style,mxShapePidValve.prototype.cst.DEFAULT_STATE,"open");g=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff");var k=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");f===mxShapePidValve.prototype.cst.BALL?(a.ellipse(d+.3*b,e+h+.18*(c-h),.4*b,.64*(c-h)),a.fillAndStroke()):f===mxShapePidValve.prototype.cst.GLOBE?(a.ellipse(d+.3*b,e+h+.18*(c-h),.4*b,.64*(c-h)),a.setFillColor(k),
|
|
a.fillAndStroke(),a.setFillColor(g)):f===mxShapePidValve.prototype.cst.PLUG?this.drawPlug(a,d+.4*b,e+h+.25*(c-h),.2*b,.5*(c-h)):f===mxShapePidValve.prototype.cst.NEEDLE?this.drawNeedle(a,d+.45*b,e+h+.1*(c-h),.1*b,.9*(c-h)):f===mxShapePidValve.prototype.cst.SELF_DRAINING&&this.drawDrain(a,d+.48*b,e+h+.5*(c-h),.04*b,.49*(c-h))};
|
|
mxShapePidValve.prototype.drawAngleVariantFg=function(a,d,e,b,c,f,g,h){mxUtils.getValue(this.style,mxShapePidValve.prototype.cst.DEFAULT_STATE,"open");d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff");e=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");f===mxShapePidValve.prototype.cst.ANGLE_GLOBE&&("none"===g?a.ellipse(.34*b,.175*c,.32*b,.4*c):a.ellipse(.34*b,.45*c,.32*b,.2667*c),a.setFillColor(e),a.fillAndStroke(),a.setFillColor(d))};
|
|
mxShapePidValve.prototype.drawGateVariantBg=function(a,d,e,b,c,f,g,h){f===mxShapePidValve.prototype.cst.GATE?this.drawGateValve(a,d,e+h,b,c-h):f===mxShapePidValve.prototype.cst.BALL||f===mxShapePidValve.prototype.cst.GLOBE?(a.ellipse(d+.3*b,e+h+.18*(c-h),.4*b,.64*(c-h)),a.fillAndStroke(),this.drawGateValve(a,d,e+h,b,c-h)):f===mxShapePidValve.prototype.cst.PLUG?(this.drawPlug(a,d+.4*b,e+h+.25*(c-h),.2*b,.5*(c-h)),this.drawGateValve(a,d,e+h,b,c-h)):f===mxShapePidValve.prototype.cst.NEEDLE?(this.drawNeedle(a,
|
|
d+.45*b,e+h+.1*(c-h),.1*b,.9*(c-h)),this.drawGateValve(a,d,e+h,b,c-h)):f===mxShapePidValve.prototype.cst.SELF_DRAINING&&(this.drawDrain(a,d+.48*b,e+h+.5*(c-h),.04*b,.49*(c-h)),this.drawGateValve(a,d,e+h,b,c-h))};
|
|
mxShapePidValve.prototype.drawAngleVariantBg=function(a,d,e,b,c,f,g,h){f===mxShapePidValve.prototype.cst.ANGLE?this.drawAngleValve(a,.2*b,e+h,.8*b,c-h):f===mxShapePidValve.prototype.cst.ANGLE_GLOBE?this.drawAngleGlobeValveBg(a,.2*b,e+h,.8*b,c-h):f===mxShapePidValve.prototype.cst.THREE_WAY?this.drawThreeWayValve(a,0,e+h,b,c-h):f===mxShapePidValve.prototype.cst.ANGLE_BLOWDOWN&&this.drawAngleBlowdownValve(a,d,e+h,b,c-h)};
|
|
mxShapePidValve.prototype.drawPlug=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(0,.5*c);a.lineTo(.5*b,0);a.lineTo(b,.5*c);a.lineTo(.5*b,c);a.close();a.fillAndStroke();a.translate(-d,-e)};
|
|
mxShapePidValve.prototype.drawNeedle=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),g=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.translate(d,e);a.begin();a.moveTo(0,0);a.lineTo(b,0);a.lineTo(.5*b,c);a.close();a.setFillColor(g);a.fillAndStroke();a.setFillColor(f);a.translate(-d,-e)};
|
|
mxShapePidValve.prototype.drawDrain=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),g=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.translate(d,e);a.begin();a.moveTo(.5*b,0);a.lineTo(.5*b,.96*c);a.stroke();a.begin();a.moveTo(0,.9*c);a.lineTo(b,.9*c);a.lineTo(.5*b,c);a.close();a.setFillColor(g);a.fillAndStroke();a.setFillColor(f);a.translate(-d,-e)};
|
|
mxShapePidValve.prototype.drawGateValve=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapePidValve.prototype.cst.DEFAULT_STATE,"open"),g=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),h=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.translate(d,e);a.begin();a.moveTo(0,0);a.lineTo(.5*b,.5*c);a.lineTo(0,c);a.close();a.moveTo(b,0);a.lineTo(.5*b,.5*c);a.lineTo(b,c);a.close();f===mxShapePidValve.prototype.cst.CLOSED?(a.setFillColor(h),a.fillAndStroke(),
|
|
a.setFillColor(g)):a.fillAndStroke();a.translate(-d,-e)};mxShapePidValve.prototype.drawAngleValve=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(.375*b,.375*c);a.lineTo(b,0);a.lineTo(b,.75*c);a.close();a.moveTo(.375*b,.375*c);a.lineTo(.75*b,c);a.lineTo(0,c);a.close();a.fillAndStroke();a.translate(-d,-e)};
|
|
mxShapePidValve.prototype.drawAngleGlobeValveBg=function(a,d,e,b,c){a.translate(d,e);a.ellipse(.175*b,.175*c,.4*b,.4*c);a.fillAndStroke();a.begin();a.moveTo(.375*b,.375*c);a.lineTo(b,0);a.lineTo(b,.75*c);a.close();a.moveTo(.375*b,.375*c);a.lineTo(.75*b,c);a.lineTo(0,c);a.close();a.fillAndStroke();a.translate(-d,-e)};mxShapePidValve.prototype.drawAngleGlobeValveFg=function(a,d,e,b,c){a.translate(d,e);a.ellipse(.275*b,.275*c,.2*b,.2*c);a.fillAndStroke();a.translate(-d,-e)};
|
|
mxShapePidValve.prototype.drawThreeWayValve=function(a,d,e,b,c){a.translate(d,e);a.begin();a.moveTo(0,0);a.lineTo(.5*b,.375*c);a.lineTo(0,.75*c);a.close();a.moveTo(b,0);a.lineTo(.5*b,.375*c);a.lineTo(b,.75*c);a.close();a.moveTo(.5*b,.375*c);a.lineTo(.8*b,c);a.lineTo(.2*b,c);a.close();a.fillAndStroke();a.translate(-d,-e)};mxShapePidValve.prototype.drawAngleBlowdownValve=function(a,d,e,b,c){};
|
|
mxShapePidValve.prototype.drawButterflyValve=function(a,d,e,b,c,f,g){mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff");mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");c-=g;a.translate(d,e+g);a.begin();a.moveTo(0,0);a.lineTo(0,c);a.moveTo(b,0);a.lineTo(b,c);a.moveTo(.05*b,.05*c);a.lineTo(.95*b,.95*c);a.fillAndStroke();a.ellipse(.4*b,.33*c,.2*b,.33*c);a.fillAndStroke();a.translate(-d,-e)};
|
|
mxShapePidValve.prototype.drawCheckValve=function(a,d,e,b,c,f,g){f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff");var h=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");c-=g;a.translate(d,e+g);a.begin();a.moveTo(0,0);a.lineTo(0,c);a.moveTo(b,0);a.lineTo(b,c);a.moveTo(.05*b,.05*c);a.lineTo(.95*b,.95*c);a.fillAndStroke();a.begin();a.moveTo(.8925*b,.815*c);a.lineTo(.957*b,.955*c);a.lineTo(.85*b,.928*c);a.close();a.setFillColor(h);a.fillAndStroke();a.setFillColor(f);
|
|
a.translate(-d,-e)};mxShapePidValve.prototype.isGateVariant=function(a){return a===mxShapePidValve.prototype.cst.GATE||a===mxShapePidValve.prototype.cst.BALL||a===mxShapePidValve.prototype.cst.PLUG||a===mxShapePidValve.prototype.cst.NEEDLE||a===mxShapePidValve.prototype.cst.SELF_DRAINING||a===mxShapePidValve.prototype.cst.GLOBE?!0:!1};
|
|
mxShapePidValve.prototype.isAngleVariant=function(a){return a===mxShapePidValve.prototype.cst.ANGLE||a===mxShapePidValve.prototype.cst.ANGLE_GLOBE||a===mxShapePidValve.prototype.cst.THREE_WAY||a===mxShapePidValve.prototype.cst.ANGLE_BLOWDOWN?!0:!1};
|
|
mxShapePidValve.prototype.isSquareVariant=function(a){return a===mxShapePidValve.prototype.cst.PILOT||a===mxShapePidValve.prototype.cst.SOLENOID||a===mxShapePidValve.prototype.cst.DIGITAL||a===mxShapePidValve.prototype.cst.WEIGHT||a===mxShapePidValve.prototype.cst.KEY?!0:!1};mxCellRenderer.prototype.defaultShapes[mxShapePidValve.prototype.cst.SHAPE_VALVE]=mxShapePidValve;
|
|
function mxShapePidIntBlockBleedValve(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapePidIntBlockBleedValve,mxShapePidValve);
|
|
mxShapePidIntBlockBleedValve.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxShapePidIntBlockBleedValve.prototype.cst.ACTUATOR,mxShapePidIntBlockBleedValve.prototype.cst.NONE),g=0;"none"!==f&&(g=.2353*c);a.translate(d,e);a.setLineJoin("round");this.background(a,d,e,b,c,f,g);a.setShadow(!1);this.foreground(a,d,e,b,c,f,g)};
|
|
mxShapePidIntBlockBleedValve.prototype.background=function(a,d,e,b,c,f,g){f!==mxShapePidIntBlockBleedValve.prototype.cst.NONE&&this.drawActuatorBg(a,d,e,b,c,f);this.drawValveBg(a,0,g,b,c-g)};mxShapePidIntBlockBleedValve.prototype.foreground=function(a,d,e,b,c,f,g){f!==mxShapePidIntBlockBleedValve.prototype.cst.NONE&&this.drawActuatorFg(a,d,e,b,c,f)};
|
|
mxShapePidIntBlockBleedValve.prototype.drawValveBg=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),g=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.translate(d,e);a.begin();a.moveTo(0,0);a.lineTo(.5*b,.23*c);a.lineTo(0,.46*c);a.close();a.moveTo(.5*b,.23*c);a.lineTo(b,0);a.lineTo(b,.46*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.5*b,.23*c);a.lineTo(.5*b,.5*c);a.stroke();a.setFillColor(g);a.begin();a.moveTo(.3*b,.5*c);a.lineTo(.7*
|
|
b,.5*c);a.lineTo(.5*b,.75*c);a.close();a.fillAndStroke();a.begin();a.moveTo(.3*b,c);a.lineTo(.5*b,.75*c);a.lineTo(.7*b,c);a.fillAndStroke();a.setFillColor(f);a.translate(-d,-e)};
|
|
mxShapePidIntBlockBleedValve.prototype.drawActuatorBg=function(a,d,e,b,c,f){this.isSquareVariant(f)?(a.translate(.325*b,0),this.drawSquareAct(a,.35*b,.4112*c,f),a.translate(.325*-b,0)):f===mxShapePidIntBlockBleedValve.prototype.cst.MANUAL?(a.translate(.25*b,.0882*c),this.drawManAct(a,.5*b,.323*c),a.translate(.25*-b,.0882*-c)):f===mxShapePidIntBlockBleedValve.prototype.cst.DIAPHRAGM?(a.translate(.25*b,.0588*c),this.drawDiaphAct(a,.5*b,.3524*c),a.translate(.25*-b,.0588*-c)):f===mxShapePidIntBlockBleedValve.prototype.cst.BALANCED_DIAPHRAGM?
|
|
(a.translate(.25*b,.0588*c),this.drawBalDiaphActBg(a,.5*b,.3524*c),a.translate(.25*-b,.0588*-c)):f===mxShapePidIntBlockBleedValve.prototype.cst.MOTOR||f===mxShapePidIntBlockBleedValve.prototype.cst.ELECTRO_HYDRAULIC?(a.translate(.325*b,0),this.drawCircleAct(a,.35*b,.4112*c,f),a.translate(.325*-b,0)):f===mxShapePidIntBlockBleedValve.prototype.cst.SPRING?(a.translate(.36*b,0),this.drawSpringAct(a,.28*b,.4112*c),a.translate(.36*-b,0)):f===mxShapePidIntBlockBleedValve.prototype.cst.SOLENOID_MANUAL_RESET?
|
|
(a.translate(.325*b,0),this.drawSolenoidManResetAct(a,.575*b,.4112*c),a.translate(.325*-b,0)):f===mxShapePidIntBlockBleedValve.prototype.cst.SINGLE_ACTING?(a.translate(.35*b,0),this.drawSingActingActBg(a,.65*b,.4112*c),a.translate(.35*-b,0)):f===mxShapePidIntBlockBleedValve.prototype.cst.DOUBLE_ACTING?(a.translate(.35*b,0),this.drawDblActingActBg(a,.65*b,.4112*c),a.translate(.35*-b,0)):f===mxShapePidIntBlockBleedValve.prototype.cst.PILOT_CYLINDER&&(a.translate(.35*b,0),this.drawPilotCylinderActBg(a,
|
|
.65*b,.4112*c),a.translate(.35*-b,0))};
|
|
mxShapePidIntBlockBleedValve.prototype.drawActuatorFg=function(a,d,e,b,c,f){if(f===mxShapePidIntBlockBleedValve.prototype.cst.BALANCED_DIAPHRAGM)a.translate(.25*b,.0588*c),this.drawBalDiaphActFg(a,.5*b,.3524*c),a.translate(.25*-b,.0588*-c);else if(f===mxShapePidIntBlockBleedValve.prototype.cst.SINGLE_ACTING||f===mxShapePidIntBlockBleedValve.prototype.cst.DOUBLE_ACTING||f===mxShapePidIntBlockBleedValve.prototype.cst.PILOT_CYLINDER)a.translate(.35*b,0),this.drawActingActFg(a,.65*b,.4112*c),a.translate(.35*
|
|
-b,0)};mxCellRenderer.prototype.defaultShapes["mxgraph.pid2valves.blockBleedValve"]=mxShapePidIntBlockBleedValve;function mxShapePidAutoRecircValve(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxShapePidAutoRecircValve,mxShape);
|
|
mxShapePidAutoRecircValve.prototype.paintVertexShape=function(a,d,e,b,c){a.setLineJoin("round");a.translate(d,e);a.rect(0,0,b,c);a.fillAndStroke();a.setShadow(!1);a.begin();a.moveTo(.08*b,.08*c);a.lineTo(.08*b,.92*c);a.moveTo(.92*b,.08*c);a.lineTo(.92*b,.92*c);a.moveTo(.12*b,.122*c);a.lineTo(.8738*b,.8837*c);a.moveTo(.5*b,0);a.lineTo(.55*b,.05*c);a.lineTo(.45*b,.15*c);a.lineTo(.55*b,.25*c);a.lineTo(.45*b,.35*c);a.lineTo(.55*b,.45*c);a.lineTo(.49*b,.5*c);a.stroke();d=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,
|
|
"#ffffff");e=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#000000");a.begin();a.moveTo(.8257*b,.7695*c);a.lineTo(.8797*b,.888*c);a.lineTo(.79*b,.8651*c);a.close();a.setFillColor(e);a.fillAndStroke();a.setFillColor(d)};mxCellRenderer.prototype.defaultShapes["mxgraph.pid2valves.autoRecircValve"]=mxShapePidAutoRecircValve;function mxRackContainer(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackContainer,mxShape);
|
|
mxRackContainer.unitSize=20;mxRackContainer.prototype.cst={SHAPE_RACK_CONTAINER:"mxgraph.rackGeneral.container",TEXT_COLOR:"textColor",NUMBER_DISPLAY:"numDisp",OFF:"off",DIR_ASC:"ascend",DIR_DESC:"descend"};
|
|
mxRackContainer.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,mxRackContainer.prototype.cst.NUMBER_DISPLAY,mxRackContainer.prototype.cst.DIR_ASC);f!==mxRackContainer.prototype.cst.OFF?(a.translate(d+24,e),b=Math.max(b-24,0)):a.translate(d,e);this.background(a,b,c,12);a.setShadow(!1);this.foreground(a,b,c,12);f!==mxRackContainer.prototype.cst.OFF&&42<b&&this.sideText(a,b,c,12)};
|
|
mxRackContainer.prototype.background=function(a,d,e,b){a.setFillColor("#ffffff");a.rect(0,0,d,e);a.fillAndStroke()};mxRackContainer.prototype.foreground=function(a,d,e,b){d>18+2*b&&42<e&&(a.setFillColor("#f4f4f4"),a.rect(0,0,d,21),a.fillAndStroke(),a.rect(0,e-21,d,21),a.fillAndStroke(),a.rect(0,21,9,e-42),a.fillAndStroke(),a.rect(d-9,21,9,e-42),a.fillAndStroke(),a.ellipse(2.5,7.5,6,6),a.stroke(),a.ellipse(d-8.5,7.5,6,6),a.stroke(),a.ellipse(2.5,e-13.5,6,6),a.stroke(),a.ellipse(d-8.5,e-13.5,6,6),a.stroke())};
|
|
mxRackContainer.prototype.sideText=function(a,d,e,b){var c=mxUtils.getValue(this.style,mxRackContainer.prototype.cst.TEXT_COLOR,"#666666");d=mxUtils.getValue(this.style,mxRackContainer.prototype.cst.NUMBER_DISPLAY,mxRackContainer.prototype.cst.DIR_ASC);a.setFontSize(b);a.setFontColor(c);e=Math.floor((Math.abs(e)-42)/mxRackContainer.unitSize);for(c=0;c<e;c++)a.text(-b,21+.5*mxRackContainer.unitSize+c*mxRackContainer.unitSize,0,0,d===mxRackContainer.prototype.cst.DIR_DESC?(c+1).toString():(e-c).toString(),
|
|
mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setStrokeColor("#dddddd");a.begin();for(c=0;c<e+1;c++)a.moveTo(-2*b,21+c*mxRackContainer.unitSize),a.lineTo(0,21+c*mxRackContainer.unitSize);a.stroke()};function mxRackPlate(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=1}mxUtils.extend(mxRackPlate,mxShape);mxRackPlate.prototype.cst={SHAPE_RACK_PLATE:"mxgraph.rackGeneral.plate"};
|
|
mxRackPlate.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxRackPlate.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};mxRackPlate.prototype.foreground=function(a,d,e){18<d&&(a.save(),a.setFillColor("#b4b4b4"),a.rect(0,0,d,e),a.fillAndStroke(),a.restore(),a.rect(9,0,d-18,e),a.fillAndStroke())};
|
|
function mxRackHorCableDuct(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackHorCableDuct,mxShape);mxRackHorCableDuct.prototype.cst={SHAPE_RACK_HOR_CABLE_DUCT:"mxgraph.rackGeneral.horCableDuct"};mxRackHorCableDuct.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxRackHorCableDuct.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxRackHorCableDuct.prototype.foreground=function(a,d,e){e=Math.floor((d-20)/33);d=10+Math.floor((d-20-33*e)/2);if(0<e)for(var b=0;b<=e;b++)a.rect(d,0,3,7),a.stroke(),a.rect(d,7,3,7.8),a.stroke(),d+=33};function mxRackHorRoutingBank(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackHorRoutingBank,mxShape);mxRackHorRoutingBank.prototype.cst={SHAPE_RACK_HOR_ROUTING_BANK:"mxgraph.rackGeneral.horRoutingBank"};
|
|
mxRackHorRoutingBank.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxRackHorRoutingBank.prototype.background=function(a,d,e){a.rect(0,0,d,e);a.fillAndStroke()};
|
|
mxRackHorRoutingBank.prototype.foreground=function(a,d,e){var b=Math.floor((d-20-16)/22);e=Math.floor(e/mxRackContainer.unitSize);if(0<b&&0<e)for(var c=0;c<e;c++)for(var f=18+Math.floor((d-20-16-22*b)/2)-8,g=0;g<=b;g++)a.rect(f,4+c*mxRackContainer.unitSize,16,6.8),a.stroke(),f+=22};function mxRackNeatPatch(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackNeatPatch,mxShape);mxRackNeatPatch.prototype.cst={SHAPE_RACK_NEAT_PATCH:"mxgraph.rackGeneral.neatPatch"};
|
|
mxRackNeatPatch.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.mainText(a,b,c)};mxRackNeatPatch.prototype.background=function(a,d,e){a.setFillColor("#666666");a.rect(0,0,d,e);a.fillAndStroke()};mxRackNeatPatch.prototype.mainText=function(a,d,e){a.setFontSize("12");a.setFontColor("#ffffff");a.setFontStyle(mxConstants.FONT_BOLD);a.text(d/2,e-6,0,0,"NEAT-PATCH",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};
|
|
function mxRackShelf(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackShelf,mxShape);mxRackShelf.prototype.cst={SHAPE_RACK_SHELF:"mxgraph.rackGeneral.shelf"};mxRackShelf.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c)};mxRackShelf.prototype.background=function(a,d,e){a.setStrokeWidth(2);a.begin();a.moveTo(1,0);a.lineTo(1,e-1);a.lineTo(d-1,e-1);a.lineTo(d-1,1);a.fillAndStroke()};
|
|
function mxRackRackNumbering(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackRackNumbering,mxShape);mxRackRackNumbering.prototype.cst={SHAPE_RACK_RACK_NUMBERING:"mxgraph.rackGeneral.rackNumbering",UNIT_NUM:"unitNum",UNIT_HEIGHT:"unitHeight",TEXT_COLOR:"textColor",NUM_DIR:"numDir",DIR_ASC:"ascend",DIR_DESC:"descend",TEXT_SIZE:"textSize"};
|
|
mxRackRackNumbering.prototype.paintVertexShape=function(a,d,e,b,c){var f=parseFloat(mxUtils.getValue(this.style,mxRackRackNumbering.prototype.cst.UNIT_NUM,"42")),g=parseFloat(mxUtils.getValue(this.style,mxRackRackNumbering.prototype.cst.UNIT_HEIGHT,"14.8")),h=parseFloat(mxUtils.getValue(this.style,mxRackRackNumbering.prototype.cst.TEXT_SIZE,"12"));a.translate(d,e);c=f*g;this.background(a,b,c,h);a.setShadow(!1);this.sideText(a,b,c,f,g,h)};
|
|
mxRackRackNumbering.prototype.background=function(a,d,e,b){a.rect(3*b,0,160.9,e);a.fillAndStroke()};
|
|
mxRackRackNumbering.prototype.sideText=function(a,d,e,b,c,f){d=mxUtils.getValue(this.style,mxRackRackNumbering.prototype.cst.TEXT_COLOR,"#666666");var g=mxUtils.getValue(this.style,mxRackRackNumbering.prototype.cst.NUM_DIR,mxRackRackNumbering.prototype.cst.DIR_DESC);a.setFontSize(f);a.setFontColor(d);if(g===mxRackRackNumbering.prototype.cst.DIR_ASC)for(d=0;d<b;d++)a.text(f,.5*c+d*c,0,0,(d+1).toString(),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);else for(d=0;d<b;d++)a.text(f,e-
|
|
.5*c-d*c,0,0,(d+1).toString(),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setStrokeColor("#dddddd");a.begin();for(d=0;d<b+1;d++)a.moveTo(0,d*c),a.lineTo(3*f,d*c);a.stroke()};function mxRackRackCabinet(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackRackCabinet,mxShape);
|
|
mxRackRackCabinet.prototype.cst={SHAPE_RACK_RACK_CABINET:"mxgraph.rackGeneral.rackCabinet",UNIT_NUM:"unitNum",UNIT_HEIGHT:"unitHeight",TEXT_COLOR:"textColor",NUM_DIR:"numDir",NUMBER_DISPLAY:"numDisp",ON:"on",OFF:"off",DIR_ASC:"ascend",DIR_DESC:"descend",TEXT_SIZE:"textSize"};
|
|
mxRackRackCabinet.prototype.paintVertexShape=function(a,d,e,b,c){var f=parseFloat(mxUtils.getValue(this.style,mxRackRackCabinet.prototype.cst.UNIT_NUM,"12")),g=parseFloat(mxUtils.getValue(this.style,mxRackRackCabinet.prototype.cst.UNIT_HEIGHT,"14.8")),h=parseFloat(mxUtils.getValue(this.style,mxRackRackCabinet.prototype.cst.TEXT_SIZE,"12")),k=mxUtils.getValue(this.style,mxRackRackCabinet.prototype.cst.NUMBER_DISPLAY,mxRackRackCabinet.prototype.cst.ON);k===mxRackRackCabinet.prototype.cst.ON?a.translate(d+
|
|
2*h,e):a.translate(d,e);c=f*g+42;this.background(a,b,c,h);a.setShadow(!1);this.foreground(a,b,c,h);k===mxRackRackCabinet.prototype.cst.ON&&this.sideText(a,b,c,f,g,h)};mxRackRackCabinet.prototype.background=function(a,d,e,b){a.setFillColor("#ffffff");a.rect(0,0,180,e);a.fillAndStroke()};
|
|
mxRackRackCabinet.prototype.foreground=function(a,d,e,b){a.setFillColor("#f4f4f4");a.rect(0,0,180,21);a.fillAndStroke();a.rect(0,e-21,180,21);a.fillAndStroke();a.rect(0,21,9,e-42);a.fillAndStroke();a.rect(171,21,9,e-42);a.fillAndStroke();a.ellipse(2.5,7.5,6,6);a.stroke();a.ellipse(171.5,7.5,6,6);a.stroke();a.ellipse(2.5,e-13.5,6,6);a.stroke();a.ellipse(171.5,e-13.5,6,6);a.stroke()};
|
|
mxRackRackCabinet.prototype.sideText=function(a,d,e,b,c,f){d=mxUtils.getValue(this.style,mxRackRackCabinet.prototype.cst.TEXT_COLOR,"#666666");var g=mxUtils.getValue(this.style,mxRackRackCabinet.prototype.cst.NUM_DIR,mxRackRackCabinet.prototype.cst.DIR_DESC);a.setFontSize(f);a.setFontColor(d);if(g===mxRackRackCabinet.prototype.cst.DIR_ASC)for(d=0;d<b;d++)a.text(-f,21+.5*c+d*c,0,0,(d+1).toString(),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);else for(d=0;d<b;d++)a.text(-f,e-21-.5*
|
|
c-d*c,0,0,(d+1).toString(),mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);a.setStrokeColor("#dddddd");a.begin();for(d=0;d<b+1;d++)a.moveTo(-2*f,21+d*c),a.lineTo(0,21+d*c);a.stroke()};function mxRackHorCableDuct1U(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackHorCableDuct1U,mxShape);mxRackHorCableDuct1U.prototype.cst={SHAPE_RACK_HOR_CABLE_DUCT_1U:"mxgraph.rackGeneral.horCableDuct1U"};
|
|
mxRackHorCableDuct1U.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxRackHorCableDuct1U.prototype.background=function(a,d,e){a.rect(0,0,160.9,14.8);a.fillAndStroke()};
|
|
mxRackHorCableDuct1U.prototype.foreground=function(a,d,e){a.rect(12,0,3,7);a.stroke();a.rect(12,7,3,7.8);a.stroke();a.rect(45.5,0,3,7);a.stroke();a.rect(45.5,7,3,7.8);a.stroke();a.rect(79,0,3,7);a.stroke();a.rect(79,7,3,7.8);a.stroke();a.rect(112.5,0,3,7);a.stroke();a.rect(112.5,7,3,7.8);a.stroke();a.rect(146,0,3,7);a.stroke();a.rect(146,7,3,7.8);a.stroke()};function mxRackHorCableDuct2U(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxRackHorCableDuct2U,mxShape);mxRackHorCableDuct2U.prototype.cst={SHAPE_RACK_HOR_CABLE_DUCT_2U:"mxgraph.rackGeneral.horCableDuct2U"};mxRackHorCableDuct2U.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxRackHorCableDuct2U.prototype.background=function(a,d,e){a.rect(0,0,160.9,29.6);a.fillAndStroke()};
|
|
mxRackHorCableDuct2U.prototype.foreground=function(a,d,e){a.rect(12,0,3,7);a.stroke();a.rect(12,7,3,22.6);a.stroke();a.rect(45.5,0,3,7);a.stroke();a.rect(45.5,7,3,22.6);a.stroke();a.rect(79,0,3,7);a.stroke();a.rect(79,7,3,22.6);a.stroke();a.rect(112.5,0,3,7);a.stroke();a.rect(112.5,7,3,22.6);a.stroke();a.rect(146,0,3,7);a.stroke();a.rect(146,7,3,22.6);a.stroke()};function mxRackHorRoutingBank1U(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxRackHorRoutingBank1U,mxShape);mxRackHorRoutingBank1U.prototype.cst={SHAPE_RACK_HOR_ROUTING_BANK_1U:"mxgraph.rackGeneral.horRoutingBank1U"};mxRackHorRoutingBank1U.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxRackHorRoutingBank1U.prototype.background=function(a,d,e){a.rect(0,0,160.9,14.8);a.fillAndStroke()};
|
|
mxRackHorRoutingBank1U.prototype.foreground=function(a,d,e){a.rect(10,4,17,6.8);a.stroke();a.rect(31,4,17,6.8);a.stroke();a.rect(52,4,17,6.8);a.stroke();a.rect(73,4,17,6.8);a.stroke();a.rect(94,4,17,6.8);a.stroke();a.rect(115,4,17,6.8);a.stroke();a.rect(136,4,17,6.8);a.stroke()};function mxRackHorRoutingBank2U(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackHorRoutingBank2U,mxShape);mxRackHorRoutingBank2U.prototype.cst={SHAPE_RACK_HOR_ROUTING_BANK_2U:"mxgraph.rackGeneral.horRoutingBank2U"};
|
|
mxRackHorRoutingBank2U.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};mxRackHorRoutingBank2U.prototype.background=function(a,d,e){a.rect(0,0,160.9,29.6);a.fillAndStroke()};
|
|
mxRackHorRoutingBank2U.prototype.foreground=function(a,d,e){a.rect(10,4,17,6.8);a.stroke();a.rect(31,4,17,6.8);a.stroke();a.rect(52,4,17,6.8);a.stroke();a.rect(73,4,17,6.8);a.stroke();a.rect(94,4,17,6.8);a.stroke();a.rect(115,4,17,6.8);a.stroke();a.rect(136,4,17,6.8);a.stroke();a.rect(10,18.8,17,6.8);a.stroke();a.rect(31,18.8,17,6.8);a.stroke();a.rect(52,18.8,17,6.8);a.stroke();a.rect(73,18.8,17,6.8);a.stroke();a.rect(94,18.8,17,6.8);a.stroke();a.rect(115,18.8,17,6.8);a.stroke();a.rect(136,18.8,17,
|
|
6.8);a.stroke()};function mxRackNeatPatch2U(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackNeatPatch2U,mxShape);mxRackNeatPatch2U.prototype.cst={SHAPE_RACK_NEAT_PATCH_2U:"mxgraph.rackGeneral.neatPatch2U"};mxRackNeatPatch2U.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.mainText(a,b,c)};
|
|
mxRackNeatPatch2U.prototype.background=function(a,d,e){a.setFillColor("#666666");a.rect(0,0,160.9,29.6);a.fillAndStroke()};mxRackNeatPatch2U.prototype.mainText=function(a,d,e){a.setFontSize("12");a.setFontColor("#ffffff");a.setFontStyle(mxConstants.FONT_BOLD);a.text(80.45,24,0,0,"NEAT-PATCH",mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)};function mxRackShelf1U(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}
|
|
mxUtils.extend(mxRackShelf1U,mxShape);mxRackShelf1U.prototype.cst={SHAPE_RACK_SHELF_1U:"mxgraph.rackGeneral.shelf1U"};mxRackShelf1U.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c)};mxRackShelf1U.prototype.background=function(a,d,e){a.setStrokeWidth(2);a.begin();a.moveTo(0,0);a.lineTo(0,14.8);a.lineTo(160.9,14.8);a.lineTo(160.9,0);a.fillAndStroke()};
|
|
function mxRackShelf2U(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackShelf2U,mxShape);mxRackShelf2U.prototype.cst={SHAPE_RACK_SHELF_2U:"mxgraph.rackGeneral.shelf2U"};mxRackShelf2U.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c)};mxRackShelf2U.prototype.background=function(a,d,e){a.setStrokeWidth(2);a.begin();a.moveTo(0,0);a.lineTo(0,29.6);a.lineTo(160.9,29.6);a.lineTo(160.9,0);a.fillAndStroke()};
|
|
function mxRackShelf4U(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackShelf4U,mxShape);mxRackShelf4U.prototype.cst={SHAPE_RACK_SHELF_4U:"mxgraph.rackGeneral.shelf4U"};mxRackShelf4U.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,b,c)};mxRackShelf4U.prototype.background=function(a,d,e){a.setStrokeWidth(2);a.begin();a.moveTo(0,0);a.lineTo(0,59.2);a.lineTo(160.9,59.2);a.lineTo(160.9,0);a.fillAndStroke()};
|
|
function mxRackChannelBase(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackChannelBase,mxShape);mxRackChannelBase.prototype.cst={SHAPE_RACK_CHANNEL_BASE:"mxgraph.rackGeneral.channelBase"};mxRackChannelBase.prototype.paintVertexShape=function(a,d,e,b,c){b=Math.max(b,20);c=Math.max(c,20);a.translate(d,e);this.background(a,b,c);a.setShadow(!1);this.foreground(a,b,c)};
|
|
mxRackChannelBase.prototype.background=function(a,d,e){a.rect(10,e-15,5,15);a.fillAndStroke();a.rect(d-15,e-15,5,15);a.fillAndStroke();a.rect(0,0,d,e-5);a.fillAndStroke()};mxRackChannelBase.prototype.foreground=function(a,d,e){a.setFillColor("#000000");a.rect(10,e-15,5,15);a.fillAndStroke();a.rect(d-15,e-15,5,15);a.fillAndStroke()};function mxRackCabinetLeg(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxRackCabinetLeg,mxShape);
|
|
mxRackCabinetLeg.prototype.cst={SHAPE_RACK_CABINET_LEG:"mxgraph.rackGeneral.cabinetLeg"};mxRackCabinetLeg.prototype.paintVertexShape=function(a,d,e,b,c){b=Math.max(b,20);c=Math.max(c,20);a.translate(d,e);this.background(a,b,c)};
|
|
mxRackCabinetLeg.prototype.background=function(a,d,e){a.begin();a.moveTo(0,e-10);a.lineTo(5,e-10);a.lineTo(5,e-12);a.lineTo(9,e-12);a.lineTo(9,e-10);a.lineTo(d-10,e-10);a.lineTo(d-10,9);a.lineTo(d-12,9);a.lineTo(d-12,5);a.lineTo(d-10,5);a.lineTo(d-10,0);a.lineTo(d,0);a.lineTo(d,e);a.lineTo(0,e);a.close();a.fillAndStroke()};mxCellRenderer.registerShape(mxRackContainer.prototype.cst.SHAPE_RACK_CONTAINER,mxRackContainer);
|
|
mxCellRenderer.registerShape(mxRackHorCableDuct.prototype.cst.SHAPE_RACK_HOR_CABLE_DUCT,mxRackHorCableDuct);mxCellRenderer.registerShape(mxRackHorRoutingBank.prototype.cst.SHAPE_RACK_HOR_ROUTING_BANK,mxRackHorRoutingBank);mxCellRenderer.registerShape(mxRackNeatPatch.prototype.cst.SHAPE_RACK_NEAT_PATCH,mxRackNeatPatch);mxCellRenderer.registerShape(mxRackShelf.prototype.cst.SHAPE_RACK_SHELF,mxRackShelf);mxCellRenderer.registerShape(mxRackPlate.prototype.cst.SHAPE_RACK_PLATE,mxRackPlate);
|
|
mxCellRenderer.registerShape(mxRackRackNumbering.prototype.cst.SHAPE_RACK_RACK_NUMBERING,mxRackRackNumbering);mxCellRenderer.registerShape(mxRackRackCabinet.prototype.cst.SHAPE_RACK_RACK_CABINET,mxRackRackCabinet);mxCellRenderer.registerShape(mxRackHorCableDuct1U.prototype.cst.SHAPE_RACK_HOR_CABLE_DUCT_1U,mxRackHorCableDuct1U);mxCellRenderer.registerShape(mxRackHorCableDuct2U.prototype.cst.SHAPE_RACK_HOR_CABLE_DUCT_2U,mxRackHorCableDuct2U);
|
|
mxCellRenderer.registerShape(mxRackHorRoutingBank1U.prototype.cst.SHAPE_RACK_HOR_ROUTING_BANK_1U,mxRackHorRoutingBank1U);mxCellRenderer.registerShape(mxRackHorRoutingBank2U.prototype.cst.SHAPE_RACK_HOR_ROUTING_BANK_2U,mxRackHorRoutingBank2U);mxCellRenderer.registerShape(mxRackNeatPatch2U.prototype.cst.SHAPE_RACK_NEAT_PATCH_2U,mxRackNeatPatch2U);mxCellRenderer.registerShape(mxRackShelf1U.prototype.cst.SHAPE_RACK_SHELF_1U,mxRackShelf1U);
|
|
mxCellRenderer.registerShape(mxRackShelf2U.prototype.cst.SHAPE_RACK_SHELF_2U,mxRackShelf2U);mxCellRenderer.registerShape(mxRackShelf4U.prototype.cst.SHAPE_RACK_SHELF_4U,mxRackShelf4U);mxCellRenderer.registerShape(mxRackChannelBase.prototype.cst.SHAPE_RACK_CHANNEL_BASE,mxRackChannelBase);mxCellRenderer.registerShape(mxRackCabinetLeg.prototype.cst.SHAPE_RACK_CABINET_LEG,mxRackCabinetLeg); |