From 247767c8e1ef08095b499e759937d75dcf303441 Mon Sep 17 00:00:00 2001 From: "David Benson [draw.io]" Date: Wed, 15 Apr 2020 17:54:58 +0100 Subject: [PATCH] 12.9.13 release --- ChangeLog | 4 + VERSION | 2 +- etc/sheetsaddon/Code.gs | 6 +- src/main/webapp/app.html | 2 +- src/main/webapp/js/app.min.js | 1415 ++++---- src/main/webapp/js/diagramly/Dialogs.js | 180 ++ src/main/webapp/js/diagramly/DrawioFile.js | 13 +- src/main/webapp/js/diagramly/DriveClient.js | 5 +- src/main/webapp/js/diagramly/DropboxFile.js | 5 +- src/main/webapp/js/diagramly/EditorUi.js | 52 +- src/main/webapp/js/diagramly/ElectronApp.js | 76 +- src/main/webapp/js/diagramly/GitHubClient.js | 5 +- src/main/webapp/js/diagramly/GitLabClient.js | 5 +- src/main/webapp/js/diagramly/LocalFile.js | 5 +- src/main/webapp/js/diagramly/Menus.js | 23 +- src/main/webapp/js/diagramly/Minimal.js | 238 +- .../webapp/js/diagramly/OneDriveClient.js | 5 +- src/main/webapp/js/mxgraph/Editor.js | 1 + src/main/webapp/js/viewer.min.js | 2876 +++++++++-------- src/main/webapp/service-worker.js | 4 +- 20 files changed, 2644 insertions(+), 2278 deletions(-) diff --git a/ChangeLog b/ChangeLog index 43adc9ac..d167e71e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +15-APR-2020: 12.9.13 + +- Adds file properties dialog + 14-APR-2020: 12.9.12 - Adds edit style to context menu diff --git a/VERSION b/VERSION index 5b657cec..16b5ee15 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -12.9.12 \ No newline at end of file +12.9.13 \ No newline at end of file diff --git a/etc/sheetsaddon/Code.gs b/etc/sheetsaddon/Code.gs index 9f663252..aef2186f 100644 --- a/etc/sheetsaddon/Code.gs +++ b/etc/sheetsaddon/Code.gs @@ -1,5 +1,5 @@ /** - * Draw.io Diagrams Sheets add-on v1.0 + * diagrams.net Diagrams Sheets add-on v1.0 * Copyright (c) 2019, JGraph Ltd */ var EXPORT_URL = "https://exp.draw.io/ImageExport4/export"; @@ -41,7 +41,7 @@ function onInstall() * @return {string} The user's OAuth 2.0 access token. */ function getOAuthToken() { - DriveApp.getRootFolder(); + DriveApp.getFolders(); return ScriptApp.getOAuthToken(); } @@ -53,7 +53,7 @@ function insertDiagrams() var html = HtmlService.createHtmlOutputFromFile('Picker.html') .setWidth(620).setHeight(440) .setSandboxMode(HtmlService.SandboxMode.IFRAME); - SpreadsheetApp.getUi().showModalDialog(html, 'Select draw.io Diagrams:'); + SpreadsheetApp.getUi().showModalDialog(html, 'Select Diagrams:'); } function refreshSheet() diff --git a/src/main/webapp/app.html b/src/main/webapp/app.html index ee9006c3..32753a90 100644 --- a/src/main/webapp/app.html +++ b/src/main/webapp/app.html @@ -1,6 +1,6 @@ - + diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js index e85ed588..ec7845ff 100644 --- a/src/main/webapp/js/app.min.js +++ b/src/main/webapp/js/app.min.js @@ -2137,7 +2137,7 @@ FilenameDialog.createTypeHint=function(a,c,d){var b=document.createElement("img" mxClient.imageBasePath+"/warning.png");b.setAttribute("title",mxResources.get(d[a].title));break}};mxEvent.addListener(c,"keyup",f);mxEvent.addListener(c,"change",f);mxEvent.addListener(b,"click",function(c){var d=b.getAttribute("title");b.getAttribute("src")==Editor.helpImage?a.editor.graph.openLink(FilenameDialog.filenameHelpLink):""!=d&&a.showError(null,d,mxResources.get("help"),function(){a.editor.graph.openLink(FilenameDialog.filenameHelpLink)},null,mxResources.get("ok"),null,null,null,340,90); mxEvent.consume(c)});f();return b}; FilenameDialog.createFileTypes=function(a,c,d){var b=document.createElement("select");for(a=0;ac?a=a.substring(0,c)+"[...]":null!=a&&a.length>e&&(a=Graph.compress(a)+"\n");return a}; DrawioFile.prototype.checksumError=function(a,e,c,b,k){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=a&&a();try{if(this.errorReportsEnabled){if(null!=e)for(a=0;ac&&(mxUtils.br(n),m=0);var x=document.createElement("a");x.style.overflow="hidden";x.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";x.className="geBaseButton";x.style.boxSizing="border-box";x.style.fontSize="11px";x.style.position="relative";x.style.margin="4px";x.style.marginTop="2px";x.style.padding="8px 10px 12px 10px";x.style.width="88px";x.style.height=StorageDialog.extended?"50px": -"100px";x.style.whiteSpace="nowrap";x.setAttribute("title",b);mxClient.IS_QUIRKS&&(x.style.cssFloat="left",x.style.zoom="1");var t=document.createElement("div");t.style.textOverflow="ellipsis";t.style.overflow="hidden";if(null!=d){var q=document.createElement("img");q.setAttribute("src",d);q.setAttribute("border","0");q.setAttribute("align","absmiddle");q.style.width=StorageDialog.extended?"24px":"60px";q.style.height=StorageDialog.extended?"24px":"60px";q.style.paddingBottom=StorageDialog.extended? -"4px":"6px";x.appendChild(q)}else t.style.paddingTop="5px",t.style.whiteSpace="normal",mxClient.IS_IOS?(x.style.padding="0px 10px 20px 10px",x.style.top="6px"):mxClient.IS_FF&&(t.style.paddingTop="0px",t.style.marginTop="-2px");StorageDialog.extended&&(x.style.paddingTop="4px",x.style.marginBottom="0px",t.display="inline-block",2==c&&(q.style.width="38px",q.style.height="38px",x.style.width="80px",x.style.height="68px"));x.appendChild(t);mxUtils.write(t,b);if(null!=u)for(d=0;d '+mxResources.get("googleDriveMissingClickHere")+"",k.appendChild(p))},5E3);this.container=k};StorageDialog.extended=!1; var SplashDialog=function(a){var e=document.createElement("div");e.style.textAlign="center";var c=a.addLanguageMenu(e,!0);null!=c&&(c.style.bottom="19px");c=null;c=a.getServiceCount();if(!a.isOffline()&&1e.length?(d.value=e,d.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?d.select():document.execCommand("selectAll",!1,null)):(d.setAttribute("readonly","true"),d.value=e.substring(0,340)+"... ("+mxResources.get("drawingTooLarge")+")")},0)};f=document.createElement("div");f.style.position="absolute";f.style.bottom="36px";f.style.right="32px";var g=null;!EmbedDialog.showPreviewOption|| mxClient.IS_CHROMEAPP&&!l||navigator.standalone||!(l||mxClient.IS_SVG&&(null==document.documentMode||9e.length?"preview":"openInNewWindow"),function(){var b=5E5>e.length?d.value:e;if(null!=k)k(b);else if(l)try{var g=a.openLink(b);null!=g&&(null==c||0"+encodeURIComponent(mxResources.get("preview"))+''+e+""),m.close()):a.handleError({message:mxResources.get("errorUpdatingPreview")})}}),g.className="geBtn",f.appendChild(g));if(!l||7500"+encodeURIComponent(mxResources.get("preview"))+''+e+""),m.close()):a.handleError({message:mxResources.get("errorUpdatingPreview")})}}),g.className="geBtn",f.appendChild(g));if(!l||7500e.length){var n=mxUtils.button("",function(){try{var b="https://www.facebook.com/sharer.php?p[url]="+encodeURIComponent(d.value);a.openLink(b)}catch(v){a.handleError({message:v.message||mxResources.get("drawingTooLarge")})}}),m=document.createElement("img");m.setAttribute("src",Editor.facebookImage);m.setAttribute("width","18");m.setAttribute("height","18");m.setAttribute("border", "0");n.appendChild(m);n.setAttribute("title",mxResources.get("facebook")+" ("+a.formatFileSize(51200)+" max)");n.style.verticalAlign="bottom";n.style.paddingTop="4px";n.style.minWidth="46px";n.className="geBtn";f.appendChild(n)}7168>e.length&&(n=mxUtils.button("",function(){try{var b="https://twitter.com/intent/tweet?text="+encodeURIComponent("Check out the diagram I made using @drawio")+"&url="+encodeURIComponent(d.value);a.openLink(b)}catch(v){a.handleError({message:v.message||mxResources.get("drawingTooLarge")})}}), m=document.createElement("img"),m.setAttribute("src",Editor.tweetImage),m.setAttribute("width","18"),m.setAttribute("height","18"),m.setAttribute("border","0"),m.style.marginBottom="5px",n.appendChild(m),n.setAttribute("title",mxResources.get("twitter")+" ("+a.formatFileSize(7168)+" max)"),n.style.verticalAlign="bottom",n.style.paddingTop="4px",n.style.minWidth="46px",n.className="geBtn",f.appendChild(n))}m=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});f.appendChild(m);n=mxUtils.button(mxResources.get("copy"), function(){d.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?d.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");a.alert(mxResources.get("copiedToClipboard"))});5E5>e.length?mxClient.IS_SF||null!=document.documentMode?m.className="geBtn gePrimaryBtn":(f.appendChild(n),n.className="geBtn gePrimaryBtn",m.className="geBtn"):(f.appendChild(g),m.className="geBtn",g.className="geBtn gePrimaryBtn");b.appendChild(f);this.container=b}; EmbedDialog.showPreviewOption=!0; -var GoogleSitesDialog=function(a,e){function c(){var a=null!=D&&null!=D.getTitle()?D.getTitle():this.defaultFilename;if(A.checked&&""!=v.value){var d="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(v.value));null!=a&&(d+="&title="+encodeURIComponent(a));0");if(2<=E.length){var v=t(E[0]),K=t(E[E.length-1]),E=new mxCell(2");if(2<=E.length){var v=q(E[0]),J=q(E[E.length-1]),E=new mxCell(2 Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml": @@ -8651,44 +8651,44 @@ try{l=a.editor.graph.importCells(e.getModel().getChildren(e.getDefaultParent()), c&&g.setAttribute("selected","selected");var m=document.createElement("option");m.setAttribute("value","plantUmlPng");mxUtils.write(m,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");var n=document.createElement("option");n.setAttribute("value","plantUmlTxt");mxUtils.write(n,mxResources.get("plantUml")+" ("+mxResources.get("text")+")");EditorUi.enablePlantUml&&Graph.fileSupport&&!a.isOffline()&&"plantUml"==c&&(d.appendChild(g),d.appendChild(m),d.appendChild(n));var p=k();l.value= p;e.appendChild(l);this.init=function(){l.focus()};Graph.fileSupport&&(l.addEventListener("dragover",function(a){a.stopPropagation();a.preventDefault()},!1),l.addEventListener("drop",function(a){a.stopPropagation();a.preventDefault();if(0'+mxResources.get(c,null,c)+"");var v=!1;mxEvent.addListener(u,"click",function(c){H.setAttribute("disabled","disabled");u.style.backgroundColor="transparent";u.style.border="1px solid transparent";c=d;c=/^https?:\/\//.test(c)&&!a.editor.isCorsEnabledForUrl(c)?PROXY_URL+"?url="+encodeURIComponent(c):TEMPLATE_PATH+"/"+c;J.spin(P);mxUtils.get(c,mxUtils.bind(this,function(a){J.stop();200<=a.getStatus()&&299>=a.getStatus()&&(x(u,a.getText(),b,null,null,l),v&&B())}))}); -mxEvent.addListener(u,"dblclick",function(a){v=!0})}else u.innerHTML='
'+mxResources.get(c,null,c)+"
",g&&x(u),null!=n?mxEvent.addListener(u,"click",n):(mxEvent.addListener(u,"click",function(a){x(u,null, -null,d,f)}),mxEvent.addListener(u,"dblclick",function(a){B()}));P.appendChild(u);return u}function C(){ta&&(ta=!1,mxEvent.addListener(P,"scroll",function(a){P.scrollTop+P.clientHeight>=P.scrollHeight&&(y(),mxEvent.consume(a))}));var a=null;if(0'+mxResources.get(c,null,c)+"");var u=!1;mxEvent.addListener(v,"click",function(c){H.setAttribute("disabled","disabled");v.style.backgroundColor="transparent";v.style.border="1px solid transparent";c=d;c=/^https?:\/\//.test(c)&&!a.editor.isCorsEnabledForUrl(c)?PROXY_URL+"?url="+encodeURIComponent(c):TEMPLATE_PATH+"/"+c;K.spin(P);mxUtils.get(c,mxUtils.bind(this,function(a){K.stop();200<=a.getStatus()&&299>=a.getStatus()&&(x(v,a.getText(),b,null,null,l),u&&A())}))}); +mxEvent.addListener(v,"dblclick",function(a){u=!0})}else v.innerHTML='
'+mxResources.get(c,null,c)+"
",g&&x(v),null!=n?mxEvent.addListener(v,"click",n):(mxEvent.addListener(v,"click",function(a){x(v,null, +null,d,f)}),mxEvent.addListener(v,"dblclick",function(a){A()}));P.appendChild(v);return v}function C(){ta&&(ta=!1,mxEvent.addListener(P,"scroll",function(a){P.scrollTop+P.clientHeight>=P.scrollHeight&&(z(),mxEvent.consume(a))}));var a=null;if(0e.lastIndexOf(".")&&0>g){var d=null!=d?d:F.value,m="";d==App.MODE_GOOGLE?m=a.drive.extension:d==App.MODE_GITHUB?m=a.gitHub.extension:d==App.MODE_GITLAB?m=a.gitLab.extension:d==App.MODE_TRELLO?m=a.trello.extension:d==App.MODE_DROPBOX?m=a.dropbox.extension: -d==App.MODE_ONEDRIVE?m=a.oneDrive.extension:d==App.MODE_DEVICE&&(m=".drawio");0<=g&&(b=b.substring(0,g));A.value=b+m}}B(c)})}var f=document.createElement("a");f.style.overflow="hidden";var n=document.createElement("img");n.src=d;n.setAttribute("border","0");n.setAttribute("align","absmiddle");n.style.width="60px";n.style.height="60px";n.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(n);mxClient.IS_QUIRKS&&(f.style.cssFloat="left",f.style.zoom="1");f.style.color="gray";f.style.fontSize="11px";var k=document.createElement("div");f.appendChild(k);mxUtils.write(k,b);if(null!=g&&null==a[g]){n.style.visibility="hidden";mxUtils.setOpacity(k,10);var u=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});u.spin(f);var x=window.setTimeout(function(){null== -a[g]&&(u.stop(),f.style.display="none")},3E4);a.addListener("clientLoaded",mxUtils.bind(this,function(){null!=a[g]&&(window.clearTimeout(x),mxUtils.setOpacity(k,100),n.style.visibility="",u.stop(),m())}))}else m();C.appendChild(f);++D==p&&(mxUtils.br(C),D=0)}function B(d){var b=A.value;if(null==d||null!=b&&0e.lastIndexOf(".")&&0>g){var d=null!=d?d:F.value,m="";d==App.MODE_GOOGLE?m=a.drive.extension:d==App.MODE_GITHUB?m=a.gitHub.extension:d==App.MODE_GITLAB?m=a.gitLab.extension:d==App.MODE_TRELLO?m=a.trello.extension:d==App.MODE_DROPBOX?m=a.dropbox.extension: +d==App.MODE_ONEDRIVE?m=a.oneDrive.extension:d==App.MODE_DEVICE&&(m=".drawio");0<=g&&(b=b.substring(0,g));B.value=b+m}}A(c)})}var f=document.createElement("a");f.style.overflow="hidden";var n=document.createElement("img");n.src=d;n.setAttribute("border","0");n.setAttribute("align","absmiddle");n.style.width="60px";n.style.height="60px";n.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(n);mxClient.IS_QUIRKS&&(f.style.cssFloat="left",f.style.zoom="1");f.style.color="gray";f.style.fontSize="11px";var k=document.createElement("div");f.appendChild(k);mxUtils.write(k,b);if(null!=g&&null==a[g]){n.style.visibility="hidden";mxUtils.setOpacity(k,10);var v=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});v.spin(f);var u=window.setTimeout(function(){null== +a[g]&&(v.stop(),f.style.display="none")},3E4);a.addListener("clientLoaded",mxUtils.bind(this,function(){null!=a[g]&&(window.clearTimeout(u),mxUtils.setOpacity(k,100),n.style.visibility="",v.stop(),m())}))}else m();C.appendChild(f);++D==p&&(mxUtils.br(C),D=0)}function A(d){var b=B.value;if(null==d||null!=b&&0FeedbackDialog.maxAttachmentSize?a.alert(mxResources.get("drawingTooLarge")):(a.hideDialog(), a.spinner.spin(document.body)&&mxUtils.post(null!=FeedbackDialog.feedbackUrl?FeedbackDialog.feedbackUrl:"/email","email="+encodeURIComponent(l.value)+"&version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent((null!=e?e:"Feedback")+":\n"+d),function(d){a.spinner.stop();200<=d.getStatus()&&299>=d.getStatus()?a.alert(mxResources.get("feedbackSent")):a.alert(mxResources.get("errorSendingFeedback"))},function(){a.spinner.stop();a.alert(mxResources.get("errorSendingFeedback"))}))}); d.className="geBtn gePrimaryBtn";if(!c){d.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(l,"change",function(){0':null==d.desc&&(p.style.padding="20px",p.style.color="rgb(179, 179, 179)",mxUtils.write(p,mxResources.get("noPreview")));null!=v&&(v.style.backgroundColor="");v=c;v.style.backgroundColor="dark"==uiTheme?"#505759":"#ebf2f9";null!=a&&mxEvent.consume(a)}};mxEvent.addListener(c,"click",m);mxEvent.addListener(c, -"dblclick",function(a){g.checked=!g.checked;mxEvent.consume(a)});t.push(function(){return g.checked?d.id:null});0==b&&0==e&&m()})(d.entries[e])})(d[b])});f=document.createElement("div");f.className="geDialogTitle";mxUtils.write(f,mxResources.get("shapes"));f.style.position="absolute";f.style.top="0px";f.style.left="0px";f.style.lineHeight="40px";f.style.height="40px";f.style.right="0px";mxClient.IS_QUIRKS&&(f.style.width="718px");var n=document.createElement("div"),p=document.createElement("div"); +"dblclick",function(a){g.checked=!g.checked;mxEvent.consume(a)});q.push(function(){return g.checked?d.id:null});0==b&&0==e&&m()})(d.entries[e])})(d[b])});f=document.createElement("div");f.className="geDialogTitle";mxUtils.write(f,mxResources.get("shapes"));f.style.position="absolute";f.style.top="0px";f.style.left="0px";f.style.lineHeight="40px";f.style.height="40px";f.style.right="0px";mxClient.IS_QUIRKS&&(f.style.width="718px");var n=document.createElement("div"),p=document.createElement("div"); n.style.position="absolute";n.style.top="40px";n.style.left="0px";n.style.width="202px";n.style.bottom="60px";n.style.overflow="auto";mxClient.IS_QUIRKS&&(n.style.height="437px",n.style.marginTop="1px");p.style.position="absolute";p.style.left="202px";p.style.right="0px";p.style.top="40px";p.style.bottom="60px";p.style.overflow="auto";p.style.borderLeft="1px solid rgb(211, 211, 211)";p.style.textAlign="center";mxClient.IS_QUIRKS&&(p.style.width=parseInt(f.style.width)-202+"px",p.style.height=n.style.height, -p.style.marginTop=n.style.marginTop);var v=null,t=[],q=document.createElement("div");q.style.position="relative";q.style.left="0px";q.style.right="0px";g(c);b.style.padding="30px";b.appendChild(f);b.appendChild(n);b.appendChild(p);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= +p.style.marginTop=n.style.marginTop);var v=null,q=[],t=document.createElement("div");t.style.position="relative";t.style.left="0px";t.style.right="0px";g(c);b.style.padding="30px";b.appendChild(f);b.appendChild(n);b.appendChild(p);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= f.style.width,c.style.paddingTop="12px");var u=document.createElement("input");u.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)f=document.createElement("span"),f.style.paddingRight="20px",f.appendChild(u),mxUtils.write(f," "+mxResources.get("rememberThisSetting")),u.checked=!0,u.defaultChecked=!0,mxEvent.addListener(f,"click",function(a){mxEvent.getSource(a)!=u&&(u.checked=!u.checked,mxEvent.consume(a))}),mxClient.IS_QUIRKS&&(f.style.position="relative",f.style.top="-6px"), -c.appendChild(f);f=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});f.className="geBtn";g=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();for(var d=[],b=0;ba.maxImageSize||f>a.maxImageSize){var C=Math.min(1,Math.min(a.maxImageSize/Math.max(1,m)),a.maxImageSize/Math.max(1,f));m*=C;f*=C}H>J?(J=Math.round(100*J/H),H=100):(H=Math.round(100*H/J),J=100);var y=document.createElement("div");y.setAttribute("draggable","true");y.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";y.style.position="relative"; -y.style.cursor="move";mxUtils.setPrefixedStyle(y.style,"transition","transform .1s ease-in-out");if(null!=b){var D=document.createElement("img");D.setAttribute("src",x.convert(b));D.style.width=H+"px";D.style.height=J+"px";D.style.margin="10px";D.style.paddingBottom=Math.floor((100-J)/2)+"px";D.style.paddingLeft=Math.floor((100-H)/2)+"px";y.appendChild(D)}else if(null!=k){var L=a.stringToCells(Graph.decompress(k.xml));0z?y-1:y,0,n.splice(z,1)[0]),t.insertBefore(t.children[z],t.children[y])):(n.push(n.splice(z,1)[0]),t.appendChild(t.children[z])); -else if(0a.maxImageSize||f>a.maxImageSize){var C=Math.min(1,Math.min(a.maxImageSize/Math.max(1,m)),a.maxImageSize/Math.max(1,f));m*=C;f*=C}H>K?(K=Math.round(100*K/H),H=100):(H=Math.round(100*H/K),K=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!=b){var D=document.createElement("img");D.setAttribute("src",x.convert(b));D.style.width=H+"px";D.style.height=K+"px";D.style.margin="10px";D.style.paddingBottom=Math.floor((100-K)/2)+"px";D.style.paddingLeft=Math.floor((100-H)/2)+"px";z.appendChild(D)}else if(null!=k){var L=a.stringToCells(Graph.decompress(k.xml));0y?z-1:z,0,n.splice(y,1)[0]),q.insertBefore(q.children[y],q.children[z])):(n.push(n.splice(y,1)[0]),q.appendChild(q.children[y])); +else if(0=c.status&&(d(c.responseText,e,g,m,f,n,k,"fixed",mxEvent.isAltDown(b)?null:k.substring(0,k.lastIndexOf(".")).replace(/_/g," ")),t.scrollTop=t.scrollHeight))})):(d(c,e,g,m,f,n,k,"fixed",mxEvent.isAltDown(b)?null:k.substring(0,k.lastIndexOf(".")).replace(/_/g, -" ")),t.scrollTop=t.scrollHeight)}};mxEvent.addListener(t,"dragover",g);mxEvent.addListener(t,"drop",m);mxEvent.addListener(q,"dragover",g);mxEvent.addListener(q,"drop",m);c.appendChild(t);b=document.createElement("div");b.style.textAlign="right";b.style.marginTop="20px";e=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});e.setAttribute("id","btnCancel");e.className="geBtn";a.editor.cancelFirst&&b.appendChild(e);p=mxUtils.button(mxResources.get("export"),function(){var d=a.createLibraryDataFromImages(n), +5<=document.documentMode||mxClient.IS_QUIRKS?v.select():document.execCommand("selectAll",!1,null)};p.appendChild(v);var q=document.createElement("div");q.style.borderWidth="1px 0px 1px 0px";q.style.borderColor="#d3d3d3";q.style.borderStyle="solid";q.style.marginTop="6px";q.style.overflow="auto";q.style.height="340px";q.style.backgroundPosition="center center";q.style.backgroundRepeat="no-repeat";0==n.length&&Graph.fileSupport&&(q.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')");var t= +document.createElement("div");t.style.position="absolute";t.style.width="640px";t.style.top="260px";t.style.textAlign="center";t.style.fontSize="22px";t.style.color="#a0c3ff";mxUtils.write(t,mxResources.get("dragImagesHere"));c.appendChild(t);var u={},y=null,z=null,A=null;e=function(a){"true"!=mxEvent.getSource(a).getAttribute("contentEditable")&&null!=A&&(A(),A=null,mxEvent.consume(a))};mxEvent.addListener(q,"mousedown",e);mxEvent.addListener(q,"pointerdown",e);mxEvent.addListener(q,"touchstart", +e);var x=new mxUrlConverter,B=!1;if(null!=b)for(e=0;e=c.status&&(d(c.responseText,e,g,m,f,n,k,"fixed",mxEvent.isAltDown(b)?null:k.substring(0,k.lastIndexOf(".")).replace(/_/g," ")),q.scrollTop=q.scrollHeight))})):(d(c,e,g,m,f,n,k,"fixed",mxEvent.isAltDown(b)?null:k.substring(0,k.lastIndexOf(".")).replace(/_/g, +" ")),q.scrollTop=q.scrollHeight)}};mxEvent.addListener(q,"dragover",g);mxEvent.addListener(q,"drop",m);mxEvent.addListener(t,"dragover",g);mxEvent.addListener(t,"drop",m);c.appendChild(q);b=document.createElement("div");b.style.textAlign="right";b.style.marginTop="20px";e=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});e.setAttribute("id","btnCancel");e.className="geBtn";a.editor.cancelFirst&&b.appendChild(e);p=mxUtils.button(mxResources.get("export"),function(){var d=a.createLibraryDataFromImages(n), b=v.value;/(\.xml)$/i.test(b)||(b+=".xml");a.isLocalFileSave()?a.saveLocalFile(d,b,"text/xml",null,null,!0):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(b)+"&format=xml&xml="+encodeURIComponent(d))).simulate(document,"_blank")});p.setAttribute("id","btnDownload");p.className="geBtn";b.appendChild(p);if(Graph.fileSupport){if(null==a.libDlgFileInputElt){var D=document.createElement("input");D.setAttribute("multiple","multiple");D.setAttribute("type","file");mxEvent.addListener(D,"change", -function(d){A=!1;a.importFiles(D.files,0,0,a.maxImageSize,function(a,b,c,e,g,m,f,n,k){null!=D.files&&(C(d)(a,b,c,e,g,m,f,n,k),D.type="",D.type="file",D.value="")});t.scrollTop=t.scrollHeight});D.style.display="none";document.body.appendChild(D);a.libDlgFileInputElt=D}p=mxUtils.button(mxResources.get("import"),function(){null!=B&&(B(),B=null);a.libDlgFileInputElt.click()});p.setAttribute("id","btnAddImage");p.className="geBtn";b.appendChild(p)}p=mxUtils.button(mxResources.get("addImageUrl"),function(){null!= -B&&(B(),B=null);a.showImageDialog(mxResources.get("addImageUrl"),"",function(a,b,c){A=!1;if(null!=a){if("data:image/"==a.substring(0,11)){var e=a.indexOf(",");0
'+mxResources.get("newDiagram",null,"New Diagram")+'
'+ mxResources.get("templates",null,"Templates")+'
'+mxResources.get("newDiagram",null,"New Diagram")+'
'+mxResources.get("showAll",null,"+ Show all")+'
'+ @@ -8838,40 +8838,40 @@ mxResources.get("myDiagrams",null,"My diagrams")+'
'+mxResources.get("create",null,"Create")+'
'+mxResources.get("cancel",null,"Cancel")+"
",e=document.createElement("div");e.innerHTML=a;e.className="geTemplateDlg"; var a=window.innerWidth,c=window.innerHeight,b=987,k=712;.9*a=d.getStatus()&&(e(d.getText(),"nameInput.value"),a.hideDialog(!0))}))}}function u(a){a=a?"":"none";for(var d=C.querySelectorAll(".geTempDlgLinkToDiagram"),b=0;bf&&(m=m.substring(0,f)+"…");if(b){var x=document.createElement("tr"),k=document.createElement("td"),A=document.createElement("img");A.src="/images/icon-search.svg";A.className="geTempDlgDiagramListPreviewBtn";A.setAttribute("title",mxResources.get("preview"));k.appendChild(A);n=document.createElement("span");n.className="geTempDlgDiagramTitle";n.innerHTML=m;k.appendChild(n);x.appendChild(k);k=document.createElement("td"); -k.innerHTML=p;x.appendChild(k);k=document.createElement("td");k.innerHTML=l;x.appendChild(k);e.appendChild(x);null==E&&(c(),t(x,"geTempDlgDiagramsListGridActive",a[g]));(function(a,d){mxEvent.addListener(x,"click",function(){E!=d&&(c(),t(d,"geTempDlgDiagramsListGridActive",a))});mxEvent.addListener(x,"dblclick",q);mxEvent.addListener(A,"click",function(){v(a)})})(a[g],x)}else{var K=document.createElement("div");K.className="geTempDlgDiagramTile";K.setAttribute("title",n);null==E&&(c(),t(K,"geTempDlgDiagramTileActive", -a[g]));p=document.createElement("div");p.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgLoading";var H=document.createElement("img");H.style.display="none";(function(a,d){H.onload=function(){d.className="geTempDlgDiagramTileImg";a.style.display=""};H.onerror=function(){d.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgError"}})(H,p);H.src=k;p.appendChild(H);K.appendChild(p);p=document.createElement("div");p.className="geTempDlgDiagramTileLbl";p.innerHTML=null!=m?m:"";K.appendChild(p); -A=document.createElement("img");A.src="/images/icon-search.svg";A.className="geTempDlgDiagramPreviewBtn";A.setAttribute("title",mxResources.get("preview"));K.appendChild(A);(function(a,d){mxEvent.addListener(K,"click",function(){E!=d&&(c(),t(d,"geTempDlgDiagramTileActive",a))});mxEvent.addListener(K,"dblclick",q);mxEvent.addListener(A,"click",function(){v(a)})})(a[g],K);W.appendChild(K)}}}function y(a,d){V.innerHTML="";t();for(var b=!d&&5a.length?"none":""}function B(a){var d=C.querySelector(".geTemplatesList"), -b;for(b in a){var c=document.createElement("div"),e=mxResources.get(b),g=a[b];null==e&&(e=b.substring(0,1).toUpperCase()+b.substring(1));c.className="geTemplateCatLink";c.setAttribute("title",e+" ("+g.length+")");e=mxUtils.htmlEntities(e);15=d.getStatus()&&(e(d.getText(),"nameInput.value"),a.hideDialog(!0))}))}}function u(a){a=a?"":"none";for(var d=C.querySelectorAll(".geTempDlgLinkToDiagram"),b=0;bf&&(m=m.substring(0,f)+"…");if(b){var x=document.createElement("tr"),k=document.createElement("td"),J=document.createElement("img");J.src="/images/icon-search.svg";J.className="geTempDlgDiagramListPreviewBtn";J.setAttribute("title",mxResources.get("preview"));k.appendChild(J);n=document.createElement("span");n.className="geTempDlgDiagramTitle";n.innerHTML=m;k.appendChild(n);x.appendChild(k);k=document.createElement("td"); +k.innerHTML=p;x.appendChild(k);k=document.createElement("td");k.innerHTML=l;x.appendChild(k);e.appendChild(x);null==E&&(c(),q(x,"geTempDlgDiagramsListGridActive",a[g]));(function(a,d){mxEvent.addListener(x,"click",function(){E!=d&&(c(),q(d,"geTempDlgDiagramsListGridActive",a))});mxEvent.addListener(x,"dblclick",t);mxEvent.addListener(J,"click",function(){v(a)})})(a[g],x)}else{var B=document.createElement("div");B.className="geTempDlgDiagramTile";B.setAttribute("title",n);null==E&&(c(),q(B,"geTempDlgDiagramTileActive", +a[g]));p=document.createElement("div");p.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgLoading";var H=document.createElement("img");H.style.display="none";(function(a,d){H.onload=function(){d.className="geTempDlgDiagramTileImg";a.style.display=""};H.onerror=function(){d.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgError"}})(H,p);H.src=k;p.appendChild(H);B.appendChild(p);p=document.createElement("div");p.className="geTempDlgDiagramTileLbl";p.innerHTML=null!=m?m:"";B.appendChild(p); +J=document.createElement("img");J.src="/images/icon-search.svg";J.className="geTempDlgDiagramPreviewBtn";J.setAttribute("title",mxResources.get("preview"));B.appendChild(J);(function(a,d){mxEvent.addListener(B,"click",function(){E!=d&&(c(),q(d,"geTempDlgDiagramTileActive",a))});mxEvent.addListener(B,"dblclick",t);mxEvent.addListener(J,"click",function(){v(a)})})(a[g],B);T.appendChild(B)}}}function z(a,d){X.innerHTML="";q();for(var b=!d&&5a.length?"none":""}function A(a){var d=C.querySelector(".geTemplatesList"), +b;for(b in a){var c=document.createElement("div"),e=mxResources.get(b),g=a[b];null==e&&(e=b.substring(0,1).toUpperCase()+b.substring(1));c.className="geTemplateCatLink";c.setAttribute("title",e+" ("+g.length+")");e=mxUtils.htmlEntities(e);15
'+e+"
";this.pagesContainer.appendChild(k);var f=this.createViewer(k.childNodes[0],c);e=mxUtils.bind(this,function(){null!=this.selectedItem&&(this.selectedItem.className="geAspectDlgListItem");this.selectedItem=k;this.selectedPage=a; k.className+=" geAspectDlgListItemSelected";this.layersContainer.innerHTML="";this.selectedLayers={};this.okBtn.setAttribute("disabled","disabled");for(var b=f.model,b=b.getChildCells(b.getRoot()),d=0;d
'+e+"
";this.layersContainer.appendChild(k);this.createViewer(k.childNodes[0],b,a.id);b=mxUtils.bind(this,function(){0<=k.className.indexOf("geAspectDlgListItemSelected")? -(k.className="geAspectDlgListItem",delete this.selectedLayers[a.id],0==Object.keys(this.selectedLayers).length&&this.okBtn.setAttribute("disabled","disabled")):(k.className+=" geAspectDlgListItemSelected",this.selectedLayers[a.id]=!0,this.okBtn.removeAttribute("disabled"))});mxEvent.addListener(k,"click",b);-1!=this.aspect.layerIds.indexOf(a.id)&&b()};(function(){Editor.prototype.appName="diagrams.net";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio"},{description:"diagramPngDesc",extension:"png"},{description:"diagramSvgDesc",extension:"svg"},{description:"diagramHtmlDesc",extension:"html"},{description:"diagramXmlDesc",extension:"xml"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",title:"filetypeHtml"}, +(k.className="geAspectDlgListItem",delete this.selectedLayers[a.id],0==Object.keys(this.selectedLayers).length&&this.okBtn.setAttribute("disabled","disabled")):(k.className+=" geAspectDlgListItemSelected",this.selectedLayers[a.id]=!0,this.okBtn.removeAttribute("disabled"))});mxEvent.addListener(k,"click",b);-1!=this.aspect.layerIds.indexOf(a.id)&&b()}; +var FilePropertiesDialog=function(a){var e,c,b=document.createElement("table"),k=document.createElement("tbody");b.style.width="100%";b.style.marginTop="8px";e=a.getCurrentFile();c=null!=e&&null!=e.getTitle()?e.getTitle():this.editorUi.defaultFilename;var f=null;if(/(\.png)$/i.test(c)){var f=1,l=0;e=a.fileNode;null!=e&&(e.hasAttribute("scale")&&(f=parseFloat(e.getAttribute("scale"))),e.hasAttribute("border")&&(l=parseInt(e.getAttribute("border"))));e=document.createElement("tr");c=document.createElement("td"); +c.style.whiteSpace="nowrap";c.style.fontSize="10pt";c.style.width="120px";mxUtils.write(c,mxResources.get("zoom")+":");e.appendChild(c);var d=document.createElement("input");d.setAttribute("value",100*f+"%");d.style.marginLeft="4px";d.style.width="180px";c=document.createElement("td");c.style.whiteSpace="nowrap";c.appendChild(d);e.appendChild(c);k.appendChild(e);e=document.createElement("tr");c=document.createElement("td");c.style.whiteSpace="nowrap";c.style.fontSize="10pt";c.style.width="120px"; +mxUtils.write(c,mxResources.get("borderWidth")+":");e.appendChild(c);var g=document.createElement("input");g.setAttribute("value",l);g.style.marginLeft="4px";g.style.width="180px";c=document.createElement("td");c.style.whiteSpace="nowrap";c.appendChild(g);e.appendChild(c);k.appendChild(e);this.init=function(){d.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode||mxClient.IS_QUIRKS?d.select():document.execCommand("selectAll",!1,null)};f=function(){null!=a.fileNode&&(a.fileNode.setAttribute("scale", +Math.max(0,parseInt(d.value)/100)),a.fileNode.setAttribute("border",Math.max(0,parseInt(g.value))));a.hideDialog()}}else{f=null!=e?e.isCompressed():Editor.compressXml;e=document.createElement("tr");c=document.createElement("td");c.style.whiteSpace="nowrap";c.style.fontSize="10pt";c.style.width="120px";mxUtils.write(c,mxResources.get("compressed")+":");e.appendChild(c);var m=document.createElement("input");m.setAttribute("type","checkbox");f&&(m.setAttribute("checked","checked"),m.defaultChecked=!0); +c=document.createElement("td");c.style.whiteSpace="nowrap";c.appendChild(m);e.appendChild(c);k.appendChild(e);this.init=function(){m.focus()};f=function(){null!=a.fileNode&&a.fileNode.setAttribute("compressed",m.checked?"true":"false");a.hideDialog()}}f=mxUtils.button(mxResources.get("apply"),f);f.className="geBtn gePrimaryBtn";e=document.createElement("tr");c=document.createElement("td");c.colSpan=2;c.style.paddingTop="20px";c.style.whiteSpace="nowrap";c.setAttribute("align","right");l=mxUtils.button(mxResources.get("cancel"), +function(){a.hideDialog()});l.className="geBtn";a.editor.cancelFirst&&c.appendChild(l);c.appendChild(f);a.editor.cancelFirst||c.appendChild(l);e.appendChild(c);k.appendChild(e);b.appendChild(k);this.container=b};(function(){Editor.prototype.appName="diagrams.net";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio"},{description:"diagramPngDesc",extension:"png"},{description:"diagramSvgDesc",extension:"svg"},{description:"diagramHtmlDesc",extension:"html"},{description:"diagramXmlDesc",extension:"xml"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",title:"filetypeHtml"}, {ext:"png",title:"filetypePng"},{ext:"svg",title:"filetypeSvg"}];Editor.closeImage=mxClient.IS_SVG?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAMAAADzN3VRAAAApVBMVEUAAAD////k5OT///8AAAB1dXXMzMz9/f39/f37+/v5+fn+/v7///9iYmJaWlqFhYWnp6ejo6OHh4f////////////////7+/v5+fnx8fH///8AAAD///8bGxv7+/v5+fkoKCghISFDQ0MYGBjh4eHY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jqV2kaeAmq6FnbGFnrGLorWNpLaQp7mRqLmYrb2essGgs8Klt8apusitvcquv8u2xNC7yNO8ydS8ytTAzdfBzdfM1t7N197Q2eDU3OPX3+XZ4ObZ4ebc4+jf5erg5erg5uvp7fDu8fPv8vTz9fb09vf19/j3+Pn4+fn5+vr6+/v///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGRUCYcEgspkwjEKhUVJ1QsBNp0xm2VixiSOMRvlxFGAcTJook5eEHIhQcwpWIkAFQECkNy9AQWFwyEAkPRQ4FAwQIE2llQQAh+QQJCgAvACwAAAAADAAMAIVNcY5SdZFigptph6BvjKN0kKd8lquAmq+EnbGGn7KHn7ONpLaOpbearr+csMCdscCescGhtMOnuMauvsuzws60w862xdC9ytW/y9a/zNbCztjG0drH0tvK1N3M1t7N19/U3ePb4uff5urj6Ozk6e3l6u7m6u7o7PDq7vDt8PPv8vTw8vTw8/X19vf6+vv///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGQ8CXcEgsvlytVUplJLJIpSEDUESFTELBwSgCCQEV42kjDFiMo4uQsDB2MkLHoEHUTD7DRAHC8VAiZ0QSCgYIDxhNiUEAOw==": @@ -8938,21 +8944,21 @@ var d=[];a.replace(/(?!\s*$)\s*(?:'([^'\\]*(?:\\[\S\s][^'\\]*)*)'|"([^"\\]*(?:\\ return null!=this.corsRegExp&&this.corsRegExp.test(a)||"https://raw.githubusercontent.com/"===a.substring(0,34)||"https://cdn.rawgit.com/"===a.substring(0,23)||"https://rawgit.com/"===a.substring(0,19)||/^https?:\/\/[^\/]*\.blob.core.windows.net\//.test(a)||/^https?:\/\/[^\/]*\.diagrams\.new\/proxy/.test(a)||/^https?:\/\/[^\/]*\.draw\.io\/proxy/.test(a)||/^https?:\/\/[^\/]*\.github\.io\//.test(a)};Editor.prototype.createImageUrlConverter=function(){var a=new mxUrlConverter;a.updateBaseUrl();var d= a.convert,b=this;a.convert=function(c){if(null!=c){var e="http://"==c.substring(0,7)||"https://"==c.substring(0,8);e&&!navigator.onLine?c=Editor.svgBrokenImage.src:!e||c.substring(0,a.baseUrl.length)==a.baseUrl||b.crossOriginImages&&b.isCorsEnabledForUrl(c)?"chrome-extension://"==c.substring(0,19)||mxClient.IS_CHROMEAPP||(c=d.apply(this,arguments)):c=PROXY_URL+"?url="+encodeURIComponent(c)}return c};return a};Editor.createSvgDataUri=function(a){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(a)))}; Editor.prototype.convertImageToDataUri=function(a,d){try{var b=!0,c=window.setTimeout(mxUtils.bind(this,function(){b=!1;d(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(a))mxUtils.get(a,mxUtils.bind(this,function(a){window.clearTimeout(c);b&&d(Editor.createSvgDataUri(a.getText()))}),function(){window.clearTimeout(c);b&&d(Editor.svgBrokenImage.src)});else{var e=new Image;this.crossOriginImages&&(e.crossOrigin="anonymous");e.onload=function(){window.clearTimeout(c);if(b)try{var a=document.createElement("canvas"), -g=a.getContext("2d");a.height=e.height;a.width=e.width;g.drawImage(e,0,0);d(a.toDataURL())}catch(W){d(Editor.svgBrokenImage.src)}};e.onerror=function(){window.clearTimeout(c);b&&d(Editor.svgBrokenImage.src)};e.src=a}}catch(I){d(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(a,d,b,c){null==c&&(c=this.createImageUrlConverter());var e=0,g=b||{};b=mxUtils.bind(this,function(b,m){for(var f=a.getElementsByTagName(b),n=0;n> +g=a.getContext("2d");a.height=e.height;a.width=e.width;g.drawImage(e,0,0);d(a.toDataURL())}catch(T){d(Editor.svgBrokenImage.src)}};e.onerror=function(){window.clearTimeout(c);b&&d(Editor.svgBrokenImage.src)};e.src=a}}catch(I){d(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(a,d,b,c){null==c&&(c=this.createImageUrlConverter());var e=0,g=b||{};b=mxUtils.bind(this,function(b,m){for(var f=a.getElementsByTagName(b),n=0;n> 2);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&3)<<4);d+="==";break}g=a.charCodeAt(b++);if(b==c){d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>2);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&3)<<4|(g&240)>>4);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((g&15)<<2);d+="=";break}m=a.charCodeAt(b++);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>> 2);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&3)<<4|(g&240)>>4);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((g&15)<<2|(m&192)>>6);d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(m&63)}return d};Editor.prototype.loadUrl=function(a,d,b,c,e,g,m,f){try{var n=!m&&(c||/(\.png)($|\?)/i.test(a)||/(\.jpe?g)($|\?)/i.test(a)||/(\.gif)($|\?)/i.test(a)||/(\.pdf)($|\?)/i.test(a));e=null!=e?e:!0;var k=mxUtils.bind(this, function(){mxUtils.get(a,mxUtils.bind(this,function(a){if(200<=a.getStatus()&&299>=a.getStatus()){if(null!=d){var c=a.getText();if(n){if((9==document.documentMode||10==document.documentMode)&&"undefined"!==typeof window.mxUtilsBinaryToArray){a=mxUtilsBinaryToArray(a.request.responseBody).toArray();for(var c=Array(a.length),e=0;ek;k++)for(var f=k,l=0;8>l;l++)f=1==(f&1)?3988292384^f>>>1:f>>>1,Editor.crcTable[k]=f;Editor.updateCRC=function(a,d,b,c){for(var e=0;e>>8;return a};Editor.crc32=function(a){for(var d=-1,b=0;b>>8^Editor.crcTable[(d^a.charCodeAt(b))&255];return(d^-1)>>>0};Editor.writeGraphModelToPng=function(a,d,b,c,e){function g(a,d){var b=n;n+=d;return a.substring(b,n)}function m(a){a=g(a,4);return a.charCodeAt(3)+(a.charCodeAt(2)<<8)+(a.charCodeAt(1)<<16)+(a.charCodeAt(0)<<24)}function f(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}a=a.substring(a.indexOf(",")+ 1);a=window.atob?atob(a):Base64.decode(a,!0);var n=0;if(g(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=e&&e();else if(g(a,4),"IHDR"!=g(a,4))null!=e&&e();else{g(a,17);e=a.substring(0,n);do{var k=m(a);if("IDAT"==g(a,4)){e=a.substring(0,n-8);"pHYs"==d&&"dpi"==b?(b=Math.round(c/.0254),b=f(b)+f(b)+String.fromCharCode(1)):b=b+String.fromCharCode(0)+("zTXt"==d?String.fromCharCode(0):"")+c;c=4294967295;c=Editor.updateCRC(c,d,0,4);c=Editor.updateCRC(c,b,0,b.length);e+=f(b.length)+ @@ -8984,24 +8990,24 @@ type:"float",min:0,defVal:20},{name:"dy",dispName:"Width2",type:"float",min:0,de stroke:"#B09500",font:"#ffffff"},{fill:"#6d8764",stroke:"#3A5431",font:"#ffffff"},{fill:"#647687",stroke:"#314354",font:"#ffffff"},{fill:"#76608a",stroke:"#432D57",font:"#ffffff"},{fill:"#a0522d",stroke:"#6D1F00",font:"#ffffff"}],[{fill:"",stroke:""},{fill:mxConstants.NONE,stroke:""},{fill:"#fad7ac",stroke:"#b46504"},{fill:"#fad9d5",stroke:"#ae4132"},{fill:"#b0e3e6",stroke:"#0e8088"},{fill:"#b1ddf0",stroke:"#10739e"},{fill:"#d0cee2",stroke:"#56517e"},{fill:"#bac8d3",stroke:"#23445d"}],[{fill:"",stroke:""}, {fill:"#f5f5f5",stroke:"#666666",gradient:"#b3b3b3"},{fill:"#dae8fc",stroke:"#6c8ebf",gradient:"#7ea6e0"},{fill:"#d5e8d4",stroke:"#82b366",gradient:"#97d077"},{fill:"#ffcd28",stroke:"#d79b00",gradient:"#ffa500"},{fill:"#fff2cc",stroke:"#d6b656",gradient:"#ffd966"},{fill:"#f8cecc",stroke:"#b85450",gradient:"#ea6b66"},{fill:"#e6d0de",stroke:"#996185",gradient:"#d5739d"}],[{fill:"",stroke:""},{fill:"#eeeeee",stroke:"#36393d"},{fill:"#f9f7ed",stroke:"#36393d"},{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff", stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;StyleFormatPanel.prototype.findCommonProperties=function(a,d,b){if(null!=d){var c=function(a){if(null!=a)if(b)for(var c=0;cb.size&&(m=m.slice(0,b.size));d=m.join(",");null!=b.countProperty&&(l.setCellStyles(b.countProperty,m.length,l.getSelectionCells()),e.push(b.countProperty),g.push(m.length))}l.setCellStyles(a,d,l.getSelectionCells());e.push(a);g.push(d);if(null!=b.dependentProps)for(a=0;ad)k=k.slice(0,d);else for(var u=k.length;ud)k=k.slice(0,d);else for(var v=k.length;vk.max&&(a=k.max);a=mxUtils.htmlEntities(("int"==x?parseInt(a):a)+"");c(d,a,k)}var m=document.createElement("input");e(q,m,!0);m.value=b;m.className="gePropEditor";"int"!=x&&"float"!=x||k.allowAuto||(m.type="number", -m.step="int"==x?"1":"any",null!=k.min&&(m.min=parseFloat(k.min)),null!=k.max&&(m.max=parseFloat(k.max)));a.appendChild(m);mxEvent.addListener(m,"keypress",function(a){13==a.keyCode&&g()});m.focus();mxEvent.addListener(m,"blur",function(){g()})})));k.isDeletable&&(u=mxUtils.button("-",mxUtils.bind(p,function(a){c(d,"",k,k.index);mxEvent.consume(a)})),u.style.height="16px",u.style.width="25px",u.style["float"]="right",u.className="geColorBtn",q.appendChild(u));t.appendChild(q);return t}var p=this,l= -this.editorUi.editor.graph,u=[];a.style.position="relative";a.style.padding="0";var v=document.createElement("table");v.style.whiteSpace="nowrap";v.style.width="100%";var x=document.createElement("tr");x.className="gePropHeader";var t=document.createElement("th");t.className="gePropHeaderCell";var q=document.createElement("img");q.src=Sidebar.prototype.expandedImage;t.appendChild(q);mxUtils.write(t,mxResources.get("property"));x.style.cursor="pointer";var A=function(){var d=v.querySelectorAll(".gePropNonHeaderRow"), -b;if(p.editorUi.propertiesCollapsed){q.src=Sidebar.prototype.collapsedImage;b="none";for(var c=a.childNodes.length-1;0<=c;c--)try{var e=a.childNodes[c],g=e.nodeName.toUpperCase();"INPUT"!=g&&"SELECT"!=g||a.removeChild(e)}catch(la){}}else q.src=Sidebar.prototype.expandedImage,b="";for(c=0;ck.max&&(a=k.max);a=mxUtils.htmlEntities(("int"==x?parseInt(a):a)+"");c(d,a,k)}var m=document.createElement("input");e(t,m,!0);m.value=b;m.className="gePropEditor";"int"!=x&&"float"!=x||k.allowAuto||(m.type="number", +m.step="int"==x?"1":"any",null!=k.min&&(m.min=parseFloat(k.min)),null!=k.max&&(m.max=parseFloat(k.max)));a.appendChild(m);mxEvent.addListener(m,"keypress",function(a){13==a.keyCode&&g()});m.focus();mxEvent.addListener(m,"blur",function(){g()})})));k.isDeletable&&(v=mxUtils.button("-",mxUtils.bind(p,function(a){c(d,"",k,k.index);mxEvent.consume(a)})),v.style.height="16px",v.style.width="25px",v.style["float"]="right",v.className="geColorBtn",t.appendChild(v));q.appendChild(t);return q}var p=this,l= +this.editorUi.editor.graph,v=[];a.style.position="relative";a.style.padding="0";var u=document.createElement("table");u.style.whiteSpace="nowrap";u.style.width="100%";var x=document.createElement("tr");x.className="gePropHeader";var q=document.createElement("th");q.className="gePropHeaderCell";var t=document.createElement("img");t.src=Sidebar.prototype.expandedImage;q.appendChild(t);mxUtils.write(q,mxResources.get("property"));x.style.cursor="pointer";var B=function(){var d=u.querySelectorAll(".gePropNonHeaderRow"), +b;if(p.editorUi.propertiesCollapsed){t.src=Sidebar.prototype.collapsedImage;b="none";for(var c=a.childNodes.length-1;0<=c;c--)try{var e=a.childNodes[c],g=e.nodeName.toUpperCase();"INPUT"!=g&&"SELECT"!=g||a.removeChild(e)}catch(la){}}else t.src=Sidebar.prototype.expandedImage,b="";for(c=0;c'),b.writeln(a.editor.fontCss),b.writeln(""));if(null!=d.extFonts)for(var c=0;c'),b.writeln(a.editor.fontCss),b.writeln(""));if(null!=d.extFonts)for(var c=0;c'):(b.writeln('"))}};if("undefined"!==typeof MathJax){var D=b.renderPage;b.renderPage=function(d,b,c,e,g,m){var f=mxClient.NO_FO;mxClient.NO_FO=this.graph.mathEnabled&&!a.editor.useForeignObjectForMath?!0:a.editor.originalNoForeignObject; -var n=D.apply(this,arguments);mxClient.NO_FO=f;this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:n.className="geDisableMathJax";return n}}u=null;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(u=e.stylesheet,e.stylesheet=e.getDefaultStylesheet(),e.refresh());b.open(null,null,g,!0);null!=u&&(e.stylesheet=u,e.refresh())}else{x=d.background;if(null==x||""==x||x==mxConstants.NONE)x="#ffffff";b.backgroundColor=x;b.autoOrigin=y;b.appendGraph(d,t,u,v,g,!0);if(null!=d.extFonts&&null!=b.wnd)for(g= -0;g'):(b.wnd.document.writeln('"))}m&&(d.useCssTransforms=m,d.currentTranslate=f,d.currentScale=n,d.view.translate=k,d.view.scale=p);return b}var c=parseInt(ia.value)/ -100;isNaN(c)&&(c=1,ia.value="100 %");var c=.75*c,g=u.value,m=v.value,f=!p.checked,k=null;f&&(f=g==n&&m==n);if(!f&&null!=a.pages&&a.pages.length){var l=0,f=a.pages.length-1;p.checked||(l=parseInt(g)-1,f=parseInt(m)-1);for(var x=l;x<=f;x++){var t=a.pages[x],g=t==a.currentPage?e:null;if(null==g){var g=a.createTemporaryGraph(e.getStylesheet()),m=!0,l=!1,y=null,C=null;null==t.viewState&&null==t.root&&a.updatePageRoot(t);null!=t.viewState&&(m=t.viewState.pageVisible,l=t.viewState.mathEnabled,y=t.viewState.background, -C=t.viewState.backgroundImage,g.extFonts=t.viewState.extFonts);g.background=y;g.backgroundImage=null!=C?new mxImage(C.src,C.width,C.height):null;g.pageVisible=m;g.mathEnabled=l;var z=g.getGlobalVariable;g.getGlobalVariable=function(d){return"page"==d?t.getName():"pagenumber"==d?x+1:"pagecount"==d?null!=a.pages?a.pages.length:1:z.apply(this,arguments)};document.body.appendChild(g.container);a.updatePageRoot(t);g.model.setRoot(t.root)}k=b(g,k,x!=f);g!=e&&g.container.parentNode.removeChild(g.container)}}else k= +var n=D.apply(this,arguments);mxClient.NO_FO=f;this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:n.className="geDisableMathJax";return n}}v=null;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(v=e.stylesheet,e.stylesheet=e.getDefaultStylesheet(),e.refresh());b.open(null,null,g,!0);null!=v&&(e.stylesheet=v,e.refresh())}else{x=d.background;if(null==x||""==x||x==mxConstants.NONE)x="#ffffff";b.backgroundColor=x;b.autoOrigin=C;b.appendGraph(d,q,v,u,g,!0);if(null!=d.extFonts&&null!=b.wnd)for(g= +0;g'):(b.wnd.document.writeln('"))}m&&(d.useCssTransforms=m,d.currentTranslate=f,d.currentScale=n,d.view.translate=k,d.view.scale=p);return b}var c=parseInt(ia.value)/ +100;isNaN(c)&&(c=1,ia.value="100 %");var c=.75*c,g=v.value,m=u.value,f=!p.checked,k=null;f&&(f=g==n&&m==n);if(!f&&null!=a.pages&&a.pages.length){var l=0,f=a.pages.length-1;p.checked||(l=parseInt(g)-1,f=parseInt(m)-1);for(var x=l;x<=f;x++){var q=a.pages[x],g=q==a.currentPage?e:null;if(null==g){var g=a.createTemporaryGraph(e.getStylesheet()),m=!0,l=!1,C=null,z=null;null==q.viewState&&null==q.root&&a.updatePageRoot(q);null!=q.viewState&&(m=q.viewState.pageVisible,l=q.viewState.mathEnabled,C=q.viewState.background, +z=q.viewState.backgroundImage,g.extFonts=q.viewState.extFonts);g.background=C;g.backgroundImage=null!=z?new mxImage(z.src,z.width,z.height):null;g.pageVisible=m;g.mathEnabled=l;var y=g.getGlobalVariable;g.getGlobalVariable=function(d){return"page"==d?q.getName():"pagenumber"==d?x+1:"pagecount"==d?null!=a.pages?a.pages.length:1:y.apply(this,arguments)};document.body.appendChild(g.container);a.updatePageRoot(q);g.model.setRoot(q.root)}k=b(g,k,x!=f);g!=e&&g.container.parentNode.removeChild(g.container)}}else k= b(e);null==k?a.handleError({message:mxResources.get("errorUpdatingPreview")}):(k.mathEnabled&&(f=k.wnd.document,f.writeln('