diff --git a/ChangeLog b/ChangeLog index acde282f..47cb0fb6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +29-JUN-2017: 6.8.9 + +- Fixes execution order and ignored state parameter + 29-JUN-2017: 6.8.8 - Updates translations diff --git a/VERSION b/VERSION index 7be101bb..bab0a8f5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.8.8 \ No newline at end of file +6.8.9 \ No newline at end of file diff --git a/etc/build/build.xml b/etc/build/build.xml index 1caf3cf8..1467be2e 100644 --- a/etc/build/build.xml +++ b/etc/build/build.xml @@ -274,7 +274,26 @@ - + + + + + + + + + + + + + + + + + + + + @@ -299,6 +318,12 @@ + + + + + + @@ -309,7 +334,6 @@ - @@ -320,7 +344,6 @@ - diff --git a/war/WEB-INF/appengine-web.xml b/war/WEB-INF/appengine-web.xml index cf682fa7..2eb8e09d 100644 --- a/war/WEB-INF/appengine-web.xml +++ b/war/WEB-INF/appengine-web.xml @@ -2,7 +2,7 @@ drawdotio - 6-8-8 + test diff --git a/war/cache.manifest b/war/cache.manifest index 8361025a..c3b507be 100644 --- a/war/cache.manifest +++ b/war/cache.manifest @@ -1,7 +1,7 @@ CACHE MANIFEST # THIS FILE WAS GENERATED. DO NOT MODIFY! -# 06/29/2017 05:11 PM +# 06/29/2017 10:51 PM app.html index.html?offline=1 diff --git a/war/js/app.min.js b/war/js/app.min.js index d018e213..eba1d32c 100644 --- a/war/js/app.min.js +++ b/war/js/app.min.js @@ -7398,555 +7398,555 @@ null,null,this.getTagsForStencil("mxgraph.weblogos","wordpress","web logos logo" "yammer;fillColor=#0093BE;strokeColor=none",.2*348,59.6,"","Yammer",null,null,this.getTagsForStencil("mxgraph.weblogos","yammer","web logos logo").join(" ")),this.createVertexTemplateEntry(d+"yandex",31.8,66.4,"","Yandex",null,null,this.getTagsForStencil("mxgraph.weblogos","yandex","web logos logo").join(" ")),this.createVertexTemplateEntry(d+"yelp;fillColor=#C41200;strokeColor=none",.2*317,83,"","Yelp",null,null,this.getTagsForStencil("mxgraph.weblogos","yelp","web logos logo").join(" ")),this.createVertexTemplateEntry(d+ "yoolink",79.2,79.2,"","Yoolink",null,null,this.getTagsForStencil("mxgraph.weblogos","yoolink","web logos logo").join(" ")),this.createVertexTemplateEntry(d+"youmob",76,76.2,"","Youmob",null,null,this.getTagsForStencil("mxgraph.weblogos","youmob","web logos logo").join(" ")),this.createVertexTemplateEntry(d+"youtube;fillColor=#FF2626;gradientColor=#B5171F",.2*786,65.8,"","Youtube",null,null,this.getTagsForStencil("mxgraph.weblogos","youtube","web logos logo").join(" ")),this.createVertexTemplateEntry(d+ "youtube_2;fillColor=#FF2626;gradientColor=#B5171F",.2*232,32.6,"","Youtube",null,null,this.getTagsForStencil("mxgraph.weblogos","youtube","web logos logo").join(" "))])}})(); -DrawioFile=function(a,f){mxEventSource.call(this);this.ui=a;this.data=f||""};mxUtils.extend(DrawioFile,mxEventSource);DrawioFile.prototype.autosaveDelay=1500;DrawioFile.prototype.maxAutosaveDelay=3E4;DrawioFile.prototype.autosaveThread=null;DrawioFile.prototype.lastAutosave=null;DrawioFile.prototype.modified=!1;DrawioFile.prototype.changeListenerEnabled=!0;DrawioFile.prototype.lastAutosaveRevision=null;DrawioFile.prototype.maxAutosaveRevisionDelay=18E5;DrawioFile.prototype.descriptorChanged=function(){this.fireEvent(new mxEventObject("descriptorChanged"))}; -DrawioFile.prototype.contentChanged=function(){this.fireEvent(new mxEventObject("contentChanged"))};DrawioFile.prototype.save=function(a,f,d,c){this.updateFileData();this.clearAutosave()};DrawioFile.prototype.updateFileData=function(){this.setData(this.ui.getFileData())};DrawioFile.prototype.saveAs=function(a,f,d){};DrawioFile.prototype.saveFile=function(a,f,d,c){};DrawioFile.prototype.getPublicUrl=function(a){a(null)};DrawioFile.prototype.isRestricted=function(){return!1}; -DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.setModified=function(a){this.modified=a};DrawioFile.prototype.isAutosaveOptional=function(){return!1};DrawioFile.prototype.isAutosave=function(){return this.ui.editor.autosave};DrawioFile.prototype.isRenamable=function(){return!1};DrawioFile.prototype.rename=function(a,f,d){};DrawioFile.prototype.isMovable=function(){return!1};DrawioFile.prototype.move=function(a,f,d){};DrawioFile.prototype.getHash=function(){return""}; +DrawioFile=function(a,b){mxEventSource.call(this);this.ui=a;this.data=b||""};mxUtils.extend(DrawioFile,mxEventSource);DrawioFile.prototype.autosaveDelay=1500;DrawioFile.prototype.maxAutosaveDelay=3E4;DrawioFile.prototype.autosaveThread=null;DrawioFile.prototype.lastAutosave=null;DrawioFile.prototype.modified=!1;DrawioFile.prototype.changeListenerEnabled=!0;DrawioFile.prototype.lastAutosaveRevision=null;DrawioFile.prototype.maxAutosaveRevisionDelay=18E5;DrawioFile.prototype.descriptorChanged=function(){this.fireEvent(new mxEventObject("descriptorChanged"))}; +DrawioFile.prototype.contentChanged=function(){this.fireEvent(new mxEventObject("contentChanged"))};DrawioFile.prototype.save=function(a,b,c,d){this.updateFileData();this.clearAutosave()};DrawioFile.prototype.updateFileData=function(){this.setData(this.ui.getFileData())};DrawioFile.prototype.saveAs=function(a,b,c){};DrawioFile.prototype.saveFile=function(a,b,c,d){};DrawioFile.prototype.getPublicUrl=function(a){a(null)};DrawioFile.prototype.isRestricted=function(){return!1}; +DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.setModified=function(a){this.modified=a};DrawioFile.prototype.isAutosaveOptional=function(){return!1};DrawioFile.prototype.isAutosave=function(){return this.ui.editor.autosave};DrawioFile.prototype.isRenamable=function(){return!1};DrawioFile.prototype.rename=function(a,b,c){};DrawioFile.prototype.isMovable=function(){return!1};DrawioFile.prototype.move=function(a,b,c){};DrawioFile.prototype.getHash=function(){return""}; DrawioFile.prototype.getId=function(){return""};DrawioFile.prototype.isEditable=function(){return!this.ui.editor.chromeless};DrawioFile.prototype.getUi=function(){return this.ui};DrawioFile.prototype.getTitle=function(){return""};DrawioFile.prototype.setData=function(a){this.data=a};DrawioFile.prototype.getData=function(){return this.data}; -DrawioFile.prototype.open=function(){this.ui.setFileData(this.getData());this.changeListener=mxUtils.bind(this,function(a,f){var d=null!=f?f.getProperty("edit"):null;!this.changeListenerEnabled||!this.isEditable()||null!=d&&d.ignoreEdit||(this.setModified(!0),this.isAutosave()?(this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("saving"))+"..."),this.autosave(this.autosaveDelay,this.maxAutosaveDelay,mxUtils.bind(this,function(a){null!=this.autosaveThread||this.ui.getCurrentFile()!=this|| +DrawioFile.prototype.open=function(){this.ui.setFileData(this.getData());this.changeListener=mxUtils.bind(this,function(a,b){var c=null!=b?b.getProperty("edit"):null;!this.changeListenerEnabled||!this.isEditable()||null!=c&&c.ignoreEdit||(this.setModified(!0),this.isAutosave()?(this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("saving"))+"..."),this.autosave(this.autosaveDelay,this.maxAutosaveDelay,mxUtils.bind(this,function(a){null!=this.autosaveThread||this.ui.getCurrentFile()!=this|| this.isModified()||this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("allChangesSaved")))}),mxUtils.bind(this,function(a){this.ui.getCurrentFile()==this&&this.addUnsavedStatus(a)}))):this.addUnsavedStatus())});this.ui.editor.graph.model.addListener(mxEvent.CHANGE,this.changeListener);this.ui.editor.graph.addListener("gridSizeChanged",this.changeListener);this.ui.editor.graph.addListener("shadowVisibleChanged",this.changeListener);this.ui.addListener("pageFormatChanged",this.changeListener); this.ui.addListener("pageScaleChanged",this.changeListener);this.ui.addListener("backgroundColorChanged",this.changeListener);this.ui.addListener("backgroundImageChanged",this.changeListener);this.ui.addListener("foldingEnabledChanged",this.changeListener);this.ui.addListener("mathEnabledChanged",this.changeListener);this.ui.addListener("gridEnabledChanged",this.changeListener);this.ui.addListener("guidesEnabledChanged",this.changeListener);this.ui.addListener("pageViewChanged",this.changeListener)}; DrawioFile.prototype.addUnsavedStatus=function(a){a instanceof Error&&null!=a.message?this.ui.editor.setStatus('
'+mxUtils.htmlEntities(mxResources.get("unsavedChanges"))+" ("+mxUtils.htmlEntities(a.message)+")
"):(this.ui.editor.setStatus('
'+mxUtils.htmlEntities(mxResources.get("unsavedChangesClickHereToSave"))+"
"),null!=this.ui.statusContainer&&(a=this.ui.statusContainer.getElementsByTagName("div"), 0this.maxAutosaveRevisionDelay}; -DrawioFile.prototype.close=function(a){this.isAutosave()&&this.isModified()&&this.save(this.isAutosaveRevision(),null,null,a);this.destroy()};DrawioFile.prototype.hasSameExtension=function(a,f){if(null!=a&&null!=f){var d=a.lastIndexOf("."),c=0=d&&(mxUtils.br(e),k=0)}d=null!=d?d:3;var h=document.createElement("div");h.style.textAlign="center";h.style.whiteSpace="nowrap";h.style.paddingTop="0px";h.style.paddingBottom="20px";var l=a.addLanguageMenu(h);null!=l&&(l.style.bottom="28px");if(!a.isOffline()&&1this.maxAutosaveRevisionDelay}; +DrawioFile.prototype.close=function(a){this.isAutosave()&&this.isModified()&&this.save(this.isAutosaveRevision(),null,null,a);this.destroy()};DrawioFile.prototype.hasSameExtension=function(a,b){if(null!=a&&null!=b){var c=a.lastIndexOf("."),d=0=c&&(mxUtils.br(h),m=0)}c=null!=c?c:3;var f=document.createElement("div");f.style.textAlign="center";f.style.whiteSpace="nowrap";f.style.paddingTop="0px";f.style.paddingBottom="20px";var g=a.addLanguageMenu(f);null!=g&&(g.style.bottom="28px");if(!a.isOffline()&&1 '+mxResources.get("googleDriveMissingClickHere")+ -"";h.appendChild(b)}},5E3);this.container=h},SplashDialog=function(a){var f=document.createElement("div");f.style.textAlign="center";a.addLanguageMenu(f);var d=null,c=a.getServiceCount();if(!a.isOffline()&&1c&&(h.style.paddingTop="12px",h.innerHTML="",mxUtils.write(h,mxResources.get("chooseAnOption")+":"),b.style.border="none",b.style.padding="16px 0px 0px 0px",e.style.marginBottom="0px");this.container=f},ConfirmDialog=function(a,f,d,c,h,l){var m=document.createElement("div");m.style.textAlign="center";var b=document.createElement("div");b.style.padding="6px";b.style.overflow="auto";b.style.maxHeight="40px";mxClient.IS_QUIRKS&&(b.style.height="60px");mxUtils.write(b, -f);m.appendChild(b);f=document.createElement("div");f.style.marginTop="16px";f.style.textAlign="center";l=mxUtils.button(l||mxResources.get("cancel"),function(){a.hideDialog();null!=c&&c()});l.className="geBtn";a.editor.cancelFirst&&f.appendChild(l);h=mxUtils.button(h||mxResources.get("ok"),function(){a.hideDialog();null!=d&&d()});f.appendChild(h);h.className="geBtn gePrimaryBtn";a.editor.cancelFirst||f.appendChild(l);m.appendChild(f);this.container=m},ErrorDialog=function(a,f,d,c,h,l,m,b,e){e=null!= -e?e:!0;var g=document.createElement("div");g.style.textAlign="center";if(null!=f){var k=document.createElement("div");k.style.padding="0px";k.style.margin="0px";k.style.fontSize="18px";k.style.paddingBottom="16px";k.style.marginBottom="16px";k.style.borderBottom="1px solid #c0c0c0";k.style.color="gray";mxUtils.write(k,f);g.appendChild(k)}f=document.createElement("div");f.style.padding="6px";f.innerHTML=d;g.appendChild(f);d=document.createElement("div");d.style.marginTop="16px";d.style.textAlign="right"; -null!=l&&(f=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();l()}),f.className="geBtn",d.appendChild(f),d.style.textAlign="center");var n=mxUtils.button(c,function(){e&&a.hideDialog();null!=h&&h()});n.className="geBtn";d.appendChild(n);null!=m&&(c=mxUtils.button(m,function(){e&&a.hideDialog();null!=b&&b()}),c.className="geBtn gePrimaryBtn",d.appendChild(c));this.init=function(){n.focus()};g.appendChild(d);this.container=g},EmbedDialog=function(a,f,d,c,h){c=document.createElement("div"); -var l=/^https?:\/\//.test(f)||/^mailto:\/\//.test(f);mxUtils.write(c,mxResources.get(5E5>f.length?l?"link":"mainEmbedNotice":"preview")+":");mxUtils.br(c);var m=document.createElement("div");m.style.position="absolute";m.style.top="30px";m.style.right="30px";m.style.color="gray";mxUtils.write(m,a.formatFileSize(f.length));c.appendChild(m);var b=document.createElement("textarea");b.setAttribute("autocomplete","off");b.setAttribute("autocorrect","off");b.setAttribute("autocapitalize","off");b.setAttribute("spellcheck", -"false");b.style.marginTop="10px";b.style.resize="none";b.style.height="150px";b.style.width="440px";b.style.border="1px solid gray";b.value=mxResources.get("updatingDocument");c.appendChild(b);mxUtils.br(c);this.init=function(){window.setTimeout(function(){5E5>f.length?(b.value=f,b.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?b.select():document.execCommand("selectAll",!1,null)):(b.setAttribute("readonly","true"),b.value=f.substring(0,340)+"... ("+mxResources.get("drawingTooLarge")+ -")")},0)};m=document.createElement("div");m.style.position="absolute";m.style.bottom="36px";m.style.right="32px";var e=null;mxClient.IS_CHROMEAPP||navigator.standalone||!(l||mxClient.IS_SVG&&(null==document.documentMode||9f.length?"preview":"openInNewWindow"),function(){var e=5E5>f.length?b.value:f;if(null!=h)h(e);else if(l)try{var c=window.open(e);(null==d||0"+encodeURIComponent(mxResources.get("preview"))+''+f+"");g.close()}}),e.className="geBtn",m.appendChild(e));if(!l||7500f.length){var k=mxUtils.button("",function(){try{var e="https://www.facebook.com/sharer.php?p[url]="+encodeURIComponent(b.value);window.open(e)}catch(u){a.handleError({message:u.message||mxResources.get("drawingTooLarge")})}}),g=document.createElement("img");g.setAttribute("src",Editor.facebookImage);g.setAttribute("border","0");k.appendChild(g);k.setAttribute("title",mxResources.get("facebook")+ -" ("+a.formatFileSize(51200)+" max)");k.style.verticalAlign="bottom";k.style.paddingTop="4px";k.style.minWidth="46px";k.className="geBtn";m.appendChild(k)}7168>f.length&&(k=mxUtils.button("",function(){try{var e="https://twitter.com/intent/tweet?text="+encodeURIComponent("Check out the diagram I made using @drawio")+"&url="+encodeURIComponent(b.value);window.open(e)}catch(u){a.handleError({message:u.message||mxResources.get("drawingTooLarge")})}}),g=document.createElement("img"),g.setAttribute("src", -Editor.tweetImage),g.setAttribute("border","0"),g.style.marginBottom="5px",k.appendChild(g),k.setAttribute("title",mxResources.get("twitter")+" ("+a.formatFileSize(7168)+" max)"),k.style.verticalAlign="bottom",k.style.paddingTop="4px",k.style.minWidth="46px",k.className="geBtn",m.appendChild(k))}g=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});m.appendChild(g);k=mxUtils.button(mxResources.get("copy"),function(){b.focus();mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS? -b.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");a.alert(mxResources.get("copiedToClipboard"))});5E5>f.length?mxClient.IS_SF||null!=document.documentMode?g.className="geBtn gePrimaryBtn":(m.appendChild(k),k.className="geBtn gePrimaryBtn",g.className="geBtn"):(m.appendChild(e),g.className="geBtn",e.className="geBtn gePrimaryBtn");c.appendChild(m);this.container=c},GoogleSitesDialog=function(a,f){function d(){var b=null!=z.getTitle()?z.getTitle():this.defaultFilename; -if(B.checked&&""!=u.value){var a="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(u.value));null!=b&&(a+="&title="+encodeURIComponent(b));0";f.appendChild(b)}},5E3);this.container=f},SplashDialog=function(a){var b=document.createElement("div");b.style.textAlign="center";a.addLanguageMenu(b);var c=null,d=a.getServiceCount();if(!a.isOffline()&&1d&&(f.style.paddingTop="12px",f.innerHTML="",mxUtils.write(f,mxResources.get("chooseAnOption")+":"),e.style.border="none",e.style.padding="16px 0px 0px 0px",h.style.marginBottom="0px");this.container=b},ConfirmDialog=function(a,b,c,d,f,g){var k=document.createElement("div");k.style.textAlign="center";var e=document.createElement("div");e.style.padding="6px";e.style.overflow="auto";e.style.maxHeight="40px";mxClient.IS_QUIRKS&&(e.style.height="60px");mxUtils.write(e, +b);k.appendChild(e);b=document.createElement("div");b.style.marginTop="16px";b.style.textAlign="center";g=mxUtils.button(g||mxResources.get("cancel"),function(){a.hideDialog();null!=d&&d()});g.className="geBtn";a.editor.cancelFirst&&b.appendChild(g);f=mxUtils.button(f||mxResources.get("ok"),function(){a.hideDialog();null!=c&&c()});b.appendChild(f);f.className="geBtn gePrimaryBtn";a.editor.cancelFirst||b.appendChild(g);k.appendChild(b);this.container=k},ErrorDialog=function(a,b,c,d,f,g,k,e,h){h=null!= +h?h:!0;var l=document.createElement("div");l.style.textAlign="center";if(null!=b){var m=document.createElement("div");m.style.padding="0px";m.style.margin="0px";m.style.fontSize="18px";m.style.paddingBottom="16px";m.style.marginBottom="16px";m.style.borderBottom="1px solid #c0c0c0";m.style.color="gray";mxUtils.write(m,b);l.appendChild(m)}b=document.createElement("div");b.style.padding="6px";b.innerHTML=c;l.appendChild(b);c=document.createElement("div");c.style.marginTop="16px";c.style.textAlign="right"; +null!=g&&(b=mxUtils.button(mxResources.get("tryAgain"),function(){a.hideDialog();g()}),b.className="geBtn",c.appendChild(b),c.style.textAlign="center");var n=mxUtils.button(d,function(){h&&a.hideDialog();null!=f&&f()});n.className="geBtn";c.appendChild(n);null!=k&&(d=mxUtils.button(k,function(){h&&a.hideDialog();null!=e&&e()}),d.className="geBtn gePrimaryBtn",c.appendChild(d));this.init=function(){n.focus()};l.appendChild(c);this.container=l},EmbedDialog=function(a,b,c,d,f){d=document.createElement("div"); +var g=/^https?:\/\//.test(b)||/^mailto:\/\//.test(b);mxUtils.write(d,mxResources.get(5E5>b.length?g?"link":"mainEmbedNotice":"preview")+":");mxUtils.br(d);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));d.appendChild(k);var e=document.createElement("textarea");e.setAttribute("autocomplete","off");e.setAttribute("autocorrect","off");e.setAttribute("autocapitalize","off");e.setAttribute("spellcheck", +"false");e.style.marginTop="10px";e.style.resize="none";e.style.height="150px";e.style.width="440px";e.style.border="1px solid gray";e.value=mxResources.get("updatingDocument");d.appendChild(e);mxUtils.br(d);this.init=function(){window.setTimeout(function(){5E5>b.length?(e.value=b,e.focus(),mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?e.select():document.execCommand("selectAll",!1,null)):(e.setAttribute("readonly","true"),e.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 h=null;mxClient.IS_CHROMEAPP||navigator.standalone||!(g||mxClient.IS_SVG&&(null==document.documentMode||9b.length?"preview":"openInNewWindow"),function(){var d=5E5>b.length?e.value:b;if(null!=f)f(d);else if(g)try{var h=window.open(d);(null==c||0"+encodeURIComponent(mxResources.get("preview"))+''+b+"");l.close()}}),h.className="geBtn",k.appendChild(h));if(!g||7500b.length){var m=mxUtils.button("",function(){try{var b="https://www.facebook.com/sharer.php?p[url]="+encodeURIComponent(e.value);window.open(b)}catch(p){a.handleError({message:p.message||mxResources.get("drawingTooLarge")})}}),l=document.createElement("img");l.setAttribute("src",Editor.facebookImage);l.setAttribute("border","0");m.appendChild(l);m.setAttribute("title",mxResources.get("facebook")+ +" ("+a.formatFileSize(51200)+" max)");m.style.verticalAlign="bottom";m.style.paddingTop="4px";m.style.minWidth="46px";m.className="geBtn";k.appendChild(m)}7168>b.length&&(m=mxUtils.button("",function(){try{var b="https://twitter.com/intent/tweet?text="+encodeURIComponent("Check out the diagram I made using @drawio")+"&url="+encodeURIComponent(e.value);window.open(b)}catch(p){a.handleError({message:p.message||mxResources.get("drawingTooLarge")})}}),l=document.createElement("img"),l.setAttribute("src", +Editor.tweetImage),l.setAttribute("border","0"),l.style.marginBottom="5px",m.appendChild(l),m.setAttribute("title",mxResources.get("twitter")+" ("+a.formatFileSize(7168)+" max)"),m.style.verticalAlign="bottom",m.style.paddingTop="4px",m.style.minWidth="46px",m.className="geBtn",k.appendChild(m))}l=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});k.appendChild(l);m=mxUtils.button(mxResources.get("copy"),function(){e.focus();mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS? +e.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");a.alert(mxResources.get("copiedToClipboard"))});5E5>b.length?mxClient.IS_SF||null!=document.documentMode?l.className="geBtn gePrimaryBtn":(k.appendChild(m),m.className="geBtn gePrimaryBtn",l.className="geBtn"):(k.appendChild(h),l.className="geBtn",h.className="geBtn gePrimaryBtn");d.appendChild(k);this.container=d},GoogleSitesDialog=function(a,b){function c(){var a=null!=x.getTitle()?x.getTitle():this.defaultFilename; +if(B.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)return String.fromCharCode(48+b);b-=10;if(26>b)return String.fromCharCode(65+b);b-=26;if(26>b)return String.fromCharCode(97+b);b-=26;return 0==b?"-":1==b?"_":"?"},t=function(b,a,e){c1=b>>2;c2=(b&3)<<4|a>>4;c3=(a&15)<<2|e>>6;c4=e&63;r="";r+=p(c1&63);r+=p(c2&63);r+=p(c3&63);return r+= -p(c4&63)},k=new XMLHttpRequest;k.open("GET",c+function(b){r="";for(d=0;dthis.status?(e=new FileReader,e.readAsDataURL(this.response),e.onload=function(e){var c=new Image;c.onload=function(){a.spinner.stop(); -g.getModel().beginUpdate();try{cell=g.insertVertex(null,null,b,h.x,h.y,c.width,c.height,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+a.convertDataUri(e.target.result)+";")}finally{g.getModel().endUpdate()}g.setSelectionCell(cell);g.scrollCellToVisible(g.getSelectionCell())};c.src=e.target.result},e.onerror=function(b){a.handleError(b)}):(a.spinner.stop(),a.handleError(e))};k.onerror=function(b){a.handleError(b)};k.send()}}else if("list"==e){if(0");if(2==m.length){var y=n(m[0]),m=n(m[1]),G=new mxCell("",new mxGeometry);G.edge=!0;y.insertEdge(G,!0);m.insertEdge(G,!1);u.push(G)}}if(0 Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: another authentication Response\n@enduml": -"plantUmlSvg"==b.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 h=a.editor.graph.getFreeInsertPoint(),l=document.createElement("div");l.style.textAlign="right";var m=document.createElement("textarea");m.style.resize="none";m.style.width="100%";m.style.height="354px";m.style.marginBottom= -"16px";var b=document.createElement("select"),e=document.createElement("option");e.setAttribute("value","list");e.setAttribute("selected","selected");mxUtils.write(e,mxResources.get("list"));b.appendChild(e);e=document.createElement("option");e.setAttribute("value","diagram");mxUtils.write(e,mxResources.get("diagram"));b.appendChild(e);e=document.createElement("option");e.setAttribute("value","plantUmlSvg");mxUtils.write(e,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");var g=document.createElement("option"); -g.setAttribute("value","plantUmlPng");mxUtils.write(g,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");/.*\.draw\.io$/.test(window.location.hostname)&&Graph.fileSupport&&!a.isOffline()&&(b.appendChild(e),b.appendChild(g));var k=c();m.value=k;l.appendChild(m);this.init=function(){m.focus()};Graph.fileSupport&&(m.addEventListener("dragover",function(b){b.stopPropagation();b.preventDefault()},!1),m.addEventListener("drop",function(b){b.stopPropagation();b.preventDefault();if(0=b.getStatus()&&(p.removeAttribute("disabled"),l(d,b.getText(),a),k&&h())}))});mxEvent.addListener(d,"dblclick",function(b){k=!0})}else d.innerHTML='
'+ -mxResources.get(e)+"
",g&&l(d),mxEvent.addListener(d,"click",function(b){l(d)}),mxEvent.addListener(d,"dblclick",function(b){h()});t.appendChild(d)}function b(){function b(){for(var b=!0;a=t.scrollHeight&&(b(),mxEvent.consume(a))});var e=null,c;for(c in w){var g=document.createElement("div"),p=mxResources.get(c), -d=w[c];null==p&&(p=c.substring(0,1).toUpperCase()+c.substring(1));18f.lastIndexOf(".")&&0>g){var b=null!=b?b:C.value,p="";b==App.MODE_GOOGLE?p=a.drive.extension:b==App.MODE_GITHUB?p= -a.gitHub.extension:b==App.MODE_DROPBOX?p=a.dropbox.extension:b==App.MODE_ONEDRIVE?p=a.oneDrive.extension:b==App.MODE_DEVICE&&(p=".xml");0<=g&&(e=e.substring(0,g));t.value=e+p}}q(c)})}var d=document.createElement("a");d.style.overflow="hidden";var k=document.createElement("img");k.src=b;k.setAttribute("border","0");k.setAttribute("align","absmiddle");k.style.width="60px";k.style.height="60px";k.style.paddingBottom="6px";d.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";d.className="geBaseButton"; -d.style.position="relative";d.style.margin="4px";d.style.padding="8px 8px 10px 8px";d.style.whiteSpace="nowrap";d.appendChild(k);mxClient.IS_QUIRKS&&(d.style.cssFloat="left",d.style.zoom="1");d.style.color="gray";d.style.fontSize="11px";var v=document.createElement("div");d.appendChild(v);mxUtils.write(v,e);if(null!=g&&null==a[g]){k.style.visibility="hidden";mxUtils.setOpacity(v,10);var h=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});h.spin(d);var l=window.setTimeout(function(){null==a[g]&&(h.stop(),d.style.display="none")},3E4);a.addListener("clientLoaded",mxUtils.bind(this,function(){null!=a[g]&&(window.clearTimeout(l),mxUtils.setOpacity(v,100),k.style.visibility="",h.stop(),p())}))}else p();x.appendChild(d);++w==n&&(mxUtils.br(x),w=0)}function q(b){var e=t.value;if(null==b||null!=e&&0JGraph Ltd.
All Rights Reserved.';f.appendChild(d);mxEvent.addListener(f,"click",function(c){"A"!=mxEvent.getSource(c).nodeName&&a.hideDialog()});this.container=f},FeedbackDialog=function(a){var f= -document.createElement("div"),d=document.createElement("div");mxUtils.write(d,mxResources.get("sendYourFeedbackToDrawIo"));d.style.fontSize="18px";d.style.marginBottom="18px";f.appendChild(d);d=document.createElement("div");mxUtils.write(d,mxResources.get("yourEmailAddress")+" ("+mxResources.get("required")+")");f.appendChild(d);var c=document.createElement("input");c.setAttribute("type","text");c.style.marginTop="6px";c.style.width="600px";var h=mxUtils.button(mxResources.get("sendMessage"),function(){var b= -(m.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"+e.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"))}))});h.className="geBtn gePrimaryBtn";h.setAttribute("disabled","disabled");var l=/^(([^<>()[\]\\.,;:\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':(l.innerHTML="
",mxUtils.write(l,mxResources.get("noPreview"))),null!=m&&(m.style.backgroundColor=""),m=p,m.style.backgroundColor="#ebf2f9",null!=b&&mxEvent.consume(b)};mxEvent.addListener(p,"click",t);mxEvent.addListener(p,"dblclick",function(b){k.checked=!k.checked;mxEvent.consume(b)});b.push(function(){return k.checked?c.id:null});0==g&&0==d&&t()})(c.entries[d])})(d[g]);c.style.padding="30px";c.appendChild(f);c.appendChild(h);c.appendChild(l);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=f.style.width,d.style.paddingTop="12px");var k=document.createElement("input");k.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)f=document.createElement("span"),f.style.paddingRight="20px",f.appendChild(k),mxUtils.write(f," "+mxResources.get("rememberThisSetting")), -k.checked=!0,k.defaultChecked=!0,mxEvent.addListener(f,"click",function(b){mxEvent.getSource(b)!=k&&(k.checked=!k.checked,mxEvent.consume(b))}),mxClient.IS_QUIRKS&&(f.style.position="relative",f.style.top="-6px"),d.appendChild(f);f=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});f.className="geBtn";var n=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();for(var e=[],c=0;cmxUtils.indexOf(h,c[b])&&h.push(c[b]);f()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");a.showDialog(b.container,300,80,!0,!0);b.init()});l.className="geBtn";var m=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()}); -m.className="geBtn";var b=mxUtils.button(mxResources.get("apply"),function(){mxSettings.setPlugins(h);mxSettings.save();a.hideDialog();a.alert(mxResources.get("restartForChangeRequired"))});b.className="geBtn gePrimaryBtn";var e=document.createElement("div");e.style.marginTop="14px";e.style.textAlign="right";a.editor.cancelFirst?(e.appendChild(m),e.appendChild(l),e.appendChild(b)):(e.appendChild(l),e.appendChild(b),e.appendChild(m));d.appendChild(e);this.container=d},EditGeometryDialog=function(a, -f){var d=a.editor.graph,c=1==f.length?d.getCellGeometry(f[0]):null,h=document.createElement("div"),l=document.createElement("table"),m=document.createElement("tbody"),b=document.createElement("tr"),e=document.createElement("td"),g=document.createElement("td");l.style.paddingLeft="6px";mxUtils.write(e,mxResources.get("left")+":");var k=document.createElement("input");k.setAttribute("type","text");k.style.width="100px";k.value=null!=c?c.x:"";this.init=function(){k.focus();k.select()};g.appendChild(k); -b.appendChild(e);b.appendChild(g);m.appendChild(b);b=document.createElement("tr");e=document.createElement("td");g=document.createElement("td");mxUtils.write(e,mxResources.get("top")+":");var n=document.createElement("input");n.setAttribute("type","text");n.style.width="100px";n.value=null!=c?c.y:"";g.appendChild(n);b.appendChild(e);b.appendChild(g);m.appendChild(b);b=document.createElement("tr");e=document.createElement("td");g=document.createElement("td");mxUtils.write(e,mxResources.get("width")+ -":");var u=document.createElement("input");u.setAttribute("type","text");u.style.width="100px";u.value=null!=c?c.width:"";g.appendChild(u);b.appendChild(e);b.appendChild(g);m.appendChild(b);b=document.createElement("tr");e=document.createElement("td");g=document.createElement("td");mxUtils.write(e,mxResources.get("height")+":");var q=document.createElement("input");q.setAttribute("type","text");q.style.width="100px";q.value=null!=c?c.height:"";g.appendChild(q);b.appendChild(e);b.appendChild(g);m.appendChild(b); -b=document.createElement("tr");e=document.createElement("td");g=document.createElement("td");mxUtils.write(e,mxResources.get("rotation")+":");var v=document.createElement("input");v.setAttribute("type","text");v.style.width="100px";v.value=1==f.length?mxUtils.getValue(d.getCellStyle(f[0]),mxConstants.STYLE_ROTATION,0):"";g.appendChild(v);b.appendChild(e);b.appendChild(g);m.appendChild(b);l.appendChild(m);h.appendChild(l);var c=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()}),p= -mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();d.getModel().beginUpdate();try{for(var b=0;ba.maxImageSize||n>a.maxImageSize){var D=Math.min(1,Math.min(a.maxImageSize/Math.max(1,f)),a.maxImageSize/Math.max(1,n));f*=D;n*=D}A>y?(y=Math.round(100*y/A),A=100):(A=Math.round(100*A/y),y=100);var z=document.createElement("div");z.setAttribute("draggable","true");z.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";z.style.position="relative";z.style.cursor="move";mxUtils.setPrefixedStyle(z.style,"transition","transform .1s ease-in-out");if(null!= -e){var I=document.createElement("img");I.setAttribute("src",C.convert(e));I.style.width=A+"px";I.style.height=y+"px";I.style.margin="10px";I.style.paddingBottom=Math.floor((100-y)/2)+"px";I.style.paddingLeft=Math.floor((100-A)/2)+"px";z.appendChild(I)}else if(null!=h){var G=a.stringToCells(a.editor.graph.decompress(h.xml));0t?x-1:x,0,k.splice(t,1)[0]),q.insertBefore(q.children[t],q.children[x])):(k.push(k.splice(t,1)[0]),q.appendChild(q.children[t]));else if(0=c.status&&(b(c.responseText,g,p,d,k,f,t,"fixed",mxEvent.isAltDown(e)?null:t.substring(0,t.lastIndexOf(".")).replace(/_/g," ")),q.scrollTop=q.scrollHeight))})): -(b(c,g,p,d,k,f,t,"fixed",mxEvent.isAltDown(e)?null:t.substring(0,t.lastIndexOf(".")).replace(/_/g," ")),q.scrollTop=q.scrollHeight)}};mxEvent.addListener(q,"dragover",e);mxEvent.addListener(q,"drop",g);mxEvent.addListener(v,"dragover",e);mxEvent.addListener(v,"drop",g);d.appendChild(q);c=document.createElement("div");c.style.textAlign="right";c.style.marginTop="20px";f=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});f.setAttribute("id","btnCancel");f.className="geBtn";a.editor.cancelFirst&& -c.appendChild(f);window.chrome&&chrome.app&&chrome.app.runtime?u.setAttribute("disabled","disabled"):(n=mxUtils.button(mxResources.get("export"),function(){var b=a.createLibraryDataFromImages(k),e=u.value;/(\.xml)$/i.test(e)||(e+=".xml");a.isLocalFileSave()?a.saveLocalFile(b,e,"text/xml",null,null,!0):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(e)+"&format=xml&xml="+encodeURIComponent(b))).simulate(document,"_blank")}),n.setAttribute("id","btnDownload"),n.className="geBtn",c.appendChild(n)); -var z=document.createElement("input");z.setAttribute("multiple","multiple");z.setAttribute("type","file");null==document.documentMode&&(mxEvent.addListener(z,"change",function(b){B=!1;a.importFiles(z.files,0,0,a.maxImageSize,function(a,e,c,g,p,d,k,f,t){A(b)(a,e,c,g,p,d,k,f,t);z.value=""});q.scrollTop=q.scrollHeight}),n=mxUtils.button(mxResources.get("import"),function(){null!=w&&(w(),w=null);z.click()}),n.setAttribute("id","btnAddImage"),n.className="geBtn",c.appendChild(n));n=mxUtils.button(mxResources.get("addImageUrl"), -function(){null!=w&&(w(),w=null);a.showImageDialog(mxResources.get("addImageUrl"),"",function(a,e,c){B=!1;if(null!=a){if("data:image/"==a.substring(0,11)){var g=a.indexOf(",");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+=h(c1&63);r+=h(c2&63);r+=h(c3&63);return r+= +h(c4&63)},g=new XMLHttpRequest;g.open("GET",d+function(a){r="";for(n=0;nthis.status?(c=new FileReader,c.readAsDataURL(this.response),c.onload=function(c){var d=new Image;d.onload=function(){a.spinner.stop(); +e.getModel().beginUpdate();try{cell=e.insertVertex(null,null,b,f.x,f.y,d.width,d.height,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+a.convertDataUri(c.target.result)+";")}finally{e.getModel().endUpdate()}e.setSelectionCell(cell);e.scrollCellToVisible(e.getSelectionCell())};d.src=c.target.result},c.onerror=function(b){a.handleError(b)}):(a.spinner.stop(),a.handleError(c))};g.onerror=function(b){a.handleError(b)};g.send()}}else if("list"==c){if(0");if(2==D.length){var A=k(D[0]),D=k(D[1]),G=new mxCell("",new mxGeometry);G.edge=!0;A.insertEdge(G,!0);D.insertEdge(G,!1);x.push(G)}}if(0 Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: another authentication Response\n@enduml": +"plantUmlSvg"==e.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 f=a.editor.graph.getFreeInsertPoint(),g=document.createElement("div");g.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 e=document.createElement("select"),h=document.createElement("option");h.setAttribute("value","list");h.setAttribute("selected","selected");mxUtils.write(h,mxResources.get("list"));e.appendChild(h);h=document.createElement("option");h.setAttribute("value","diagram");mxUtils.write(h,mxResources.get("diagram"));e.appendChild(h);h=document.createElement("option");h.setAttribute("value","plantUmlSvg");mxUtils.write(h,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");var l=document.createElement("option"); +l.setAttribute("value","plantUmlPng");mxUtils.write(l,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");/.*\.draw\.io$/.test(window.location.hostname)&&Graph.fileSupport&&!a.isOffline()&&(e.appendChild(h),e.appendChild(l));var m=d();k.value=m;g.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()&&(v.removeAttribute("disabled"),g(h,a.getText(),b),l&&f())}))});mxEvent.addListener(h,"dblclick",function(a){l=!0})}else h.innerHTML='
'+ +mxResources.get(c)+"
",e&&g(h),mxEvent.addListener(h,"click",function(a){g(h)}),mxEvent.addListener(h,"dblclick",function(a){f()});t.appendChild(h)}function e(){function a(){for(var a=!0;b=t.scrollHeight&&(a(),mxEvent.consume(b))});var c=null,d;for(d in w){var e=document.createElement("div"),h=mxResources.get(d), +l=w[d];null==h&&(h=d.substring(0,1).toUpperCase()+d.substring(1));18b.lastIndexOf(".")&&0>h){var c=null!=c?c:C.value,l="";c==App.MODE_GOOGLE?l=a.drive.extension:c==App.MODE_GITHUB?l= +a.gitHub.extension:c==App.MODE_DROPBOX?l=a.dropbox.extension:c==App.MODE_ONEDRIVE?l=a.oneDrive.extension:c==App.MODE_DEVICE&&(l=".xml");0<=h&&(d=d.substring(0,h));t.value=d+l}}u(e)})}var f=document.createElement("a");f.style.overflow="hidden";var v=document.createElement("img");v.src=c;v.setAttribute("border","0");v.setAttribute("align","absmiddle");v.style.width="60px";v.style.height="60px";v.style.paddingBottom="6px";f.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";f.className="geBaseButton"; +f.style.position="relative";f.style.margin="4px";f.style.padding="8px 8px 10px 8px";f.style.whiteSpace="nowrap";f.appendChild(v);mxClient.IS_QUIRKS&&(f.style.cssFloat="left",f.style.zoom="1");f.style.color="gray";f.style.fontSize="11px";var g=document.createElement("div");f.appendChild(g);mxUtils.write(g,d);if(null!=h&&null==a[h]){v.style.visibility="hidden";mxUtils.setOpacity(g,10);var m=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});m.spin(f);var q=window.setTimeout(function(){null==a[h]&&(m.stop(),f.style.display="none")},3E4);a.addListener("clientLoaded",mxUtils.bind(this,function(){null!=a[h]&&(window.clearTimeout(q),mxUtils.setOpacity(g,100),v.style.visibility="",m.stop(),l())}))}else l();y.appendChild(f);++w==n&&(mxUtils.br(y),w=0)}function u(b){var d=t.value;if(null==b||null!=d&&0JGraph Ltd.
All Rights Reserved.';b.appendChild(c);mxEvent.addListener(b,"click",function(b){"A"!=mxEvent.getSource(b).nodeName&&a.hideDialog()});this.container=b},FeedbackDialog=function(a){var b= +document.createElement("div"),c=document.createElement("div");mxUtils.write(c,mxResources.get("sendYourFeedbackToDrawIo"));c.style.fontSize="18px";c.style.marginBottom="18px";b.appendChild(c);c=document.createElement("div");mxUtils.write(c,mxResources.get("yourEmailAddress")+" ("+mxResources.get("required")+")");b.appendChild(c);var d=document.createElement("input");d.setAttribute("type","text");d.style.marginTop="6px";d.style.width="600px";var f=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(d.value)+"&version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent("Feedback:\n"+h.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"))}))});f.className="geBtn gePrimaryBtn";f.setAttribute("disabled","disabled");var g=/^(([^<>()[\]\\.,;:\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(){0':(g.innerHTML="
",mxUtils.write(g,mxResources.get("noPreview"))),null!=k&&(k.style.backgroundColor=""),k=c,k.style.backgroundColor="#ebf2f9",null!=a&&mxEvent.consume(a)};mxEvent.addListener(c,"click",v);mxEvent.addListener(c,"dblclick",function(a){m.checked=!m.checked;mxEvent.consume(a)});e.push(function(){return m.checked?b.id:null});0==l&&0==d&&v()})(b.entries[d])})(c[l]);d.style.padding="30px";d.appendChild(b);d.appendChild(f);d.appendChild(g);c=document.createElement("div");c.className= +"geDialogFooter";c.style.position="absolute";c.style.paddingRight="16px";c.style.color="gray";c.style.left="0px";c.style.right="0px";c.style.bottom="0px";c.style.height="60px";c.style.lineHeight="52px";mxClient.IS_QUIRKS&&(c.style.width=b.style.width,c.style.paddingTop="12px");var m=document.createElement("input");m.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)b=document.createElement("span"),b.style.paddingRight="20px",b.appendChild(m),mxUtils.write(b," "+mxResources.get("rememberThisSetting")), +m.checked=!0,m.defaultChecked=!0,mxEvent.addListener(b,"click",function(a){mxEvent.getSource(a)!=m&&(m.checked=!m.checked,mxEvent.consume(a))}),mxClient.IS_QUIRKS&&(b.style.position="relative",b.style.top="-6px"),c.appendChild(b);b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});b.className="geBtn";var n=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();for(var b=[],c=0;cmxUtils.indexOf(f,e[a])&&f.push(e[a]);b()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");a.showDialog(c.container,300,80,!0,!0);c.init()});g.className="geBtn";var k=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()}); +k.className="geBtn";var e=mxUtils.button(mxResources.get("apply"),function(){mxSettings.setPlugins(f);mxSettings.save();a.hideDialog();a.alert(mxResources.get("restartForChangeRequired"))});e.className="geBtn gePrimaryBtn";var h=document.createElement("div");h.style.marginTop="14px";h.style.textAlign="right";a.editor.cancelFirst?(h.appendChild(k),h.appendChild(g),h.appendChild(e)):(h.appendChild(g),h.appendChild(e),h.appendChild(k));c.appendChild(h);this.container=c},EditGeometryDialog=function(a, +b){var c=a.editor.graph,d=1==b.length?c.getCellGeometry(b[0]):null,f=document.createElement("div"),g=document.createElement("table"),k=document.createElement("tbody"),e=document.createElement("tr"),h=document.createElement("td"),l=document.createElement("td");g.style.paddingLeft="6px";mxUtils.write(h,mxResources.get("left")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.width="100px";m.value=null!=d?d.x:"";this.init=function(){m.focus();m.select()};l.appendChild(m); +e.appendChild(h);e.appendChild(l);k.appendChild(e);e=document.createElement("tr");h=document.createElement("td");l=document.createElement("td");mxUtils.write(h,mxResources.get("top")+":");var n=document.createElement("input");n.setAttribute("type","text");n.style.width="100px";n.value=null!=d?d.y:"";l.appendChild(n);e.appendChild(h);e.appendChild(l);k.appendChild(e);e=document.createElement("tr");h=document.createElement("td");l=document.createElement("td");mxUtils.write(h,mxResources.get("width")+ +":");var p=document.createElement("input");p.setAttribute("type","text");p.style.width="100px";p.value=null!=d?d.width:"";l.appendChild(p);e.appendChild(h);e.appendChild(l);k.appendChild(e);e=document.createElement("tr");h=document.createElement("td");l=document.createElement("td");mxUtils.write(h,mxResources.get("height")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.width="100px";u.value=null!=d?d.height:"";l.appendChild(u);e.appendChild(h);e.appendChild(l);k.appendChild(e); +e=document.createElement("tr");h=document.createElement("td");l=document.createElement("td");mxUtils.write(h,mxResources.get("rotation")+":");var q=document.createElement("input");q.setAttribute("type","text");q.style.width="100px";q.value=1==b.length?mxUtils.getValue(c.getCellStyle(b[0]),mxConstants.STYLE_ROTATION,0):"";l.appendChild(q);e.appendChild(h);e.appendChild(l);k.appendChild(e);g.appendChild(k);f.appendChild(g);var d=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()}),v= +mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();c.getModel().beginUpdate();try{for(var d=0;da.maxImageSize||f>a.maxImageSize){var D=Math.min(1,Math.min(a.maxImageSize/Math.max(1,l)),a.maxImageSize/Math.max(1,f));l*=D;f*=D}z>A?(A=Math.round(100*A/z),z=100):(z=Math.round(100*z/A),A=100);var x=document.createElement("div");x.setAttribute("draggable","true");x.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";x.style.position="relative";x.style.cursor="move";mxUtils.setPrefixedStyle(x.style,"transition","transform .1s ease-in-out");if(null!= +b){var I=document.createElement("img");I.setAttribute("src",C.convert(b));I.style.width=z+"px";I.style.height=A+"px";I.style.margin="10px";I.style.paddingBottom=Math.floor((100-A)/2)+"px";I.style.paddingLeft=Math.floor((100-z)/2)+"px";x.appendChild(I)}else if(null!=g){var G=a.stringToCells(a.editor.graph.decompress(g.xml));0t?y-1:y,0,m.splice(t,1)[0]),u.insertBefore(u.children[t],u.children[y])):(m.push(m.splice(t,1)[0]),u.appendChild(u.children[t]));else if(0=c.status&&(e(c.responseText,d,h,l,f,g,v,"fixed",mxEvent.isAltDown(b)?null:v.substring(0,v.lastIndexOf(".")).replace(/_/g," ")),u.scrollTop=u.scrollHeight))})): +(e(c,d,h,l,f,g,v,"fixed",mxEvent.isAltDown(b)?null:v.substring(0,v.lastIndexOf(".")).replace(/_/g," ")),u.scrollTop=u.scrollHeight)}};mxEvent.addListener(u,"dragover",h);mxEvent.addListener(u,"drop",l);mxEvent.addListener(q,"dragover",h);mxEvent.addListener(q,"drop",l);c.appendChild(u);d=document.createElement("div");d.style.textAlign="right";d.style.marginTop="20px";b=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});b.setAttribute("id","btnCancel");b.className="geBtn";a.editor.cancelFirst&& +d.appendChild(b);window.chrome&&chrome.app&&chrome.app.runtime?p.setAttribute("disabled","disabled"):(n=mxUtils.button(mxResources.get("export"),function(){var b=a.createLibraryDataFromImages(m),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")}),n.setAttribute("id","btnDownload"),n.className="geBtn",d.appendChild(n)); +var x=document.createElement("input");x.setAttribute("multiple","multiple");x.setAttribute("type","file");null==document.documentMode&&(mxEvent.addListener(x,"change",function(b){B=!1;a.importFiles(x.files,0,0,a.maxImageSize,function(a,c,d,e,h,l,f,g,v){z(b)(a,c,d,e,h,l,f,g,v);x.value=""});u.scrollTop=u.scrollHeight}),n=mxUtils.button(mxResources.get("import"),function(){null!=w&&(w(),w=null);x.click()}),n.setAttribute("id","btnAddImage"),n.className="geBtn",d.appendChild(n));n=mxUtils.button(mxResources.get("addImageUrl"), +function(){null!=w&&(w(),w=null);a.showImageDialog(mxResources.get("addImageUrl"),"",function(a,b,c){B=!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.configure=function(b){if(null!=b){Menus.prototype.defaultFonts=b.defaultFonts||Menus.prototype.defaultFonts;ColorDialog.prototype.presetColors=b.presetColors||ColorDialog.prototype.presetColors;ColorDialog.prototype.defaultColors=b.defaultColors||ColorDialog.prototype.defaultColors;StyleFormatPanel.prototype.defaultColorSchemes=b.defaultColorSchemes||StyleFormatPanel.prototype.defaultColorSchemes;if(null!=b.css){var a=document.createElement("style");a.setAttribute("type","text/css");a.appendChild(document.createTextNode(b.css)); -var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(a,e)}null!=b.defaultLibraries&&(Sidebar.prototype.defaultEntries=b.defaultLibraries);null!=b.defaultCustomLibraries&&(Editor.defaultCustomLibraries=b.defaultCustomLibraries);null!=b.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=b.defaultVertexStyle);null!=b.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=b.defaultEdgeStyle);b.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=b.emptyDiagramXml);b.thumbWidth&& -(Sidebar.prototype.thumbWidth=b.thumbWidth);b.thumbHeight&&(Sidebar.prototype.thumbHeight=b.thumbHeight);b.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=b.emptyLibraryXml);b.sidebarWidth&&(EditorUi.prototype.hsplitPosition=b.sidebarWidth);b.fontCss&&(a=document.createElement("style"),a.setAttribute("type","text/css"),a.appendChild(document.createTextNode(b.fontCss)),e=document.getElementsByTagName("script")[0],e.parentNode.insertBefore(a,e),Editor.prototype.fontCss=b.fontCss);if(null!=b.plugins)for(App.initPluginCallback(), -a=0;adocument.documentMode)?e.style.filter="progid:DXImageTransform.Microsoft.Gradient(StartColorStr='"+b.fill+"', EndColorStr='"+b.gradient+"', GradientType=0)":e.style.backgroundImage="linear-gradient("+b.fill+" 0px,"+b.gradient+" 100%)":e.style.backgroundColor=b.fill,e.style.border="1px solid "+b.stroke):(e.style.backgroundColor="#ffffff",e.style.border="1px solid #000000"); -g.appendChild(e)}g.innerHTML="";for(var a=0;adocument.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"); +e.appendChild(b)}e.innerHTML="";for(var c=0;c'),e.writeln(b.editor.fontCss),e.writeln(""))};if("undefined"!==typeof MathJax){var l=a.renderPage;a.renderPage=function(b,e,a,c,g,d){var k=l.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=!0:k.className="geDisableMathJax";return k}}a.open(null,null,g,!0)}else{p=e.background;if(null==p||""==p||p==mxConstants.NONE)p="#ffffff";a.backgroundColor= -p;a.autoOrigin=t;a.appendGraph(e,n,k,f,g,!0)}return a}var c=parseInt(S.value)/100;isNaN(c)&&(c=1,S.value="100 %");var c=.75*c,d=q.value,k=u.value,f=!h.checked,n=null;f&&(f=d==p&&k==p);if(!f&&null!=b.pages&&b.pages.length){var t=0,f=b.pages.length-1;h.checked||(t=parseInt(d)-1,f=parseInt(k)-1);for(var l=t;l<=f;l++){var m=b.pages[l],d=m==b.currentPage?g:null;if(null==d){var d=b.createTemporaryGraph(g.getStylesheet()),k=!0,t=!1,x=null,v=null;null==m.viewState&&null==m.mapping&&null==m.root&&b.updatePageRoot(m); -null!=m.viewState?(k=m.viewState.pageVisible,t=m.viewState.mathEnabled,x=m.viewState.background,v=m.viewState.backgroundImage):null!=m.mapping&&null!=m.mapping.diagramMap&&(t="0"!=m.mapping.diagramMap.get("mathEnabled"),x=m.mapping.diagramMap.get("background"),v=m.mapping.diagramMap.get("backgroundImage"),v=null!=v&&0'),f.writeln("MathJax.Hub.Config({"),f.writeln('messageStyle: "none",'),f.writeln('jax: ["input/TeX", "input/MathML", "input/AsciiMath", "output/HTML-CSS"],'),f.writeln('extensions: ["tex2jax.js", "mml2jax.js", "asciimath2jax.js"],'), -f.writeln("TeX: {"),f.writeln('extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js"]'),f.writeln("},"),f.writeln("tex2jax: {"),f.writeln('\tignoreClass: "geDisableMathJax"'),f.writeln("},"),f.writeln("asciimath2jax: {"),f.writeln('\tignoreClass: "geDisableMathJax"'),f.writeln("}"),f.writeln("});"),e&&(f.writeln("MathJax.Hub.Queue(function () {"),f.writeln("window.print();"),f.writeln("});")),f.writeln("\x3c/script>"),f.writeln('