diff --git a/ChangeLog b/ChangeLog index 44de17a7cc..16f607c6e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +06-JUN-2017: 6.7.5 + +- Fixes links in labels for lightbox on touch devices +- Adds links to pages +- Adds zoom option for viewer in Confluence Connect + 05-JUN-2017: 6.7.4 - Fixes overridden rounded style for non-rounded shapes diff --git a/VERSION b/VERSION index 13c29e4df3..9db23cf36d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.7.4 \ No newline at end of file +6.7.5 \ No newline at end of file diff --git a/src/com/mxgraph/io/gliffy/importer/GliffyDiagramConverter.java b/src/com/mxgraph/io/gliffy/importer/GliffyDiagramConverter.java index 7927840bb9..95f0b41b48 100644 --- a/src/com/mxgraph/io/gliffy/importer/GliffyDiagramConverter.java +++ b/src/com/mxgraph/io/gliffy/importer/GliffyDiagramConverter.java @@ -365,17 +365,18 @@ private mxCell convertGliffyObject(GliffyObject gliffyObject, GliffyObject paren cell.setVertex(true); style.append("shape=" + StencilTranslator.translate(gliffyObject.uid)).append(";"); style.append("shadow=" + (shape.dropShadow ? 1 : 0)).append(";"); - style.append("strokeWidth=" + shape.strokeWidth).append(";"); + + if(style.lastIndexOf("strokeWidth") == -1) + style.append("strokeWidth=" + shape.strokeWidth).append(";"); if(style.lastIndexOf("fillColor") == -1) style.append("fillColor=" + shape.fillColor).append(";"); + if(style.lastIndexOf("strokeColor") == -1) style.append("strokeColor=" + shape.strokeColor).append(";"); - if (shape.gradient && !gliffyObject.isGradientIgnored()) - { + if(shape.gradient && !gliffyObject.isGradientIgnored() && style.lastIndexOf("gradient") == -1) style.append("gradientColor=" + gliffyObject.getGradientColor() + ";gradientDirection=north;"); - } // opacity value is wrong for venn circles, so ignore it and use the one in the mapping if (!gliffyObject.isVennCircle()) diff --git a/war/cache.manifest b/war/cache.manifest index d4bab7c3d1..f375041d3a 100644 --- a/war/cache.manifest +++ b/war/cache.manifest @@ -1,7 +1,7 @@ CACHE MANIFEST # THIS FILE WAS GENERATED. DO NOT MODIFY! -# 06/05/2017 12:53 PM +# 06/06/2017 01:24 PM app.html index.html?offline=1 diff --git a/war/images/android-chrome-144x144.png b/war/images/android-chrome-144x144.png deleted file mode 100644 index 3d088c2708..0000000000 Binary files a/war/images/android-chrome-144x144.png and /dev/null differ diff --git a/war/images/android-chrome-192x192.png b/war/images/android-chrome-192x192.png index 70ce9df306..37449d67d2 100644 Binary files a/war/images/android-chrome-192x192.png and b/war/images/android-chrome-192x192.png differ diff --git a/war/images/android-chrome-36x36.png b/war/images/android-chrome-36x36.png deleted file mode 100644 index 5f29fdce77..0000000000 Binary files a/war/images/android-chrome-36x36.png and /dev/null differ diff --git a/war/images/android-chrome-48x48.png b/war/images/android-chrome-48x48.png deleted file mode 100644 index c96e6dbcf2..0000000000 Binary files a/war/images/android-chrome-48x48.png and /dev/null differ diff --git a/war/images/android-chrome-512x512.png b/war/images/android-chrome-512x512.png new file mode 100644 index 0000000000..725902d8c9 Binary files /dev/null and b/war/images/android-chrome-512x512.png differ diff --git a/war/images/android-chrome-72x72.png b/war/images/android-chrome-72x72.png deleted file mode 100644 index 82659982c6..0000000000 Binary files a/war/images/android-chrome-72x72.png and /dev/null differ diff --git a/war/images/android-chrome-96x96.png b/war/images/android-chrome-96x96.png deleted file mode 100644 index 4da484a831..0000000000 Binary files a/war/images/android-chrome-96x96.png and /dev/null differ diff --git a/war/images/apple-touch-icon-114x114.png b/war/images/apple-touch-icon-114x114.png deleted file mode 100644 index d9e2aa3d94..0000000000 Binary files a/war/images/apple-touch-icon-114x114.png and /dev/null differ diff --git a/war/images/apple-touch-icon-120x120.png b/war/images/apple-touch-icon-120x120.png deleted file mode 100644 index e3bb4b88b8..0000000000 Binary files a/war/images/apple-touch-icon-120x120.png and /dev/null differ diff --git a/war/images/apple-touch-icon-144x144.png b/war/images/apple-touch-icon-144x144.png deleted file mode 100644 index c74e219cbe..0000000000 Binary files a/war/images/apple-touch-icon-144x144.png and /dev/null differ diff --git a/war/images/apple-touch-icon-152x152.png b/war/images/apple-touch-icon-152x152.png deleted file mode 100644 index e1b13f77b3..0000000000 Binary files a/war/images/apple-touch-icon-152x152.png and /dev/null differ diff --git a/war/images/apple-touch-icon-180x180.png b/war/images/apple-touch-icon-180x180.png deleted file mode 100644 index cfbd08838b..0000000000 Binary files a/war/images/apple-touch-icon-180x180.png and /dev/null differ diff --git a/war/images/apple-touch-icon-57x57.png b/war/images/apple-touch-icon-57x57.png deleted file mode 100644 index 99af97f7d8..0000000000 Binary files a/war/images/apple-touch-icon-57x57.png and /dev/null differ diff --git a/war/images/apple-touch-icon-60x60.png b/war/images/apple-touch-icon-60x60.png deleted file mode 100644 index f5f05d6e97..0000000000 Binary files a/war/images/apple-touch-icon-60x60.png and /dev/null differ diff --git a/war/images/apple-touch-icon-72x72.png b/war/images/apple-touch-icon-72x72.png deleted file mode 100644 index e10c58caf0..0000000000 Binary files a/war/images/apple-touch-icon-72x72.png and /dev/null differ diff --git a/war/images/apple-touch-icon-76x76.png b/war/images/apple-touch-icon-76x76.png deleted file mode 100644 index 8a7dfb8399..0000000000 Binary files a/war/images/apple-touch-icon-76x76.png and /dev/null differ diff --git a/war/images/apple-touch-icon-precomposed.png b/war/images/apple-touch-icon-precomposed.png deleted file mode 100644 index 187c4bd840..0000000000 Binary files a/war/images/apple-touch-icon-precomposed.png and /dev/null differ diff --git a/war/images/apple-touch-icon.png b/war/images/apple-touch-icon.png index cfbd08838b..fc553bc15e 100644 Binary files a/war/images/apple-touch-icon.png and b/war/images/apple-touch-icon.png differ diff --git a/war/images/browserconfig.xml b/war/images/browserconfig.xml index 1b1b219f8b..e60ba769d1 100644 --- a/war/images/browserconfig.xml +++ b/war/images/browserconfig.xml @@ -1,12 +1,9 @@ - - - - - - - - - #da532c - - - + + + + + + #d89000 + + + diff --git a/war/images/favicon-16x16.png b/war/images/favicon-16x16.png index d75bb9411b..d478f41a60 100644 Binary files a/war/images/favicon-16x16.png and b/war/images/favicon-16x16.png differ diff --git a/war/images/favicon-194x194.png b/war/images/favicon-194x194.png deleted file mode 100644 index c5e4c3ebc1..0000000000 Binary files a/war/images/favicon-194x194.png and /dev/null differ diff --git a/war/images/favicon-32x32.png b/war/images/favicon-32x32.png index 046af893c9..f0832805ff 100644 Binary files a/war/images/favicon-32x32.png and b/war/images/favicon-32x32.png differ diff --git a/war/images/favicon-96x96.png b/war/images/favicon-96x96.png deleted file mode 100644 index d25114b72c..0000000000 Binary files a/war/images/favicon-96x96.png and /dev/null differ diff --git a/war/images/favicon.ico b/war/images/favicon.ico new file mode 100644 index 0000000000..7b8899fe16 Binary files /dev/null and b/war/images/favicon.ico differ diff --git a/war/images/manifest.json b/war/images/manifest.json index 9b9aabf5f0..4261794747 100644 --- a/war/images/manifest.json +++ b/war/images/manifest.json @@ -1,41 +1,18 @@ { - "name": "draw.io", - "icons": [ - { - "src": "\/images\/android-chrome-36x36.png", - "sizes": "36x36", - "type": "image\/png", - "density": 0.75 - }, - { - "src": "\/images\/android-chrome-48x48.png", - "sizes": "48x48", - "type": "image\/png", - "density": 1 - }, - { - "src": "\/images\/android-chrome-72x72.png", - "sizes": "72x72", - "type": "image\/png", - "density": 1.5 - }, - { - "src": "\/images\/android-chrome-96x96.png", - "sizes": "96x96", - "type": "image\/png", - "density": 2 - }, - { - "src": "\/images\/android-chrome-144x144.png", - "sizes": "144x144", - "type": "image\/png", - "density": 3 - }, - { - "src": "\/images\/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image\/png", - "density": 4 - } - ] -} + "name": "draw.io", + "icons": [ + { + "src": "/images/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/images/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#d89000", + "background_color": "#d89000", + "display": "standalone" +} \ No newline at end of file diff --git a/war/images/mstile-144x144.png b/war/images/mstile-144x144.png deleted file mode 100644 index ab8149bb09..0000000000 Binary files a/war/images/mstile-144x144.png and /dev/null differ diff --git a/war/images/mstile-150x150.png b/war/images/mstile-150x150.png index 55944e645d..d8bdca4a3f 100644 Binary files a/war/images/mstile-150x150.png and b/war/images/mstile-150x150.png differ diff --git a/war/images/mstile-310x150.png b/war/images/mstile-310x150.png deleted file mode 100644 index 3a7f8fb713..0000000000 Binary files a/war/images/mstile-310x150.png and /dev/null differ diff --git a/war/images/mstile-310x310.png b/war/images/mstile-310x310.png deleted file mode 100644 index 3e0548bbc3..0000000000 Binary files a/war/images/mstile-310x310.png and /dev/null differ diff --git a/war/images/mstile-70x70.png b/war/images/mstile-70x70.png deleted file mode 100644 index c6de3f1fe7..0000000000 Binary files a/war/images/mstile-70x70.png and /dev/null differ diff --git a/war/images/safari-pinned-tab.svg b/war/images/safari-pinned-tab.svg index f760dc4388..ceac93c7d5 100644 --- a/war/images/safari-pinned-tab.svg +++ b/war/images/safari-pinned-tab.svg @@ -2,27 +2,25 @@ Created by potrace 1.11, written by Peter Selinger 2001-2013 - - + diff --git a/war/index.html b/war/index.html index f0ac30e6ae..dfbabbe063 100644 --- a/war/index.html +++ b/war/index.html @@ -102,29 +102,18 @@ })(); } - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + ');mxClient.link("stylesheet",mxClient.basePath+"/css/common.css",a);a.writeln('")};mxPrintPreview.prototype.writePostfix=function(a){}; @@ -1149,25 +1149,25 @@ c.x=k.x,c.y=k.y);null!=g&&(f=new mxCellState,f.x=g.x,f.y=g.y);null!=c&&null!=f&& d.y)||mxUtils.contains(c,a,d.y)||b.push(new mxPoint(a,d.y)):(e=Math.max(c.y,f.y),b.push(new mxPoint(a,e+(Math.min(c.y+c.height,f.y+f.height)-e)/2)))))},TopToBottom:function(a,c,f,d,b){var e=a.view;d=null!=d&&0=c.x&&d.x<=c.x+c.width&&(a=d.x),k=null!=d?d.y:Math.round(g+(k-g)/2),mxUtils.contains(f,a,k)||mxUtils.contains(c,a,k)||b.push(new mxPoint(a,k)),a=null!=d&&d.x>=f.x&&d.x<=f.x+f.width?d.x:e.getRoutingCenterX(f),mxUtils.contains(f,a,k)||mxUtils.contains(c,a,k)||b.push(new mxPoint(a,k)),1==b.length&&(null!=d&&1==b.length?mxUtils.contains(f,d.x,k)||mxUtils.contains(c,d.x,k)||b.push(new mxPoint(d.x,k)):(e=Math.max(c.x,f.x),b.push(new mxPoint(e+(Math.min(c.x+c.width,f.x+f.width)-e)/2,k)))))}, SegmentConnector:function(a,c,f,d,b){function e(a){if(null==l||Math.abs(l.x-a.x)>=k||Math.abs(l.y-a.y)>=k)b.push(a),l=a;return l}var g=a.absolutePoints,k=Math.max(1,a.view.scale),l=0t;t++){var B=null!=x&&x.x==z.x,A=null!=x&&x.y==z.y,C=null!=v&&z.y>=v.y&&z.y<=v.y+ -v.height,v=null!=v&&z.x>=v.x&&z.x<=v.x+v.width,z=A||null==x&&C,y=B||null==x&&v;if(0!=t||!(z&&y||B&&A)){if(null!=x&&!A&&!B&&(C||v)){m=C?!1:!0;break}if(y||z){m=z;1==t&&(m=0==d.length%2?z:y);break}}v=f;x=g[q];null!=x&&(x.x=Math.round(x.x),x.y=Math.round(x.y),v=null);z=d[d.length-1];B&&A&&(d=d.slice(1))}m&&(null!=g[0]&&g[0].y!=n.y||null==g[0]&&null!=c&&(n.yc.y+c.height))?e(new mxPoint(p.x,n.y)):!m&&(null!=g[0]&&g[0].x!=n.x||null==g[0]&&null!=c&&(n.xc.x+c.width))&&e(new mxPoint(n.x, +Math.round(u.x),u.y=Math.round(u.y),n.push(u))}if(0==n.length)return;d=n;null!=p&&null!=d[0]&&(Math.abs(d[0].x-p.x)t;t++){var B=null!=x&&x.x==z.x,y=null!=x&&x.y==z.y,E=null!=v&&z.y>=v.y&&z.y<=v.y+ +v.height,v=null!=v&&z.x>=v.x&&z.x<=v.x+v.width,z=y||null==x&&E,A=B||null==x&&v;if(0!=t||!(z&&A||B&&y)){if(null!=x&&!y&&!B&&(E||v)){m=E?!1:!0;break}if(A||z){m=z;1==t&&(m=0==d.length%2?z:A);break}}v=f;x=g[q];null!=x&&(x.x=Math.round(x.x),x.y=Math.round(x.y),v=null);z=d[d.length-1];B&&y&&(d=d.slice(1))}m&&(null!=g[0]&&g[0].y!=n.y||null==g[0]&&null!=c&&(n.yc.y+c.height))?e(new mxPoint(p.x,n.y)):!m&&(null!=g[0]&&g[0].x!=n.x||null==g[0]&&null!=c&&(n.xc.x+c.width))&&e(new mxPoint(n.x, p.y));m?p.y=n.y:p.x=n.x;for(t=0;tf.y+f.height))?e(new mxPoint(p.x,n.y)):!m&&(null!=g[q]&&g[q].x!=n.x||null==g[q]&&null!=f&&(n.xf.x+f.width))&&e(new mxPoint(n.x,p.y))));if(null==g[0]&&null!=c)for(;1< b.length&&null!=b[1]&&mxUtils.contains(c,b[1].x,b[1].y);)b.splice(1,1);if(null==g[q]&&null!=f)for(;1A;A++)mxEdgeStyle.limits[A][1]= -n[A][0]-y[A],mxEdgeStyle.limits[A][2]=n[A][1]-y[A],mxEdgeStyle.limits[A][4]=n[A][0]+n[A][2]+y[A],mxEdgeStyle.limits[A][8]=n[A][1]+n[A][3]+y[A];y=n[0][1]+n[0][3]/2;p=n[1][1]+n[1][3]/2;A=n[0][0]+n[0][2]/2-(n[1][0]+n[1][2]/2);C=y-p;y=0;0>A?y=0>C?2:1:0>=C&&(y=3,0==A&&(y=2));p=null;null!=c&&(p=l);c=[[.5,.5],[.5,.5]];for(A=0;2>A;A++)null!=p&&(c[A][0]=(p.x-n[A][0])/n[A][2],1>=Math.abs(p.x-n[A][0])?a[A]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(p.x-n[A][0]-n[A][2])&&(a[A]=mxConstants.DIRECTION_MASK_EAST), -c[A][1]=(p.y-n[A][1])/n[A][3],1>=Math.abs(p.y-n[A][1])?a[A]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(p.y-n[A][1]-n[A][3])&&(a[A]=mxConstants.DIRECTION_MASK_SOUTH)),p=null,null!=f&&(p=m);A=n[0][1]-(n[1][1]+n[1][3]);m=n[0][0]-(n[1][0]+n[1][2]);p=n[1][1]-(n[0][1]+n[0][3]);q=n[1][0]-(n[0][0]+n[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(m-B,0);mxEdgeStyle.vertexSeperations[2]=Math.max(A-B,0);mxEdgeStyle.vertexSeperations[4]=Math.max(p-B,0);mxEdgeStyle.vertexSeperations[3]=Math.max(q-B,0);B=[]; -f=[];l=[];f[0]=m>=q?mxConstants.DIRECTION_MASK_WEST:mxConstants.DIRECTION_MASK_EAST;l[0]=A>=p?mxConstants.DIRECTION_MASK_NORTH:mxConstants.DIRECTION_MASK_SOUTH;f[1]=mxUtils.reversePortConstraints(f[0]);l[1]=mxUtils.reversePortConstraints(l[0]);m=m>=q?m:q;p=A>=p?A:p;q=[[0,0],[0,0]];t=!1;for(A=0;2>A;A++)0==a[A]&&(0==(f[A]&d[A])&&(f[A]=mxUtils.reversePortConstraints(f[A])),0==(l[A]&d[A])&&(l[A]=mxUtils.reversePortConstraints(l[A])),q[A][0]=l[A],q[A][1]=f[A]);0A;A++)0==a[A]&&(0==(q[A][0]&d[A])&&(q[A][0]=q[A][1]),B[A]=q[A][0]&d[A],B[A]|=(q[A][1]&d[A])<<8,B[A]|=(q[1-A][A]&d[A])<<16,B[A]|=(q[1-A][1-A]&d[A])<<24,0==(B[A]&15)&&(B[A]<<=8),0==(B[A]&3840)&&(B[A]=B[A]&15|B[A]>>8),0==(B[A]& -983040)&&(B[A]=B[A]&65535|(B[A]&251658240)>>8),a[A]=B[A]&15,d[A]==mxConstants.DIRECTION_MASK_WEST||d[A]==mxConstants.DIRECTION_MASK_NORTH||d[A]==mxConstants.DIRECTION_MASK_EAST||d[A]==mxConstants.DIRECTION_MASK_SOUTH)&&(a[A]=d[A]);d=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];B=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];d-=y;B-=y;1>d&&(d+=4);1>B&&(B+=4);d=mxEdgeStyle.routePatterns[d-1][B-1];mxEdgeStyle.wayPoints1[0][0]=n[0][0];mxEdgeStyle.wayPoints1[0][1]=n[0][1];switch(a[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-= +mxEdgeStyle.orthBuffer))*mxEdgeStyle.orthBuffer):c=2*mxEdgeStyle.orthBuffer);return c},OrthConnector:function(a,c,f,d,b){var e=a.view.graph,g=null==c?!1:e.getModel().isEdge(c.cell),k=null==f?!1:e.getModel().isEdge(f.cell),e=a.absolutePoints,l=e[0],m=e[e.length-1],n=null!=c?c.x:l.x,p=null!=c?c.y:l.y,q=null!=c?c.width:0,t=null!=c?c.height:0,u=null!=f?f.x:m.x,v=null!=f?f.y:m.y,x=null!=f?f.width:0,z=null!=f?f.height:0,e=a.view.scale*mxEdgeStyle.getJettySize(a,c,f,d,!0),A=a.view.scale*mxEdgeStyle.getJettySize(a, +c,f,d,!1);null!=c&&f==c&&(e=A=Math.max(e,A));var B=A+e,y=!1;if(null!=l&&null!=m)var y=m.x-l.x,E=m.y-l.y,y=y*y+E*Ey;y++)mxEdgeStyle.limits[y][1]= +n[y][0]-A[y],mxEdgeStyle.limits[y][2]=n[y][1]-A[y],mxEdgeStyle.limits[y][4]=n[y][0]+n[y][2]+A[y],mxEdgeStyle.limits[y][8]=n[y][1]+n[y][3]+A[y];A=n[0][1]+n[0][3]/2;p=n[1][1]+n[1][3]/2;y=n[0][0]+n[0][2]/2-(n[1][0]+n[1][2]/2);E=A-p;A=0;0>y?A=0>E?2:1:0>=E&&(A=3,0==y&&(A=2));p=null;null!=c&&(p=l);c=[[.5,.5],[.5,.5]];for(y=0;2>y;y++)null!=p&&(c[y][0]=(p.x-n[y][0])/n[y][2],1>=Math.abs(p.x-n[y][0])?a[y]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(p.x-n[y][0]-n[y][2])&&(a[y]=mxConstants.DIRECTION_MASK_EAST), +c[y][1]=(p.y-n[y][1])/n[y][3],1>=Math.abs(p.y-n[y][1])?a[y]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(p.y-n[y][1]-n[y][3])&&(a[y]=mxConstants.DIRECTION_MASK_SOUTH)),p=null,null!=f&&(p=m);y=n[0][1]-(n[1][1]+n[1][3]);m=n[0][0]-(n[1][0]+n[1][2]);p=n[1][1]-(n[0][1]+n[0][3]);q=n[1][0]-(n[0][0]+n[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(m-B,0);mxEdgeStyle.vertexSeperations[2]=Math.max(y-B,0);mxEdgeStyle.vertexSeperations[4]=Math.max(p-B,0);mxEdgeStyle.vertexSeperations[3]=Math.max(q-B,0);B=[]; +f=[];l=[];f[0]=m>=q?mxConstants.DIRECTION_MASK_WEST:mxConstants.DIRECTION_MASK_EAST;l[0]=y>=p?mxConstants.DIRECTION_MASK_NORTH:mxConstants.DIRECTION_MASK_SOUTH;f[1]=mxUtils.reversePortConstraints(f[0]);l[1]=mxUtils.reversePortConstraints(l[0]);m=m>=q?m:q;p=y>=p?y:p;q=[[0,0],[0,0]];t=!1;for(y=0;2>y;y++)0==a[y]&&(0==(f[y]&d[y])&&(f[y]=mxUtils.reversePortConstraints(f[y])),0==(l[y]&d[y])&&(l[y]=mxUtils.reversePortConstraints(l[y])),q[y][0]=l[y],q[y][1]=f[y]);0y;y++)0==a[y]&&(0==(q[y][0]&d[y])&&(q[y][0]=q[y][1]),B[y]=q[y][0]&d[y],B[y]|=(q[y][1]&d[y])<<8,B[y]|=(q[1-y][y]&d[y])<<16,B[y]|=(q[1-y][1-y]&d[y])<<24,0==(B[y]&15)&&(B[y]<<=8),0==(B[y]&3840)&&(B[y]=B[y]&15|B[y]>>8),0==(B[y]& +983040)&&(B[y]=B[y]&65535|(B[y]&251658240)>>8),a[y]=B[y]&15,d[y]==mxConstants.DIRECTION_MASK_WEST||d[y]==mxConstants.DIRECTION_MASK_NORTH||d[y]==mxConstants.DIRECTION_MASK_EAST||d[y]==mxConstants.DIRECTION_MASK_SOUTH)&&(a[y]=d[y]);d=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];B=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];d-=A;B-=A;1>d&&(d+=4);1>B&&(B+=4);d=mxEdgeStyle.routePatterns[d-1][B-1];mxEdgeStyle.wayPoints1[0][0]=n[0][0];mxEdgeStyle.wayPoints1[0][1]=n[0][1];switch(a[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-= e;mxEdgeStyle.wayPoints1[0][1]+=c[0][1]*n[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=c[0][0]*n[0][2];mxEdgeStyle.wayPoints1[0][1]+=n[0][3]+e;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=n[0][2]+e;mxEdgeStyle.wayPoints1[0][1]+=c[0][1]*n[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=c[0][0]*n[0][2],mxEdgeStyle.wayPoints1[0][1]-=e}e=0;f=B=0<(a[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))? -0:1;for(A=0;A>5,p<<=y,15>=4),q=0<(d[A]&mxEdgeStyle.CENTER_MASK),(v||u)&&9>p?(t=v?0:1,p=q&&0==l?n[t][0]+c[t][0]*n[t][2]:q?n[t][1]+c[t][1]* -n[t][3]:mxEdgeStyle.limits[t][p],0==l?(p=(p-mxEdgeStyle.wayPoints1[e][0])*m[0],0b&&(b+=4);1>a&&(a+=4);c=routePatterns[b-1][a-1];0!=f&&0!=d||null==inlineRoutePatterns[b-1][a- +0:1;for(y=0;y>5,p<<=A,15>=4),q=0<(d[y]&mxEdgeStyle.CENTER_MASK),(v||u)&&9>p?(t=v?0:1,p=q&&0==l?n[t][0]+c[t][0]*n[t][2]:q?n[t][1]+c[t][1]* +n[t][3]:mxEdgeStyle.limits[t][p],0==l?(p=(p-mxEdgeStyle.wayPoints1[e][0])*m[0],0b&&(b+=4);1>a&&(a+=4);c=routePatterns[b-1][a-1];0!=f&&0!=d||null==inlineRoutePatterns[b-1][a- 1]||(c=inlineRoutePatterns[b-1][a-1]);return c}},mxStyleRegistry={values:[],putValue:function(a,c){mxStyleRegistry.values[a]=c},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var c in mxStyleRegistry.values)if(mxStyleRegistry.values[c]==a)return c;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation); mxStyleRegistry.putValue(mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry.putValue(mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter); mxStyleRegistry.putValue(mxConstants.PERIMETER_RECTANGLE,mxPerimeter.RectanglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_RHOMBUS,mxPerimeter.RhombusPerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_TRIANGLE,mxPerimeter.TrianglePerimeter);mxStyleRegistry.putValue(mxConstants.PERIMETER_HEXAGON,mxPerimeter.HexagonPerimeter);function mxGraphView(a){this.graph=a;this.translate=new mxPoint;this.graphBounds=new mxRectangle;this.states=new mxDictionary}mxGraphView.prototype=new mxEventSource; @@ -2042,13 +2042,13 @@ e.appendChild(m);mxUtils.write(e,mxResources.get("gridSize")+":");var p=document ":");b.appendChild(e);e=document.createElement("td");var q=document.createElement("a");q.style.textDecoration="underline";q.style.cursor="pointer";q.style.color="#a0a0a0";var t=d.backgroundImage;mxEvent.addListener(q,"click",function(b){a.showBackgroundImageDialog(function(b){t=b;f()});mxEvent.consume(b)});f();e.appendChild(q);b.appendChild(e);k.appendChild(b);b=document.createElement("tr");e=document.createElement("td");e.colSpan=2;e.style.paddingTop="16px";e.setAttribute("align","right");var u= mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});u.className="geBtn";a.editor.cancelFirst&&e.appendChild(u);var v=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();a.setPageFormat(l.get());d.background!=n&&a.setBackgroundColor(n);d.backgroundImage!==t&&a.setBackgroundImage(t);d.gridSize!==p.value&&d.setGridSize(parseInt(p.value))});v.className="geBtn gePrimaryBtn";e.appendChild(v);a.editor.cancelFirst||e.appendChild(u);b.appendChild(e);k.appendChild(b);g.appendChild(k); this.container=g}; -PageSetupDialog.addPageFormatPanel=function(a,c,f,d){function b(b,a,d){if(d||p!=document.activeElement&&q!=document.activeElement){b=!1;for(a=0;a'};var a=mxGraph.prototype.panGraph;mxGraph.prototype.panGraph=function(b,d){a.apply(this,arguments);if(null!=this.shiftPreview1){var e=this.view.canvas;null!= e.ownerSVGElement&&(e=e.ownerSVGElement);var c=this.gridSize*this.view.scale*this.view.gridSteps,c=-Math.round(c-mxUtils.mod(this.view.translate.x*this.view.scale+b,c))+"px "+-Math.round(c-mxUtils.mod(this.view.translate.y*this.view.scale+d,c))+"px";e.style.backgroundPosition=c}};mxGraph.prototype.updatePageBreaks=function(b,a,d){var e=this.view.scale,c=this.view.translate,f=this.pageFormat,g=e*this.pageScale,k=this.view.getBackgroundPageBounds();a=k.width;d=k.height;var l=new mxRectangle(e*c.x,e* -c.y,f.width*g,f.height*g),m=(b=b&&Math.min(l.width,l.height)>this.minPageBreakDist)?Math.ceil(d/l.height)-1:0,z=b?Math.ceil(a/l.width)-1:0,y=k.x+a,B=k.y+d;null==this.horizontalPageBreaks&&0this.minPageBreakDist)?Math.ceil(d/l.height)-1:0,z=b?Math.ceil(a/l.width)-1:0,A=k.x+a,B=k.y+d;null==this.horizontalPageBreaks&&0mxUtils.indexOf(z,y[a])&&z.push(y[a]);var E=function(b, -a){d.getModel().beginUpdate();try{if(a)for(var e=d.getModel().isEdge(k),c=e?d.currentEdgeStyle:d.currentVertexStyle,e=["fontSize","fontFamily","fontColor"],f=0;fmxUtils.indexOf(y,v))&&d.setCellStyles(v,D,[k])}}}finally{d.getModel().endUpdate()}};d.addListener("cellsInserted",function(b,a){E(a.getProperty("cells"))});d.addListener("textInserted",function(b,a){E(a.getProperty("cells"),!0)});d.connectionHandler.addListener(mxEvent.CONNECT, -function(b,a){var d=[a.getProperty("cell")];a.getProperty("terminalInserted")&&d.push(a.getProperty("terminal"));E(d)});this.addListener("styleChanged",mxUtils.bind(this,function(b,a){var e=a.getProperty("cells"),c=!1,f=!1;if(0mxUtils.indexOf(z,A[a])&&z.push(A[a]);var D=function(b, +a){d.getModel().beginUpdate();try{if(a)for(var e=d.getModel().isEdge(k),c=e?d.currentEdgeStyle:d.currentVertexStyle,e=["fontSize","fontFamily","fontColor"],f=0;fmxUtils.indexOf(A,q))&&d.setCellStyles(q,C,[k])}}}finally{d.getModel().endUpdate()}};d.addListener("cellsInserted",function(b,a){D(a.getProperty("cells"))});d.addListener("textInserted",function(b,a){D(a.getProperty("cells"),!0)});d.connectionHandler.addListener(mxEvent.CONNECT, +function(b,a){var d=[a.getProperty("cell")];a.getProperty("terminalInserted")&&d.push(a.getProperty("terminal"));D(d)});this.addListener("styleChanged",mxUtils.bind(this,function(b,a){var e=a.getProperty("cells"),c=!1,f=!1;if(0this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale+.01)/this.view.scale:(this.cumulativeZoomFactor*=this.zoomFactor,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*20)/20/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale-.01)/this.view.scale:(this.cumulativeZoomFactor/= -this.zoomFactor,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*20)/20/this.view.scale);this.cumulativeZoomFactor=Math.max(.01,Math.min(this.view.scale*this.cumulativeZoomFactor,160)/this.view.scale);this.updateZoomTimeout=window.setTimeout(mxUtils.bind(this,function(){this.zoom(this.cumulativeZoomFactor);null!=c&&c(!1);if(null!=A&&mxUtils.hasScrollbars(a.container)){var b=mxUtils.getOffset(a.container),d=a.container.offsetHeight/2-A.y+b.y;a.container.scrollLeft-=(a.container.offsetWidth/ -2-A.x+b.x)*(this.cumulativeZoomFactor-1);a.container.scrollTop-=d*(this.cumulativeZoomFactor-1)}this.cumulativeZoomFactor=1;this.updateZoomTimeout=null}),20)};mxEvent.addMouseWheelListener(mxUtils.bind(this,function(b,d){if((mxEvent.isAltDown(b)||mxEvent.isControlDown(b)&&!mxClient.IS_MAC||a.panningHandler.isActive())&&(null==this.dialogs||0==this.dialogs.length))for(var e=mxEvent.getSource(b);null!=e;){if(e==a.container){A=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b));a.lazyZoom(d);mxEvent.consume(b); +1;var y=null;a.lazyZoom=function(b){null!=this.updateZoomTimeout&&window.clearTimeout(this.updateZoomTimeout);b?.15>this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale+.01)/this.view.scale:(this.cumulativeZoomFactor*=this.zoomFactor,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*20)/20/this.view.scale):.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale-.01)/this.view.scale:(this.cumulativeZoomFactor/= +this.zoomFactor,this.cumulativeZoomFactor=Math.round(this.view.scale*this.cumulativeZoomFactor*20)/20/this.view.scale);this.cumulativeZoomFactor=Math.max(.01,Math.min(this.view.scale*this.cumulativeZoomFactor,160)/this.view.scale);this.updateZoomTimeout=window.setTimeout(mxUtils.bind(this,function(){this.zoom(this.cumulativeZoomFactor);null!=c&&c(!1);if(null!=y&&mxUtils.hasScrollbars(a.container)){var b=mxUtils.getOffset(a.container),d=a.container.offsetHeight/2-y.y+b.y;a.container.scrollLeft-=(a.container.offsetWidth/ +2-y.x+b.x)*(this.cumulativeZoomFactor-1);a.container.scrollTop-=d*(this.cumulativeZoomFactor-1)}this.cumulativeZoomFactor=1;this.updateZoomTimeout=null}),20)};mxEvent.addMouseWheelListener(mxUtils.bind(this,function(b,d){if((mxEvent.isAltDown(b)||mxEvent.isControlDown(b)&&!mxClient.IS_MAC||a.panningHandler.isActive())&&(null==this.dialogs||0==this.dialogs.length))for(var e=mxEvent.getSource(b);null!=e;){if(e==a.container){y=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b));a.lazyZoom(d);mxEvent.consume(b); break}e=e.parentNode}}))};EditorUi.prototype.createTemporaryGraph=function(a){a=new Graph(document.createElement("div"),null,null,a);a.resetViewOnRootChange=!1;a.setConnectable(!1);a.gridEnabled=!1;a.autoScroll=!1;a.setTooltips(!1);a.setEnabled(!1);a.container.style.visibility="hidden";a.container.style.position="absolute";a.container.style.overflow="hidden";a.container.style.height="1px";a.container.style.width="1px";return a}; EditorUi.prototype.addChromelessClickHandler=function(){var a=urlParams.highlight;null!=a&&0N&&null!=l&&!mxEvent.isShiftDown(e)&&(mxUtils.getValue(l.style,mxConstants.STYLE_SHAPE)!=mxUtils.getValue(V,mxConstants.STYLE_SHAPE)&&mxUtils.getValue(l.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||"image"==mxUtils.getValue(V,mxConstants.STYLE_SHAPE)||1500this.dropTargetDelay&&(b.model.isVertex(l.cell)&&null!=n||b.model.isEdge(l.cell)&&b.model.isEdge(d[0]))){z=l;var m=b.model.isEdge(l.cell)?b.view.getPoint(l):new mxPoint(l.getCenterX(), -l.getCenterY()),m=new mxRectangle(m.x-this.refreshTarget.width/2,m.y-this.refreshTarget.height/2,this.refreshTarget.width,this.refreshTarget.height);F.style.left=Math.floor(m.x)+"px";F.style.top=Math.floor(m.y)+"px";null==D&&(b.container.appendChild(F),D=F.parentNode);g(a,c,m,F)}else null==z||!mxUtils.contains(z,a,c)||1500N&&N>this.dropTargetDelay||b.model.isEdge(f)?l:null,null!=v&&m){k=[K,H,B,A,C,E];for(m=0;mN&&N>this.dropTargetDelay||b.model.isEdge(f)?l:null,null!=v&&m){k=[K,G,B,y,E,D];for(m=0;mmxUtils.indexOf(a,e)&&d.push(e)):d.push(a[c])}return d};this.connectionHandler.createTargetVertex=function(b,a){var d=this.graph.view.getState(a),d=null!=d?d.style:this.graph.getCellStyle(a);mxUtils.getValue(d,"part",!1)&&(d=this.graph.model.getParent(a),this.graph.model.isVertex(d)&&(a=d));return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};var p=new mxRubberband(this); this.getRubberband=function(){return p};var q=(new Date).getTime(),t=0,u=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var b=this.currentState;u.apply(this,arguments);b!=this.currentState?(q=(new Date).getTime(),t=0):t=(new Date).getTime()-q};var v=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(b){return null!=this.currentState&&b.getState()==this.currentState&&2E3=b&&q.y+q.height<=l&&q.y>=a&&q.x+q.width<=k&&f.push(p);this.getAllCells(b,a,d,c,p,f)}}}return f};var C=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(b,a,d){return this.graph.isCellSelected(b)? -!1:C.apply(this,arguments)};this.isCellLocked=function(b){for(b=this.view.getState(b);null!=b;){if("1"==mxUtils.getValue(b.style,"locked","0"))return!0;b=this.view.getState(this.model.getParent(b.cell))}return!1};var E=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(b,a){if("mouseDown"==a.getProperty("eventName")){var d=a.getProperty("event").getState();E=null==d||this.isSelectionEmpty()||this.isCellSelected(d.cell)?null:this.getSelectionCells()}}));this.addListener(mxEvent.TAP_AND_HOLD, -mxUtils.bind(this,function(b,a){if(!mxEvent.isMultiTouchEvent(a)){var d=a.getProperty("event"),c=a.getProperty("cell");null==c?(d=mxUtils.convertPoint(this.container,mxEvent.getClientX(d),mxEvent.getClientY(d)),p.start(d.x,d.y)):null!=E?this.addSelectionCells(E):1=b&&t.y+t.height<=l&&t.y>=a&&t.x+t.width<=k&&f.push(p);this.getAllCells(b,a,d,c,p,f)}}}return f};var E=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(b,a,d){return this.graph.isCellSelected(b)? +!1:E.apply(this,arguments)};this.isCellLocked=function(b){for(b=this.view.getState(b);null!=b;){if("1"==mxUtils.getValue(b.style,"locked","0"))return!0;b=this.view.getState(this.model.getParent(b.cell))}return!1};var D=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(b,a){if("mouseDown"==a.getProperty("eventName")){var d=a.getProperty("event").getState();D=null==d||this.isSelectionEmpty()||this.isCellSelected(d.cell)?null:this.getSelectionCells()}}));this.addListener(mxEvent.TAP_AND_HOLD, +mxUtils.bind(this,function(b,a){if(!mxEvent.isMultiTouchEvent(a)){var d=a.getProperty("event"),c=a.getProperty("cell");null==c?(d=mxUtils.convertPoint(this.container,mxEvent.getClientX(d),mxEvent.getClientY(d)),p.start(d.x,d.y)):null!=D?this.addSelectionCells(D):1f||c>f)&&this.clear()}}else"a"==a.getSource().nodeName.toLowerCase()?this.clear():(null==this.currentState||a.getState()!=this.currentState&&null!=a.getState()||!g.intersects(this.currentState,a.getGraphX(),a.getGraphY()))&&this.updateCurrentState(a)},mouseUp:function(b,c){if(!("a"==c.getSource().nodeName.toLowerCase()|| -c.isConsumed()||null!=c.getState()&&c.isSource(c.getState().control))&&(mxEvent.isLeftMouseButton(c.getEvent())||mxEvent.isTouchEvent(c.getEvent())))if(null!=this.currentLink){var e=g.isBlankLink(this.currentLink);e||null==a||a(c.getEvent());e=e?g.linkTarget:"_top";"_self"==e&&window!=window.top?window.location.href=this.currentLink:window.open(this.currentLink,e);c.consume()}else null!=d&&!c.isConsumed()&&Math.abs(this.scrollLeft-g.container.scrollLeft)a&&d[c].deleteCell(a)};Graph.prototype.pasteHtmlAtCaret=function(b){var a;if(window.getSelection){if(a=window.getSelection(),a.getRangeAt&&a.rangeCount){a=a.getRangeAt(0);a.deleteContents();var d=document.createElement("div"); -d.innerHTML=b;b=document.createDocumentFragment();for(var c;c=d.firstChild;)lastNode=b.appendChild(c);a.insertNode(b)}}else(a=document.selection)&&"Control"!=a.type&&a.createRange().pasteHTML(b)};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(b,a){this.popupMenuHandler.hideMenu()});var b=this.updateMouseEvent;this.updateMouseEvent=function(a){a=b.apply(this,arguments); -if(mxEvent.isTouchEvent(a.getEvent())&&null==a.getState()){var d=this.getCellAt(a.graphX,a.graphY);null!=d&&this.isSwimlane(d)&&this.hitsSwimlaneContent(d,a.graphX,a.graphY)||(a.state=this.view.getState(d),null!=a.state&&null!=a.state.shape&&(this.container.style.cursor=a.state.shape.node.style.cursor))}null==a.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return a};var a=!1,d=!1,c=!1,e=this.fireMouseEvent;this.fireMouseEvent=function(b,f,g){b==mxEvent.MOUSE_DOWN&&(f=this.updateMouseEvent(f), -a=this.isCellSelected(f.getCell()),d=this.isSelectionEmpty(),c=this.popupMenuHandler.isMenuShowing());e.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(b,e){this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==e.getState()||!e.isSource(e.getState().control))&&(this.popupMenuHandler.popupTrigger||!c&&!mxEvent.isMouseEvent(e.getEvent())&&(d&&null==e.getCell()&&this.isSelectionEmpty()||a&&this.isCellSelected(e.getCell())));mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler, -arguments)})};mxCellEditor.prototype.isContentEditing=function(){var b=this.graph.view.getState(this.editingCell);return null!=b&&1==b.style.html};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){if(sel=window.getSelection(),sel.getRangeAt&&sel.rangeCount){for(var b=[],a=0,d=sel.rangeCount;a"):k,!0);this.textarea.className="mxCellEditor geContentEditable";var c=mxUtils.getValue(b.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),a=mxUtils.getValue(b.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),e=mxUtils.getValue(b.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),f=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)== -mxConstants.FONT_BOLD,g=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,b=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(c*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(c)+"px";this.textarea.style.textDecoration=b?"underline":"";this.textarea.style.fontWeight= -f?"bold":"normal";this.textarea.style.fontStyle=g?"italic":"";this.textarea.style.fontFamily=a;this.textarea.style.textAlign=e;this.textarea.style.padding="0px";this.textarea.innerHTML!=k&&(this.textarea.innerHTML=k,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0
"));k=this.graph.sanitizeHtml(a?k.replace(/\n/g,"").replace(/<br\s*.?>/g,"
"):k,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";c=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(c*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(c)+ -"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.padding="2px";this.textarea.innerHTML!=k&&(this.textarea.innerHTML=k);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=d;this.resize()};var l=mxCellEditor.prototype.resize; -mxCellEditor.prototype.resize=function(b,a){if(null!=this.textarea)if(b=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=b){var d=b.view.scale;this.bounds=mxRectangle.fromRectangle(b);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*d;this.bounds.height=60*d;var c=null!=b.text?b.text.margin:null;null==c&&(c=mxUtils.getAlignmentAsPoint(mxUtils.getValue(b.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),mxUtils.getValue(b.style,mxConstants.STYLE_VERTICAL_ALIGN, -mxConstants.ALIGN_MIDDLE)));this.bounds.x+=c.x*this.bounds.width;this.bounds.y+=c.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/d)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/d)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight"));return this.graph.sanitizeHtml(d,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue= -function(b){if("0"==mxUtils.getValue(b.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var a=this.graph.sanitizeHtml(this.textarea.innerHTML,!0);return"1"==mxUtils.getValue(b.style,"nl2Br","1")?a.replace(/\r\n/g,"
").replace(/\n/g,"
"):a.replace(/\r\n/g,"").replace(/\n/g,"")};var m=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(b){this.codeViewMode&&this.toggleViewMode();m.apply(this,arguments);try{this.graph.container.focus()}catch(V){}}; -var n=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(b,a){this.graph.getModel().beginUpdate();try{if(n.apply(this,arguments),this.graph.isCellDeletable(b.cell)){var d=mxUtils.getValue(b.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),c=mxUtils.getValue(b.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);""==mxUtils.trim(a||"")&&d==mxConstants.NONE&&c==mxConstants.NONE&&this.graph.removeCells([b.cell],!1)}}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor= -function(b){var a=null;if(this.graph.getModel().isEdge(b.cell)||this.graph.getModel().isEdge(this.graph.getModel().getParent(b.cell)))a=mxUtils.getValue(b.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null),a==mxConstants.NONE&&(a=null);return a};mxCellEditor.prototype.getMinimumSize=function(b){var a=this.graph.getView().scale;return new mxRectangle(0,0,null==b.text?30:b.text.size*a+20,30)};var p=mxGraphHandler.prototype.moveCells;mxGraphHandler.prototype.moveCells=function(b,a,d,c,e,f){mxEvent.isAltDown(f)&& -(e=null);p.apply(this,arguments)};mxGraphHandler.prototype.updateHint=function(b){if(null!=this.shape){null==this.hint&&(this.hint=a(),this.graph.container.appendChild(this.hint));var d=this.graph.view.translate,c=this.graph.view.scale;b=this.roundLength((this.bounds.x+this.currentDx)/c-d.x);d=this.roundLength((this.bounds.y+this.currentDy)/c-d.y);this.hint.innerHTML=b+", "+d;this.hint.style.left=this.shape.bounds.x+Math.round((this.shape.bounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top= -this.shape.bounds.y+this.shape.bounds.height+12+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(this.hint.parentNode.removeChild(this.hint),this.hint=null)};mxVertexHandler.prototype.isRecursiveResize=function(b,a){return!this.graph.isSwimlane(b.cell)&&0f||c>f)&&this.clear()}}else"a"==a.getSource().nodeName.toLowerCase()?this.clear():(null==this.currentState||a.getState()!=this.currentState&&null!=a.getState()|| +!g.intersects(this.currentState,a.getGraphX(),a.getGraphY()))&&this.updateCurrentState(a)},mouseUp:function(b,c){if(!("a"==c.getSource().nodeName.toLowerCase()||c.isConsumed()||null!=c.getState()&&c.isSource(c.getState().control))&&(mxEvent.isLeftMouseButton(c.getEvent())||mxEvent.isTouchEvent(c.getEvent())))if(null!=this.currentLink){var e=g.isBlankLink(this.currentLink);"data:"!==this.currentLink.substring(0,5)&&e||null==a||a(c.getEvent(),this.currentLink);mxEvent.isConsumed(c.getEvent())||(e=e? +g.linkTarget:"_top","_self"==e&&window!=window.top?window.location.href=this.currentLink:window.open(this.currentLink,e),c.consume())}else null!=d&&!c.isConsumed()&&Math.abs(this.scrollLeft-g.container.scrollLeft)a&&d[c].deleteCell(a)};Graph.prototype.pasteHtmlAtCaret=function(b){var a;if(window.getSelection){if(a=window.getSelection(),a.getRangeAt&&a.rangeCount){a=a.getRangeAt(0);a.deleteContents();var d=document.createElement("div");d.innerHTML=b;b=document.createDocumentFragment();for(var c;c=d.firstChild;)lastNode=b.appendChild(c);a.insertNode(b)}}else(a=document.selection)&&"Control"!=a.type&&a.createRange().pasteHTML(b)};Graph.prototype.createLinkForHint= +function(b,a){var d=document.createElement("a");d.setAttribute("href",this.getAbsoluteUrl(b));d.setAttribute("title",b);null!=this.linkTarget&&d.setAttribute("target",this.linkTarget);60"):k,!0);this.textarea.className="mxCellEditor geContentEditable";var c=mxUtils.getValue(b.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),a=mxUtils.getValue(b.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),e=mxUtils.getValue(b.style, +mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),f=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,g=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,b=(mxUtils.getValue(b.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(c*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT; +this.textarea.style.fontSize=Math.round(c)+"px";this.textarea.style.textDecoration=b?"underline":"";this.textarea.style.fontWeight=f?"bold":"normal";this.textarea.style.fontStyle=g?"italic":"";this.textarea.style.fontFamily=a;this.textarea.style.textAlign=e;this.textarea.style.padding="0px";this.textarea.innerHTML!=k&&(this.textarea.innerHTML=k,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0
"));k=this.graph.sanitizeHtml(a?k.replace(/\n/g,"").replace(/<br\s*.?>/g,"
"):k,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";c=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT? +Math.round(c*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(c)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.padding="2px";this.textarea.innerHTML!=k&&(this.textarea.innerHTML=k);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState); +this.switchSelectionState=d;this.resize()};var l=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(b,a){if(null!=this.textarea)if(b=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=b){var d=b.view.scale;this.bounds=mxRectangle.fromRectangle(b);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*d;this.bounds.height=60*d;var c=null!=b.text?b.text.margin:null;null==c&&(c=mxUtils.getAlignmentAsPoint(mxUtils.getValue(b.style,mxConstants.STYLE_ALIGN, +mxConstants.ALIGN_CENTER),mxUtils.getValue(b.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=c.x*this.bounds.width;this.bounds.y+=c.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/d)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/d)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight"));return this.graph.sanitizeHtml(d,!0)}; +mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(b){if("0"==mxUtils.getValue(b.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var a=this.graph.sanitizeHtml(this.textarea.innerHTML,!0);return"1"==mxUtils.getValue(b.style,"nl2Br","1")?a.replace(/\r\n/g,"
").replace(/\n/g,"
"):a.replace(/\r\n/g,"").replace(/\n/g,"")};var m=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(b){this.codeViewMode&& +this.toggleViewMode();m.apply(this,arguments);try{this.graph.container.focus()}catch(V){}};var n=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(b,a){this.graph.getModel().beginUpdate();try{if(n.apply(this,arguments),this.graph.isCellDeletable(b.cell)){var d=mxUtils.getValue(b.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),c=mxUtils.getValue(b.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);""==mxUtils.trim(a||"")&&d==mxConstants.NONE&&c==mxConstants.NONE&& +this.graph.removeCells([b.cell],!1)}}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(b){var a=null;if(this.graph.getModel().isEdge(b.cell)||this.graph.getModel().isEdge(this.graph.getModel().getParent(b.cell)))a=mxUtils.getValue(b.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null),a==mxConstants.NONE&&(a=null);return a};mxCellEditor.prototype.getMinimumSize=function(b){var a=this.graph.getView().scale;return new mxRectangle(0,0,null==b.text?30:b.text.size* +a+20,30)};var p=mxGraphHandler.prototype.moveCells;mxGraphHandler.prototype.moveCells=function(b,a,d,c,e,f){mxEvent.isAltDown(f)&&(e=null);p.apply(this,arguments)};mxGraphHandler.prototype.updateHint=function(b){if(null!=this.shape){null==this.hint&&(this.hint=a(),this.graph.container.appendChild(this.hint));var d=this.graph.view.translate,c=this.graph.view.scale;b=this.roundLength((this.bounds.x+this.currentDx)/c-d.x);d=this.roundLength((this.bounds.y+this.currentDy)/c-d.y);this.hint.innerHTML=b+ +", "+d;this.hint.style.left=this.shape.bounds.x+Math.round((this.shape.bounds.width-this.hint.clientWidth)/2)+"px";this.hint.style.top=this.shape.bounds.y+this.shape.bounds.height+12+"px"}};mxGraphHandler.prototype.removeHint=function(){null!=this.hint&&(this.hint.parentNode.removeChild(this.hint),this.hint=null)};mxVertexHandler.prototype.isRecursiveResize=function(b,a){return!this.graph.isSwimlane(b.cell)&&0=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px", null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)),this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&& (this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),a.consume()}};var u=mxRubberband.prototype.reset;mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);u.apply(this,arguments)};var v=(new Date).getTime(),x=0,z=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(b,a,d,c){z.apply(this,arguments);d!=this.currentTerminalState?(v=(new Date).getTime(), -x=0):x=(new Date).getTime()-v;this.currentTerminalState=d};var y=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent=function(b){return null!=this.currentTerminalState&&b.getState()==this.currentTerminalState&&2E3=this.state.absolutePoints.length-1||this.constructor==mxElbowEdgeHandler&&2==b)?this.graph.getConnectionConstraint(this.state,c,d):null,d=null!=(null!=e?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(d),e):null)?this.fixedHandleImage:null!=e&&null!=c?this.terminalHandleImage:this.handleImage;if(null!=d)return d=new mxImageShape(new mxRectangle(0,0,d.width,d.height),d.src),d.preserveImageAspect= -!1,d;d=mxConstants.HANDLE_SIZE;this.preferHtml&&--d;return new mxRectangleShape(new mxRectangle(0,0,d,d),mxConstants.HANDLE_FILLCOLOR,mxConstants.HANDLE_STROKECOLOR)};var B=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(b,a,d){this.handleImage=a==mxEvent.ROTATION_HANDLE?HoverIcons.prototype.rotationHandle:a==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:this.handleImage;return B.apply(this,arguments)};var A=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox= -function(b){if(null!=b&&1==b.length){var a=this.graph.getModel(),d=a.getParent(b[0]),c=this.graph.getCellGeometry(b[0]);if(a.isEdge(d)&&null!=c&&c.relative&&(a=this.graph.view.getState(b[0]),null!=a&&2>a.width&&2>a.height&&null!=a.text&&null!=a.text.boundingBox))return mxRectangle.fromRectangle(a.text.boundingBox)}return A.apply(this,arguments)};var C=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(b){var a=this.graph.getModel(),d=a.getParent(b.cell), -c=this.graph.getCellGeometry(b.cell);return a.isEdge(d)&&null!=c&&c.relative&&2>b.width&&2>b.height&&null!=b.text&&null!=b.text.boundingBox?(a=b.text.unrotatedBoundingBox||b.text.boundingBox,new mxRectangle(Math.round(a.x),Math.round(a.y),Math.round(a.width),Math.round(a.height))):C.apply(this,arguments)};var E=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(b,a){var d=this.graph.getModel(),c=d.getParent(this.state.cell),e=this.graph.getCellGeometry(this.state.cell); -(this.getHandleForEvent(a)==mxEvent.ROTATION_HANDLE||!d.isEdge(c)||null==e||!e.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&E.apply(this,arguments)};mxVertexHandler.prototype.isRotationHandleVisible=function(){return this.graph.isEnabled()&&this.rotationEnabled&&this.graph.isCellRotatable(this.state.cell)&&(0>=mxGraphHandler.prototype.maxCells||this.graph.getSelectionCount()a.width&&2>a.height&&null!=a.text&&null!=a.text.boundingBox))return mxRectangle.fromRectangle(a.text.boundingBox)}return y.apply(this,arguments)};var E=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(b){var a=this.graph.getModel(),d=a.getParent(b.cell), +c=this.graph.getCellGeometry(b.cell);return a.isEdge(d)&&null!=c&&c.relative&&2>b.width&&2>b.height&&null!=b.text&&null!=b.text.boundingBox?(a=b.text.unrotatedBoundingBox||b.text.boundingBox,new mxRectangle(Math.round(a.x),Math.round(a.y),Math.round(a.width),Math.round(a.height))):E.apply(this,arguments)};var D=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(b,a){var d=this.graph.getModel(),c=d.getParent(this.state.cell),e=this.graph.getCellGeometry(this.state.cell); +(this.getHandleForEvent(a)==mxEvent.ROTATION_HANDLE||!d.isEdge(c)||null==e||!e.relative||null==this.state||2<=this.state.width||2<=this.state.height)&&D.apply(this,arguments)};mxVertexHandler.prototype.isRotationHandleVisible=function(){return this.graph.isEnabled()&&this.rotationEnabled&&this.graph.isCellRotatable(this.state.cell)&&(0>=mxGraphHandler.prototype.maxCells||this.graph.getSelectionCount()"+d.cellEditor.textarea.innerHTML+"

"),c=d.cellEditor.textarea.firstChild);null!=c&&c!=d.cellEditor.textarea&&(c.style.lineHeight=a+"%");b.value=a+" %"},function(b){ka=b;mxEvent.addListener(b,"mousedown",function(){fa=d.cellEditor.saveSelection()}); mxEvent.addListener(b,"touchstart",function(){fa=d.cellEditor.saveSelection()});b.value="120 %"}));g=e.cloneNode(!1);g.style.paddingLeft="0px";k=this.editorUi.toolbar.addItems(["link","image"],g,!0);p=[this.editorUi.toolbar.addButton("geSprite-horizontalrule",mxResources.get("insertHorizontalRule"),function(){document.execCommand("inserthorizontalrule",!1,null)},g),this.editorUi.toolbar.addMenuFunctionInContainer(g,"geSprite-table",mxResources.get("table"),!1,mxUtils.bind(this,function(b){this.editorUi.menus.addInsertTableItem(b)}))]; -this.styleButtons(k);this.styleButtons(p);k=this.createPanel();k.style.paddingTop="10px";k.style.paddingBottom="10px";k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(g);a.appendChild(k);mxClient.IS_QUIRKS&&(k.style.height="70");k=e.cloneNode(!1);k.style.paddingLeft="0px";p=[this.editorUi.toolbar.addButton("geSprite-insertcolumnbefore",mxResources.get("insertColumnBefore"),function(){try{null!=F&&d.selectNode(d.insertColumn(F,null!=D?D.cellIndex:0))}catch(ia){alert(ia)}},k), -this.editorUi.toolbar.addButton("geSprite-insertcolumnafter",mxResources.get("insertColumnAfter"),function(){try{null!=F&&d.selectNode(d.insertColumn(F,null!=D?D.cellIndex+1:-1))}catch(ia){alert(ia)}},k),this.editorUi.toolbar.addButton("geSprite-deletecolumn",mxResources.get("deleteColumn"),function(){try{null!=F&&null!=D&&d.deleteColumn(F,D.cellIndex)}catch(ia){alert(ia)}},k),this.editorUi.toolbar.addButton("geSprite-insertrowbefore",mxResources.get("insertRowBefore"),function(){try{null!=F&&null!= +this.styleButtons(k);this.styleButtons(p);k=this.createPanel();k.style.paddingTop="10px";k.style.paddingBottom="10px";k.appendChild(this.createTitle(mxResources.get("insert")));k.appendChild(g);a.appendChild(k);mxClient.IS_QUIRKS&&(k.style.height="70");k=e.cloneNode(!1);k.style.paddingLeft="0px";p=[this.editorUi.toolbar.addButton("geSprite-insertcolumnbefore",mxResources.get("insertColumnBefore"),function(){try{null!=F&&d.selectNode(d.insertColumn(F,null!=C?C.cellIndex:0))}catch(ia){alert(ia)}},k), +this.editorUi.toolbar.addButton("geSprite-insertcolumnafter",mxResources.get("insertColumnAfter"),function(){try{null!=F&&d.selectNode(d.insertColumn(F,null!=C?C.cellIndex+1:-1))}catch(ia){alert(ia)}},k),this.editorUi.toolbar.addButton("geSprite-deletecolumn",mxResources.get("deleteColumn"),function(){try{null!=F&&null!=C&&d.deleteColumn(F,C.cellIndex)}catch(ia){alert(ia)}},k),this.editorUi.toolbar.addButton("geSprite-insertrowbefore",mxResources.get("insertRowBefore"),function(){try{null!=F&&null!= K&&d.selectNode(d.insertRow(F,K.sectionRowIndex))}catch(ia){alert(ia)}},k),this.editorUi.toolbar.addButton("geSprite-insertrowafter",mxResources.get("insertRowAfter"),function(){try{null!=F&&null!=K&&d.selectNode(d.insertRow(F,K.sectionRowIndex+1))}catch(ia){alert(ia)}},k),this.editorUi.toolbar.addButton("geSprite-deleterow",mxResources.get("deleteRow"),function(){try{null!=F&&null!=K&&d.deleteRow(F,K.sectionRowIndex)}catch(ia){alert(ia)}},k)];this.styleButtons(p);p[2].style.marginRight="9px";g=this.createPanel(); g.style.paddingTop="10px";g.style.paddingBottom="10px";g.appendChild(this.createTitle(mxResources.get("table")));g.appendChild(k);mxClient.IS_QUIRKS&&(mxUtils.br(a),g.style.height="70");e=e.cloneNode(!1);e.style.paddingLeft="0px";p=[this.editorUi.toolbar.addButton("geSprite-strokecolor",mxResources.get("borderColor"),mxUtils.bind(this,function(){if(null!=F){var b=F.style.borderColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(b,a,d,c){return"#"+("0"+Number(a).toString(16)).substr(-2)+ ("0"+Number(d).toString(16)).substr(-2)+("0"+Number(c).toString(16)).substr(-2)});this.editorUi.pickColor(b,function(b){null==b||b==mxConstants.NONE?(F.removeAttribute("border"),F.style.border="",F.style.borderCollapse=""):(F.setAttribute("border","1"),F.style.border="1px solid "+b,F.style.borderCollapse="collapse")})}}),e),this.editorUi.toolbar.addButton("geSprite-fillcolor",mxResources.get("backgroundColor"),mxUtils.bind(this,function(){if(null!=F){var b=F.style.backgroundColor.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g, function(b,a,d,c){return"#"+("0"+Number(a).toString(16)).substr(-2)+("0"+Number(d).toString(16)).substr(-2)+("0"+Number(c).toString(16)).substr(-2)});this.editorUi.pickColor(b,function(b){F.style.backgroundColor=null==b||b==mxConstants.NONE?"":b})}}),e),this.editorUi.toolbar.addButton("geSprite-fit",mxResources.get("spacing"),function(){if(null!=F){var b=F.getAttribute("cellPadding")||0,b=new FilenameDialog(f,b,mxResources.get("apply"),mxUtils.bind(this,function(b){null!=b&&0'+mxUtils.htmlEntities(mxResources.get("none"))+"";"connector"==e.style.shape?(this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW, "startFill"],[mxConstants.ARROW_CLASSIC,1],"geIcon geSprite geSprite-startclassic",null,!1).setAttribute("title",mxResources.get("classic")),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_CLASSIC_THIN,1],"geIcon geSprite geSprite-startclassicthin",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN,0],"geIcon geSprite geSprite-startopen",null,!1).setAttribute("title",mxResources.get("openArrow")), this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_OPEN_THIN,0],"geIcon geSprite geSprite-startopenthin",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW,"startFill"],["openAsync",0],"geIcon geSprite geSprite-startopenasync",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW,"startFill"],[mxConstants.ARROW_BLOCK,1],"geIcon geSprite geSprite-startblock",null,!1).setAttribute("title",mxResources.get("block")), @@ -2986,7 +2987,7 @@ mxResources.get("block")),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants. "",[mxConstants.STYLE_STARTARROW,"startFill"],["dash",0],"geIcon geSprite geSprite-startdash",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW,"startFill"],["cross",0],"geIcon geSprite geSprite-startcross",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW,"startFill"],["circlePlus",0],"geIcon geSprite geSprite-startcircleplus",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW,"startFill"],["circle",1],"geIcon geSprite geSprite-startcircle", null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERone",0],"geIcon geSprite geSprite-starterone",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERmandOne",0],"geIcon geSprite geSprite-starteronetoone",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERmany",0],"geIcon geSprite geSprite-startermany",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW, "startFill"],["ERoneToMany",0],"geIcon geSprite geSprite-starteronetomany",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERzeroToOne",1],"geIcon geSprite geSprite-starteroneopt",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW,"startFill"],["ERzeroToMany",1],"geIcon geSprite geSprite-startermanyopt",null,!1)):this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_STARTARROW],[mxConstants.ARROW_BLOCK],"geIcon geSprite geSprite-startblocktrans", -null,!1).setAttribute("title",mxResources.get("block"))}})),E=this.editorUi.toolbar.addMenuFunctionInContainer(l,"geSprite-endclassic",mxResources.get("lineend"),!1,mxUtils.bind(this,function(b){if("connector"==e.style.shape||"flexArrow"==e.style.shape){var a=this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.NONE,0],"geIcon",null,!1);a.setAttribute("title",mxResources.get("none"));a.firstChild.firstChild.innerHTML=''+mxUtils.htmlEntities(mxResources.get("none"))+ +null,!1).setAttribute("title",mxResources.get("block"))}})),D=this.editorUi.toolbar.addMenuFunctionInContainer(l,"geSprite-endclassic",mxResources.get("lineend"),!1,mxUtils.bind(this,function(b){if("connector"==e.style.shape||"flexArrow"==e.style.shape){var a=this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.NONE,0],"geIcon",null,!1);a.setAttribute("title",mxResources.get("none"));a.firstChild.firstChild.innerHTML=''+mxUtils.htmlEntities(mxResources.get("none"))+ "";"connector"==e.style.shape?(this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC,1],"geIcon geSprite geSprite-endclassic",null,!1).setAttribute("title",mxResources.get("classic")),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_CLASSIC_THIN,1],"geIcon geSprite geSprite-endclassicthin",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN, 0],"geIcon geSprite geSprite-endopen",null,!1).setAttribute("title",mxResources.get("openArrow")),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OPEN_THIN,0],"geIcon geSprite geSprite-endopenthin",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],["openAsync",0],"geIcon geSprite geSprite-endopenasync",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK, 1],"geIcon geSprite geSprite-endblock",null,!1).setAttribute("title",mxResources.get("block")),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_BLOCK_THIN,1],"geIcon geSprite geSprite-endblockthin",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],["async",1],"geIcon geSprite geSprite-endasync",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],[mxConstants.ARROW_OVAL,1], @@ -2997,20 +2998,20 @@ null,!1).setAttribute("title",mxResources.get("oval")),this.editorUi.menus.edgeS "",[mxConstants.STYLE_ENDARROW,"endFill"],["dash",0],"geIcon geSprite geSprite-enddash",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],["cross",0],"geIcon geSprite geSprite-endcross",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circlePlus",0],"geIcon geSprite geSprite-endcircleplus",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],["circle",1],"geIcon geSprite geSprite-endcircle", null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERone",0],"geIcon geSprite geSprite-enderone",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmandOne",0],"geIcon geSprite geSprite-enderonetoone",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERmany",0],"geIcon geSprite geSprite-endermany",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"], ["ERoneToMany",0],"geIcon geSprite geSprite-enderonetomany",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToOne",1],"geIcon geSprite geSprite-enderoneopt",null,!1),this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW,"endFill"],["ERzeroToMany",1],"geIcon geSprite geSprite-endermanyopt",null,!1)):this.editorUi.menus.edgeStyleChange(b,"",[mxConstants.STYLE_ENDARROW],[mxConstants.ARROW_BLOCK],"geIcon geSprite geSprite-endblocktrans", -null,!1).setAttribute("title",mxResources.get("block"))}}));this.addArrow(v,8);this.addArrow(A);this.addArrow(C);this.addArrow(E);y=this.addArrow(m,9);y.className="geIcon";y.style.width="84px";B=this.addArrow(n,9);B.className="geIcon";B.style.width="22px";var F=document.createElement("div");F.style.width="85px";F.style.height="1px";F.style.borderBottom="1px solid black";F.style.marginBottom="9px";y.appendChild(F);var D=document.createElement("div");D.style.width="23px";D.style.height="1px";D.style.borderBottom= -"1px solid black";D.style.marginBottom="9px";B.appendChild(D);m.style.height="15px";n.style.height="15px";v.style.height="15px";A.style.height="17px";C.style.marginLeft="3px";C.style.height="17px";E.style.marginLeft="3px";E.style.height="17px";a.appendChild(g);a.appendChild(u);a.appendChild(q);m=q.cloneNode(!1);m.style.paddingBottom="6px";m.style.paddingTop="4px";m.style.fontWeight="normal";n=document.createElement("div");n.style.position="absolute";n.style.marginLeft="3px";n.style.marginBottom="12px"; -n.style.marginTop="2px";n.style.fontWeight="normal";n.style.width="76px";mxUtils.write(n,mxResources.get("lineend"));m.appendChild(n);var K,H,J=this.addUnitInput(m,"pt",74,33,function(){K.apply(this,arguments)}),I=this.addUnitInput(m,"pt",20,33,function(){H.apply(this,arguments)});mxUtils.br(m);y=document.createElement("div");y.style.height="8px";m.appendChild(y);n=n.cloneNode(!1);mxUtils.write(n,mxResources.get("linestart"));m.appendChild(n);var L,M,Q=this.addUnitInput(m,"pt",74,33,function(){L.apply(this, +null,!1).setAttribute("title",mxResources.get("block"))}}));this.addArrow(v,8);this.addArrow(y);this.addArrow(E);this.addArrow(D);A=this.addArrow(m,9);A.className="geIcon";A.style.width="84px";B=this.addArrow(n,9);B.className="geIcon";B.style.width="22px";var F=document.createElement("div");F.style.width="85px";F.style.height="1px";F.style.borderBottom="1px solid black";F.style.marginBottom="9px";A.appendChild(F);var C=document.createElement("div");C.style.width="23px";C.style.height="1px";C.style.borderBottom= +"1px solid black";C.style.marginBottom="9px";B.appendChild(C);m.style.height="15px";n.style.height="15px";v.style.height="15px";y.style.height="17px";E.style.marginLeft="3px";E.style.height="17px";D.style.marginLeft="3px";D.style.height="17px";a.appendChild(g);a.appendChild(u);a.appendChild(q);m=q.cloneNode(!1);m.style.paddingBottom="6px";m.style.paddingTop="4px";m.style.fontWeight="normal";n=document.createElement("div");n.style.position="absolute";n.style.marginLeft="3px";n.style.marginBottom="12px"; +n.style.marginTop="2px";n.style.fontWeight="normal";n.style.width="76px";mxUtils.write(n,mxResources.get("lineend"));m.appendChild(n);var K,G,J=this.addUnitInput(m,"pt",74,33,function(){K.apply(this,arguments)}),I=this.addUnitInput(m,"pt",20,33,function(){G.apply(this,arguments)});mxUtils.br(m);A=document.createElement("div");A.style.height="8px";m.appendChild(A);n=n.cloneNode(!1);mxUtils.write(n,mxResources.get("linestart"));m.appendChild(n);var L,M,Q=this.addUnitInput(m,"pt",74,33,function(){L.apply(this, arguments)}),W=this.addUnitInput(m,"pt",20,33,function(){M.apply(this,arguments)});mxUtils.br(m);this.addLabel(m,mxResources.get("spacing"),74,50);this.addLabel(m,mxResources.get("size"),20,50);mxUtils.br(m);g=g.cloneNode(!1);g.style.fontWeight="normal";g.style.position="relative";g.style.paddingLeft="16px";g.style.marginBottom="2px";g.style.marginTop="6px";g.style.borderWidth="0px";g.style.paddingBottom="18px";n=document.createElement("div");n.style.position="absolute";n.style.marginLeft="3px";n.style.marginBottom= -"12px";n.style.marginTop="1px";n.style.fontWeight="normal";n.style.width="120px";mxUtils.write(n,mxResources.get("perimeter"));g.appendChild(n);var N,G=this.addUnitInput(g,"pt",20,41,function(){N.apply(this,arguments)});e.edges.length==b.getSelectionCount()?(a.appendChild(l),mxClient.IS_QUIRKS&&(mxUtils.br(a),mxUtils.br(a)),a.appendChild(m)):e.vertices.length==b.getSelectionCount()&&(mxClient.IS_QUIRKS&&mxUtils.br(a),a.appendChild(g));var V=mxUtils.bind(this,function(a,c,f){function g(b,a,c,f){c= +"12px";n.style.marginTop="1px";n.style.fontWeight="normal";n.style.width="120px";mxUtils.write(n,mxResources.get("perimeter"));g.appendChild(n);var N,H=this.addUnitInput(g,"pt",20,41,function(){N.apply(this,arguments)});e.edges.length==b.getSelectionCount()?(a.appendChild(l),mxClient.IS_QUIRKS&&(mxUtils.br(a),mxUtils.br(a)),a.appendChild(m)):e.vertices.length==b.getSelectionCount()&&(mxClient.IS_QUIRKS&&mxUtils.br(a),a.appendChild(g));var V=mxUtils.bind(this,function(a,c,f){function g(b,a,c,f){c= c.getElementsByTagName("div")[0];c.className=d.getCssClassForMarker(f,e.style.shape,b,a);"geSprite geSprite-noarrow"==c.className&&(c.innerHTML=mxUtils.htmlEntities(mxResources.get("none")),c.style.backgroundImage="none",c.style.verticalAlign="top",c.style.marginTop="5px",c.style.fontSize="10px",c.nextSibling.style.marginTop="0px");return c}e=this.format.getSelectionState();mxUtils.getValue(e.style,p,null);if(f||document.activeElement!=x)a=parseInt(mxUtils.getValue(e.style,mxConstants.STYLE_STROKEWIDTH, 1)),x.value=isNaN(a)?"":a+" pt";if(f||document.activeElement!=z)a=parseInt(mxUtils.getValue(e.style,mxConstants.STYLE_STROKEWIDTH,1)),z.value=isNaN(a)?"":a+" pt";k.style.visibility="connector"==e.style.shape?"":"hidden";"1"==mxUtils.getValue(e.style,mxConstants.STYLE_CURVED,null)?k.value="curved":"1"==mxUtils.getValue(e.style,mxConstants.STYLE_ROUNDED,null)&&(k.value="rounded");"1"==mxUtils.getValue(e.style,mxConstants.STYLE_DASHED,null)?null==mxUtils.getValue(e.style,mxConstants.STYLE_DASH_PATTERN, -null)?F.style.borderBottom="1px dashed black":F.style.borderBottom="1px dotted black":F.style.borderBottom="1px solid black";D.style.borderBottom=F.style.borderBottom;a=A.getElementsByTagName("div")[0];c=mxUtils.getValue(e.style,mxConstants.STYLE_EDGE,null);"1"==mxUtils.getValue(e.style,mxConstants.STYLE_NOEDGESTYLE,null)&&(c=null);"orthogonalEdgeStyle"==c&&"1"==mxUtils.getValue(e.style,mxConstants.STYLE_CURVED,null)?a.className="geSprite geSprite-curved":a.className="straight"==c||"none"==c||null== +null)?F.style.borderBottom="1px dashed black":F.style.borderBottom="1px dotted black":F.style.borderBottom="1px solid black";C.style.borderBottom=F.style.borderBottom;a=y.getElementsByTagName("div")[0];c=mxUtils.getValue(e.style,mxConstants.STYLE_EDGE,null);"1"==mxUtils.getValue(e.style,mxConstants.STYLE_NOEDGESTYLE,null)&&(c=null);"orthogonalEdgeStyle"==c&&"1"==mxUtils.getValue(e.style,mxConstants.STYLE_CURVED,null)?a.className="geSprite geSprite-curved":a.className="straight"==c||"none"==c||null== c?"geSprite geSprite-straight":"entityRelationEdgeStyle"==c?"geSprite geSprite-entity":"elbowEdgeStyle"==c?"geSprite "+("vertical"==mxUtils.getValue(e.style,mxConstants.STYLE_ELBOW,null)?"geSprite-verticalelbow":"geSprite-horizontalelbow"):"isometricEdgeStyle"==c?"geSprite "+("vertical"==mxUtils.getValue(e.style,mxConstants.STYLE_ELBOW,null)?"geSprite-verticalisometric":"geSprite-horizontalisometric"):"geSprite geSprite-orthogonal";v.getElementsByTagName("div")[0].className="link"==e.style.shape? -"geSprite geSprite-linkedge":"flexArrow"==e.style.shape?"geSprite geSprite-arrow":"arrow"==e.style.shape?"geSprite geSprite-simplearrow":"geSprite geSprite-connection";e.edges.length==b.getSelectionCount()?(u.style.display="",q.style.display="none"):(u.style.display="none",q.style.display="");a=g(mxUtils.getValue(e.style,mxConstants.STYLE_STARTARROW,null),mxUtils.getValue(e.style,"startFill","1"),C,"start");c=g(mxUtils.getValue(e.style,mxConstants.STYLE_ENDARROW,null),mxUtils.getValue(e.style,"endFill", -"1"),E,"end");"arrow"==e.style.shape?(a.className="geSprite geSprite-noarrow",c.className="geSprite geSprite-endblocktrans"):"link"==e.style.shape&&(a.className="geSprite geSprite-noarrow",c.className="geSprite geSprite-noarrow");mxUtils.setOpacity(A,"arrow"==e.style.shape?30:100);"connector"!=e.style.shape&&"flexArrow"!=e.style.shape?(mxUtils.setOpacity(C,30),mxUtils.setOpacity(E,30)):(mxUtils.setOpacity(C,100),mxUtils.setOpacity(E,100));if(f||document.activeElement!=W)a=parseInt(mxUtils.getValue(e.style, +"geSprite geSprite-linkedge":"flexArrow"==e.style.shape?"geSprite geSprite-arrow":"arrow"==e.style.shape?"geSprite geSprite-simplearrow":"geSprite geSprite-connection";e.edges.length==b.getSelectionCount()?(u.style.display="",q.style.display="none"):(u.style.display="none",q.style.display="");a=g(mxUtils.getValue(e.style,mxConstants.STYLE_STARTARROW,null),mxUtils.getValue(e.style,"startFill","1"),E,"start");c=g(mxUtils.getValue(e.style,mxConstants.STYLE_ENDARROW,null),mxUtils.getValue(e.style,"endFill", +"1"),D,"end");"arrow"==e.style.shape?(a.className="geSprite geSprite-noarrow",c.className="geSprite geSprite-endblocktrans"):"link"==e.style.shape&&(a.className="geSprite geSprite-noarrow",c.className="geSprite geSprite-noarrow");mxUtils.setOpacity(y,"arrow"==e.style.shape?30:100);"connector"!=e.style.shape&&"flexArrow"!=e.style.shape?(mxUtils.setOpacity(E,30),mxUtils.setOpacity(D,30)):(mxUtils.setOpacity(E,100),mxUtils.setOpacity(D,100));if(f||document.activeElement!=W)a=parseInt(mxUtils.getValue(e.style, mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE)),W.value=isNaN(a)?"":a+" pt";if(f||document.activeElement!=Q)a=parseInt(mxUtils.getValue(e.style,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0)),Q.value=isNaN(a)?"":a+" pt";if(f||document.activeElement!=I)a=parseInt(mxUtils.getValue(e.style,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE)),I.value=isNaN(a)?"":a+" pt";if(f||document.activeElement!=Q)a=parseInt(mxUtils.getValue(e.style,mxConstants.STYLE_TARGET_PERIMETER_SPACING,0)), -J.value=isNaN(a)?"":a+" pt";if(f||document.activeElement!=G)a=parseInt(mxUtils.getValue(e.style,mxConstants.STYLE_PERIMETER_SPACING,0)),G.value=isNaN(a)?"":a+" pt"});M=this.installInputHandler(W,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999," pt");L=this.installInputHandler(Q,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0,-999,999," pt");H=this.installInputHandler(I,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999," pt");K=this.installInputHandler(J,mxConstants.STYLE_TARGET_PERIMETER_SPACING, -0,-999,999," pt");N=this.installInputHandler(G,mxConstants.STYLE_PERIMETER_SPACING,0,0,999," pt");this.addKeyHandler(x,V);this.addKeyHandler(W,V);this.addKeyHandler(Q,V);this.addKeyHandler(I,V);this.addKeyHandler(J,V);this.addKeyHandler(G,V);b.getModel().addListener(mxEvent.CHANGE,V);this.listeners.push({destroy:function(){b.getModel().removeListener(V)}});V();return a}; +J.value=isNaN(a)?"":a+" pt";if(f||document.activeElement!=H)a=parseInt(mxUtils.getValue(e.style,mxConstants.STYLE_PERIMETER_SPACING,0)),H.value=isNaN(a)?"":a+" pt"});M=this.installInputHandler(W,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999," pt");L=this.installInputHandler(Q,mxConstants.STYLE_SOURCE_PERIMETER_SPACING,0,-999,999," pt");G=this.installInputHandler(I,mxConstants.STYLE_ENDSIZE,mxConstants.DEFAULT_MARKERSIZE,0,999," pt");K=this.installInputHandler(J,mxConstants.STYLE_TARGET_PERIMETER_SPACING, +0,-999,999," pt");N=this.installInputHandler(H,mxConstants.STYLE_PERIMETER_SPACING,0,0,999," pt");this.addKeyHandler(x,V);this.addKeyHandler(W,V);this.addKeyHandler(Q,V);this.addKeyHandler(I,V);this.addKeyHandler(J,V);this.addKeyHandler(H,V);b.getModel().addListener(mxEvent.CHANGE,V);this.listeners.push({destroy:function(){b.getModel().removeListener(V)}});V();return a}; StyleFormatPanel.prototype.addEffects=function(a){var c=this.editorUi.editor.graph,f=this.format.getSelectionState();a.style.paddingTop="0px";a.style.paddingBottom="2px";var d=document.createElement("table");mxClient.IS_QUIRKS&&(d.style.fontSize="1em");d.style.width="100%";d.style.fontWeight="bold";d.style.paddingRight="20px";var b=document.createElement("tbody"),e=document.createElement("tr");e.style.padding="0px";var g=document.createElement("td");g.style.padding="0px";g.style.width="50%";g.setAttribute("valign", "top");var k=g.cloneNode(!0);k.style.paddingLeft="8px";e.appendChild(g);e.appendChild(k);b.appendChild(e);d.appendChild(b);a.appendChild(d);var l=g,m=0,n=mxUtils.bind(this,function(b,a,d){b=this.createCellOption(b,a,d);b.style.width="100%";l.appendChild(b);l=l==g?k:g;m++}),p=mxUtils.bind(this,function(b,d,c){f=this.format.getSelectionState();g.innerHTML="";k.innerHTML="";l=g;f.rounded&&n(mxResources.get("rounded"),mxConstants.STYLE_ROUNDED,0);"swimlane"==f.style.shape&&n(mxResources.get("divider"), "swimlaneLine",1);f.containsImage||n(mxResources.get("shadow"),mxConstants.STYLE_SHADOW,0);f.glass&&n(mxResources.get("glass"),mxConstants.STYLE_GLASS,0);f.comic&&n(mxResources.get("comic"),"comic",0);0==m&&(a.style.display="none")});c.getModel().addListener(mxEvent.CHANGE,p);this.listeners.push({destroy:function(){c.getModel().removeListener(p)}});p();return a}; @@ -3076,9 +3077,9 @@ Toolbar.prototype.createLabel=function(a,c){var f=document.createElement("a");f. Toolbar.prototype.addMenuHandler=function(a,c,f,d){if(null!=f){var b=this.editorUi.editor.graph,e=null,g=!0;mxEvent.addListener(a,"click",mxUtils.bind(this,function(k){if(g&&(null==a.enabled||a.enabled)){b.popupMenuHandler.hideMenu();e=new mxPopupMenu(f);e.div.className+=" geToolbarMenu";e.showDisabled=d;e.labels=c;e.autoExpand=!0;var l=mxUtils.getOffset(a);e.popup(l.x,l.y+a.offsetHeight,null,k);this.editorUi.setCurrentMenu(e,a);!c&&e.div.scrollHeight>e.div.clientHeight&&(e.div.style.width="40px"); e.addListener(mxEvent.EVENT_HIDE,mxUtils.bind(this,function(){this.currentElt=null}))}g=!0;mxEvent.consume(k)}));mxEvent.addListener(a,"mousedown",mxUtils.bind(this,function(b){g=this.currentElt!=a;null!=document.documentMode&&9<=document.documentMode&&b.preventDefault()}))}};Toolbar.prototype.destroy=function(){null!=this.gestureHandler&&(mxEvent.removeGestureListeners(document,this.gestureHandler),this.gestureHandler=null)}; var OpenDialog=function(){var a=document.createElement("iframe");a.style.backgroundColor="transparent";a.allowTransparency="true";a.style.borderStyle="none";a.style.borderWidth="0px";a.style.overflow="hidden";a.frameBorder="0";var c=mxClient.IS_VML&&(null==document.documentMode||8>document.documentMode)?20:0;a.setAttribute("width",(Editor.useLocalStorage?640:320)+c+"px");a.setAttribute("height",(Editor.useLocalStorage?480:220)+c+"px");a.setAttribute("src",OPEN_FORM);this.container=a},ColorDialog= -function(a,c,f,d){function b(){var b=e(0==ColorDialog.recentColors.length?["FFFFFF"]:ColorDialog.recentColors,11,"FFFFFF",!0);b.style.marginBottom="8px";return b}function e(a,d,c,e){d=null!=d?d:12;var f=document.createElement("table");f.style.borderCollapse="collapse";f.setAttribute("cellspacing","0");f.style.marginBottom="20px";f.style.cellSpacing="0px";var l=document.createElement("tbody");f.appendChild(l);for(var n=a.length/d,p=0;p=parseInt(q.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var b= -n.value,c=p.value,e=Math.max(0,parseFloat(q.value)||100)/100,f=Math.max(0,parseInt(x.value)),g=d.background;if(("svg"==c||"png"==c)&&v.checked)g=null;else if(null==g||g==mxConstants.NONE)g="#ffffff";ExportDialog.lastBorderValue=f;ExportDialog.exportFile(a,b,c,g,e,f)}}));z.className="geBtn gePrimaryBtn";var y=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});y.className="geBtn";a.editor.cancelFirst?(l.appendChild(y),l.appendChild(z)):(l.appendChild(z),l.appendChild(y));b.appendChild(l); +n.value,c=p.value,e=Math.max(0,parseFloat(q.value)||100)/100,f=Math.max(0,parseInt(x.value)),g=d.background;if(("svg"==c||"png"==c)&&v.checked)g=null;else if(null==g||g==mxConstants.NONE)g="#ffffff";ExportDialog.lastBorderValue=f;ExportDialog.exportFile(a,b,c,g,e,f)}}));z.className="geBtn gePrimaryBtn";var A=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});A.className="geBtn";a.editor.cancelFirst?(l.appendChild(A),l.appendChild(z)):(l.appendChild(z),l.appendChild(A));b.appendChild(l); m.appendChild(b);e.appendChild(m);this.container=e};ExportDialog.lastBorderValue=0;ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0; ExportDialog.exportFile=function(a,c,f,d,b,e){var g=a.editor.graph;if("xml"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),c,f);else if("svg"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(g.getSvg(d,b,e)),c,f);else{var k=g.getGraphBounds(),l=mxUtils.createXmlDocument(),m=l.createElement("output");l.appendChild(m);l=new mxXmlCanvas2D(m);l.translate(Math.floor((e/b-k.x)/g.view.scale),Math.floor((e/b-k.y)/g.view.scale));l.scale(b/g.view.scale);(new mxImageExport).drawState(g.getView().getState(g.model.root), l);m="xml="+encodeURIComponent(mxUtils.getXml(m));l=Math.ceil(k.width*b/g.view.scale+2*e);b=Math.ceil(k.height*b/g.view.scale+2*e);m.length<=MAX_REQUEST_SIZE&&l*ba.name)});for(u=0;u';mxEvent.addListener(x,"click",function(b){if(k.isEnabled()){k.model.beginUpdate(); try{var a=k.model.root.getIndex(u);k.removeCells([u],!1);0==k.model.getChildCount(k.model.root)?(k.model.add(k.model.root,new mxCell),k.setDefaultParent(null)):0'; -mxEvent.addListener(z,"click",function(b){k.isEnabled()&&!k.isSelectionEmpty()&&k.moveCells(k.getSelectionCells(),0,0,!1,u)});v.appendChild(z);var y=m.cloneNode();y.innerHTML='
';y.setAttribute("title",mxResources.get("rename"));mxEvent.addListener(y,"click",function(b){k.isEnabled()&&e(u);mxEvent.consume(b)});k.isEnabled()||(y.className="geButton mxDisabled");v.appendChild(y);var B=m.cloneNode();B.innerHTML='
'; +mxEvent.addListener(z,"click",function(b){k.isEnabled()&&!k.isSelectionEmpty()&&k.moveCells(k.getSelectionCells(),0,0,!1,u)});v.appendChild(z);var A=m.cloneNode();A.innerHTML='
';A.setAttribute("title",mxResources.get("rename"));mxEvent.addListener(A,"click",function(b){k.isEnabled()&&e(u);mxEvent.consume(b)});k.isEnabled()||(A.className="geButton mxDisabled");v.appendChild(A);var B=m.cloneNode();B.innerHTML='
'; mxEvent.addListener(B,"click",function(b){if(k.isEnabled()){b=null;k.model.beginUpdate();try{b=k.cloneCells([u])[0],b.value=mxResources.get("untitledLayer"),b.setVisible(!0),b=k.addCell(b,k.model.root),k.setDefaultParent(b)}finally{k.model.endUpdate()}null==b||k.isCellLocked(b)||k.selectAll(b)}});k.isEnabled()||(B.className="geButton mxDisabled");v.appendChild(B);m=m.cloneNode();m.innerHTML='
';m.setAttribute("title",mxResources.get("addLayer")); mxEvent.addListener(m,"click",function(b){if(k.isEnabled()){k.model.beginUpdate();try{var a=k.addCell(new mxCell(mxResources.get("untitledLayer")),k.model.root);k.setDefaultParent(a)}finally{k.model.endUpdate()}}mxEvent.consume(b)});k.isEnabled()||(m.className="geButton mxDisabled");v.appendChild(m);l.appendChild(v);g();k.model.addListener(mxEvent.CHANGE,function(){g()});k.selectionModel.addListener(mxEvent.CHANGE,function(){k.isSelectionEmpty()?z.className="geButton mxDisabled":z.className="geButton"}); this.window=new mxWindow(mxResources.get("layers"),l,c,f,d,b,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.refreshLayers=g;this.window.setLocation=function(b,a){var d=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;b=Math.max(0,Math.min(b,(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-this.table.clientWidth));a=Math.max(0, @@ -3196,7 +3197,7 @@ u[b]?this.addGMDLDialogsPalette():"Dividers"==u[b]?this.addGMDLDividersPalette() u[b]?this.addGMDLTabsPalette():"Text Fields"==u[b]&&this.addGMDLTextFieldsPalette();this.addCabinetsPalette();this.addArchimate3Palette();this.addArchiMatePalette();this.addWebIconsPalette();this.addWebLogosPalette();this.showEntries()};if("1"==urlParams.createindex){var f=Sidebar.prototype.addStencilPalette;Sidebar.prototype.addStencilPalette=function(b,a,d,c,m,n,p,q){f.apply(this,arguments);p=null!=p?p:1;mxStencilRegistry.loadStencilSet(d,mxUtils.bind(this,function(b,a,d,e,f){if(null==m||0>mxUtils.indexOf(m, a))d=null!=q?q[a]:null,mxLog.debug('")}),!0)}}var d=Sidebar.prototype.searchEntries;Sidebar.prototype.searchEntries=function(b,a,c,f,m){var e=f;if(EditorUi.enableLogging&&!this.editorUi.isOffline()&&0==c)try{(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?severity=CONFIG&msg=shapesearch:"+encodeURIComponent(b)+"&v="+encodeURIComponent(EditorUi.VERSION)}catch(p){}f= mxUtils.bind(this,function(d,f,g,k){!this.editorUi.isOffline()&&d.length<=a/4?(g=c-Math.ceil((f-a/4)/a),mxUtils.get(ICONSEARCH_PATH+"?v=2&q="+encodeURIComponent(b)+"&p="+g+"&c="+a,mxUtils.bind(this,function(b){try{if(200<=b.getStatus()&&299>=b.getStatus())try{var g=JSON.parse(b.getText());if(null==g||null==g.icons)e(d,f,!1,k),this.editorUi.handleError(g);else{for(b=0;bMarcin Szczepanski - #8095, last updated 1 minutes ago in Repo ABC',new mxGeometry(37,41,360,30),"html=1;fillColor=none;strokeColor=none;fontSize=12;align=left;fontColor=#000000;whiteSpace=wrap;fontStyle=1");l.vertex=!0;var m=new mxCell("",new mxGeometry(330,44,16,10),"shape=mxgraph.arrows2.sharpArrow2;dy1=0.82;dx1=4.02;dx2=5.92;dy3=0.26;dx3=7.37;notch=0;strokeColor=none;fillColor=#C1C7D0;direction=east;"); m.vertex=!0;var n=new mxCell("staging",new mxGeometry(355,39,50,20),"rounded=1;arcSize=5;fillColor=#F2F3F5;strokeColor=none;fontColor=#596780;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=12;fontStyle=1;html=1");n.vertex=!0;var p=new mxCell("+6",new mxGeometry(535,44,24,24),"shape=ellipse;fillColor=#F0F2F5;strokeColor=none;fontColor=#596780;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1");p.vertex=!0;var q=new mxCell("",new mxGeometry(515,44,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858"); q.vertex=!0;var t=new mxCell("",new mxGeometry(495,44,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858");t.vertex=!0;var u=new mxCell("•••",new mxGeometry(600,48,16,16),"shape=ellipse;fillColor=#0057D8;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1");u.vertex=!0;var v=new mxCell("",new mxGeometry(0,89,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858");v.vertex= !0;var x=new mxCell('Feature/BSERVDEV-13108 import...\nLucy Bain - #8092, last updated 15 minutes ago in Bitbucket repository',new mxGeometry(37,86,360,30),"html=1;fillColor=none;strokeColor=none;fontSize=12;align=left;fontColor=#000000;whiteSpace=wrap;fontStyle=1");x.vertex=!0;var z=new mxCell("",new mxGeometry(245,89,16,10),"shape=mxgraph.arrows2.sharpArrow2;dy1=0.82;dx1=4.02;dx2=5.92;dy3=0.26;dx3=7.37;notch=0;strokeColor=none;fillColor=#C1C7D0;direction=east;"); -z.vertex=!0;var y=new mxCell("feature/BSERVDEV-12...",new mxGeometry(270,84,145,20),"shape=rect;rounded=1;arcSize=5;fillColor=#F2F3F5;strokeColor=none;fontColor=#596780;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=12;fontStyle=1;html=1");y.vertex=!0;var B=new mxCell("9",new mxGeometry(440,93,16,15),"shape=mxgraph.basic.oval_callout;fillColor=#596780;strokeColor=none;fontColor=#596780;align=left;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1;labelPosition=right;verticalLabelPosition=middle"); -B.vertex=!0;var A=new mxCell("",new mxGeometry(535,89,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858");A.vertex=!0;var C=new mxCell("",new mxGeometry(515,89,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858");C.vertex=!0;var E=new mxCell("",new mxGeometry(495,89,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858");E.vertex=!0;var F=new mxCell("•••",new mxGeometry(600,93,16,16),"shape=ellipse;fillColor=#0057D8;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;flipH=1;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1"); -F.vertex=!0;var D=new mxCell("",new mxGeometry(0,134,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858");D.vertex=!0;var K=new mxCell('BSERVDEV-13151: Disable the 'latest' event filtering\nFelix Haenel - #8068, last updated 34 minutes ago in Repository',new mxGeometry(37,131,360,30),"html=1;fillColor=none;strokeColor=none;fontSize=12;align=left;fontColor=#000000;whiteSpace=wrap;fontStyle=1"); -K.vertex=!0;var H=new mxCell("",new mxGeometry(342,134,16,10),"shape=mxgraph.arrows2.sharpArrow2;dy1=0.82;dx1=4.02;dx2=5.92;dy3=0.26;dx3=7.37;notch=0;strokeColor=none;fillColor=#C1C7D0;direction=east;");H.vertex=!0;var J=new mxCell("staging",new mxGeometry(365,129,50,20),"rounded=1;arcSize=5;fillColor=#F2F3F5;strokeColor=none;fontColor=#596780;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=12;fontStyle=1;html=1");J.vertex=!0;var I=new mxCell("•••",new mxGeometry(600, +z.vertex=!0;var A=new mxCell("feature/BSERVDEV-12...",new mxGeometry(270,84,145,20),"shape=rect;rounded=1;arcSize=5;fillColor=#F2F3F5;strokeColor=none;fontColor=#596780;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=12;fontStyle=1;html=1");A.vertex=!0;var B=new mxCell("9",new mxGeometry(440,93,16,15),"shape=mxgraph.basic.oval_callout;fillColor=#596780;strokeColor=none;fontColor=#596780;align=left;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1;labelPosition=right;verticalLabelPosition=middle"); +B.vertex=!0;var y=new mxCell("",new mxGeometry(535,89,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858");y.vertex=!0;var E=new mxCell("",new mxGeometry(515,89,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858");E.vertex=!0;var D=new mxCell("",new mxGeometry(495,89,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858");D.vertex=!0;var F=new mxCell("•••",new mxGeometry(600,93,16,16),"shape=ellipse;fillColor=#0057D8;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;flipH=1;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1"); +F.vertex=!0;var C=new mxCell("",new mxGeometry(0,134,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858");C.vertex=!0;var K=new mxCell('BSERVDEV-13151: Disable the 'latest' event filtering\nFelix Haenel - #8068, last updated 34 minutes ago in Repository',new mxGeometry(37,131,360,30),"html=1;fillColor=none;strokeColor=none;fontSize=12;align=left;fontColor=#000000;whiteSpace=wrap;fontStyle=1"); +K.vertex=!0;var G=new mxCell("",new mxGeometry(342,134,16,10),"shape=mxgraph.arrows2.sharpArrow2;dy1=0.82;dx1=4.02;dx2=5.92;dy3=0.26;dx3=7.37;notch=0;strokeColor=none;fillColor=#C1C7D0;direction=east;");G.vertex=!0;var J=new mxCell("staging",new mxGeometry(365,129,50,20),"rounded=1;arcSize=5;fillColor=#F2F3F5;strokeColor=none;fontColor=#596780;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=12;fontStyle=1;html=1");J.vertex=!0;var I=new mxCell("•••",new mxGeometry(600, 138,16,16),"shape=ellipse;fillColor=#0057D8;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;flipH=1;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1");I.vertex=!0;var L=new mxCell("",new mxGeometry(0,179,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858");L.vertex=!0;var M=new mxCell('Feature/BSERVDEV-13193: commit lvl review...\nJohn Van Der Loo - #8093; last updated 29 Oct 2014 in Repository', new mxGeometry(37,176,360,30),"html=1;fillColor=none;strokeColor=none;fontSize=12;align=left;fontColor=#596780;whiteSpace=wrap;fontStyle=1");M.vertex=!0;var Q=new mxCell("",new mxGeometry(330,179,16,10),"shape=mxgraph.arrows2.sharpArrow2;dy1=0.82;dx1=4.02;dx2=5.92;dy3=0.26;dx3=7.37;notch=0;strokeColor=none;fillColor=#C1C7D0;direction=east;");Q.vertex=!0;var W=new mxCell("staging",new mxGeometry(355,174,50,20),"rounded=1;arcSize=5;fillColor=#F2F3F5;strokeColor=none;fontColor=#A5ADBA;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=12;fontStyle=1;html=1"); -W.vertex=!0;var N=new mxCell("2",new mxGeometry(440,183,16,15),"shape=mxgraph.basic.oval_callout;fillColor=#A5ADBA;strokeColor=none;fontColor=#596780;align=left;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1;labelPosition=right;verticalLabelPosition=middle");N.vertex=!0;var G=new mxCell("+2",new mxGeometry(535,179,24,24),"shape=ellipse;fillColor=#F0F2F5;strokeColor=none;fontColor=#596780;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1");G.vertex= +W.vertex=!0;var N=new mxCell("2",new mxGeometry(440,183,16,15),"shape=mxgraph.basic.oval_callout;fillColor=#A5ADBA;strokeColor=none;fontColor=#596780;align=left;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1;labelPosition=right;verticalLabelPosition=middle");N.vertex=!0;var H=new mxCell("+2",new mxGeometry(535,179,24,24),"shape=ellipse;fillColor=#F0F2F5;strokeColor=none;fontColor=#596780;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1");H.vertex= !0;var V=new mxCell("",new mxGeometry(515,179,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858");V.vertex=!0;var O=new mxCell("",new mxGeometry(495,179,24,24),"shape=mxgraph.ios7.icons.user;fillColor=#ffffff;strokeColor=#253858");O.vertex=!0;var ba=new mxCell("",new mxGeometry(512,177,9,9),"shape=ellipse;fillColor=#A5ADBA;strokeColor=#ffffff");ba.vertex=!0;var Y=new mxCell("",new mxGeometry(600,183,16,16),"html=1;shadow=0;dashed=0;shape=mxgraph.atlassian.checkbox;fillColor=#A5ADBA;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1"); -Y.vertex=!0;var S=new mxCell("This PR has been merged",new mxGeometry(50,210,160,20),"rounded=1;arcSize=5;fillColor=#172B4D;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=12;fontStyle=0;html=1");S.vertex=!0;var P=new mxCell("",new mxGeometry(0,228,620,10),"shape=line;strokeWidth=2;html=1;strokeColor=#DFE1E5;resizeWidth=1");P.vertex=!0;return c.createVertexTemplateFromCells([a,b,e,f,k,l,m,n,p,q,t,u,v,x,z,y,B,A,C,E,F,D,K,H,J,I,L,M,Q,W,N,G,V,O,ba,Y,S,P], +Y.vertex=!0;var S=new mxCell("This PR has been merged",new mxGeometry(50,210,160,20),"rounded=1;arcSize=5;fillColor=#172B4D;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=12;fontStyle=0;html=1");S.vertex=!0;var P=new mxCell("",new mxGeometry(0,228,620,10),"shape=line;strokeWidth=2;html=1;strokeColor=#DFE1E5;resizeWidth=1");P.vertex=!0;return c.createVertexTemplateFromCells([a,b,e,f,k,l,m,n,p,q,t,u,v,x,z,A,B,y,E,D,F,C,K,G,J,I,L,M,Q,W,N,H,V,O,ba,Y,S,P], 620,230,"Table")}),this.addEntry("atlassian table",function(){var a=new mxCell("Name",new mxGeometry(0,0,150,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");a.vertex=!0;var b=new mxCell("Size",new mxGeometry(300,0,90,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");b.vertex=!0;var e=new mxCell("Last commit",new mxGeometry(360,0,70,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=center;fontColor=#596780;whiteSpace=wrap"); e.vertex=!0;var f=new mxCell("Commit description",new mxGeometry(460,0,170,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");f.vertex=!0;var k=new mxCell("",new mxGeometry(0,20,630,10),"shape=line;strokeWidth=2;html=1;strokeColor=#DFE1E5;resizeWidth=1");k.vertex=!0;var l=new mxCell("h8m0n62f",new mxGeometry(0,39,18,16),"shape=mxgraph.office.concepts.folders;fillColor=#344563;strokeColor=none;fontColor=#344563;fontSize=11;fontStyle=0;labelPosition=right;align=left;html=1;spacingLeft=5"); l.vertex=!0;var m=new mxCell("",new mxGeometry(80,42,16,10),"shape=mxgraph.arrows2.sharpArrow2;dy1=0.82;dx1=4.02;dx2=5.92;dy3=0.26;dx3=7.37;notch=0;strokeColor=none;fillColor=#C1C7D0;direction=east;");m.vertex=!0;var n=new mxCell("./h8m0n62f [10b2fa24d299]",new mxGeometry(100,37,160,20),"html=1;fillColor=none;strokeColor=none;fontSize=12;align=left;fontColor=#000000;whiteSpace=wrap;fontStyle=0");n.vertex=!0;var p=new mxCell("209 B",new mxGeometry(280,37,50,20),"strokeColor=none;fillColor=none;fontSize=11;fontColor=#596780;align=right;html=1"); p.vertex=!0;var q=new mxCell("20 Jan 2016",new mxGeometry(360,37,70,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=center;fontColor=#596780;whiteSpace=wrap");q.vertex=!0;var t=new mxCell("initial commit",new mxGeometry(460,37,170,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");t.vertex=!0;var u=new mxCell("settings",new mxGeometry(0,69,18,16),"shape=mxgraph.office.concepts.folder;fillColor=#344563;strokeColor=none;fontColor=#344563;fontSize=11;fontStyle=0;labelPosition=right;align=left;html=1;spacingLeft=5"); u.vertex=!0;var v=new mxCell("197 B",new mxGeometry(280,67,50,20),"strokeColor=none;fillColor=none;fontSize=11;fontColor=#596780;align=right;html=1");v.vertex=!0;var x=new mxCell("08 Feb 2011",new mxGeometry(360,67,70,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=center;fontColor=#596780;whiteSpace=wrap");x.vertex=!0;var z=new mxCell("initial commit",new mxGeometry(460,67,170,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");z.vertex= -!0;var y=new mxCell("templates",new mxGeometry(0,99,18,16),"shape=mxgraph.office.concepts.folder;fillColor=#344563;strokeColor=none;fontColor=#344563;fontSize=11;fontStyle=0;labelPosition=right;align=left;html=1;spacingLeft=5");y.vertex=!0;var B=new mxCell("209 B",new mxGeometry(280,97,50,20),"strokeColor=none;fillColor=none;fontSize=11;fontColor=#596780;align=right;html=1");B.vertex=!0;var A=new mxCell("20 Jan 2016",new mxGeometry(360,97,70,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=center;fontColor=#596780;whiteSpace=wrap"); -A.vertex=!0;var C=new mxCell("initial commit",new mxGeometry(460,97,170,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");C.vertex=!0;var E=new mxCell("tests",new mxGeometry(0,129,18,16),"shape=mxgraph.office.concepts.folder;fillColor=#344563;strokeColor=none;fontColor=#344563;fontSize=11;fontStyle=0;labelPosition=right;align=left;html=1;spacingLeft=5");E.vertex=!0;var F=new mxCell("30.4 KB",new mxGeometry(280,127,50,20),"strokeColor=none;fillColor=none;fontSize=11;fontColor=#596780;align=right;html=1"); -F.vertex=!0;var D=new mxCell("16 Jun 2016",new mxGeometry(360,127,70,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=center;fontColor=#596780;whiteSpace=wrap");D.vertex=!0;var K=new mxCell("initial commit",new mxGeometry(460,127,170,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");K.vertex=!0;var H=new mxCell("debug.py",new mxGeometry(3,159,12,16),"shape=note;fillColor=#ffffff;strokeColor=#344563;fontColor=#344563;fontSize=11;fontStyle=0;labelPosition=right;align=left;html=1;spacingLeft=5;size=5"); -H.vertex=!0;var J=new mxCell("2.0 KB",new mxGeometry(280,157,50,20),"strokeColor=none;fillColor=none;fontSize=11;fontColor=#596780;align=right;html=1");J.vertex=!0;var I=new mxCell("03 July 2016",new mxGeometry(360,157,70,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=center;fontColor=#596780;whiteSpace=wrap");I.vertex=!0;var L=new mxCell("Remove Atlassian's npm mirror...",new mxGeometry(460,157,170,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap"); +!0;var A=new mxCell("templates",new mxGeometry(0,99,18,16),"shape=mxgraph.office.concepts.folder;fillColor=#344563;strokeColor=none;fontColor=#344563;fontSize=11;fontStyle=0;labelPosition=right;align=left;html=1;spacingLeft=5");A.vertex=!0;var B=new mxCell("209 B",new mxGeometry(280,97,50,20),"strokeColor=none;fillColor=none;fontSize=11;fontColor=#596780;align=right;html=1");B.vertex=!0;var y=new mxCell("20 Jan 2016",new mxGeometry(360,97,70,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=center;fontColor=#596780;whiteSpace=wrap"); +y.vertex=!0;var E=new mxCell("initial commit",new mxGeometry(460,97,170,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");E.vertex=!0;var D=new mxCell("tests",new mxGeometry(0,129,18,16),"shape=mxgraph.office.concepts.folder;fillColor=#344563;strokeColor=none;fontColor=#344563;fontSize=11;fontStyle=0;labelPosition=right;align=left;html=1;spacingLeft=5");D.vertex=!0;var F=new mxCell("30.4 KB",new mxGeometry(280,127,50,20),"strokeColor=none;fillColor=none;fontSize=11;fontColor=#596780;align=right;html=1"); +F.vertex=!0;var C=new mxCell("16 Jun 2016",new mxGeometry(360,127,70,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=center;fontColor=#596780;whiteSpace=wrap");C.vertex=!0;var K=new mxCell("initial commit",new mxGeometry(460,127,170,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");K.vertex=!0;var G=new mxCell("debug.py",new mxGeometry(3,159,12,16),"shape=note;fillColor=#ffffff;strokeColor=#344563;fontColor=#344563;fontSize=11;fontStyle=0;labelPosition=right;align=left;html=1;spacingLeft=5;size=5"); +G.vertex=!0;var J=new mxCell("2.0 KB",new mxGeometry(280,157,50,20),"strokeColor=none;fillColor=none;fontSize=11;fontColor=#596780;align=right;html=1");J.vertex=!0;var I=new mxCell("03 July 2016",new mxGeometry(360,157,70,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=center;fontColor=#596780;whiteSpace=wrap");I.vertex=!0;var L=new mxCell("Remove Atlassian's npm mirror...",new mxGeometry(460,157,170,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap"); L.vertex=!0;var M=new mxCell("package.json",new mxGeometry(3,189,12,16),"shape=note;fillColor=#ffffff;strokeColor=#344563;fontColor=#344563;fontSize=11;fontStyle=0;labelPosition=right;align=left;html=1;spacingLeft=5;size=5");M.vertex=!0;var Q=new mxCell("2.0 KB",new mxGeometry(280,187,50,20),"strokeColor=none;fillColor=none;fontSize=11;fontColor=#596780;align=right;html=1");Q.vertex=!0;var W=new mxCell("25 July 2016",new mxGeometry(360,187,70,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=center;fontColor=#596780;whiteSpace=wrap"); -W.vertex=!0;var N=new mxCell('BBCDEV-2045 optimize flow perf',new mxGeometry(460,187,170,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");N.vertex=!0;var G=new mxCell("",new mxGeometry(0,217,630,10),"shape=line;strokeWidth=2;html=1;strokeColor=#DFE1E5;resizeWidth=1");G.vertex=!0;return c.createVertexTemplateFromCells([a,b,e,f,k,l,m,n,p,q,t,u,v,x,z,y,B,A,C,E,F,D,K,H,J,I,L,M,Q,W,N,G],630,230,"Table")}),this.addEntry("atlassian table action", +W.vertex=!0;var N=new mxCell('BBCDEV-2045 optimize flow perf',new mxGeometry(460,187,170,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");N.vertex=!0;var H=new mxCell("",new mxGeometry(0,217,630,10),"shape=line;strokeWidth=2;html=1;strokeColor=#DFE1E5;resizeWidth=1");H.vertex=!0;return c.createVertexTemplateFromCells([a,b,e,f,k,l,m,n,p,q,t,u,v,x,z,A,B,y,E,D,F,C,K,G,J,I,L,M,Q,W,N,H],630,230,"Table")}),this.addEntry("atlassian table action", function(){var a=new mxCell("Branch",new mxGeometry(10,0,150,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");a.vertex=!0;var b=new mxCell("Behind",new mxGeometry(270,0,40,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");b.vertex=!0;var e=new mxCell("Ahead",new mxGeometry(310,0,40,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=right;fontColor=#596780;whiteSpace=wrap");e.vertex= !0;var f=new mxCell("Updated",new mxGeometry(370,0,90,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;whiteSpace=wrap");f.vertex=!0;var k=new mxCell("Pull request",new mxGeometry(460,0,90,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=center;fontColor=#596780;whiteSpace=wrap");k.vertex=!0;var l=new mxCell("Builds",new mxGeometry(550,0,40,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=center;fontColor=#596780;whiteSpace=wrap");l.vertex= !0;var m=new mxCell("",new mxGeometry(10,20,630,10),"shape=line;strokeWidth=2;html=1;strokeColor=#DFE1E5;resizeWidth=1");m.vertex=!0;var n=new mxCell("",new mxGeometry(0,26,640,30),"strokeColor=none;fillColor=#FAFBFC;html=1");n.vertex=!0;var p=new mxCell("staging",new mxGeometry(10,31,50,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");p.vertex=!0;var q=new mxCell("Main Branch",new mxGeometry(60,31,65,20),"strokeColor=none;fillColor=#EDEEEF;fontSize=11;fontColor=#596780;rounded=1;html=1"); q.vertex=!0;var t=new mxCell("28 minutes ago",new mxGeometry(370,31,50,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");t.vertex=!0;var u=new mxCell("•••",new mxGeometry(565,33,16,16),"shape=ellipse;fillColor=#0057D8;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1");u.vertex=!0;var v=new mxCell("",new mxGeometry(595,28,40,24),"rounded=1;arcSize=23;fillColor=#42526E;strokeColor=none"); v.vertex=!0;var x=new mxCell("",new mxGeometry(.5,.5,4,4),"shape=ellipse;fillColor=#ffffff;strokeColor=none;html=1");x.geometry.relative=!0;x.geometry.offset=new mxPoint(-10,-2);x.vertex=!0;v.insert(x);x=new mxCell("",new mxGeometry(.5,.5,4,4),"shape=ellipse;fillColor=#ffffff;strokeColor=none;html=1");x.geometry.relative=!0;x.geometry.offset=new mxPoint(-2,-2);x.vertex=!0;v.insert(x);x=new mxCell("",new mxGeometry(.5,.5,4,4),"shape=ellipse;fillColor=#ffffff;strokeColor=none;html=1");x.geometry.relative= -!0;x.geometry.offset=new mxPoint(6,-2);x.vertex=!0;v.insert(x);x=new mxCell("abhin/repo/api/allow_repo_updates",new mxGeometry(10,61,240,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");x.vertex=!0;var z=new mxCell("",new mxGeometry(270,66,80,10),"shape=mxgraph.mockup.misc.progressBar;fillColor=#3384FF;strokeColor=none;fillColor2=#F2F2F2;barPos=80;");z.vertex=!0;var y=new mxCell("107",new mxGeometry(270,73,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=left;html=1"); -y.vertex=!0;var B=new mxCell("3",new mxGeometry(310,73,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=right;html=1");B.vertex=!0;var A=new mxCell("5 minutes ago",new mxGeometry(370,61,50,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");A.vertex=!0;var C=new mxCell("#10258",new mxGeometry(460,61,50,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");C.vertex=!0;var E=new mxCell("OPEN",new mxGeometry(510, -61,40,20),"strokeColor=none;fillColor=#CCE0FF;fontSize=11;fontColor=#3384FF;rounded=1;html=1;align=center;fontStyle=1");E.vertex=!0;var F=new mxCell("•••",new mxGeometry(565,63,16,16),"shape=ellipse;fillColor=#0057D8;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1");F.vertex=!0;var D=new mxCell("zdavis/BBCDEV-1577",new mxGeometry(10,91,240,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1"); -D.vertex=!0;var K=new mxCell("",new mxGeometry(270,96,80,10),"shape=mxgraph.mockup.misc.progressBar;fillColor=#3384FF;strokeColor=none;fillColor2=#F2F2F2;barPos=80;");K.vertex=!0;var H=new mxCell("103",new mxGeometry(270,103,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=left;html=1");H.vertex=!0;var J=new mxCell("2",new mxGeometry(310,103,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=right;html=1");J.vertex=!0;var I=new mxCell("5 minutes ago", +!0;x.geometry.offset=new mxPoint(6,-2);x.vertex=!0;v.insert(x);x=new mxCell("abhin/repo/api/allow_repo_updates",new mxGeometry(10,61,240,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");x.vertex=!0;var z=new mxCell("",new mxGeometry(270,66,80,10),"shape=mxgraph.mockup.misc.progressBar;fillColor=#3384FF;strokeColor=none;fillColor2=#F2F2F2;barPos=80;");z.vertex=!0;var A=new mxCell("107",new mxGeometry(270,73,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=left;html=1"); +A.vertex=!0;var B=new mxCell("3",new mxGeometry(310,73,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=right;html=1");B.vertex=!0;var y=new mxCell("5 minutes ago",new mxGeometry(370,61,50,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");y.vertex=!0;var E=new mxCell("#10258",new mxGeometry(460,61,50,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");E.vertex=!0;var D=new mxCell("OPEN",new mxGeometry(510, +61,40,20),"strokeColor=none;fillColor=#CCE0FF;fontSize=11;fontColor=#3384FF;rounded=1;html=1;align=center;fontStyle=1");D.vertex=!0;var F=new mxCell("•••",new mxGeometry(565,63,16,16),"shape=ellipse;fillColor=#0057D8;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1");F.vertex=!0;var C=new mxCell("zdavis/BBCDEV-1577",new mxGeometry(10,91,240,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1"); +C.vertex=!0;var K=new mxCell("",new mxGeometry(270,96,80,10),"shape=mxgraph.mockup.misc.progressBar;fillColor=#3384FF;strokeColor=none;fillColor2=#F2F2F2;barPos=80;");K.vertex=!0;var G=new mxCell("103",new mxGeometry(270,103,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=left;html=1");G.vertex=!0;var J=new mxCell("2",new mxGeometry(310,103,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=right;html=1");J.vertex=!0;var I=new mxCell("5 minutes ago", new mxGeometry(370,91,50,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");I.vertex=!0;var L=new mxCell("#10232",new mxGeometry(460,91,50,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");L.vertex=!0;var M=new mxCell("OPEN",new mxGeometry(510,91,40,20),"strokeColor=none;fillColor=#CCE0FF;fontSize=11;fontColor=#3384FF;rounded=1;html=1;align=center;fontStyle=1");M.vertex=!0;var Q=new mxCell("•••",new mxGeometry(565, 93,16,16),"shape=ellipse;fillColor=#0057D8;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1");Q.vertex=!0;var W=new mxCell("tkells/BBCDEV-1631-fix-require-account=access",new mxGeometry(10,121,240,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");W.vertex=!0;var N=new mxCell("",new mxGeometry(270,126,80,10),"shape=mxgraph.mockup.misc.progressBar;fillColor=#3384FF;strokeColor=none;fillColor2=#F2F2F2;barPos=80;"); -N.vertex=!0;var G=new mxCell("7",new mxGeometry(270,133,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=left;html=1");G.vertex=!0;var V=new mxCell("1",new mxGeometry(310,133,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=right;html=1");V.vertex=!0;var O=new mxCell("25 minutes ago",new mxGeometry(370,121,50,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");O.vertex=!0;var ba=new mxCell("#10267",new mxGeometry(460, +N.vertex=!0;var H=new mxCell("7",new mxGeometry(270,133,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=left;html=1");H.vertex=!0;var V=new mxCell("1",new mxGeometry(310,133,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=right;html=1");V.vertex=!0;var O=new mxCell("25 minutes ago",new mxGeometry(370,121,50,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");O.vertex=!0;var ba=new mxCell("#10267",new mxGeometry(460, 121,50,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");ba.vertex=!0;var Y=new mxCell("OPEN",new mxGeometry(510,121,40,20),"strokeColor=none;fillColor=#CCE0FF;fontSize=11;fontColor=#3384FF;rounded=1;html=1;align=center;fontStyle=1");Y.vertex=!0;var S=new mxCell("•••",new mxGeometry(565,123,16,16),"shape=ellipse;fillColor=#0057D8;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1"); S.vertex=!0;var P=new mxCell("jmooring/BBDEV-1603",new mxGeometry(10,151,240,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");P.vertex=!0;var R=new mxCell("",new mxGeometry(270,156,80,10),"shape=mxgraph.mockup.misc.progressBar;fillColor=#3384FF;strokeColor=none;fillColor2=#F2F2F2;barPos=80;");R.vertex=!0;var X=new mxCell("2",new mxGeometry(270,163,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=left;html=1");X.vertex=!0;var da=new mxCell("14", new mxGeometry(310,163,40,20),"strokeColor=none;fillColor=none;fontSize=10;fontColor=#596780;align=right;html=1");da.vertex=!0;var aa=new mxCell("29 minutes ago",new mxGeometry(370,151,50,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#596780;align=left;html=1");aa.vertex=!0;var T=new mxCell("#10244",new mxGeometry(460,151,50,20),"strokeColor=none;fillColor=none;fontSize=12;fontColor=#0057D8;align=left;html=1");T.vertex=!0;var ca=new mxCell("OPEN",new mxGeometry(510,151,40,20),"strokeColor=none;fillColor=#CCE0FF;fontSize=11;fontColor=#3384FF;rounded=1;html=1;align=center;fontStyle=1"); ca.vertex=!0;var ea=new mxCell("",new mxGeometry(565,153,16,16),"html=1;shadow=0;dashed=0;shape=mxgraph.atlassian.checkbox;fillColor=#008465;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;whiteSpace=wrap;fontSize=10;fontStyle=0;html=1");ea.vertex=!0;var U=new mxCell("",new mxGeometry(10,179,630,10),"shape=line;strokeWidth=2;html=1;strokeColor=#DFE1E5;resizeWidth=1");U.vertex=!0;var Z=new mxCell("",new mxGeometry(530,61,110,78),"rounded=1;fillColor=#ffffff;strokeColor=#DFE1E5;shadow=1;html=1;arcSize=4"); Z.vertex=!0;var ga=new mxCell("View source",new mxGeometry(0,0,110,33),"rounded=0;fillColor=#F4F5F7;strokeColor=none;shadow=0;html=1;align=left;fontSize=12;spacingLeft=10;fontColor=#253858;resizeWidth=1");ga.geometry.relative=!0;ga.geometry.offset=new mxPoint(0,6);ga.vertex=!0;Z.insert(ga);ga=new mxCell("Delete branch",new mxGeometry(0,0,110,33),"rounded=0;fillColor=none;strokeColor=none;shadow=0;html=1;align=left;fontSize=12;spacingLeft=10;fontColor=#253858;resizeWidth=1");ga.geometry.relative=!0; -ga.geometry.offset=new mxPoint(0,39);ga.vertex=!0;Z.insert(ga);return c.createVertexTemplateFromCells([a,b,e,f,k,l,m,n,p,q,t,u,v,x,z,y,B,A,C,E,F,D,K,H,J,I,L,M,Q,W,N,G,V,O,ba,Y,S,P,R,X,da,aa,T,ca,ea,U,Z],630,189,"Table with action")}),this.addEntry("atlassian table action",function(){var a=new mxCell("Details",new mxGeometry(0,0,50,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#3384FF;fontStyle=1;whiteSpace=wrap");a.vertex=!0;var b=new mxCell("Diff",new mxGeometry(70, +ga.geometry.offset=new mxPoint(0,39);ga.vertex=!0;Z.insert(ga);return c.createVertexTemplateFromCells([a,b,e,f,k,l,m,n,p,q,t,u,v,x,z,A,B,y,E,D,F,C,K,G,J,I,L,M,Q,W,N,H,V,O,ba,Y,S,P,R,X,da,aa,T,ca,ea,U,Z],630,189,"Table with action")}),this.addEntry("atlassian table action",function(){var a=new mxCell("Details",new mxGeometry(0,0,50,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#3384FF;fontStyle=1;whiteSpace=wrap");a.vertex=!0;var b=new mxCell("Diff",new mxGeometry(70, 0,40,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;fontStyle=1;whiteSpace=wrap");b.vertex=!0;var e=new mxCell("Commits",new mxGeometry(130,0,60,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;fontStyle=1;whiteSpace=wrap");e.vertex=!0;var f=new mxCell("Challenges",new mxGeometry(200,0,90,20),"html=1;fillColor=none;strokeColor=none;fontSize=11;align=left;fontColor=#596780;fontStyle=1;whiteSpace=wrap");f.vertex=!0;var k=new mxCell("", new mxGeometry(0,20,350,10),"shape=line;strokeWidth=2;html=1;strokeColor=#DFE1E5;resizeWidth=1");k.vertex=!0;var l=new mxCell("",new mxGeometry(0,20,40,10),"shape=line;strokeWidth=2;html=1;strokeColor=#3384FF;resizeWidth=1");l.vertex=!0;return c.createVertexTemplateFromCells([a,b,e,f,k,l],350,30,"Table with action")}),this.createVertexTemplateEntry("dashed=0;html=1;fillColor=#F0F2F5;strokeColor=none;align=center;rounded=1;arcSize=10;fontColor=#596780;fontStyle=1;fontSize=11;shadow=0",60,20,"Tag text", "Tag",null,null,this.getTagsForStencil("mxgraph.atlassian","tag","atlassian ").join(" ")),this.createVertexTemplateEntry("dashed=0;html=1;fillColor=#F0F2F5;strokeColor=none;align=center;rounded=1;arcSize=10;fontColor=#3384FF;fontStyle=1;fontSize=11;shadow=0",60,20,"Tag link","Tag link",null,null,this.getTagsForStencil("mxgraph.atlassian","tag","atlassian ").join(" ")),this.addEntry("atlassian tag removable",function(){var a=new mxCell("Removable tag",new mxGeometry(0,0,100,20),"dashed=0;html=1;fillColor=#F0F2F5;strokeColor=none;align=left;rounded=1;arcSize=10;fontColor=#596780;fontStyle=1;fontSize=11;shadow=0;spacingLeft=3"); @@ -3693,8 +3694,8 @@ e.vertex=!0;var f=new mxCell("Waremelon",new mxGeometry(0,95,290,40),"rounded=1; l.vertex=!0;var m=new mxCell("Stash",new mxGeometry(0,170,290,40),"rounded=1;arcSize=9;fillColor=#F7F8F9;align=left;spacingLeft=5;strokeColor=#DEE1E6;html=1;strokeWidth=2;fontColor=#596780;fontSize=12");m.vertex=!0;var n=new mxCell("Description",new mxGeometry(0,220,240,20),"fillColor=none;strokeColor=none;html=1;fontSize=11;fontStyle=0;align=left;fontColor=#596780;fontStyle=1;fontSize=11");n.vertex=!0;var p=new mxCell("What is important for people to know?",new mxGeometry(0,245,360,115),"rounded=1;arcSize=4;fillColor=#F7F8F9;align=left;spacingLeft=5;strokeColor=#DEE1E6;html=1;strokeWidth=2;fontColor=#596780;fontSize=12;verticalAlign=top"); p.vertex=!0;var q=new mxCell("Project permissions",new mxGeometry(0,380,240,20),"fillColor=none;strokeColor=none;html=1;fontSize=11;fontStyle=0;align=left;fontColor=#172B4C;fontStyle=1;fontSize=14");q.vertex=!0;var t=new mxCell("User access",new mxGeometry(0,400,240,20),"fillColor=none;strokeColor=none;html=1;fontSize=11;fontStyle=0;align=left;fontColor=#172B4C;fontStyle=0;fontSize=12");t.vertex=!0;var u=new mxCell("Read and write",new mxGeometry(11,430,10,10),"shape=ellipse;fillColor=#ffffff;strokeColor=#0057D8;strokeWidth=4;fontColor=#000000;align=left;verticalAlign=middle;fontStyle=0;fontSize=12;labelPosition=right;verticalLabelPosition=middle;spacingLeft=10"); u.vertex=!0;var v=new mxCell("Read only",new mxGeometry(10,450,12,12),"shape=ellipse;rounded=1;fillColor=#F0F2F5;strokeColor=#D8DCE3;fontColor=#000000;align=left;verticalAlign=middle;fontStyle=0;fontSize=12;labelPosition=right;verticalLabelPosition=middle;spacingLeft=10;html=1;shadow=0;dashed=0");v.vertex=!0;var x=new mxCell("None",new mxGeometry(10,470,12,12),"shape=ellipse;rounded=1;fillColor=#F0F2F5;strokeColor=#D8DCE3;fontColor=#000000;align=left;verticalAlign=middle;fontStyle=0;fontSize=12;labelPosition=right;verticalLabelPosition=middle;spacingLeft=10;html=1;shadow=0;dashed=0"); -x.vertex=!0;var z=new mxCell("Publish",new mxGeometry(0,510,60,33),"rounded=1;fillColor=#0057D8;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;fontStyle=0;fontSize=14;html=1;shadow=0;dashed=0");z.vertex=!0;var y=new mxCell("Cancel",new mxGeometry(70,510,60,33),"fillColor=none;strokeColor=none;fontColor=#596780;align=center;verticalAlign=middle;fontStyle=0;fontSize=14;html=1;shadow=0;dashed=0");y.vertex=!0;return c.createVertexTemplateFromCells([a,b,e,f,k,l,m,n,p,q,t,u,v,x,z, -y],370,543,"Disabled text field")}),this.addEntry("atlassian error message field",function(){var a=new mxCell("Email",new mxGeometry(0,0,240,20),"fillColor=none;strokeColor=none;html=1;fontSize=11;fontStyle=0;align=left;fontColor=#596780;fontStyle=1;fontSize=11");a.vertex=!0;var b=new mxCell("shrugg#atlassian.com",new mxGeometry(0,25,300,40),"rounded=1;arcSize=9;fillColor=#ffffff;align=left;spacingLeft=5;strokeColor=#FFAB00;html=1;strokeWidth=2;fontColor=#000000;fontSize=12");b.vertex=!0;var e=new mxCell("", +x.vertex=!0;var z=new mxCell("Publish",new mxGeometry(0,510,60,33),"rounded=1;fillColor=#0057D8;strokeColor=none;fontColor=#ffffff;align=center;verticalAlign=middle;fontStyle=0;fontSize=14;html=1;shadow=0;dashed=0");z.vertex=!0;var A=new mxCell("Cancel",new mxGeometry(70,510,60,33),"fillColor=none;strokeColor=none;fontColor=#596780;align=center;verticalAlign=middle;fontStyle=0;fontSize=14;html=1;shadow=0;dashed=0");A.vertex=!0;return c.createVertexTemplateFromCells([a,b,e,f,k,l,m,n,p,q,t,u,v,x,z, +A],370,543,"Disabled text field")}),this.addEntry("atlassian error message field",function(){var a=new mxCell("Email",new mxGeometry(0,0,240,20),"fillColor=none;strokeColor=none;html=1;fontSize=11;fontStyle=0;align=left;fontColor=#596780;fontStyle=1;fontSize=11");a.vertex=!0;var b=new mxCell("shrugg#atlassian.com",new mxGeometry(0,25,300,40),"rounded=1;arcSize=9;fillColor=#ffffff;align=left;spacingLeft=5;strokeColor=#FFAB00;html=1;strokeWidth=2;fontColor=#000000;fontSize=12");b.vertex=!0;var e=new mxCell("", new mxGeometry(1,.5,20,20),"shape=mxgraph.azure.azure_alert;fillColor=#FFAB00;strokeColor=none;html=1");e.geometry.relative=!0;e.geometry.offset=new mxPoint(-30,-10);e.vertex=!0;b.insert(e);return c.createVertexTemplateFromCells([a,b],290,58,"Error message field")}),this.addEntry("atlassian error message field",function(){var a=new mxCell("Email",new mxGeometry(0,0,240,20),"fillColor=none;strokeColor=none;html=1;fontSize=11;fontStyle=0;align=left;fontColor=#596780;fontStyle=1;fontSize=11");a.vertex= !0;var b=new mxCell("shrugg#atlassian.com",new mxGeometry(0,25,300,40),"rounded=1;arcSize=9;fillColor=#ffffff;align=left;spacingLeft=5;strokeColor=#4C9AFF;html=1;strokeWidth=2;fontColor=#000000;fontSize=12");b.vertex=!0;var e=new mxCell("",new mxGeometry(1,.5,20,20),"shape=mxgraph.azure.azure_alert;fillColor=#FFAB00;strokeColor=none;html=1");e.geometry.relative=!0;e.geometry.offset=new mxPoint(-30,-10);e.vertex=!0;b.insert(e);e=new mxCell("Please enter a valid address.",new mxGeometry(310,22,200, 46),"rounded=1;arcSize=9;fillColor=#ffffff;align=center;strokeColor=#DFE1E5;html=1;strokeWidth=1;fontColor=#000000;fontSize=12;shadow=1");e.vertex=!0;return c.createVertexTemplateFromCells([a,b,e],290,58,"Error message field")})];this.addPalette("atlassian","Atlassian",!1,mxUtils.bind(this,function(a){for(var b=0;b=f&&(mxUtils.br(k),m=0)}f=null!=f?f:3;var b=document.createElement("div");b.style.textAlign="center";b.style.whiteSpace="nowrap";b.style.paddingTop="0px";b.style.paddingBottom="20px";var e=a.addLanguageMenu(b);null!=e&&(e.style.bottom="28px");!a.isOffline()&&1");l.close()}}),l.className="geBtn",g.appendChild(l));if(!e||75 m.setAttribute("src",Editor.facebookImage);m.setAttribute("border","0");n.appendChild(m);n.setAttribute("title",mxResources.get("facebook")+" ("+a.formatFileSize(51200)+" max)");n.style.verticalAlign="bottom";n.style.paddingTop="4px";n.style.minWidth="46px";n.className="geBtn";g.appendChild(n)}7168>c.length&&(n=mxUtils.button("",function(){try{var b="https://twitter.com/intent/tweet?text="+encodeURIComponent("Check out the diagram I made using @drawio")+"&url="+encodeURIComponent(k.value);window.open(b)}catch(q){a.handleError({message:q.message|| mxResources.get("drawingTooLarge")})}}),m=document.createElement("img"),m.setAttribute("src",Editor.tweetImage),m.setAttribute("border","0"),m.style.marginBottom="5px",n.appendChild(m),n.setAttribute("title",mxResources.get("twitter")+" ("+a.formatFileSize(7168)+" max)"),n.style.verticalAlign="bottom",n.style.paddingTop="4px",n.style.minWidth="46px",n.className="geBtn",g.appendChild(n))}m=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});g.appendChild(m);n=mxUtils.button(mxResources.get("copy"), function(){k.focus();mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?k.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");a.alert(mxResources.get("copiedToClipboard"))});5E5>c.length?mxClient.IS_SF||null!=document.documentMode?m.className="geBtn gePrimaryBtn":(g.appendChild(n),n.className="geBtn gePrimaryBtn",m.className="geBtn"):(g.appendChild(l),m.className="geBtn",l.className="geBtn gePrimaryBtn");d.appendChild(g);this.container=d},GoogleSitesDialog=function(a, -c){function f(){var a=null!=E.getTitle()?E.getTitle():this.defaultFilename;if(A.checked&&""!=q.value){var c="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(q.value));null!=a&&(c+="&title="+encodeURIComponent(a));0");if(2==F.length){var D=p(F[0]),F=p(F[1]),K=new mxCell("",new mxGeometry);K.edge=!0;D.insertEdge(K,!0);F.insertEdge(K,!1);E.push(K)}}if(0");if(2==F.length){var C=p(F[0]),F=p(F[1]),K=new mxCell("",new mxGeometry);K.edge=!0;C.insertEdge(K,!0);F.insertEdge(K,!1);D.push(K)}}if(0 Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: another authentication Response\n@enduml": "plantUmlSvg"==k.value?"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: another authentication Response\n@enduml":";Example:\na->b\nb->c\nc->a\n"}var b=a.editor.graph.getFreeInsertPoint(),e=document.createElement("div");e.style.textAlign="right";var g=document.createElement("textarea");g.style.resize="none";g.style.width="100%";g.style.height="354px";g.style.marginBottom= "16px";var k=document.createElement("select"),l=document.createElement("option");l.setAttribute("value","list");l.setAttribute("selected","selected");mxUtils.write(l,mxResources.get("list"));k.appendChild(l);l=document.createElement("option");l.setAttribute("value","diagram");mxUtils.write(l,mxResources.get("diagram"));k.appendChild(l);l=document.createElement("option");l.setAttribute("value","plantUmlSvg");mxUtils.write(l,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");var m=document.createElement("option"); @@ -7649,21 +7650,21 @@ a.dataTransfer.files[0];var b=new FileReader;b.onload=function(a){g.value=a.targ f(g.value,k.value)});e.appendChild(m);m.className="geBtn gePrimaryBtn";a.editor.cancelFirst||e.appendChild(l);this.container=e},NewDialog=function(a,c,f,d){function b(){if(d)f||a.hideDialog(),d(t,p.value);else{var b=p.value;if(null!=b&&0=a.getStatus()&&(v.removeAttribute("disabled"),e(g,a.getText(),c),l&&b())}))});mxEvent.addListener(g,"dblclick",function(a){l=!0})}else g.innerHTML='
'+ -mxResources.get(d)+"
",k&&e(g),mxEvent.addListener(g,"click",function(a){e(g)}),mxEvent.addListener(g,"dblclick",function(a){b()});x.appendChild(g)}function k(){function a(){for(var a=!0;b=x.scrollHeight&&(a(),mxEvent.consume(b))});var c=null,d;for(d in y){var e=document.createElement("div"),f=mxResources.get(d), -k=y[d];null==f&&(f=d.substring(0,1).toUpperCase()+d.substring(1));18",k&&e(g),mxEvent.addListener(g,"click",function(a){e(g)}),mxEvent.addListener(g,"dblclick",function(a){b()});x.appendChild(g)}function k(){function a(){for(var a=!0;b=x.scrollHeight&&(a(),mxEvent.consume(b))});var c=null,d;for(d in A){var e=document.createElement("div"),f=mxResources.get(d), +k=A[d];null==f&&(f=d.substring(0,1).toUpperCase()+d.substring(1));18c.lastIndexOf(".")&&0>f){var b=null!=b?b:B.value,k="";b==App.MODE_GOOGLE?k=a.drive.extension:b==App.MODE_GITHUB?k= a.gitHub.extension:b==App.MODE_DROPBOX?k=a.dropbox.extension:b==App.MODE_ONEDRIVE?k=a.oneDrive.extension:b==App.MODE_DEVICE&&(k=".xml");0<=f&&(d=d.substring(0,f));x.value=d+k}}t(e)})}var l=document.createElement("a");l.style.overflow="hidden";var m=document.createElement("img");m.src=b;m.setAttribute("border","0");m.setAttribute("align","absmiddle");m.style.width="60px";m.style.height="60px";m.style.paddingBottom="6px";l.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";l.className="geBaseButton"; -l.style.position="relative";l.style.margin="4px";l.style.padding="8px 8px 10px 8px";l.style.whiteSpace="nowrap";l.appendChild(m);mxClient.IS_QUIRKS&&(l.style.cssFloat="left",l.style.zoom="1");l.style.color="gray";l.style.fontSize="11px";var n=document.createElement("div");l.appendChild(n);mxUtils.write(n,d);if(null!=f&&null==a[f]){m.style.visibility="hidden";mxUtils.setOpacity(n,10);var q=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1, -top:"40%",zIndex:2E9});q.spin(l);var v=window.setTimeout(function(){null==a[f]&&(q.stop(),l.style.display="none")},3E4);a.addListener("clientLoaded",mxUtils.bind(this,function(){null!=a[f]&&(window.clearTimeout(v),mxUtils.setOpacity(n,100),m.style.visibility="",q.stop(),k())}))}else k();z.appendChild(l);++y==p&&(mxUtils.br(z),y=0)}function t(b){var c=x.value;if(null==b||null!=c&&0JGraph Ltd.
All Rights Reserved.';c.appendChild(f);mxEvent.addListener(c,"click",function(c){"A"!=mxEvent.getSource(c).nodeName&&a.hideDialog()});this.container=c},FeedbackDialog=function(a){var c=document.createElement("div"),f=document.createElement("div"); -mxUtils.write(f,mxResources.get("sendYourFeedbackToDrawIo"));f.style.fontSize="18px";f.style.marginBottom="18px";c.appendChild(f);f=document.createElement("div");mxUtils.write(f,mxResources.get("yourEmailAddress")+" ("+mxResources.get("required")+")");c.appendChild(f);var d=document.createElement("input");d.setAttribute("type","text");d.style.marginTop="6px";d.style.width="600px";var b=mxUtils.button(mxResources.get("sendMessage"),function(){var b=(g.checked?"\nDiagram:\n"+a.getFileData():"")+"\nBrowser:\n"+ -navigator.userAgent;b.length>FeedbackDialog.maxAttachmentSize?a.alert(mxResources.get("drawingTooLarge")):(a.hideDialog(),a.spinner.spin(document.body)&&mxUtils.post(null!=FeedbackDialog.feedbackUrl?FeedbackDialog.feedbackUrl:"/email","email="+encodeURIComponent(d.value)+"&version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent("Feedback:\n"+l.value+b),function(b){a.spinner.stop();200<=b.getStatus()&&299>=b.getStatus()?a.alert(mxResources.get("feedbackSent")): -a.alert(mxResources.get("errorSendingFeedback"))},function(){a.spinner.stop();a.alert(mxResources.get("errorSendingFeedback"))}))});b.className="geBtn gePrimaryBtn";b.setAttribute("disabled","disabled");var e=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;mxEvent.addListener(d,"change",function(){0JGraph Ltd.
All Rights Reserved.';c.appendChild(f); +mxEvent.addListener(c,"click",function(c){"A"!=mxEvent.getSource(c).nodeName&&a.hideDialog()});this.container=c},FeedbackDialog=function(a){var c=document.createElement("div"),f=document.createElement("div");mxUtils.write(f,mxResources.get("sendYourFeedbackToDrawIo"));f.style.fontSize="18px";f.style.marginBottom="18px";c.appendChild(f);f=document.createElement("div");mxUtils.write(f,mxResources.get("yourEmailAddress")+" ("+mxResources.get("required")+")");c.appendChild(f);var d=document.createElement("input"); +d.setAttribute("type","text");d.style.marginTop="6px";d.style.width="600px";var b=mxUtils.button(mxResources.get("sendMessage"),function(){var b=(g.checked?"\nDiagram:\n"+a.getFileData():"")+"\nBrowser:\n"+navigator.userAgent;b.length>FeedbackDialog.maxAttachmentSize?a.alert(mxResources.get("drawingTooLarge")):(a.hideDialog(),a.spinner.spin(document.body)&&mxUtils.post(null!=FeedbackDialog.feedbackUrl?FeedbackDialog.feedbackUrl:"/email","email="+encodeURIComponent(d.value)+"&version="+encodeURIComponent(EditorUi.VERSION)+ +"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent("Feedback:\n"+l.value+b),function(b){a.spinner.stop();200<=b.getStatus()&&299>=b.getStatus()?a.alert(mxResources.get("feedbackSent")):a.alert(mxResources.get("errorSendingFeedback"))},function(){a.spinner.stop();a.alert(mxResources.get("errorSendingFeedback"))}))});b.className="geBtn gePrimaryBtn";b.setAttribute("disabled","disabled");var e=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; +mxEvent.addListener(d,"change",function(){0a.maxImageSize||l>a.maxImageSize){var F=Math.min(1,Math.min(a.maxImageSize/Math.max(1,f)),a.maxImageSize/Math.max(1,l));f*=F;l*=F}C>D?(D=Math.round(100*D/C),C=100):(C=Math.round(100*C/D),D=100);var E=document.createElement("div");E.setAttribute("draggable","true");E.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";E.style.position="relative";E.style.cursor="move";mxUtils.setPrefixedStyle(E.style,"transition","transform .1s ease-in-out");if(null!= -b){var H=document.createElement("img");H.setAttribute("src",B.convert(b));H.style.width=C+"px";H.style.height=D+"px";H.style.margin="10px";H.style.paddingBottom=Math.floor((100-D)/2)+"px";H.style.paddingLeft=Math.floor((100-C)/2)+"px";E.appendChild(H)}else if(null!=m){var K=a.stringToCells(a.editor.graph.decompress(m.xml));0a.maxImageSize||l>a.maxImageSize){var F=Math.min(1,Math.min(a.maxImageSize/Math.max(1,f)),a.maxImageSize/Math.max(1,l));f*=F;l*=F}C>E?(E=Math.round(100*E/C),C=100):(C=Math.round(100*C/E),E=100);var D=document.createElement("div");D.setAttribute("draggable","true");D.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";D.style.position="relative";D.style.cursor="move";mxUtils.setPrefixedStyle(D.style,"transition","transform .1s ease-in-out");if(null!= +b){var G=document.createElement("img");G.setAttribute("src",B.convert(b));G.style.width=C+"px";G.style.height=E+"px";G.style.margin="10px";G.style.paddingBottom=Math.floor((100-E)/2)+"px";G.style.paddingLeft=Math.floor((100-C)/2)+"px";D.appendChild(G)}else if(null!=m){var K=a.stringToCells(a.editor.graph.decompress(m.xml));0x?z-1:z,0,n.splice(x,1)[0]),t.insertBefore(t.children[x],t.children[z])):(n.push(n.splice(x,1)[0]),t.appendChild(t.children[x]));else if(0x?z-1:z,0,n.splice(x,1)[0]),t.insertBefore(t.children[x],t.children[z])):(n.push(n.splice(x,1)[0]),t.appendChild(t.children[x]));else if(0=c.status&&(k(c.responseText,d,e,f,g,l,m,"fixed",mxEvent.isAltDown(b)? +"260px";u.style.textAlign="center";u.style.fontSize="22px";u.style.color="#a0c3ff";mxUtils.write(u,mxResources.get("dragImagesHere"));f.appendChild(u);var v={},x=null,z=null,A=null;c=function(a){"true"!=mxEvent.getSource(a).getAttribute("contentEditable")&&null!=A&&(A(),A=null,mxEvent.consume(a))};mxEvent.addListener(t,"mousedown",c);mxEvent.addListener(t,"pointerdown",c);mxEvent.addListener(t,"touchstart",c);var B=new mxUrlConverter,y=!1;if(null!=d)for(c=0;c=c.status&&(k(c.responseText,d,e,f,g,l,m,"fixed",mxEvent.isAltDown(b)? null:m.substring(0,m.lastIndexOf(".")).replace(/_/g," ")),t.scrollTop=t.scrollHeight))})):(k(c,d,e,f,g,l,m,"fixed",mxEvent.isAltDown(b)?null:m.substring(0,m.lastIndexOf(".")).replace(/_/g," ")),t.scrollTop=t.scrollHeight)}};mxEvent.addListener(t,"dragover",l);mxEvent.addListener(t,"drop",m);mxEvent.addListener(u,"dragover",l);mxEvent.addListener(u,"drop",m);f.appendChild(t);d=document.createElement("div");d.style.textAlign="right";d.style.marginTop="20px";c=mxUtils.button(mxResources.get("cancel"), function(){a.hideDialog(!0)});c.setAttribute("id","btnCancel");c.className="geBtn";a.editor.cancelFirst&&d.appendChild(c);window.chrome&&chrome.app&&chrome.app.runtime?q.setAttribute("disabled","disabled"):(p=mxUtils.button(mxResources.get("export"),function(){var b=a.createLibraryDataFromImages(n),c=q.value;/(\.xml)$/i.test(c)||(c+=".xml");a.isLocalFileSave()?a.saveLocalFile(b,c,"text/xml",null,null,!0):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(c)+"&format=xml&xml="+encodeURIComponent(b))).simulate(document, -"_blank")}),p.setAttribute("id","btnDownload"),p.className="geBtn",d.appendChild(p));var E=document.createElement("input");E.setAttribute("multiple","multiple");E.setAttribute("type","file");null==document.documentMode&&(mxEvent.addListener(E,"change",function(b){A=!1;a.importFiles(E.files,0,0,a.maxImageSize,function(a,c,d,e,f,k,g,l,m){C(b)(a,c,d,e,f,k,g,l,m);E.value=""});t.scrollTop=t.scrollHeight}),p=mxUtils.button(mxResources.get("import"),function(){null!=y&&(y(),y=null);E.click()}),p.setAttribute("id", -"btnAddImage"),p.className="geBtn",d.appendChild(p));p=mxUtils.button(mxResources.get("addImageUrl"),function(){null!=y&&(y(),y=null);a.showImageDialog(mxResources.get("addImageUrl"),"",function(a,b,c){A=!1;if(null!=a){if("data:image/"==a.substring(0,11)){var d=a.indexOf(",");0'), -g.writeln("MathJax.Hub.Config({"),g.writeln('messageStyle: "none",'),g.writeln('jax: ["input/TeX", "input/MathML", "input/AsciiMath", "output/HTML-CSS"],'),g.writeln('extensions: ["tex2jax.js", "mml2jax.js", "asciimath2jax.js"],'),g.writeln("TeX: {"),g.writeln('extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js"]'),g.writeln("},"),g.writeln("tex2jax: {"),g.writeln('\tignoreClass: "geDisableMathJax"'),g.writeln("},"),g.writeln("asciimath2jax: {"),g.writeln('\tignoreClass: "geDisableMathJax"'), -g.writeln("}"),g.writeln("});"),b&&(g.writeln("MathJax.Hub.Queue(function () {"),g.writeln("window.print();"),g.writeln("});")),g.writeln("\x3c/script>"),g.writeln('