From 658ef546ca00a300a5f53aaaef8e949339ed40b4 Mon Sep 17 00:00:00 2001 From: Gaudenz Alder Date: Thu, 26 Oct 2017 11:23:17 +0200 Subject: [PATCH] 7.6.3 release --- ChangeLog | 5 + VERSION | 2 +- etc/mxgraph/mxClient.js | 4 +- src/com/mxgraph/online/ProxyServlet.java | 20 + war/cache.manifest | 2 +- war/js/app.min.js | 1157 +++++++++---------- war/js/atlas-viewer.min.js | 1004 ++++++++-------- war/js/atlas.min.js | 1327 +++++++++++----------- war/js/diagramly/Dialogs.js | 51 +- war/js/diagramly/Editor.js | 2 +- war/js/diagramly/EditorUi.js | 859 +++++++------- war/js/embed-static.min.js | 6 +- war/js/mxgraph/EditorUi.js | 4 +- war/js/reader.min.js | 6 +- war/js/viewer.min.js | 1004 ++++++++-------- 15 files changed, 2769 insertions(+), 2684 deletions(-) diff --git a/ChangeLog b/ChangeLog index 769d13fa..a3643f92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +26-OCT-2017: 7.6.3 + +- Adds current style to CSV and text +- Uses mxGraph 3.7.6 beta 7 + 25-OCT-2017: 7.6.2 - Adds optional arguments for subclassers diff --git a/VERSION b/VERSION index 6e218b78..43bcdded 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -7.6.2 \ No newline at end of file +7.6.3 \ No newline at end of file diff --git a/etc/mxgraph/mxClient.js b/etc/mxgraph/mxClient.js index 3bad4740..ccc0025b 100644 --- a/etc/mxgraph/mxClient.js +++ b/etc/mxgraph/mxClient.js @@ -929,8 +929,8 @@ mxCellRenderer.prototype.isShapeEvent=function(a,b){return!0};mxCellRenderer.pro mxCellRenderer.prototype.installListeners=function(a){var b=a.view.graph,c=function(c){var d=a;if(b.dialect!=mxConstants.DIALECT_SVG&&"IMG"==mxEvent.getSource(c).nodeName||mxClient.IS_TOUCH)d=mxEvent.getClientX(c),c=mxEvent.getClientY(c),c=mxUtils.convertPoint(b.container,d,c),d=b.view.getState(b.getCellAt(c.x,c.y));return d};mxEvent.addGestureListeners(a.shape.node,mxUtils.bind(this,function(c){this.isShapeEvent(a,c)&&b.fireMouseEvent(mxEvent.MOUSE_DOWN,new mxMouseEvent(c,a))}),mxUtils.bind(this, function(d){this.isShapeEvent(a,d)&&b.fireMouseEvent(mxEvent.MOUSE_MOVE,new mxMouseEvent(d,c(d)))}),mxUtils.bind(this,function(d){this.isShapeEvent(a,d)&&b.fireMouseEvent(mxEvent.MOUSE_UP,new mxMouseEvent(d,c(d)))}));b.nativeDblClickEnabled&&mxEvent.addListener(a.shape.node,"dblclick",mxUtils.bind(this,function(c){this.isShapeEvent(a,c)&&(b.dblClick(c,a.cell),mxEvent.consume(c))}))}; mxCellRenderer.prototype.redrawLabel=function(a,b){var c=this.getLabelValue(a);null==a.text&&null!=c&&(mxUtils.isNode(c)||0=d&&(mxUtils.br(n),g=0)}d=null!=d?d:3;var e=document.createElement("div");e.style.textAlign="center";e.style.whiteSpace="nowrap";e.style.paddingTop="0px";e.style.paddingBottom="20px";var f=a.addLanguageMenu(e,!0);null!=f&&(f.style.bottom=parseInt("28px")-2+"px");if(!a.isOffline()&&1 '+mxResources.get("googleDriveMissingClickHere")+"",e.appendChild(l))},5E3);this.container=e},SplashDialog=function(a){var b=document.createElement("div");b.style.textAlign="center";a.addLanguageMenu(b,!0);var d=null,c=a.getServiceCount();!a.isOffline()&&1 '+mxResources.get("googleDriveMissingClickHere")+"",e.appendChild(m))},5E3);this.container=e},SplashDialog=function(a){var b=document.createElement("div");b.style.textAlign="center";a.addLanguageMenu(b,!0);var d=null,c=a.getServiceCount();!a.isOffline()&&1"+f.innerHTML,f.style.paddingBottom="8px",f.style.paddingTop="8px",f.style.height="auto",f.style.width="40%");a.editor.cancelFirst&&g.appendChild(f);e=mxUtils.button(e||mxResources.get("ok"),function(){a.hideDialog(); -null!=d&&d(l.checked)});g.appendChild(e);null!=k?(e.innerHTML=k+"
"+e.innerHTML+"
",e.style.paddingBottom="8px",e.style.paddingTop="8px",e.style.height="auto",e.className="geBtn",e.style.width="40%"):e.className="geBtn gePrimaryBtn";a.editor.cancelFirst||g.appendChild(f);h.appendChild(g);n?(g.style.marginTop="10px",g=document.createElement("p"),g.style.marginTop="20px",g.appendChild(l),k=document.createElement("span"),mxUtils.write(k," "+mxResources.get("rememberThisSetting")),g.appendChild(k), -h.appendChild(g),mxEvent.addListener(k,"click",function(a){l.checked=!l.checked;mxEvent.consume(a)})):g.style.marginTop="16px";this.container=h},ErrorDialog=function(a,b,d,c,e,f,k,m,n){n=null!=n?n:!0;var h=document.createElement("div");h.style.textAlign="center";if(null!=b){var g=document.createElement("div");g.style.padding="0px";g.style.margin="0px";g.style.fontSize="18px";g.style.paddingBottom="16px";g.style.marginBottom="16px";g.style.borderBottom="1px solid #c0c0c0";g.style.color="gray";mxUtils.write(g, -b);h.appendChild(g)}b=document.createElement("div");b.style.padding="6px";b.innerHTML=d;h.appendChild(b);d=document.createElement("div");d.style.marginTop="16px";d.style.textAlign="right";null!=f&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();f()}),b.className="geBtn",d.appendChild(b),d.style.textAlign="center");var l=mxUtils.button(c,function(){n&&a.hideDialog();null!=e&&e()});l.className="geBtn";d.appendChild(l);null!=k&&(c=mxUtils.button(k,function(){n&&a.hideDialog(); -null!=m&&m()}),c.className="geBtn gePrimaryBtn",d.appendChild(c));this.init=function(){l.focus()};h.appendChild(d);this.container=h},EmbedDialog=function(a,b,d,c,e){c=document.createElement("div");var f=/^https?:\/\//.test(b)||/^mailto:\/\//.test(b);mxUtils.write(c,mxResources.get(5E5>b.length?f?"link":"mainEmbedNotice":"preview")+":");mxUtils.br(c);var k=document.createElement("div");k.style.position="absolute";k.style.top="30px";k.style.right="30px";k.style.color="gray";mxUtils.write(k,a.formatFileSize(b.length)); -c.appendChild(k);var m=document.createElement("textarea");m.setAttribute("autocomplete","off");m.setAttribute("autocorrect","off");m.setAttribute("autocapitalize","off");m.setAttribute("spellcheck","false");m.style.marginTop="10px";m.style.resize="none";m.style.height="150px";m.style.width="440px";m.style.border="1px solid gray";m.value=mxResources.get("updatingDocument");c.appendChild(m);mxUtils.br(c);this.init=function(){window.setTimeout(function(){5E5>b.length?(m.value=b,m.focus(),mxClient.IS_GC|| -mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?m.select():document.execCommand("selectAll",!1,null)):(m.setAttribute("readonly","true"),m.value=b.substring(0,340)+"... ("+mxResources.get("drawingTooLarge")+")")},0)};k=document.createElement("div");k.style.position="absolute";k.style.bottom="36px";k.style.right="32px";var n=null;mxClient.IS_CHROMEAPP&&!f||navigator.standalone||!(f||mxClient.IS_SVG&&(null==document.documentMode||9 -b.length?"preview":"openInNewWindow"),function(){var c=5E5>b.length?m.value:b;if(null!=e)e(c);else if(f)try{var h=window.open(c);(null==d||0"+ -encodeURIComponent(mxResources.get("preview"))+''+b+"");g.close()}}),n.className="geBtn",k.appendChild(n));if(!f||7500b.length){var g=mxUtils.button("",function(){try{var b="https://www.facebook.com/sharer.php?p[url]="+encodeURIComponent(m.value); +"8px",mxUtils.write(e,mxResources.get("notUsingService",[d])),mxEvent.addListener(e,"click",function(){a.hideDialog(!1);a.setMode(null);a.clearMode();a.showSplash(!0)}),k.appendChild(e));b.appendChild(k);this.container=b},ConfirmDialog=function(a,b,d,c,e,f,k,l,n){var h=document.createElement("div");h.style.textAlign="center";var g=document.createElement("div");g.style.padding="6px";g.style.overflow="auto";g.style.maxHeight="40px";mxClient.IS_QUIRKS&&(g.style.height="60px");mxUtils.write(g,b);h.appendChild(g); +g=document.createElement("div");g.style.textAlign="center";g.style.whiteSpace="nowrap";var m=document.createElement("input");m.setAttribute("type","checkbox");f=mxUtils.button(f||mxResources.get("cancel"),function(){a.hideDialog();null!=c&&c(m.checked)});f.className="geBtn";null!=l&&(f.innerHTML=l+"
"+f.innerHTML,f.style.paddingBottom="8px",f.style.paddingTop="8px",f.style.height="auto",f.style.width="40%");a.editor.cancelFirst&&g.appendChild(f);e=mxUtils.button(e||mxResources.get("ok"),function(){a.hideDialog(); +null!=d&&d(m.checked)});g.appendChild(e);null!=k?(e.innerHTML=k+"
"+e.innerHTML+"
",e.style.paddingBottom="8px",e.style.paddingTop="8px",e.style.height="auto",e.className="geBtn",e.style.width="40%"):e.className="geBtn gePrimaryBtn";a.editor.cancelFirst||g.appendChild(f);h.appendChild(g);n?(g.style.marginTop="10px",g=document.createElement("p"),g.style.marginTop="20px",g.appendChild(m),k=document.createElement("span"),mxUtils.write(k," "+mxResources.get("rememberThisSetting")),g.appendChild(k), +h.appendChild(g),mxEvent.addListener(k,"click",function(a){m.checked=!m.checked;mxEvent.consume(a)})):g.style.marginTop="16px";this.container=h},ErrorDialog=function(a,b,d,c,e,f,k,l,n){n=null!=n?n:!0;var h=document.createElement("div");h.style.textAlign="center";if(null!=b){var g=document.createElement("div");g.style.padding="0px";g.style.margin="0px";g.style.fontSize="18px";g.style.paddingBottom="16px";g.style.marginBottom="16px";g.style.borderBottom="1px solid #c0c0c0";g.style.color="gray";mxUtils.write(g, +b);h.appendChild(g)}b=document.createElement("div");b.style.padding="6px";b.innerHTML=d;h.appendChild(b);d=document.createElement("div");d.style.marginTop="16px";d.style.textAlign="right";null!=f&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();f()}),b.className="geBtn",d.appendChild(b),d.style.textAlign="center");var m=mxUtils.button(c,function(){n&&a.hideDialog();null!=e&&e()});m.className="geBtn";d.appendChild(m);null!=k&&(c=mxUtils.button(k,function(){n&&a.hideDialog(); +null!=l&&l()}),c.className="geBtn gePrimaryBtn",d.appendChild(c));this.init=function(){m.focus()};h.appendChild(d);this.container=h},EmbedDialog=function(a,b,d,c,e){c=document.createElement("div");var f=/^https?:\/\//.test(b)||/^mailto:\/\//.test(b);mxUtils.write(c,mxResources.get(5E5>b.length?f?"link":"mainEmbedNotice":"preview")+":");mxUtils.br(c);var k=document.createElement("div");k.style.position="absolute";k.style.top="30px";k.style.right="30px";k.style.color="gray";mxUtils.write(k,a.formatFileSize(b.length)); +c.appendChild(k);var l=document.createElement("textarea");l.setAttribute("autocomplete","off");l.setAttribute("autocorrect","off");l.setAttribute("autocapitalize","off");l.setAttribute("spellcheck","false");l.style.marginTop="10px";l.style.resize="none";l.style.height="150px";l.style.width="440px";l.style.border="1px solid gray";l.value=mxResources.get("updatingDocument");c.appendChild(l);mxUtils.br(c);this.init=function(){window.setTimeout(function(){5E5>b.length?(l.value=b,l.focus(),mxClient.IS_GC|| +mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?l.select():document.execCommand("selectAll",!1,null)):(l.setAttribute("readonly","true"),l.value=b.substring(0,340)+"... ("+mxResources.get("drawingTooLarge")+")")},0)};k=document.createElement("div");k.style.position="absolute";k.style.bottom="36px";k.style.right="32px";var n=null;mxClient.IS_CHROMEAPP&&!f||navigator.standalone||!(f||mxClient.IS_SVG&&(null==document.documentMode||9 +b.length?"preview":"openInNewWindow"),function(){var c=5E5>b.length?l.value:b;if(null!=e)e(c);else if(f)try{var h=window.open(c);(null==d||0"+ +encodeURIComponent(mxResources.get("preview"))+''+b+"");g.close()}}),n.className="geBtn",k.appendChild(n));if(!f||7500b.length){var g=mxUtils.button("",function(){try{var b="https://www.facebook.com/sharer.php?p[url]="+encodeURIComponent(l.value); window.open(b)}catch(p){a.handleError({message:p.message||mxResources.get("drawingTooLarge")})}}),h=document.createElement("img");h.setAttribute("src",Editor.facebookImage);h.setAttribute("width","18");h.setAttribute("height","18");h.setAttribute("border","0");g.appendChild(h);g.setAttribute("title",mxResources.get("facebook")+" ("+a.formatFileSize(51200)+" max)");g.style.verticalAlign="bottom";g.style.paddingTop="4px";g.style.minWidth="46px";g.className="geBtn";k.appendChild(g)}7168>b.length&&(g= -mxUtils.button("",function(){try{var b="https://twitter.com/intent/tweet?text="+encodeURIComponent("Check out the diagram I made using @drawio")+"&url="+encodeURIComponent(m.value);window.open(b)}catch(p){a.handleError({message:p.message||mxResources.get("drawingTooLarge")})}}),h=document.createElement("img"),h.setAttribute("src",Editor.tweetImage),h.setAttribute("width","18"),h.setAttribute("height","18"),h.setAttribute("border","0"),h.style.marginBottom="5px",g.appendChild(h),g.setAttribute("title", -mxResources.get("twitter")+" ("+a.formatFileSize(7168)+" max)"),g.style.verticalAlign="bottom",g.style.paddingTop="4px",g.style.minWidth="46px",g.className="geBtn",k.appendChild(g))}h=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});k.appendChild(h);g=mxUtils.button(mxResources.get("copy"),function(){m.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?m.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");a.alert(mxResources.get("copiedToClipboard"))}); -5E5>b.length?mxClient.IS_SF||null!=document.documentMode?h.className="geBtn gePrimaryBtn":(k.appendChild(g),g.className="geBtn gePrimaryBtn",h.className="geBtn"):(k.appendChild(n),h.className="geBtn",n.className="geBtn gePrimaryBtn");c.appendChild(k);this.container=c},GoogleSitesDialog=function(a,b){function d(){var a=null!=F.getTitle()?F.getTitle():this.defaultFilename;if(z.checked&&""!=p.value){var b="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(p.value)); -null!=a&&(b+="&title="+encodeURIComponent(a));0b.length?mxClient.IS_SF||null!=document.documentMode?h.className="geBtn gePrimaryBtn":(k.appendChild(g),g.className="geBtn gePrimaryBtn",h.className="geBtn"):(k.appendChild(n),h.className="geBtn",n.className="geBtn gePrimaryBtn");c.appendChild(k);this.container=c},GoogleSitesDialog=function(a,b){function d(){var a=null!=F.getTitle()?F.getTitle():this.defaultFilename;if(y.checked&&""!=p.value){var b="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(p.value)); +null!=a&&(b+="&title="+encodeURIComponent(a));0a)return String.fromCharCode(48+a);a-=10;if(26>a)return String.fromCharCode(65+a);a-=26;if(26>a)return String.fromCharCode(97+a);a-=26;return 0==a?"-":1==a?"_":"?"},l=function(a,b,c){c1=a>>2;c2=(a&3)<<4|b>>4;c3=(b&15)<<2|c>>6;c4=c&63;r="";r+=g(c1&63);r+=g(c2&63);r+=g(c3&63);return r+=g(c4&63)},f= -new XMLHttpRequest;f.open("GET",d+function(a){r="";for(k=0;kthis.status?(c=new FileReader,c.readAsDataURL(this.response),c.onload=function(c){var d=new Image;d.onload=function(){a.spinner.stop(); +a.photoPicker=b.setCallback(function(a){ImageDialog.filePicked(a)}).build()}a.photoPicker.setVisible(!0)}))}),g.className="geBtn",c.appendChild(g))}g=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();b(""!=e.value?new mxImage(mxUtils.trim(e.value),l.value,n.value):null)});g.className="geBtn gePrimaryBtn";c.appendChild(g);a.editor.cancelFirst||c.appendChild(h);d.appendChild(c);this.container=d},ParseDialog=function(a,b){function d(b,c){var d=b.split("\n");if("plantUmlPng"==c||"plantUmlSvg"== +c){var d="plantUmlPng"==c?"https://exp.draw.io/plantuml2/png/":"https://exp.draw.io/plantuml2/svg/",h=a.editor.graph;if(a.spinner.spin(document.body,mxResources.get("inserting"))){var g=function(a){if(10>a)return String.fromCharCode(48+a);a-=10;if(26>a)return String.fromCharCode(65+a);a-=26;if(26>a)return String.fromCharCode(97+a);a-=26;return 0==a?"-":1==a?"_":"?"},m=function(a,b,c){c1=a>>2;c2=(a&3)<<4|b>>4;c3=(b&15)<<2|c>>6;c4=c&63;r="";r+=g(c1&63);r+=g(c2&63);r+=g(c3&63);return r+=g(c4&63)},f= +new XMLHttpRequest;f.open("GET",d+function(a){r="";for(p=0;pthis.status?(c=new FileReader,c.readAsDataURL(this.response),c.onload=function(c){var d=new Image;d.onload=function(){a.spinner.stop(); h.getModel().beginUpdate();try{cell=h.insertVertex(null,null,b,e.x,e.y,d.width,d.height,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+a.convertDataUri(c.target.result)+";")}finally{h.getModel().endUpdate()}h.setSelectionCell(cell);h.scrollCellToVisible(h.getSelectionCell())};d.src=c.target.result},c.onerror=function(b){a.handleError(b)}):(a.spinner.stop(),a.handleError(c))};f.onerror=function(b){a.handleError(b)};f.send()}}else if("list"==c){if(0");if(2==E.length){var D=p(E[0]),E=p(E[1]),B=new mxCell("",new mxGeometry);B.edge=!0;D.insertEdge(B,!0);E.insertEdge(B,!1);n.push(B)}}if(0 Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: another authentication Response\n@enduml": -"plantUmlSvg"==m.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 e=a.editor.graph.getFreeInsertPoint(),f=document.createElement("div");f.style.textAlign="right";var k=document.createElement("textarea");k.style.resize="none";k.style.width="100%";k.style.height="354px";k.style.marginBottom= -"16px";var m=document.createElement("select"),n=document.createElement("option");n.setAttribute("value","list");n.setAttribute("selected","selected");mxUtils.write(n,mxResources.get("list"));m.appendChild(n);n=document.createElement("option");n.setAttribute("value","diagram");mxUtils.write(n,mxResources.get("diagram"));m.appendChild(n);n=document.createElement("option");n.setAttribute("value","plantUmlSvg");mxUtils.write(n,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");var h=document.createElement("option"); -h.setAttribute("value","plantUmlPng");mxUtils.write(h,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");EditorUi.enablePlantUml&&Graph.fileSupport&&!a.isOffline()&&(m.appendChild(n),m.appendChild(h));var g=c();k.value=g;f.appendChild(k);this.init=function(){k.focus()};Graph.fileSupport&&(k.addEventListener("dragover",function(a){a.stopPropagation();a.preventDefault()},!1),k.addEventListener("drop",function(a){a.stopPropagation();a.preventDefault();if(0=a.getStatus()&&(F.removeAttribute("disabled"),p(g,a.getText(),b),e&&l())}))});mxEvent.addListener(g,"dblclick",function(a){e=!0})}else g.innerHTML='
'+ -mxResources.get(c)+"
",h&&p(g),mxEvent.addListener(g,"click",function(a){p(g)}),mxEvent.addListener(g,"dblclick",function(a){l()});E.appendChild(g)}function t(){function a(){for(var a=!0;b=E.scrollHeight&&(a(),mxEvent.consume(b))});var c=null,d;for(d in B){var g=document.createElement("div"),l=mxResources.get(d), -e=B[d];null==l&&(l=d.substring(0,1).toUpperCase()+d.substring(1));18b.lastIndexOf(".")&&0>g){var c=null!=c?c:F.value,l="";c==App.MODE_GOOGLE?l=a.drive.extension:c==App.MODE_GITHUB?l=a.gitHub.extension:c==App.MODE_TRELLO?l=a.trello.extension:c==App.MODE_DROPBOX?l=a.dropbox.extension:c==App.MODE_ONEDRIVE?l=a.oneDrive.extension:c==App.MODE_DEVICE&&(l=".xml");0<=g&&(d=d.substring(0, -g));x.value=d+l}}y(h)})}var v=document.createElement("a");v.style.overflow="hidden";var f=document.createElement("img");f.src=c;f.setAttribute("border","0");f.setAttribute("align","absmiddle");f.style.width="60px";f.style.height="60px";f.style.paddingBottom="6px";v.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";v.className="geBaseButton";v.style.position="relative";v.style.margin="4px";v.style.padding="8px 8px 10px 8px";v.style.whiteSpace="nowrap";v.appendChild(f);mxClient.IS_QUIRKS&&(v.style.cssFloat= -"left",v.style.zoom="1");v.style.color="gray";v.style.fontSize="11px";var q=document.createElement("div");v.appendChild(q);mxUtils.write(q,d);if(null!=g&&null==a[g]){f.style.visibility="hidden";mxUtils.setOpacity(q,10);var p=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});p.spin(v);var u=window.setTimeout(function(){null==a[g]&&(p.stop(),v.style.display="none")},3E4);a.addListener("clientLoaded",mxUtils.bind(this, -function(){null!=a[g]&&(window.clearTimeout(u),mxUtils.setOpacity(q,100),f.style.visibility="",p.stop(),e())}))}else e();z.appendChild(v);++G==l&&(mxUtils.br(z),G=0)}function y(b){var c=x.value;if(null==b||null!=c&&0");if(2==A.length){var l=v(A[0]),A=v(A[1]),E=new mxCell("",new mxGeometry);E.edge=!0;l.insertEdge(E,!0);A.insertEdge(E,!1);D.push(E)}}if(0 Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: another authentication Response\n@enduml":"plantUmlSvg"==l.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 e=a.editor.graph.getFreeInsertPoint(),f=document.createElement("div");f.style.textAlign="right";var k=document.createElement("textarea");k.style.resize="none";k.style.width="100%";k.style.height="354px";k.style.marginBottom="16px";var l=document.createElement("select"), +n=document.createElement("option");n.setAttribute("value","list");n.setAttribute("selected","selected");mxUtils.write(n,mxResources.get("list"));l.appendChild(n);n=document.createElement("option");n.setAttribute("value","diagram");mxUtils.write(n,mxResources.get("diagram"));l.appendChild(n);n=document.createElement("option");n.setAttribute("value","plantUmlSvg");mxUtils.write(n,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");var h=document.createElement("option");h.setAttribute("value", +"plantUmlPng");mxUtils.write(h,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");EditorUi.enablePlantUml&&Graph.fileSupport&&!a.isOffline()&&(l.appendChild(n),l.appendChild(h));var g=c();k.value=g;f.appendChild(k);this.init=function(){k.focus()};Graph.fileSupport&&(k.addEventListener("dragover",function(a){a.stopPropagation();a.preventDefault()},!1),k.addEventListener("drop",function(a){a.stopPropagation();a.preventDefault();if(0=a.getStatus()&&(F.removeAttribute("disabled"),p(g,a.getText(),b),e&&m())}))});mxEvent.addListener(g,"dblclick",function(a){e=!0})}else g.innerHTML='
'+mxResources.get(c)+ +"
",h&&p(g),mxEvent.addListener(g,"click",function(a){p(g)}),mxEvent.addListener(g,"dblclick",function(a){m()});D.appendChild(g)}function u(){function a(){for(var a=!0;b=D.scrollHeight&&(a(),mxEvent.consume(b))});var c=null,d;for(d in E){var g=document.createElement("div"),m=mxResources.get(d),e=E[d];null==m&& +(m=d.substring(0,1).toUpperCase()+d.substring(1));18b.lastIndexOf(".")&&0>g){var c=null!=c?c:F.value,m="";c==App.MODE_GOOGLE?m=a.drive.extension:c==App.MODE_GITHUB?m=a.gitHub.extension:c==App.MODE_TRELLO?m=a.trello.extension:c==App.MODE_DROPBOX?m=a.dropbox.extension:c==App.MODE_ONEDRIVE?m=a.oneDrive.extension:c==App.MODE_DEVICE&&(m=".xml");0<=g&&(d=d.substring(0, +g));x.value=d+m}}z(h)})}var v=document.createElement("a");v.style.overflow="hidden";var f=document.createElement("img");f.src=c;f.setAttribute("border","0");f.setAttribute("align","absmiddle");f.style.width="60px";f.style.height="60px";f.style.paddingBottom="6px";v.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";v.className="geBaseButton";v.style.position="relative";v.style.margin="4px";v.style.padding="8px 8px 10px 8px";v.style.whiteSpace="nowrap";v.appendChild(f);mxClient.IS_QUIRKS&&(v.style.cssFloat= +"left",v.style.zoom="1");v.style.color="gray";v.style.fontSize="11px";var q=document.createElement("div");v.appendChild(q);mxUtils.write(q,d);if(null!=g&&null==a[g]){f.style.visibility="hidden";mxUtils.setOpacity(q,10);var p=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});p.spin(v);var t=window.setTimeout(function(){null==a[g]&&(p.stop(),v.style.display="none")},3E4);a.addListener("clientLoaded",mxUtils.bind(this, +function(){null!=a[g]&&(window.clearTimeout(t),mxUtils.setOpacity(q,100),f.style.visibility="",p.stop(),e())}))}else e();y.appendChild(v);++C==m&&(mxUtils.br(y),C=0)}function z(b){var c=x.value;if(null==b||null!=c&&0JGraph Ltd.
All Rights Reserved.';b.appendChild(d);mxEvent.addListener(b,"click",function(b){"A"!=mxEvent.getSource(b).nodeName&&a.hideDialog()});this.container=b},FeedbackDialog=function(a){var b=document.createElement("div"),d=document.createElement("div");mxUtils.write(d,mxResources.get("sendYourFeedbackToDrawIo"));d.style.fontSize= "18px";d.style.marginBottom="18px";b.appendChild(d);d=document.createElement("div");mxUtils.write(d,mxResources.get("yourEmailAddress")+" ("+mxResources.get("required")+")");b.appendChild(d);var c=document.createElement("input");c.setAttribute("type","text");c.style.marginTop="6px";c.style.width="600px";var e=mxUtils.button(mxResources.get("sendMessage"),function(){var b=(k.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(c.value)+"&version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent("Feedback:\n"+n.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"))}))});e.className="geBtn gePrimaryBtn";e.setAttribute("disabled","disabled");var f=/^(([^<>()[\]\\.,;:\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(c,"change",function(){0':(f.innerHTML="
",mxUtils.write(f,mxResources.get("noPreview"))),null!=k&&(k.style.backgroundColor=""),k=c,k.style.backgroundColor="#ebf2f9",null!=a&&mxEvent.consume(a)}; -mxEvent.addListener(c,"click",l);mxEvent.addListener(c,"dblclick",function(a){g.checked=!g.checked;mxEvent.consume(a)});m.push(function(){return g.checked?b.id:null});0==h&&0==d&&l()})(b.entries[d])})(d[h]);c.style.padding="30px";c.appendChild(b);c.appendChild(e);c.appendChild(f);d=document.createElement("div");d.className="geDialogFooter";d.style.position="absolute";d.style.paddingRight="16px";d.style.color="gray";d.style.left="0px";d.style.right="0px";d.style.bottom="0px";d.style.height="60px"; +f.style.marginTop=e.style.marginTop);var k=null,l=[],n=document.createElement("div");n.style.position="relative";n.style.left="0px";n.style.right="0px";for(var h=0;h':(f.innerHTML="
",mxUtils.write(f,mxResources.get("noPreview"))),null!=k&&(k.style.backgroundColor=""),k=c,k.style.backgroundColor="#ebf2f9",null!=a&&mxEvent.consume(a)}; +mxEvent.addListener(c,"click",m);mxEvent.addListener(c,"dblclick",function(a){g.checked=!g.checked;mxEvent.consume(a)});l.push(function(){return g.checked?b.id:null});0==h&&0==d&&m()})(b.entries[d])})(d[h]);c.style.padding="30px";c.appendChild(b);c.appendChild(e);c.appendChild(f);d=document.createElement("div");d.className="geDialogFooter";d.style.position="absolute";d.style.paddingRight="16px";d.style.color="gray";d.style.left="0px";d.style.right="0px";d.style.bottom="0px";d.style.height="60px"; d.style.lineHeight="52px";mxClient.IS_QUIRKS&&(d.style.width=b.style.width,d.style.paddingTop="12px");var g=document.createElement("input");g.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)b=document.createElement("span"),b.style.paddingRight="20px",b.appendChild(g),mxUtils.write(b," "+mxResources.get("rememberThisSetting")),g.checked=!0,g.defaultChecked=!0,mxEvent.addListener(b,"click",function(a){mxEvent.getSource(a)!=g&&(g.checked=!g.checked,mxEvent.consume(a))}),mxClient.IS_QUIRKS&& -(b.style.position="relative",b.style.top="-6px"),d.appendChild(b);b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});b.className="geBtn";var l=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();for(var b=[],c=0;cmxUtils.indexOf(e,l[a])&&e.push(l[a]);b()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");a.showDialog(c.container,300,80,!0,!0);c.init()});f.className="geBtn";var k=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});k.className="geBtn";var m=mxUtils.button(mxResources.get("apply"),function(){mxSettings.setPlugins(e);mxSettings.save();a.hideDialog();a.alert(mxResources.get("restartForChangeRequired"))}); -m.className="geBtn gePrimaryBtn";var n=document.createElement("div");n.style.marginTop="14px";n.style.textAlign="right";a.editor.cancelFirst?(n.appendChild(k),n.appendChild(f),n.appendChild(m)):(n.appendChild(f),n.appendChild(m),n.appendChild(k));d.appendChild(n);this.container=d},CropImageDialog=function(a,b,d){var c=document.createElement("div"),e=document.createElement("table"),f=document.createElement("tbody"),k=document.createElement("tr"),m=document.createElement("td");m.style.whiteSpace="nowrap"; -m.setAttribute("colspan","2");mxUtils.write(m,mxResources.get("loading")+"...");k.appendChild(m);f.appendChild(k);var k=document.createElement("tr"),n=document.createElement("td"),h=document.createElement("td");e.style.paddingLeft="6px";mxUtils.write(n,mxResources.get("left")+":");var g=document.createElement("input");g.setAttribute("type","text");g.style.width="100px";g.value="0";this.init=function(){g.focus();g.select()};h.appendChild(g);k.appendChild(n);k.appendChild(h);f.appendChild(k);k=document.createElement("tr"); -n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("top")+":");var l=document.createElement("input");l.setAttribute("type","text");l.style.width="100px";l.value="0";h.appendChild(l);k.appendChild(n);k.appendChild(h);f.appendChild(k);k=document.createElement("tr");n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("right")+":");var p=document.createElement("input");p.setAttribute("type","text");p.style.width="100px"; -p.value="0";h.appendChild(p);k.appendChild(n);k.appendChild(h);f.appendChild(k);k=document.createElement("tr");n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("bottom")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.width="100px";u.value="0";h.appendChild(u);k.appendChild(n);k.appendChild(h);f.appendChild(k);k=document.createElement("tr");n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("circle")+ -":");k.appendChild(n);var t=document.createElement("input");t.setAttribute("type","checkbox");h.appendChild(t);k.appendChild(h);f.appendChild(k);e.appendChild(f);c.appendChild(e);var e=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()}),q=new Image,y=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var b=document.createElement("canvas"),c=b.getContext("2d"),h=q.width,e=q.height,f=parseInt(g.value),k=parseInt(l.value),h=Math.max(1,h-f-parseInt(p.value)),e=Math.max(1, -e-k-parseInt(u.value));b.width=h;b.height=e;t.checked&&(c.fillStyle="#000000",c.arc(h/2,e/2,Math.min(h/2,e/2),0,2*Math.PI),c.fill(),c.globalCompositeOperation="source-in");c.drawImage(q,f,k,h,e,0,0,h,e);d(b.toDataURL())});y.setAttribute("disabled","disabled");q.onload=function(){y.removeAttribute("disabled");m.innerHTML="";mxUtils.write(m,mxResources.get("width")+": "+q.width+" "+mxResources.get("height")+": "+q.height)};q.src=b;mxEvent.addListener(c,"keypress",function(a){13==a.keyCode&&y.click()}); -b=document.createElement("div");b.style.marginTop="20px";b.style.textAlign="right";a.editor.cancelFirst?(b.appendChild(e),b.appendChild(y)):(b.appendChild(y),b.appendChild(e));c.appendChild(b);this.container=c},EditGeometryDialog=function(a,b){var d=a.editor.graph,c=1==b.length?d.getCellGeometry(b[0]):null,e=document.createElement("div"),f=document.createElement("table"),k=document.createElement("tbody"),m=document.createElement("tr"),n=document.createElement("td"),h=document.createElement("td"); -f.style.paddingLeft="6px";mxUtils.write(n,mxResources.get("left")+":");var g=document.createElement("input");g.setAttribute("type","text");g.style.width="100px";g.value=null!=c?c.x:"";this.init=function(){g.focus();g.select()};h.appendChild(g);m.appendChild(n);m.appendChild(h);k.appendChild(m);m=document.createElement("tr");n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("top")+":");var l=document.createElement("input");l.setAttribute("type","text");l.style.width= -"100px";l.value=null!=c?c.y:"";h.appendChild(l);m.appendChild(n);m.appendChild(h);k.appendChild(m);m=document.createElement("tr");n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("width")+":");var p=document.createElement("input");p.setAttribute("type","text");p.style.width="100px";p.value=null!=c?c.width:"";h.appendChild(p);m.appendChild(n);m.appendChild(h);k.appendChild(m);m=document.createElement("tr");n=document.createElement("td");h=document.createElement("td"); -mxUtils.write(n,mxResources.get("height")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.width="100px";u.value=null!=c?c.height:"";h.appendChild(u);m.appendChild(n);m.appendChild(h);k.appendChild(m);m=document.createElement("tr");n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("rotation")+":");var t=document.createElement("input");t.setAttribute("type","text");t.style.width="100px";t.value=1==b.length?mxUtils.getValue(d.getCellStyle(b[0]), -mxConstants.STYLE_ROTATION,0):"";h.appendChild(t);m.appendChild(n);m.appendChild(h);k.appendChild(m);f.appendChild(k);e.appendChild(f);var c=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()}),q=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();d.getModel().beginUpdate();try{for(var c=0;ca.maxImageSize||e>a.maxImageSize){var G=Math.min(1,Math.min(a.maxImageSize/Math.max(1,l)),a.maxImageSize/Math.max(1,e));l*=G;e*=G}A>C?(C=Math.round(100*C/A),A=100):(A=Math.round(100*A/C),C=100);var H=document.createElement("div"); -H.setAttribute("draggable","true");H.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";H.style.position="relative";H.style.cursor="move";mxUtils.setPrefixedStyle(H.style,"transition","transform .1s ease-in-out");if(null!=b){var D=document.createElement("img");D.setAttribute("src",x.convert(b));D.style.width=A+"px";D.style.height=C+"px";D.style.margin="10px";D.style.paddingBottom=Math.floor((100-C)/2)+"px";D.style.paddingLeft=Math.floor((100-A)/2)+"px";H.appendChild(D)}else if(null!=f){var F= -a.stringToCells(a.editor.graph.decompress(f.xml));0y?w-1:w,0,g.splice(y,1)[0]),u.insertBefore(u.children[y],u.children[w])):(g.push(g.splice(y,1)[0]),u.appendChild(u.children[y]));else if(0=c.status&&(m(c.responseText,d,h,g,l,e,f,"fixed",mxEvent.isAltDown(b)?null:f.substring(0,f.lastIndexOf(".")).replace(/_/g," ")),u.scrollTop=u.scrollHeight))})):(m(c,d,h,g,l,e,f,"fixed",mxEvent.isAltDown(b)?null:f.substring(0,f.lastIndexOf(".")).replace(/_/g," ")),u.scrollTop=u.scrollHeight)}};mxEvent.addListener(u,"dragover", -n);mxEvent.addListener(u,"drop",h);mxEvent.addListener(t,"dragover",n);mxEvent.addListener(t,"drop",h);d.appendChild(u);c=document.createElement("div");c.style.textAlign="right";c.style.marginTop="20px";b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});b.setAttribute("id","btnCancel");b.className="geBtn";a.editor.cancelFirst&&c.appendChild(b);l=mxUtils.button(mxResources.get("export"),function(){var b=a.createLibraryDataFromImages(g),c=p.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")});l.setAttribute("id","btnDownload");l.className="geBtn";c.appendChild(l);var F=document.createElement("input");F.setAttribute("multiple","multiple");F.setAttribute("type","file");null==document.documentMode&&(mxEvent.addListener(F,"change",function(b){z=!1;a.importFiles(F.files,0,0,a.maxImageSize,function(a, -c,d,h,g,l,e,f,v){G(b)(a,c,d,h,g,l,e,f,v);F.value=""});u.scrollTop=u.scrollHeight}),l=mxUtils.button(mxResources.get("import"),function(){null!=v&&(v(),v=null);F.click()}),l.setAttribute("id","btnAddImage"),l.className="geBtn",c.appendChild(l));l=mxUtils.button(mxResources.get("addImageUrl"),function(){null!=v&&(v(),v=null);a.showImageDialog(mxResources.get("addImageUrl"),"",function(a,b,c){z=!1;if(null!=a){if("data:image/"==a.substring(0,11)){var d=a.indexOf(",");0mxUtils.indexOf(e,m[a])&&e.push(m[a]);b()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");a.showDialog(c.container,300,80,!0,!0);c.init()});f.className="geBtn";var k=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});k.className="geBtn";var l=mxUtils.button(mxResources.get("apply"),function(){mxSettings.setPlugins(e);mxSettings.save();a.hideDialog();a.alert(mxResources.get("restartForChangeRequired"))}); +l.className="geBtn gePrimaryBtn";var n=document.createElement("div");n.style.marginTop="14px";n.style.textAlign="right";a.editor.cancelFirst?(n.appendChild(k),n.appendChild(f),n.appendChild(l)):(n.appendChild(f),n.appendChild(l),n.appendChild(k));d.appendChild(n);this.container=d},CropImageDialog=function(a,b,d){var c=document.createElement("div"),e=document.createElement("table"),f=document.createElement("tbody"),k=document.createElement("tr"),l=document.createElement("td");l.style.whiteSpace="nowrap"; +l.setAttribute("colspan","2");mxUtils.write(l,mxResources.get("loading")+"...");k.appendChild(l);f.appendChild(k);var k=document.createElement("tr"),n=document.createElement("td"),h=document.createElement("td");e.style.paddingLeft="6px";mxUtils.write(n,mxResources.get("left")+":");var g=document.createElement("input");g.setAttribute("type","text");g.style.width="100px";g.value="0";this.init=function(){g.focus();g.select()};h.appendChild(g);k.appendChild(n);k.appendChild(h);f.appendChild(k);k=document.createElement("tr"); +n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("top")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.width="100px";m.value="0";h.appendChild(m);k.appendChild(n);k.appendChild(h);f.appendChild(k);k=document.createElement("tr");n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("right")+":");var p=document.createElement("input");p.setAttribute("type","text");p.style.width="100px"; +p.value="0";h.appendChild(p);k.appendChild(n);k.appendChild(h);f.appendChild(k);k=document.createElement("tr");n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("bottom")+":");var t=document.createElement("input");t.setAttribute("type","text");t.style.width="100px";t.value="0";h.appendChild(t);k.appendChild(n);k.appendChild(h);f.appendChild(k);k=document.createElement("tr");n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("circle")+ +":");k.appendChild(n);var u=document.createElement("input");u.setAttribute("type","checkbox");h.appendChild(u);k.appendChild(h);f.appendChild(k);e.appendChild(f);c.appendChild(e);var e=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()}),q=new Image,z=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var b=document.createElement("canvas"),c=b.getContext("2d"),h=q.width,e=q.height,f=parseInt(g.value),k=parseInt(m.value),h=Math.max(1,h-f-parseInt(p.value)),e=Math.max(1, +e-k-parseInt(t.value));b.width=h;b.height=e;u.checked&&(c.fillStyle="#000000",c.arc(h/2,e/2,Math.min(h/2,e/2),0,2*Math.PI),c.fill(),c.globalCompositeOperation="source-in");c.drawImage(q,f,k,h,e,0,0,h,e);d(b.toDataURL())});z.setAttribute("disabled","disabled");q.onload=function(){z.removeAttribute("disabled");l.innerHTML="";mxUtils.write(l,mxResources.get("width")+": "+q.width+" "+mxResources.get("height")+": "+q.height)};q.src=b;mxEvent.addListener(c,"keypress",function(a){13==a.keyCode&&z.click()}); +b=document.createElement("div");b.style.marginTop="20px";b.style.textAlign="right";a.editor.cancelFirst?(b.appendChild(e),b.appendChild(z)):(b.appendChild(z),b.appendChild(e));c.appendChild(b);this.container=c},EditGeometryDialog=function(a,b){var d=a.editor.graph,c=1==b.length?d.getCellGeometry(b[0]):null,e=document.createElement("div"),f=document.createElement("table"),k=document.createElement("tbody"),l=document.createElement("tr"),n=document.createElement("td"),h=document.createElement("td"); +f.style.paddingLeft="6px";mxUtils.write(n,mxResources.get("left")+":");var g=document.createElement("input");g.setAttribute("type","text");g.style.width="100px";g.value=null!=c?c.x:"";this.init=function(){g.focus();g.select()};h.appendChild(g);l.appendChild(n);l.appendChild(h);k.appendChild(l);l=document.createElement("tr");n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("top")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.width= +"100px";m.value=null!=c?c.y:"";h.appendChild(m);l.appendChild(n);l.appendChild(h);k.appendChild(l);l=document.createElement("tr");n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("width")+":");var p=document.createElement("input");p.setAttribute("type","text");p.style.width="100px";p.value=null!=c?c.width:"";h.appendChild(p);l.appendChild(n);l.appendChild(h);k.appendChild(l);l=document.createElement("tr");n=document.createElement("td");h=document.createElement("td"); +mxUtils.write(n,mxResources.get("height")+":");var t=document.createElement("input");t.setAttribute("type","text");t.style.width="100px";t.value=null!=c?c.height:"";h.appendChild(t);l.appendChild(n);l.appendChild(h);k.appendChild(l);l=document.createElement("tr");n=document.createElement("td");h=document.createElement("td");mxUtils.write(n,mxResources.get("rotation")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.width="100px";u.value=1==b.length?mxUtils.getValue(d.getCellStyle(b[0]), +mxConstants.STYLE_ROTATION,0):"";h.appendChild(u);l.appendChild(n);l.appendChild(h);k.appendChild(l);f.appendChild(k);e.appendChild(f);var c=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()}),q=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();d.getModel().beginUpdate();try{for(var c=0;ca.maxImageSize||e>a.maxImageSize){var G=Math.min(1,Math.min(a.maxImageSize/Math.max(1,m)),a.maxImageSize/Math.max(1,e));m*=G;e*=G}B>C?(C=Math.round(100*C/B),B=100):(B=Math.round(100*B/C),C=100);var A=document.createElement("div"); +A.setAttribute("draggable","true");A.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";A.style.position="relative";A.style.cursor="move";mxUtils.setPrefixedStyle(A.style,"transition","transform .1s ease-in-out");if(null!=b){var I=document.createElement("img");I.setAttribute("src",x.convert(b));I.style.width=B+"px";I.style.height=C+"px";I.style.margin="10px";I.style.paddingBottom=Math.floor((100-C)/2)+"px";I.style.paddingLeft=Math.floor((100-B)/2)+"px";A.appendChild(I)}else if(null!=f){var F= +a.stringToCells(a.editor.graph.decompress(f.xml));0z?w-1:w,0,g.splice(z,1)[0]),t.insertBefore(t.children[z],t.children[w])):(g.push(g.splice(z,1)[0]),t.appendChild(t.children[z]));else if(0=c.status&&(l(c.responseText,d,h,g,m,e,f,"fixed",mxEvent.isAltDown(b)?null:f.substring(0,f.lastIndexOf(".")).replace(/_/g," ")),t.scrollTop=t.scrollHeight))})):(l(c,d,h,g,m,e,f,"fixed",mxEvent.isAltDown(b)?null:f.substring(0,f.lastIndexOf(".")).replace(/_/g," ")),t.scrollTop=t.scrollHeight)}};mxEvent.addListener(t,"dragover", +n);mxEvent.addListener(t,"drop",h);mxEvent.addListener(u,"dragover",n);mxEvent.addListener(u,"drop",h);d.appendChild(t);c=document.createElement("div");c.style.textAlign="right";c.style.marginTop="20px";b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});b.setAttribute("id","btnCancel");b.className="geBtn";a.editor.cancelFirst&&c.appendChild(b);m=mxUtils.button(mxResources.get("export"),function(){var b=a.createLibraryDataFromImages(g),c=p.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")});m.setAttribute("id","btnDownload");m.className="geBtn";c.appendChild(m);var F=document.createElement("input");F.setAttribute("multiple","multiple");F.setAttribute("type","file");null==document.documentMode&&(mxEvent.addListener(F,"change",function(b){y=!1;a.importFiles(F.files,0,0,a.maxImageSize,function(a, +c,d,h,g,m,e,f,v){C(b)(a,c,d,h,g,m,e,f,v);F.value=""});t.scrollTop=t.scrollHeight}),m=mxUtils.button(mxResources.get("import"),function(){null!=v&&(v(),v=null);F.click()}),m.setAttribute("id","btnAddImage"),m.className="geBtn",c.appendChild(m));m=mxUtils.button(mxResources.get("addImageUrl"),function(){null!=v&&(v(),v=null);a.showImageDialog(mxResources.get("addImageUrl"),"",function(a,b,c){y=!1;if(null!=a){if("data:image/"==a.substring(0,11)){var d=a.indexOf(",");0%position%
Email\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node width. Possible value are px or auto. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value are px or auto. Default is auto.\n#\n# height: auto\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -26\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between parallel edges. Default is 40.\n#\n# edgespacing: 40\n#\n## Name of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle. Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nEvan Miller,CFO,emi,Office 1,,me@example.com,#dae8fc,#6c8ebf,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Evan Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nRon Donovan,System Admin,rdo,Office 3,Evan Miller,me@example.com,#d5e8d4,#82b366,"emo,tva",https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nTessa Valet,HR Director,tva,Office 4,Evan Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\n'; +Editor.defaultCustomLibraries=[];Editor.defaultCsvValue='##\n## Example CSV import. Use ## for comments and # for configuration. Paste CSV below.\n## The following names are reserved and should not be used (or ignored):\n## id, tooltip, placeholder(s), link and label (see below)\n##\n#\n## Node label with placeholders and HTML.\n## Default is \'%name_of_first_column%\'.\n#\n# label: %name%
%position%
Email\n#\n## Node style (placeholders are replaced once).\n## Default is the current style for nodes.\n#\n# style: label;image=%image%;whiteSpace=wrap;html=1;rounded=1;fillColor=%fill%;strokeColor=%stroke%;\n#\n## Uses the given column name as the identity for cells (updates existing cells).\n## Default is no identity (empty value or -).\n#\n# identity: -\n#\n## Connections between rows ("from": source colum, "to": target column).\n## Label, style and invert are optional. Defaults are \'\', current style and false.\n## The target column may contain a comma-separated list of values.\n## Multiple connect entries are allowed.\n#\n# connect: {"from": "manager", "to": "name", "invert": true, "label": "manages", \\\n# "style": "curved=1;endArrow=blockThin;endFill=1;fontSize=11;"}\n# connect: {"from": "refs", "to": "id", "style": "curved=1;fontSize=11;"}\n#\n## Node width. Possible value are px or auto. Default is auto.\n#\n# width: auto\n#\n## Node height. Possible value are px or auto. Default is auto.\n#\n# height: auto\n#\n## Padding for autosize. Default is 0.\n#\n# padding: -12\n#\n## Comma-separated list of ignored columns for metadata. (These can be\n## used for connections and styles but will not be added as metadata.)\n#\n# ignore: id,image,fill,stroke\n#\n## Column to be renamed to link attribute (used as link).\n#\n# link: url\n#\n## Spacing between nodes. Default is 40.\n#\n# nodespacing: 40\n#\n## Spacing between parallel edges. Default is 40.\n#\n# edgespacing: 40\n#\n## Name of layout. Possible values are auto, none, verticaltree, horizontaltree,\n## verticalflow, horizontalflow, organic, circle. Default is auto.\n#\n# layout: auto\n#\n## ---- CSV below this line. First line are column names. ----\nname,position,id,location,manager,email,fill,stroke,refs,url,image\nEvan Miller,CFO,emi,Office 1,,me@example.com,#dae8fc,#6c8ebf,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-9-2-128.png\nEdward Morrison,Brand Manager,emo,Office 2,Evan Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-10-3-128.png\nRon Donovan,System Admin,rdo,Office 3,Evan Miller,me@example.com,#d5e8d4,#82b366,"emo,tva",https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-2-128.png\nTessa Valet,HR Director,tva,Office 4,Evan Miller,me@example.com,#d5e8d4,#82b366,,https://www.draw.io,https://cdn3.iconfinder.com/data/icons/user-avatars-1/512/users-3-128.png\n'; Editor.configure=function(a){if(null!=a){Menus.prototype.defaultFonts=a.defaultFonts||Menus.prototype.defaultFonts;ColorDialog.prototype.presetColors=a.presetColors||ColorDialog.prototype.presetColors;ColorDialog.prototype.defaultColors=a.defaultColors||ColorDialog.prototype.defaultColors;StyleFormatPanel.prototype.defaultColorSchemes=a.defaultColorSchemes||StyleFormatPanel.prototype.defaultColorSchemes;Graph.prototype.defaultEdgeLength=a.defaultEdgeLength||Graph.prototype.defaultEdgeLength;if(null!= a.css){var b=document.createElement("style");b.setAttribute("type","text/css");b.appendChild(document.createTextNode(a.css));var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}null!=a.defaultLibraries&&(Sidebar.prototype.defaultEntries=a.defaultLibraries);null!=a.defaultCustomLibraries&&(Editor.defaultCustomLibraries=a.defaultCustomLibraries);null!=a.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=a.defaultVertexStyle);null!=a.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle= a.defaultEdgeStyle);a.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=a.emptyDiagramXml);a.thumbWidth&&(Sidebar.prototype.thumbWidth=a.thumbWidth);a.thumbHeight&&(Sidebar.prototype.thumbHeight=a.thumbHeight);a.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=a.emptyLibraryXml);a.sidebarWidth&&(EditorUi.prototype.hsplitPosition=a.sidebarWidth);a.fontCss&&(b=document.createElement("style"),b.setAttribute("type","text/css"),b.appendChild(document.createTextNode(a.fontCss)),c=document.getElementsByTagName("script")[0], @@ -6499,25 +6500,25 @@ messageStyle:"none",AuthorInit:function(){MathJax.Hub.Config(b||{jax:["input/TeX Editor.MathJaxRender=function(a){"undefined"!==typeof MathJax&&"undefined"!==typeof MathJax.Hub?Editor.doMathJaxRender(a):Editor.mathJaxQueue.push(a)};Editor.MathJaxClear=function(){Editor.mathJaxQueue=[]};var c=Editor.prototype.init;Editor.prototype.init=function(){c.apply(this,arguments);this.graph.addListener(mxEvent.SIZE,mxUtils.bind(this,function(a,b){this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)}))};var d=document.getElementsByTagName("script");if(null!=d&&0document.documentMode)?b.style.filter="progid:DXImageTransform.Microsoft.Gradient(StartColorStr='"+a.fill+"', EndColorStr='"+a.gradient+"', GradientType=0)":b.style.backgroundImage="linear-gradient("+a.fill+" 0px,"+a.gradient+" 100%)":b.style.backgroundColor=a.fill,b.style.border="1px solid "+a.stroke):(b.style.backgroundColor="#ffffff",b.style.border= "1px solid #000000");h.appendChild(b)}h.innerHTML="";for(var c=0;c'),b.writeln(a.editor.fontCss),b.writeln(""))};if("undefined"!==typeof MathJax){var n=c.renderPage;c.renderPage=function(a,b,c,d,h,g){var l=n.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=!0:l.className="geDisableMathJax";return l}}c.open(null,null,h,!0)}else{f=b.background;if(null== -f||""==f||f==mxConstants.NONE)f="#ffffff";c.backgroundColor=f;c.autoOrigin=v;c.appendGraph(b,k,l,e,h,!0)}return c}var d=parseInt(T.value)/100;isNaN(d)&&(d=1,T.value="100 %");var d=.75*d,g=n.value,l=u.value,e=!p.checked,k=null;e&&(e=g==f&&l==f);if(!e&&null!=a.pages&&a.pages.length){var v=0,e=a.pages.length-1;p.checked||(v=parseInt(g)-1,e=parseInt(l)-1);for(var m=v;m<=e;m++){var q=a.pages[m],g=q==a.currentPage?h:null;if(null==g){var g=a.createTemporaryGraph(h.getStylesheet()),l=!0,v=!1,x=null,t=null; -null==q.viewState&&null==q.mapping&&null==q.root&&a.updatePageRoot(q);null!=q.viewState?(l=q.viewState.pageVisible,v=q.viewState.mathEnabled,x=q.viewState.background,t=q.viewState.backgroundImage):null!=q.mapping&&null!=q.mapping.diagramMap&&(v="0"!=q.mapping.diagramMap.get("mathEnabled"),x=q.mapping.diagramMap.get("background"),t=q.mapping.diagramMap.get("backgroundImage"),t=null!=t&&0'),e.writeln("MathJax.Hub.Config({"),e.writeln('messageStyle: "none",'),e.writeln('jax: ["input/TeX", "input/MathML", "input/AsciiMath", "output/HTML-CSS"],'), +var u=mxMarker.createMarker;mxMarker.createMarker=function(a,b,c,d,h,g,m,e,f,k){if(null!=c&&null==mxMarker.markers[c]){var v=this.getPackageForType(c);null!=v&&mxStencilRegistry.getStencil(v)}return u.apply(this,arguments)};PrintDialog.prototype.create=function(a,b){function c(){n.value=Math.max(1,Math.min(e,Math.max(parseInt(n.value),parseInt(t.value))));t.value=Math.max(1,Math.min(e,Math.min(parseInt(n.value),parseInt(t.value))))}function d(b){function c(b,c,h){var g=b.getGraphBounds(),m=0,e=0, +f=U.get(),k=1/b.pageScale,v=N.checked;if(v)var k=parseInt(S.value),p=parseInt(V.value),k=Math.min(f.height*p/(g.height/b.view.scale),f.width*k/(g.width/b.view.scale));else k=parseInt(z.value)/(100*b.pageScale),isNaN(k)&&(d=1/b.pageScale,z.value="100 %");f=mxRectangle.fromRectangle(f);f.width=Math.ceil(f.width*d);f.height=Math.ceil(f.height*d);k*=d;!v&&b.pageVisible?(g=b.getPageLayout(),m-=g.x*f.width,e-=g.y*f.height):v=!0;if(null==c){c=PrintDialog.createPrintPreview(b,k,f,0,m,e,v);c.pageSelector= +!1;c.mathEnabled=!1;b=a.getCurrentFile();null!=b&&(c.title=b.getTitle());var l=c.writeHead;c.writeHead=function(b){l.apply(this,arguments);null!=a.editor.fontCss&&(b.writeln('"))};if("undefined"!==typeof MathJax){var q=c.renderPage;c.renderPage=function(a,b,c,d,h,g){var m=q.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=!0:m.className="geDisableMathJax";return m}}c.open(null,null,h,!0)}else{f=b.background;if(null== +f||""==f||f==mxConstants.NONE)f="#ffffff";c.backgroundColor=f;c.autoOrigin=v;c.appendGraph(b,k,m,e,h,!0)}return c}var d=parseInt(T.value)/100;isNaN(d)&&(d=1,T.value="100 %");var d=.75*d,g=t.value,m=n.value,e=!p.checked,k=null;e&&(e=g==f&&m==f);if(!e&&null!=a.pages&&a.pages.length){var v=0,e=a.pages.length-1;p.checked||(v=parseInt(g)-1,e=parseInt(m)-1);for(var l=v;l<=e;l++){var q=a.pages[l],g=q==a.currentPage?h:null;if(null==g){var g=a.createTemporaryGraph(h.getStylesheet()),m=!0,v=!1,x=null,u=null; +null==q.viewState&&null==q.mapping&&null==q.root&&a.updatePageRoot(q);null!=q.viewState?(m=q.viewState.pageVisible,v=q.viewState.mathEnabled,x=q.viewState.background,u=q.viewState.backgroundImage):null!=q.mapping&&null!=q.mapping.diagramMap&&(v="0"!=q.mapping.diagramMap.get("mathEnabled"),x=q.mapping.diagramMap.get("background"),u=q.mapping.diagramMap.get("backgroundImage"),u=null!=u&&0'),e.writeln("MathJax.Hub.Config({"),e.writeln('messageStyle: "none",'),e.writeln('jax: ["input/TeX", "input/MathML", "input/AsciiMath", "output/HTML-CSS"],'), e.writeln('extensions: ["tex2jax.js", "mml2jax.js", "asciimath2jax.js"],'),e.writeln("TeX: {"),e.writeln('extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js"]'),e.writeln("},"),e.writeln("tex2jax: {"),e.writeln('\tignoreClass: "geDisableMathJax"'),e.writeln("},"),e.writeln("asciimath2jax: {"),e.writeln('\tignoreClass: "geDisableMathJax"'),e.writeln("}"),e.writeln("});"),b&&(e.writeln("MathJax.Hub.Queue(function () {"),e.writeln("window.print();"),e.writeln("});")),e.writeln("\x3c/script>"), -e.writeln('