@zklogic/draw.io
Version:
Draw.IO - Graph Editor integration in Angular-cli
1 lines • 16.4 kB
JavaScript
function mxShapeMockupLink(t,e,o,p){mxShape.call(this),this.bounds=t,this.fill=e,this.stroke=o,this.strokewidth=null!=p?p:1}function mxShapeMockupLinkBar(t,e,o,p){mxShape.call(this),this.bounds=t,this.fill=e,this.stroke=o,this.strokewidth=null!=p?p:1}function mxShapeMockupCallout(t,e,o,p){mxShape.call(this),this.bounds=t,this.fill=e,this.stroke=o,this.strokewidth=null!=p?p:1}function mxShapeMockupStickyNote(t,e,o,p){mxShape.call(this),this.bounds=t,this.fill=e,this.stroke=o,this.strokewidth=null!=p?p:1}function mxShapeMockupStickyNote2(t,e,o,p){mxShape.call(this),this.bounds=t,this.fill=e,this.stroke=o,this.strokewidth=null!=p?p:1}function mxShapeMockupBulletedList(t,e,o,p){mxShape.call(this),this.bounds=t,this.fill=e,this.stroke=o,this.strokewidth=null!=p?p:1}function mxShapeMockupTextBox(t,e,o,p){mxShape.call(this),this.bounds=t,this.fill=e,this.stroke=o,this.strokewidth=null!=p?p:1}function mxShapeMockupCaptcha(t,e,o,p){mxShape.call(this),this.bounds=t,this.fill=e,this.stroke=o,this.strokewidth=null!=p?p:1}function mxShapeMockupAlphanumeric(t,e,o,p){mxShape.call(this),this.bounds=t,this.fill=e,this.stroke=o,this.strokewidth=null!=p?p:1}function mxShapeMockupTextRRect(t,e,o,p){mxShape.call(this),this.bounds=t,this.fill=e,this.stroke=o,this.strokewidth=null!=p?p: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(t,e,o,p,l){var s=mxUtils.getValue(this.style,mxShapeMockupLink.prototype.cst.LINK_TEXT,"Link"),i=mxUtils.getValue(this.style,mxShapeMockupLink.prototype.cst.TEXT_SIZE,"17"),a=mxUtils.getValue(this.style,mxShapeMockupLink.prototype.cst.TEXT_COLOR,"#0000ff");t.translate(e,o);var r=mxUtils.getSizeForString(s,i,mxConstants.DEFAULT_FONTFAMILY).width;t.setStrokeColor(a),t.setFontSize(i),t.setFontColor(a),t.text(.5*p,.5*l,0,0,s,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),t.begin(),t.moveTo(.5*p-.5*r,.5*(l+parseInt(i,10))),t.lineTo(.5*p+.5*r,.5*(l+parseInt(i,10))),t.stroke()},mxCellRenderer.registerShape(mxShapeMockupLink.prototype.cst.SHAPE_LINK,mxShapeMockupLink),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(t,e,o,p,l){for(var s=mxUtils.getValue(this.style,mxShapeMockupLinkBar.prototype.cst.MAIN_TEXT,"+Button 1, Button 2, Button 3").toString().split(","),i=mxUtils.getValue(this.style,mxShapeMockupLinkBar.prototype.cst.TEXT_COLOR,"#666666"),a=mxUtils.getValue(this.style,mxShapeMockupLinkBar.prototype.cst.TEXT_COLOR2,"#ffffff"),r=mxUtils.getValue(this.style,mxShapeMockupLinkBar.prototype.cst.TEXT_SIZE,"17").toString(),n=mxUtils.getValue(this.style,mxConstants.STYLE_STROKECOLOR,"#666666"),c=mxUtils.getValue(this.style,mxShapeMockupLinkBar.prototype.cst.STROKE_COLOR2,"#c4c4c4"),x=mxUtils.getValue(this.style,mxConstants.STYLE_FILLCOLOR,"#ffffff"),S=mxUtils.getValue(this.style,mxShapeMockupLinkBar.prototype.cst.FILL_COLOR2,"#008cff"),u=s.length,h=new Array(u),m=0,T=-1,k=0;k<u;k++){var E=s[k];E.charAt(0)===mxShapeMockupLinkBar.prototype.cst.SELECTED&&(E=s[k].substring(1),T=k);var L=mxUtils.getSizeForString(E,r,mxConstants.DEFAULT_FONTFAMILY).width;h[k]=0===L?42:L,m+=h[k]}var C=Math.max(l,1.5*r,20),M=10*u+m,y=Math.max(p,M);t.translate(e,o),this.background(t,y,C,10,u,h,5,M,n,c,x,S,T),t.setShadow(!1);var _=0;for(k=0;k<u;k++)k===T?(t.setFontColor(a),t.setStrokeColor(a)):(t.setFontColor(i),t.setStrokeColor(i)),_+=5,this.buttonText(t,_,C,s[k],h[k],r,M,y),_=_+h[k]+5},mxShapeMockupLinkBar.prototype.background=function(t,e,o,p,l,s,i,a,r,n,c,x,S){t.begin(),t.setStrokeColor(r),t.setFillColor(c),t.rect(0,0,e,o),t.fillAndStroke(),t.setStrokeColor(n),t.begin();for(var u=1;u<l;u++)if(u!==S&&u!==S+1){for(var h=0,m=0;m<u;m++)h+=s[m]+2*i;h=h*e/a,t.moveTo(h,0),t.lineTo(h,o)}t.stroke();var T=0;for(t.setFillColor(x),u=0;u<S;u++)T+=s[u]+2*i;T=T*e/a;var k=(s[S]+2*i)*e/a;k+=T,0===S?(t.rect(0,0,k,o),t.fill()):(S===l-1||-1!==S)&&(t.rect(T,0,k-T,o),t.fill()),t.setStrokeColor(r),t.setFillColor(c),t.rect(0,0,e,o),t.stroke()},mxShapeMockupLinkBar.prototype.buttonText=function(t,e,o,p,l,s,i,a){p.charAt(0)===mxShapeMockupLinkBar.prototype.cst.SELECTED&&(p=p.substring(1)),t.begin(),t.setFontSize(s),t.text((e+.5*l)*a/i,.5*o,0,0,p,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0);var r=.5*mxUtils.getSizeForString(p,s,mxConstants.DEFAULT_FONTFAMILY).width;null!==p&&""!==p&&(t.begin(),t.moveTo((e+.5*l)*a/i-r,.5*o+.5*s),t.lineTo((e+.5*l)*a/i+r,.5*o+.5*s),t.stroke())},mxCellRenderer.registerShape(mxShapeMockupLinkBar.prototype.cst.SHAPE_LINK_BAR,mxShapeMockupLinkBar),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.customProperties=[{name:"callDir",dispName:"Direction",type:"enum",enumList:[{val:"NW",dispName:"North-West"},{val:"NE",dispName:"North-East"},{val:"SE",dispName:"South-East"},{val:"SW",dispName:"South-West"}]},{name:"callStyle",dispName:"Style",type:"enum",enumList:[{val:"line",dispName:"Line"},{val:"rect",dispName:"Rectangle"}]}],mxShapeMockupCallout.prototype.paintVertexShape=function(t,e,o,p,l){var s=mxUtils.getValue(this.style,mxShapeMockupCallout.prototype.cst.CALLOUT_TEXT,"Callout"),i=mxUtils.getValue(this.style,mxShapeMockupCallout.prototype.cst.TEXT_SIZE,"17"),a=mxUtils.getValue(this.style,mxShapeMockupCallout.prototype.cst.TEXT_COLOR,"#666666"),r=mxUtils.getValue(this.style,mxShapeMockupCallout.prototype.cst.CALLOUT_STYLE,mxShapeMockupCallout.prototype.cst.STYLE_LINE),n=mxUtils.getValue(this.style,mxShapeMockupCallout.prototype.cst.CALLOUT_DIR,mxShapeMockupCallout.prototype.cst.DIR_NW),c=mxUtils.getSizeForString(s,i,mxConstants.DEFAULT_FONTFAMILY).width;0==(c*=1.2)&&(c=70),t.translate(e,o),t.setFontSize(i),t.setFontColor(a);var x=1.5*i;n===mxShapeMockupCallout.prototype.cst.DIR_NW?(r===mxShapeMockupCallout.prototype.cst.STYLE_LINE?(t.begin(),t.moveTo(0,x),t.lineTo(c,x),t.lineTo(p,l),t.stroke()):r===mxShapeMockupCallout.prototype.cst.STYLE_RECT?(t.rect(0,0,c,x),t.fillAndStroke(),t.begin(),t.moveTo(.5*c,x),t.lineTo(p,l),t.stroke()):r===mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT&&(t.roundrect(0,0,c,x,.25*x,.25*x),t.fillAndStroke(),t.begin(),t.moveTo(.5*c,x),t.lineTo(p,l),t.stroke()),t.text(.5*c,.5*x,0,0,s,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)):n===mxShapeMockupCallout.prototype.cst.DIR_NE?(r===mxShapeMockupCallout.prototype.cst.STYLE_LINE?(t.begin(),t.moveTo(p,x),t.lineTo(p-c,x),t.lineTo(0,l),t.stroke()):r===mxShapeMockupCallout.prototype.cst.STYLE_RECT?(t.rect(p-c,0,c,x),t.fillAndStroke(),t.begin(),t.moveTo(p-.5*c,x),t.lineTo(0,l),t.stroke()):r===mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT&&(t.roundrect(p-c,0,c,x,.25*x,.25*x),t.fillAndStroke(),t.begin(),t.moveTo(p-.5*c,x),t.lineTo(0,l),t.stroke()),t.text(p-.5*c,.5*x,0,0,s,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)):n===mxShapeMockupCallout.prototype.cst.DIR_SE?(r===mxShapeMockupCallout.prototype.cst.STYLE_LINE?(t.begin(),t.moveTo(p,l),t.lineTo(p-c,l),t.lineTo(0,0),t.stroke()):r===mxShapeMockupCallout.prototype.cst.STYLE_RECT?(t.rect(p-c,l-x,c,x),t.fillAndStroke(),t.begin(),t.moveTo(p-.5*c,l-x),t.lineTo(0,0),t.stroke()):r===mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT&&(t.roundrect(p-c,l-x,c,x,.25*x,.25*x),t.fillAndStroke(),t.begin(),t.moveTo(p-.5*c,l-x),t.lineTo(0,0),t.stroke()),t.text(p-.5*c,l-.5*x,0,0,s,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)):n===mxShapeMockupCallout.prototype.cst.DIR_SW&&(r===mxShapeMockupCallout.prototype.cst.STYLE_LINE?(t.begin(),t.moveTo(0,l),t.lineTo(c,l),t.lineTo(p,0),t.stroke()):r===mxShapeMockupCallout.prototype.cst.STYLE_RECT?(t.rect(0,l-x,c,x),t.fillAndStroke(),t.begin(),t.moveTo(.5*c,l-x),t.lineTo(p,0),t.stroke()):r===mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT&&(t.roundrect(0,l-x,c,x,.25*x,.25*x),t.fillAndStroke(),t.begin(),t.moveTo(.5*c,l-x),t.lineTo(p,0),t.stroke()),t.text(.5*c,l-.5*x,0,0,s,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0))},mxCellRenderer.registerShape(mxShapeMockupCallout.prototype.cst.SHAPE_CALLOUT,mxShapeMockupCallout),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(t,e,o,p,l){t.translate(e,o),this.background(t,p,l),t.setShadow(!1),this.foreground(t,p,l)},mxShapeMockupStickyNote.prototype.background=function(t,e,o){t.setFillColor("#ffffcc"),t.begin(),t.moveTo(.03*e,.07*o),t.lineTo(.89*e,.06*o),t.arcTo(2.81*e,2.92*o,1,0,0,.99*e,.98*o),t.lineTo(.09*e,.99*o),t.arcTo(2.81*e,2.92*o,1,0,1,.03*e,.07*o),t.close(),t.fill()},mxShapeMockupStickyNote.prototype.foreground=function(t,e,o){var p=mxUtils.getValue(this.style,mxShapeMockupStickyNote.prototype.cst.MAIN_TEXT,"Note line 1,Note line 2,Note line 3").toString().split(","),l=mxUtils.getValue(this.style,mxShapeMockupStickyNote.prototype.cst.TEXT_COLOR,"#666666").toString(),s=mxUtils.getValue(this.style,mxShapeMockupStickyNote.prototype.cst.TEXT_SIZE,"17").toString();t.setFillColor("#ff3300"),t.begin(),t.moveTo(.28*e,0),t.lineTo(.59*e,0),t.lineTo(.6*e,.12*o),t.lineTo(.28*e,.13*o),t.close(),t.fill(),t.setFontSize(s),t.setFontColor(l);for(var i=p.length*s*1.5,a=0;a<p.length;a++)t.text(e/2,(o-i)/2+a*s*1.5+.75*s,0,0,p[a],mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)},mxCellRenderer.registerShape(mxShapeMockupStickyNote.prototype.cst.SHAPE_STICKY_NOTE,mxShapeMockupStickyNote),mxUtils.extend(mxShapeMockupStickyNote2,mxShape),mxShapeMockupStickyNote2.prototype.cst={SHAPE_STICKY_NOTE:"mxgraph.mockup.text.stickyNote2"},mxShapeMockupStickyNote2.prototype.paintVertexShape=function(t,e,o,p,l){t.translate(e,o),this.background(t,p,l),t.setShadow(!1),this.foreground(t,p,l)},mxShapeMockupStickyNote2.prototype.background=function(t,e,o){t.begin(),t.moveTo(.03*e,.07*o),t.lineTo(.89*e,.06*o),t.arcTo(2.81*e,2.92*o,1,0,0,.99*e,.98*o),t.lineTo(.09*e,.99*o),t.arcTo(2.81*e,2.92*o,1,0,1,.03*e,.07*o),t.close(),t.fill()},mxShapeMockupStickyNote2.prototype.foreground=function(t,e,o){var p=mxUtils.getValue(this.style,"strokeColor","#000000");t.setFillColor(p),t.begin(),t.moveTo(.28*e,0),t.lineTo(.59*e,0),t.lineTo(.6*e,.12*o),t.lineTo(.28*e,.13*o),t.close(),t.fill()},mxCellRenderer.registerShape(mxShapeMockupStickyNote2.prototype.cst.SHAPE_STICKY_NOTE,mxShapeMockupStickyNote2),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(t,e,o,p,l){t.translate(e,o),this.background(t,p,l),t.setShadow(!1),this.foreground(t,p,l)},mxShapeMockupBulletedList.prototype.background=function(t,e,o){t.rect(0,0,e,o),t.fillAndStroke()},mxShapeMockupBulletedList.prototype.foreground=function(t,e,o){var p=mxUtils.getValue(this.style,mxShapeMockupBulletedList.prototype.cst.MAIN_TEXT,"Note line 1,Note line 2,Note line 3").toString().split(","),l=mxUtils.getValue(this.style,mxShapeMockupBulletedList.prototype.cst.TEXT_COLOR,"#666666"),s=mxUtils.getValue(this.style,mxShapeMockupBulletedList.prototype.cst.TEXT_SIZE,"17"),i=mxUtils.getValue(this.style,mxShapeMockupBulletedList.prototype.cst.BULLET_STYLE,"none");t.setFontColor(l),t.setFontSize(s);for(var a=0;a<p.length;a++){var r;r=i===mxShapeMockupBulletedList.prototype.cst.STYLE_NUM?a+1+") "+p[a]:i===mxShapeMockupBulletedList.prototype.cst.STYLE_HYPHEN?"- "+p[a]:i===mxShapeMockupBulletedList.prototype.cst.STYLE_DOT?String.fromCharCode(8226)+" "+p[a]:" "+p[a],t.text(10,a*s*1.5+.75*s,0,0,r,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)}},mxCellRenderer.registerShape(mxShapeMockupBulletedList.prototype.cst.SHAPE_BULLETED_LIST,mxShapeMockupBulletedList),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(t,e,o,p,l){t.translate(e,o),this.background(t,p,l),t.setShadow(!1),this.foreground(t,p,l)},mxShapeMockupTextBox.prototype.background=function(t,e,o){t.rect(0,0,e,o),t.fillAndStroke()},mxShapeMockupTextBox.prototype.foreground=function(t,e,o){var p=mxUtils.getValue(this.style,mxShapeMockupTextBox.prototype.cst.MAIN_TEXT,"Note line 1").toString().split(","),l=mxUtils.getValue(this.style,mxShapeMockupTextBox.prototype.cst.TEXT_COLOR,"#666666"),s=mxUtils.getValue(this.style,mxShapeMockupTextBox.prototype.cst.TEXT_SIZE,"17");t.setFontColor(l),t.setFontSize(s);for(var i=0;i<p.length;i++)t.text(5,i*s*1.5+.75*s,0,0,p[i],mxConstants.ALIGN_LEFT,mxConstants.ALIGN_MIDDLE,0,null,0,0,0)},mxCellRenderer.registerShape(mxShapeMockupTextBox.prototype.cst.SHAPE_TEXT_BOX,mxShapeMockupTextBox),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(t,e,o,p,l){t.translate(e,o),this.background(t,p,l),t.setShadow(!1),this.foreground(t,p,l)},mxShapeMockupCaptcha.prototype.background=function(t,e,o){t.rect(0,0,e,o),t.fillAndStroke()},mxShapeMockupCaptcha.prototype.foreground=function(t,e,o){var p=mxUtils.getValue(this.style,mxShapeMockupCaptcha.prototype.cst.MAIN_TEXT,"Note line 1"),l=mxUtils.getValue(this.style,mxShapeMockupCaptcha.prototype.cst.TEXT_COLOR,"#666666"),s=mxUtils.getValue(this.style,mxShapeMockupCaptcha.prototype.cst.TEXT_SIZE,"25");t.setFillColor("#88aaff"),t.begin(),t.moveTo(0,0),t.lineTo(.35*e,0),t.lineTo(.55*e,.85*o),t.lineTo(.4*e,.75*o),t.close(),t.fill(),t.begin(),t.moveTo(.7*e,.1*o),t.lineTo(.95*e,.23*o),t.lineTo(e,.4*o),t.lineTo(e,.9*o),t.lineTo(e,o),t.lineTo(.8*e,o),t.close(),t.fill(),t.setFontColor(l),t.setFontSize(s),t.text(.5*e,.5*o,0,0,p,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),t.rect(0,0,e,o),t.stroke()},mxCellRenderer.registerShape(mxShapeMockupCaptcha.prototype.cst.SHAPE_CAPTCHA,mxShapeMockupCaptcha),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(t,e,o,p,l){var s=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"),i=mxUtils.getValue(this.style,mxShapeMockupAlphanumeric.prototype.cst.TEXT_SIZE,"17"),a=mxUtils.getValue(this.style,mxShapeMockupAlphanumeric.prototype.cst.TEXT_COLOR,"#0000ff");t.translate(e,o);var r=mxUtils.getSizeForString(s,i,mxConstants.DEFAULT_FONTFAMILY).width;t.setStrokeColor(a),t.setFontSize(i),t.setFontColor(a),t.text(.5*p,.5*l,0,0,s,mxConstants.ALIGN_CENTER,mxConstants.ALIGN_MIDDLE,0,null,0,0,0),t.begin(),t.moveTo(.5*p-.5*r,.5*(l+parseInt(i,10))),t.lineTo(.5*p+.5*r,.5*(l+parseInt(i,10))),t.stroke()},mxCellRenderer.registerShape(mxShapeMockupAlphanumeric.prototype.cst.SHAPE_ALPHANUMERIC,mxShapeMockupAlphanumeric),mxUtils.extend(mxShapeMockupTextRRect,mxShape),mxShapeMockupTextRRect.prototype.cst={RRECT:"mxgraph.mockup.text.rrect",R_SIZE:"rSize"},mxShapeMockupTextRRect.prototype.paintVertexShape=function(t,e,o,p,l){t.translate(e,o);var s=parseInt(mxUtils.getValue(this.style,mxShapeMockupTextRRect.prototype.cst.R_SIZE,"10"));t.roundrect(0,0,p,l,s),t.fillAndStroke()},mxCellRenderer.registerShape(mxShapeMockupTextRRect.prototype.cst.RRECT,mxShapeMockupTextRRect);