diff --git a/ChangeLog b/ChangeLog index 6620689f..00394d38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +19-DEC-2018: 10.0.5 + +- Fixes for collaborative editing + 19-DEC-2018: 10.0.4 - Fixes for night mode and responsive UI diff --git a/VERSION b/VERSION index fb068da9..05d0f674 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -10.0.4 \ No newline at end of file +10.0.5 \ No newline at end of file diff --git a/src/main/webapp/cache.manifest b/src/main/webapp/cache.manifest index e6a71ff2..93bb9111 100644 --- a/src/main/webapp/cache.manifest +++ b/src/main/webapp/cache.manifest @@ -1,7 +1,7 @@ CACHE MANIFEST # THIS FILE WAS GENERATED. DO NOT MODIFY! -# 12/19/2018 11:31 AM +# 12/19/2018 05:08 PM app.html index.html?offline=1 diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js index 8068108d..c3d0ae05 100644 --- a/src/main/webapp/js/app.min.js +++ b/src/main/webapp/js/app.min.js @@ -7398,14 +7398,14 @@ DrawioFile.prototype.mergeFile=function(a,c,b){try{var d=null!=this.shadowPages? l=this.ui.getHashValueForPages(this.shadowPages);EditorUi.debug("File.mergeFile",[this],"patch",e,"checksum",l==k,k);k!=l?(this.stats.checksumErrors++,this.checksumError(b,[e])):(this.backupPatch=null,this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(a.getDescriptor()),this.descriptorChanged(),null!=c&&c())}catch(h){this.invalidChecksum=this.inConflictState=!0;null!=window.console&&"1"==urlParams.test&&console.log(h);null!=b&&b(h);try{var m=this.getCurrentUser(),f=null!=m?this.ui.hashValue(m.id): "unknown";EditorUi.sendReport("Error in mergeFile "+(new Date).toISOString()+":\n\nFile="+this.getId()+" ("+this.getMode()+")\n"+(null!=this.sync?"Client="+this.sync.clientId+"\n":"")+"User="+f+"\nSize="+this.getSize()+"\nSync="+DrawioFile.SYNC+"\n\nStack:\n"+h.stack)}catch(n){}}}; DrawioFile.prototype.checksumError=function(a,c){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=a&&a();try{if(null!=c)for(var b=0;bmxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);g.cellRenderer.redraw=f;this.changeListenerEnabled=k;g.container.style.visibility="";b.history=d;b.indexOfNextAdd=e;b.fireEvent(new mxEventObject(mxEvent.CLEAR));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)m!=g.mathEnabled?(this.ui.editor.updateGraphComponents(), -g.refresh()):(l!=g.foldingEnabled?g.view.revalidate():g.view.validate(),g.sizeDidChange()),null!=this.ui.format&&g.isSelectionEmpty()&&this.ui.format.refresh();this.ui.updateTabContainer()}}};DrawioFile.prototype.save=function(a,c,b,d,e,g){if(this.isEditable()){if(this.invalidChecksum)throw Error(mxResources.get("checksum"));this.updateFileData();this.clearAutosave()}else throw Error(mxResources.get("readOnly"));}; +try{for(var h=0;hmxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0);g.cellRenderer.redraw=f;this.changeListenerEnabled=k;g.container.style.visibility="";b.history=d;b.indexOfNextAdd=e;b.fireEvent(new mxEventObject(mxEvent.CLEAR));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)m!= +g.mathEnabled?(this.ui.editor.updateGraphComponents(),g.refresh()):(l!=g.foldingEnabled?g.view.revalidate():g.view.validate(),g.sizeDidChange()),null!=this.ui.format&&g.isSelectionEmpty()&&this.ui.format.refresh();this.ui.updateTabContainer()}}};DrawioFile.prototype.save=function(a,c,b,d,e,g){if(this.isEditable()){if(this.invalidChecksum)throw Error(mxResources.get("checksum"));this.updateFileData();this.clearAutosave()}else throw Error(mxResources.get("readOnly"));}; DrawioFile.prototype.updateFileData=function(){this.setData(this.ui.getFileData(null,null,null,null,null,null,null,null,this))};DrawioFile.prototype.saveAs=function(a,c,b){};DrawioFile.prototype.saveFile=function(a,c,b,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.inConflictState&&this.ui.editor.autosave};DrawioFile.prototype.isRenamable=function(){return!1};DrawioFile.prototype.rename=function(a,c,b){};DrawioFile.prototype.isMovable=function(){return!1};DrawioFile.prototype.move=function(a,c,b){};DrawioFile.prototype.getHash=function(){return""};DrawioFile.prototype.getId=function(){return""}; DrawioFile.prototype.isEditable=function(){return!this.ui.editor.isChromelessView()||this.ui.editor.editable};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}; @@ -7450,18 +7450,18 @@ StorageFile.prototype.isRenamable=function(){return!0};StorageFile.prototype.sav StorageFile.prototype.saveFile=function(a,c,b,d){if(this.isEditable()){var e=mxUtils.bind(this,function(){this.isRenamable()&&(this.title=a);try{this.ui.setLocalData(this.title,this.getData(),mxUtils.bind(this,function(){this.setModified(!1);this.contentChanged();null!=b&&b()}))}catch(g){null!=d&&d(g)}});this.isRenamable()&&"."==a.charAt(0)&&null!=d?d({message:mxResources.get("invalidName")}):this.ui.getLocalData(a,mxUtils.bind(this,function(b){this.isRenamable()&&this.getTitle()!=a&&null!=b?this.ui.confirm(mxResources.get("replaceIt", [a]),e,d):e()}))}else null!=b&&b()};StorageFile.prototype.rename=function(a,c,b){var d=this.getTitle();d!=a?this.ui.getLocalData(a,mxUtils.bind(this,function(e){var g=mxUtils.bind(this,function(){this.title=a;this.hasSameExtension(d,a)||this.setData(this.ui.getFileData());this.saveFile(a,!1,mxUtils.bind(this,function(){this.ui.removeLocalData(d,c)}),b)});null!=e?this.ui.confirm(mxResources.get("replaceIt",[a]),g,b):g()})):c()}; StorageFile.prototype.open=function(){DrawioFile.prototype.open.apply(this,arguments);this.saveFile(this.getTitle())};StorageFile.prototype.getLatestVersion=function(a,c){this.ui.getLocalData(this.title,mxUtils.bind(this,function(b){a(new StorageFile(this.ui,b,this.title))}))};StorageFile.prototype.destroy=function(){DrawioFile.prototype.destroy.apply(this,arguments);null!=this.storageListener&&(mxEvent.removeListener(window,"storage",this.storageListener),this.storageListener=null)};StorageLibrary=function(a,c,b){StorageFile.call(this,a,c,b)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.saveAs=function(a,c,b){this.saveFile(a,!1,c,b)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title}; -StorageLibrary.prototype.isRenamable=function(a,c,b){return".scratchpad"!=this.title};StorageLibrary.prototype.open=function(){};UrlLibrary=function(a,c,b){StorageFile.call(this,a,c,b);a=b;c=a.lastIndexOf("/");0<=c&&(a=a.substring(c+1));this.fname=a};mxUtils.extend(UrlLibrary,StorageFile);UrlLibrary.prototype.getHash=function(){return"U"+encodeURIComponent(this.title)};UrlLibrary.prototype.getTitle=function(){return this.fname};UrlLibrary.prototype.isAutosave=function(){return!1};UrlLibrary.prototype.isEditable=function(a,c,b){return!1};UrlLibrary.prototype.saveAs=function(a,c,b){};UrlLibrary.prototype.open=function(){};var StorageDialog=function(a,c,b){function d(d,e,q,g,t,p){function v(){mxEvent.addListener(A,"click",null!=p?p:function(){q!=App.MODE_GOOGLE||a.isDriveDomain()?q==App.MODE_GOOGLE&&a.spinner.spin(document.body,mxResources.get("authorizing"))?a.drive.checkToken(mxUtils.bind(this,function(){a.spinner.stop();a.setMode(q,f.checked);c()})):(a.setMode(q,f.checked),c()):window.location.hostname=DriveClient.prototype.newAppHostname})}var A=document.createElement("a");A.style.overflow="hidden";A.style.display= -mxClient.IS_QUIRKS?"inline":"inline-block";A.className="geBaseButton";A.style.boxSizing="border-box";A.style.fontSize="11px";A.style.position="relative";A.style.margin="4px";A.style.padding="8px 10px 12px 10px";A.style.width="88px";A.style.height="100px";A.style.whiteSpace="nowrap";A.setAttribute("title",e);mxClient.IS_QUIRKS&&(A.style.cssFloat="left",A.style.zoom="1");var w=document.createElement("div");w.style.textOverflow="ellipsis";w.style.overflow="hidden";if(null!=d){var k=document.createElement("img"); -k.setAttribute("src",d);k.setAttribute("border","0");k.setAttribute("align","absmiddle");k.style.width="60px";k.style.height="60px";k.style.paddingBottom="6px";A.appendChild(k)}else w.style.paddingTop="5px",w.style.whiteSpace="normal",mxClient.IS_IOS?(A.style.padding="0px 10px 20px 10px",A.style.top="6px"):mxClient.IS_FF&&(w.style.paddingTop="0px",w.style.marginTop="-2px");A.appendChild(w);mxUtils.write(w,e);if(null!=t)for(d=0;d=b&&(mxUtils.br(m),h=0)}b=null!=b?b:2;var e=document.createElement("div");e.style.textAlign="center";e.style.whiteSpace="nowrap";e.style.paddingTop="0px";e.style.paddingBottom="20px";var g=a.addLanguageMenu(e,!0);null!=g&&(g.style.bottom=parseInt("28px")-2+"px");if(!a.isOffline()&&1=b&&(mxUtils.br(m),h=0)}b=null!=b?b:2;var e=document.createElement("div");e.style.textAlign="center";e.style.whiteSpace="nowrap";e.style.paddingTop="0px";e.style.paddingBottom="20px";var g=a.addLanguageMenu(e,!0);null!=g&&(g.style.bottom=parseInt("28px")-2+"px");if(!a.isOffline()&&1 '+mxResources.get("googleDriveMissingClickHere")+ "",e.appendChild(n))},5E3);this.container=e},SplashDialog=function(a){var c=document.createElement("div");c.style.textAlign="center";a.addLanguageMenu(c,!0);var b=null,b=a.getServiceCount();if(!a.isOffline()&&1c.length?mxClient.IS_SF||null!=document.documentMode?f.className="geBtn gePrimaryBtn":(g.appendChild(h),h.className="geBtn gePrimaryBtn",f.className="geBtn"):(g.appendChild(m),f.className="geBtn",m.className="geBtn gePrimaryBtn");d.appendChild(g);this.container=d};EmbedDialog.showPreviewOption=!0; -var GoogleSitesDialog=function(a,c){function b(){var a=null!=z&&null!=z.getTitle()?z.getTitle():this.defaultFilename;if(C.checked&&""!=p.value){var b="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(p.value));null!=a&&(b+="&title="+encodeURIComponent(a));0a)return String.fromCharCode(48+a);a-=10;if(26>a)return String.fromCharCode(65+a);a-=26;if(26>a)return String.fromCharCode(97+a);a-=26;return 0==a?"-":1==a?"_":"?"},n=function(a,b,c){c1=a>>2;c2=(a&3)<<4|b>>4;c3=(b&15)<<2|c>>6;c4=c&63;r="";r+=d(c1&63);r+=d(c2&63);r+=d(c3&63);return r+= d(c4&63)},e=new XMLHttpRequest;e.open("GET",f+function(a){r="";for(l=0;lthis.status)if("plantUmlTxt"==c)a.spinner.stop(),h.setSelectionCell(a.insertAsPreText(this.response, -g.x,g.y)),h.scrollCellToVisible(h.getSelectionCell());else{var d=new FileReader;d.readAsDataURL(this.response);d.onloadend=function(c){var f=new Image;f.onload=function(){a.spinner.stop();var c=f.width,n=f.height;if(0==c&&0==n){var e=d.result,q=e.indexOf(","),e=decodeURIComponent(escape(atob(e.substring(q+1)))),e=mxUtils.parseXml(e).getElementsByTagName("svg");0");if(2<=I.length){var m=D(I[0]),B=D(I[I.length-1]),I=new mxCell(2");if(2<=I.length){var m=C(I[0]),A=C(I[I.length-1]),I=new mxCell(2 Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: another authentication Response\n@enduml": "plantUmlSvg"==l.value||"plantUmlTxt"==l.value?"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: another authentication Response\n@enduml":";Example:\na->b\nb->edge label->c\nc->a\n"}var g=a.editor.graph.getFreeInsertPoint();c=document.createElement("div");c.style.textAlign="right";var k=document.createElement("textarea");k.style.resize="none";k.style.width="100%";k.style.height= "354px";k.style.marginBottom="16px";var l=document.createElement("select");"formatSql"==b&&(l.style.display="none");var m=document.createElement("option");m.setAttribute("value","list");mxUtils.write(m,mxResources.get("list"));"plantUml"!=b&&l.appendChild(m);null!=b&&"fromText"!=b||m.setAttribute("selected","selected");m=document.createElement("option");m.setAttribute("value","table");mxUtils.write(m,mxResources.get("formatSql"));"formatSql"==b&&(l.appendChild(m),m.setAttribute("selected","selected")); m=document.createElement("option");m.setAttribute("value","diagram");mxUtils.write(m,mxResources.get("diagram"));"plantUml"!=b&&l.appendChild(m);m=document.createElement("option");m.setAttribute("value","plantUmlSvg");mxUtils.write(m,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");"plantUml"==b&&m.setAttribute("selected","selected");var f=document.createElement("option");f.setAttribute("value","plantUmlPng");mxUtils.write(f,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+ ")");var h=document.createElement("option");h.setAttribute("value","plantUmlTxt");mxUtils.write(h,mxResources.get("plantUml")+" ("+mxResources.get("text")+")");EditorUi.enablePlantUml&&Graph.fileSupport&&!a.isOffline()&&"plantUml"==b&&(l.appendChild(m),l.appendChild(f),l.appendChild(h));var n=e();k.value=n;c.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()&&(q(p,a.getText(),c),k&&x())}))});mxEvent.addListener(p,"dblclick",function(a){k=!0})}else p.innerHTML= -'
'+mxResources.get(f)+"
",d&&q(p),null!=g?mxEvent.addListener(p,"click",g):(mxEvent.addListener(p,"click",function(a){q(p)}),mxEvent.addListener(p,"dblclick",function(a){x()}));N.appendChild(p)}function A(){mxEvent.addListener(N,"scroll",function(a){N.scrollTop+N.clientHeight>=N.scrollHeight&&(v(),mxEvent.consume(a))});var a=null,b;for(b in U){var c=document.createElement("div"),h=mxResources.get(b), +function(){a.hideDialog();d(k.value,l.value)});c.appendChild(m);m.className="geBtn gePrimaryBtn";a.editor.cancelFirst||c.appendChild(b);this.container=c},NewDialog=function(a,c,b,d,e,g,k,l,m,f,h,n,p,q,u){function v(){var a=!0;if(null!=O)for(;C=a.getStatus()&&(t(q,a.getText(),c),k&&x())}))});mxEvent.addListener(q,"dblclick",function(a){k=!0})}else q.innerHTML= +'
'+mxResources.get(f)+"
",d&&t(q),null!=g?mxEvent.addListener(q,"click",g):(mxEvent.addListener(q,"click",function(a){t(q)}),mxEvent.addListener(q,"dblclick",function(a){x()}));N.appendChild(q)}function F(){mxEvent.addListener(N,"scroll",function(a){N.scrollTop+N.clientHeight>=N.scrollHeight&&(v(),mxEvent.consume(a))});var a=null,b;for(b in U){var c=document.createElement("div"),h=mxResources.get(b), d=U[b];null==h&&(h=b.substring(0,1).toUpperCase()+b.substring(1));18c.lastIndexOf(".")&&0>d){var b=null!=b?b:z.value,n="";b==App.MODE_GOOGLE?n=a.drive.extension:b==App.MODE_GITHUB?n=a.gitHub.extension:b==App.MODE_TRELLO?n=a.trello.extension:b==App.MODE_DROPBOX?n=a.dropbox.extension:b==App.MODE_ONEDRIVE?n=a.oneDrive.extension:b==App.MODE_DEVICE&&(n=".xml"); -0<=d&&(f=f.substring(0,d));A.value=f+n}}x(h)})}var q=document.createElement("a");q.style.overflow="hidden";var g=document.createElement("img");g.src=b;g.setAttribute("border","0");g.setAttribute("align","absmiddle");g.style.width="60px";g.style.height="60px";g.style.paddingBottom="6px";q.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";q.className="geBaseButton";q.style.position="relative";q.style.margin="4px";q.style.padding="8px 8px 10px 8px";q.style.whiteSpace="nowrap";q.appendChild(g); -mxClient.IS_QUIRKS&&(q.style.cssFloat="left",q.style.zoom="1");q.style.color="gray";q.style.fontSize="11px";var t=document.createElement("div");q.appendChild(t);mxUtils.write(t,f);if(null!=d&&null==a[d]){g.style.visibility="hidden";mxUtils.setOpacity(t,10);var p=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});p.spin(q);var v=window.setTimeout(function(){null==a[d]&&(p.stop(),q.style.display="none")},3E4);a.addListener("clientLoaded", -mxUtils.bind(this,function(){null!=a[d]&&(window.clearTimeout(v),mxUtils.setOpacity(t,100),g.style.visibility="",p.stop(),e())}))}else e();C.appendChild(q);++y==n&&(mxUtils.br(C),y=0)}function x(c){var f=A.value;if(null==c||null!=f&&0c.lastIndexOf(".")&&0>d){var b=null!=b?b:z.value,n="";b==App.MODE_GOOGLE?n=a.drive.extension:b==App.MODE_GITHUB?n=a.gitHub.extension:b==App.MODE_TRELLO?n=a.trello.extension:b==App.MODE_DROPBOX?n=a.dropbox.extension:b==App.MODE_ONEDRIVE?n=a.oneDrive.extension:b==App.MODE_DEVICE&&(n=".xml"); +0<=d&&(f=f.substring(0,d));F.value=f+n}}x(h)})}var t=document.createElement("a");t.style.overflow="hidden";var g=document.createElement("img");g.src=b;g.setAttribute("border","0");g.setAttribute("align","absmiddle");g.style.width="60px";g.style.height="60px";g.style.paddingBottom="6px";t.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";t.className="geBaseButton";t.style.position="relative";t.style.margin="4px";t.style.padding="8px 8px 10px 8px";t.style.whiteSpace="nowrap";t.appendChild(g); +mxClient.IS_QUIRKS&&(t.style.cssFloat="left",t.style.zoom="1");t.style.color="gray";t.style.fontSize="11px";var q=document.createElement("div");t.appendChild(q);mxUtils.write(q,f);if(null!=d&&null==a[d]){g.style.visibility="hidden";mxUtils.setOpacity(q,10);var p=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});p.spin(t);var v=window.setTimeout(function(){null==a[d]&&(p.stop(),t.style.display="none")},3E4);a.addListener("clientLoaded", +mxUtils.bind(this,function(){null!=a[d]&&(window.clearTimeout(v),mxUtils.setOpacity(q,100),g.style.visibility="",p.stop(),e())}))}else e();B.appendChild(t);++y==n&&(mxUtils.br(B),y=0)}function x(c){var f=F.value;if(null==c||null!=f&&0':null==b.desc&&(n.style.padding="20px",n.style.color="rgb(179, 179, 179)",mxUtils.write(n,mxResources.get("noPreview"))); -null!=p&&(p.style.backgroundColor="");p=c;p.style.backgroundColor="dark"==uiTheme?"#505759":"#ebf2f9";null!=a&&mxEvent.consume(a)}};mxEvent.addListener(c,"click",e);mxEvent.addListener(c,"dblclick",function(a){d.checked=!d.checked;mxEvent.consume(a)});t.push(function(){return d.checked?b.id:null});0==g&&0==f&&e()})(b.entries[f])})(b[g]);d.style.padding="30px";d.appendChild(m);d.appendChild(h);d.appendChild(n);b=document.createElement("div");b.className="geDialogFooter";b.style.position="absolute"; +null!=p&&(p.style.backgroundColor="");p=c;p.style.backgroundColor="dark"==uiTheme?"#505759":"#ebf2f9";null!=a&&mxEvent.consume(a)}};mxEvent.addListener(c,"click",e);mxEvent.addListener(c,"dblclick",function(a){d.checked=!d.checked;mxEvent.consume(a)});q.push(function(){return d.checked?b.id:null});0==g&&0==f&&e()})(b.entries[f])})(b[g]);d.style.padding="30px";d.appendChild(m);d.appendChild(h);d.appendChild(n);b=document.createElement("div");b.className="geDialogFooter";b.style.position="absolute"; b.style.paddingRight="16px";b.style.color="gray";b.style.left="0px";b.style.right="0px";b.style.bottom="0px";b.style.height="60px";b.style.lineHeight="52px";mxClient.IS_QUIRKS&&(b.style.width=m.style.width,b.style.paddingTop="12px");var v=document.createElement("input");v.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)m=document.createElement("span"),m.style.paddingRight="20px",m.appendChild(v),mxUtils.write(m," "+mxResources.get("rememberThisSetting")),v.checked=!0,v.defaultChecked= -!0,mxEvent.addListener(m,"click",function(a){mxEvent.getSource(a)!=v&&(v.checked=!v.checked,mxEvent.consume(a))}),mxClient.IS_QUIRKS&&(m.style.position="relative",m.style.top="-6px"),b.appendChild(m);m=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});m.className="geBtn";c=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();for(var b=[],c=0;cmxUtils.indexOf(e,b)&&e.push(b)}c()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");a.showDialog(b.container,300,80,!0,!0);b.init()});g.className="geBtn";var k=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()}); @@ -7662,44 +7662,44 @@ k.className="geBtn";var l=mxUtils.button(mxResources.get("apply"),function(){mxS "right";a.editor.cancelFirst?(f.appendChild(k),f.appendChild(m),f.appendChild(g),f.appendChild(l)):(f.appendChild(m),f.appendChild(g),f.appendChild(l),f.appendChild(k));b.appendChild(f);this.container=b},CropImageDialog=function(a,c,b){var d=document.createElement("div"),e=document.createElement("table"),g=document.createElement("tbody"),k=document.createElement("tr"),l=document.createElement("td");l.style.whiteSpace="nowrap";l.setAttribute("colspan","2");mxUtils.write(l,mxResources.get("loading")+ "...");k.appendChild(l);g.appendChild(k);var k=document.createElement("tr"),m=document.createElement("td"),f=document.createElement("td");e.style.paddingLeft="6px";mxUtils.write(m,mxResources.get("left")+":");var h=document.createElement("input");h.setAttribute("type","text");h.style.width="100px";h.value="0";this.init=function(){h.focus();h.select()};f.appendChild(h);k.appendChild(m);k.appendChild(f);g.appendChild(k);k=document.createElement("tr");m=document.createElement("td");f=document.createElement("td"); mxUtils.write(m,mxResources.get("top")+":");var n=document.createElement("input");n.setAttribute("type","text");n.style.width="100px";n.value="0";f.appendChild(n);k.appendChild(m);k.appendChild(f);g.appendChild(k);k=document.createElement("tr");m=document.createElement("td");f=document.createElement("td");mxUtils.write(m,mxResources.get("right")+":");var p=document.createElement("input");p.setAttribute("type","text");p.style.width="100px";p.value="0";f.appendChild(p);k.appendChild(m);k.appendChild(f); -g.appendChild(k);k=document.createElement("tr");m=document.createElement("td");f=document.createElement("td");mxUtils.write(m,mxResources.get("bottom")+":");var t=document.createElement("input");t.setAttribute("type","text");t.style.width="100px";t.value="0";f.appendChild(t);k.appendChild(m);k.appendChild(f);g.appendChild(k);k=document.createElement("tr");m=document.createElement("td");f=document.createElement("td");mxUtils.write(m,mxResources.get("circle")+":");k.appendChild(m);var u=document.createElement("input"); -u.setAttribute("type","checkbox");f.appendChild(u);k.appendChild(f);g.appendChild(k);e.appendChild(g);d.appendChild(e);var e=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()}),v=new Image,x=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var c=document.createElement("canvas"),f=c.getContext("2d"),d=v.width,e=v.height,g=parseInt(h.value),k=parseInt(n.value),d=Math.max(1,d-g-parseInt(p.value)),e=Math.max(1,e-k-parseInt(t.value));c.width=d;c.height=e;u.checked&&(f.fillStyle= +g.appendChild(k);k=document.createElement("tr");m=document.createElement("td");f=document.createElement("td");mxUtils.write(m,mxResources.get("bottom")+":");var q=document.createElement("input");q.setAttribute("type","text");q.style.width="100px";q.value="0";f.appendChild(q);k.appendChild(m);k.appendChild(f);g.appendChild(k);k=document.createElement("tr");m=document.createElement("td");f=document.createElement("td");mxUtils.write(m,mxResources.get("circle")+":");k.appendChild(m);var u=document.createElement("input"); +u.setAttribute("type","checkbox");f.appendChild(u);k.appendChild(f);g.appendChild(k);e.appendChild(g);d.appendChild(e);var e=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()}),v=new Image,x=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();var c=document.createElement("canvas"),f=c.getContext("2d"),d=v.width,e=v.height,g=parseInt(h.value),k=parseInt(n.value),d=Math.max(1,d-g-parseInt(p.value)),e=Math.max(1,e-k-parseInt(q.value));c.width=d;c.height=e;u.checked&&(f.fillStyle= "#000000",f.arc(d/2,e/2,Math.min(d/2,e/2),0,2*Math.PI),f.fill(),f.globalCompositeOperation="source-in");f.drawImage(v,g,k,d,e,0,0,d,e);b(c.toDataURL())});x.setAttribute("disabled","disabled");v.onload=function(){x.removeAttribute("disabled");l.innerHTML="";mxUtils.write(l,mxResources.get("width")+": "+v.width+" "+mxResources.get("height")+": "+v.height)};v.src=c;mxEvent.addListener(d,"keypress",function(a){13==a.keyCode&&x.click()});c=document.createElement("div");c.style.marginTop="20px";c.style.textAlign= "right";a.editor.cancelFirst?(c.appendChild(e),c.appendChild(x)):(c.appendChild(x),c.appendChild(e));d.appendChild(c);this.container=d},EditGeometryDialog=function(a,c){var b=a.editor.graph,d=1==c.length?b.getCellGeometry(c[0]):null,e=document.createElement("div"),g=document.createElement("table"),k=document.createElement("tbody"),l=document.createElement("tr"),m=document.createElement("td"),f=document.createElement("td");g.style.paddingLeft="6px";mxUtils.write(m,mxResources.get("relative")+":"); var h=document.createElement("input");h.setAttribute("type","checkbox");null!=d&&d.relative&&(h.setAttribute("checked","checked"),h.defaultChecked=!0);this.init=function(){h.focus()};f.appendChild(h);l.appendChild(m);l.appendChild(f);k.appendChild(l);l=document.createElement("tr");m=document.createElement("td");f=document.createElement("td");mxUtils.write(m,mxResources.get("left")+":");var n=document.createElement("input");n.setAttribute("type","text");n.style.width="100px";n.value=null!=d?d.x:""; f.appendChild(n);l.appendChild(m);l.appendChild(f);k.appendChild(l);l=document.createElement("tr");m=document.createElement("td");f=document.createElement("td");mxUtils.write(m,mxResources.get("top")+":");var p=document.createElement("input");p.setAttribute("type","text");p.style.width="100px";p.value=null!=d?d.y:"";f.appendChild(p);l.appendChild(m);l.appendChild(f);k.appendChild(l);l=document.createElement("tr");m=document.createElement("td");f=document.createElement("td");mxUtils.write(m,mxResources.get("dx")+ -":");var t=document.createElement("input");t.setAttribute("type","text");t.style.width="100px";t.value=null!=d&&null!=d.offset?d.offset.x:"";f.appendChild(t);l.appendChild(m);l.appendChild(f);k.appendChild(l);l=document.createElement("tr");m=document.createElement("td");f=document.createElement("td");mxUtils.write(m,mxResources.get("dy")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.width="100px";u.value=null!=d&&null!=d.offset?d.offset.y:"";f.appendChild(u);l.appendChild(m); +":");var q=document.createElement("input");q.setAttribute("type","text");q.style.width="100px";q.value=null!=d&&null!=d.offset?d.offset.x:"";f.appendChild(q);l.appendChild(m);l.appendChild(f);k.appendChild(l);l=document.createElement("tr");m=document.createElement("td");f=document.createElement("td");mxUtils.write(m,mxResources.get("dy")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.width="100px";u.value=null!=d&&null!=d.offset?d.offset.y:"";f.appendChild(u);l.appendChild(m); l.appendChild(f);k.appendChild(l);l=document.createElement("tr");m=document.createElement("td");f=document.createElement("td");mxUtils.write(m,mxResources.get("width")+":");var v=document.createElement("input");v.setAttribute("type","text");v.style.width="100px";v.value=null!=d?d.width:"";f.appendChild(v);l.appendChild(m);l.appendChild(f);k.appendChild(l);l=document.createElement("tr");m=document.createElement("td");f=document.createElement("td");mxUtils.write(m,mxResources.get("height")+":");var x= -document.createElement("input");x.setAttribute("type","text");x.style.width="100px";x.value=null!=d?d.height:"";f.appendChild(x);l.appendChild(m);l.appendChild(f);k.appendChild(l);l=document.createElement("tr");m=document.createElement("td");f=document.createElement("td");mxUtils.write(m,mxResources.get("rotation")+":");var q=document.createElement("input");q.setAttribute("type","text");q.style.width="100px";q.value=1==c.length?mxUtils.getValue(b.getCellStyle(c[0]),mxConstants.STYLE_ROTATION,0):""; -f.appendChild(q);l.appendChild(m);l.appendChild(f);k.appendChild(l);g.appendChild(k);e.appendChild(g);d=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});d.className="geBtn";var w=mxUtils.button(mxResources.get("apply"),function(){a.hideDialog();b.getModel().beginUpdate();try{for(var f=0;fa.maxImageSize||n> -a.maxImageSize){var B=Math.min(1,Math.min(a.maxImageSize/Math.max(1,e)),a.maxImageSize/Math.max(1,n));e*=B;n*=B}y>z?(z=Math.round(100*z/y),y=100):(y=Math.round(100*y/z),z=100);var H=document.createElement("div");H.setAttribute("draggable","true");H.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";H.style.position="relative";H.style.cursor="move";mxUtils.setPrefixedStyle(H.style,"transition","transform .1s ease-in-out");if(null!=b){var F=document.createElement("img");F.setAttribute("src",A.convert(b)); -F.style.width=y+"px";F.style.height=z+"px";F.style.margin="10px";F.style.paddingBottom=Math.floor((100-z)/2)+"px";F.style.paddingLeft=Math.floor((100-y)/2)+"px";H.appendChild(F)}else if(null!=g){var E=a.stringToCells(a.editor.graph.decompress(g.xml));0a.maxImageSize||n> +a.maxImageSize){var A=Math.min(1,Math.min(a.maxImageSize/Math.max(1,e)),a.maxImageSize/Math.max(1,n));e*=A;n*=A}y>z?(z=Math.round(100*z/y),y=100):(y=Math.round(100*y/z),z=100);var H=document.createElement("div");H.setAttribute("draggable","true");H.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";H.style.position="relative";H.style.cursor="move";mxUtils.setPrefixedStyle(H.style,"transition","transform .1s ease-in-out");if(null!=b){var E=document.createElement("img");E.setAttribute("src",F.convert(b)); +E.style.width=y+"px";E.style.height=z+"px";E.style.margin="10px";E.style.paddingBottom=Math.floor((100-z)/2)+"px";E.style.paddingLeft=Math.floor((100-y)/2)+"px";H.appendChild(E)}else if(null!=t){var D=a.stringToCells(a.editor.graph.decompress(t.xml));0x?q-1:q,0,h.splice(x,1)[0]),t.insertBefore(t.children[x],t.children[q])):(h.push(h.splice(x,1)[0]),t.appendChild(t.children[x]));else if(0=c.status&&(l(c.responseText,f,h,d,e,n,g,"fixed",mxEvent.isAltDown(b)?null:g.substring(0,g.lastIndexOf(".")).replace(/_/g," ")),t.scrollTop=t.scrollHeight))})):(l(c,f,h,d,e,n,g,"fixed",mxEvent.isAltDown(b)?null:g.substring(0,g.lastIndexOf(".")).replace(/_/g," ")),t.scrollTop=t.scrollHeight)}};mxEvent.addListener(t,"dragover",m);mxEvent.addListener(t,"drop",f);mxEvent.addListener(u,"dragover",m);mxEvent.addListener(u, -"drop",f);b.appendChild(t);d=document.createElement("div");d.style.textAlign="right";d.style.marginTop="20px";c=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});c.setAttribute("id","btnCancel");c.className="geBtn";a.editor.cancelFirst&&d.appendChild(c);n=mxUtils.button(mxResources.get("export"),function(){var b=a.createLibraryDataFromImages(h),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 z=document.createElement("input");z.setAttribute("multiple","multiple");z.setAttribute("type","file");null==document.documentMode&&(mxEvent.addListener(z,"change",function(b){C=!1;a.importFiles(z.files,0,0,a.maxImageSize,function(a,c,f,h,d,e,n,g,q){y(b)(a,c,f,h,d,e,n,g,q);z.value=""});t.scrollTop=t.scrollHeight}),n=mxUtils.button(mxResources.get("import"), -function(){null!=w&&(w(),w=null);z.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){C=!1;if(null!=a){if("data:image/"==a.substring(0,11)){var f=a.indexOf(",");0x?t-1:t,0,h.splice(x,1)[0]),q.insertBefore(q.children[x],q.children[t])):(h.push(h.splice(x,1)[0]),q.appendChild(q.children[x]));else if(0=c.status&&(l(c.responseText,f,h,d,e,n,t,"fixed",mxEvent.isAltDown(b)?null:t.substring(0,t.lastIndexOf(".")).replace(/_/g," ")),q.scrollTop=q.scrollHeight))})):(l(c,f,h,d,e,n,t,"fixed",mxEvent.isAltDown(b)?null:t.substring(0,t.lastIndexOf(".")).replace(/_/g," ")),q.scrollTop=q.scrollHeight)}};mxEvent.addListener(q,"dragover",m);mxEvent.addListener(q,"drop",f);mxEvent.addListener(u,"dragover",m);mxEvent.addListener(u, +"drop",f);b.appendChild(q);d=document.createElement("div");d.style.textAlign="right";d.style.marginTop="20px";c=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog(!0)});c.setAttribute("id","btnCancel");c.className="geBtn";a.editor.cancelFirst&&d.appendChild(c);n=mxUtils.button(mxResources.get("export"),function(){var b=a.createLibraryDataFromImages(h),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 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,c,f,h,d,e,n,t,g){y(b)(a,c,f,h,d,e,n,t,g);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",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 f=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")+ @@ -7707,26 +7707,26 @@ mxResources.get("newDiagram",null,"New Diagram")+'

🛈 '+ mxResources.get("linkToDiagramHint",null,"Add a link to this diagram. The diagram can only be edited from the page that owns it.")+'
'+mxResources.get("create",null,"Create")+'
'+mxResources.get("cancel",null,"Cancel")+"
",c=document.createElement("div");c.innerHTML=a;c.className="geTemplateDlg"; var a=window.innerWidth,b=window.innerHeight,d=987,e=712;.9*a=b.getStatus()&&(c(b.getText(),"nameInput.value"),a.hideDialog(!0))}))}}function v(a){a=a?"":"none";for(var b=y.querySelectorAll(".geTempDlgLinkToDiagram"),c=0;cn&&(e=e.substring(0, -n)+"…");if(c){var l=document.createElement("tr"),q=document.createElement("td"),w=document.createElement("img");w.src="/images/icon-search.svg";w.className="geTempDlgDiagramListPreviewBtn";w.setAttribute("title",mxResources.get("preview"));q.appendChild(w);g=document.createElement("span");g.className="geTempDlgDiagramTitle";g.innerHTML=e;q.appendChild(g);l.appendChild(q);q=document.createElement("td");q.innerHTML=k;l.appendChild(q);q=document.createElement("td");q.innerHTML=A;l.appendChild(q); -h.appendChild(l);null==F&&(f(),t(l,"geTempDlgDiagramsListGridActive",a[d]));(function(a,b){mxEvent.addListener(l,"click",function(){F!=b&&(f(),t(b,"geTempDlgDiagramsListGridActive",a))});mxEvent.addListener(l,"dblclick",u);mxEvent.addListener(w,"click",function(){p(a)})})(a[d],l)}else{var C=document.createElement("div");C.className="geTempDlgDiagramTile";C.setAttribute("title",g);null==F&&(f(),t(C,"geTempDlgDiagramTileActive",a[d]));k=document.createElement("div");k.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgLoading"; -var m=document.createElement("img");m.style.display="none";(function(a,b){m.onload=function(){b.className="geTempDlgDiagramTileImg";a.style.display=""};m.onerror=function(){b.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgError"}})(m,k);m.src=q;k.appendChild(m);C.appendChild(k);k=document.createElement("div");k.className="geTempDlgDiagramTileLbl";k.innerHTML=null!=e?e:"";C.appendChild(k);w=document.createElement("img");w.src="/images/icon-search.svg";w.className="geTempDlgDiagramPreviewBtn"; -w.setAttribute("title",mxResources.get("preview"));C.appendChild(w);(function(a,b){mxEvent.addListener(C,"click",function(){F!=b&&(f(),t(b,"geTempDlgDiagramTileActive",a))});mxEvent.addListener(C,"dblclick",u);mxEvent.addListener(w,"click",function(){p(a)})})(a[d],C);P.appendChild(C)}}}function q(a,b){Q.innerHTML="";t();for(var c=!b&&5a.length?"none":""}function w(a){var b=y.querySelector(".geTemplatesList"),c;for(c in a){var f=document.createElement("div"),h=mxResources.get(c),d=a[c];null==h&&(h=c.substring(0,1).toUpperCase()+c.substring(1));f.className="geTemplateCatLink"; -f.setAttribute("title",h+" ("+d.length+")");h=mxUtils.htmlEntities(h);15n&&(e=e.substring(0, +n)+"…");if(c){var l=document.createElement("tr"),g=document.createElement("td"),w=document.createElement("img");w.src="/images/icon-search.svg";w.className="geTempDlgDiagramListPreviewBtn";w.setAttribute("title",mxResources.get("preview"));g.appendChild(w);t=document.createElement("span");t.className="geTempDlgDiagramTitle";t.innerHTML=e;g.appendChild(t);l.appendChild(g);g=document.createElement("td");g.innerHTML=k;l.appendChild(g);g=document.createElement("td");g.innerHTML=F;l.appendChild(g); +h.appendChild(l);null==E&&(f(),q(l,"geTempDlgDiagramsListGridActive",a[d]));(function(a,b){mxEvent.addListener(l,"click",function(){E!=b&&(f(),q(b,"geTempDlgDiagramsListGridActive",a))});mxEvent.addListener(l,"dblclick",u);mxEvent.addListener(w,"click",function(){p(a)})})(a[d],l)}else{var B=document.createElement("div");B.className="geTempDlgDiagramTile";B.setAttribute("title",t);null==E&&(f(),q(B,"geTempDlgDiagramTileActive",a[d]));k=document.createElement("div");k.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgLoading"; +var m=document.createElement("img");m.style.display="none";(function(a,b){m.onload=function(){b.className="geTempDlgDiagramTileImg";a.style.display=""};m.onerror=function(){b.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgError"}})(m,k);m.src=g;k.appendChild(m);B.appendChild(k);k=document.createElement("div");k.className="geTempDlgDiagramTileLbl";k.innerHTML=null!=e?e:"";B.appendChild(k);w=document.createElement("img");w.src="/images/icon-search.svg";w.className="geTempDlgDiagramPreviewBtn"; +w.setAttribute("title",mxResources.get("preview"));B.appendChild(w);(function(a,b){mxEvent.addListener(B,"click",function(){E!=b&&(f(),q(b,"geTempDlgDiagramTileActive",a))});mxEvent.addListener(B,"dblclick",u);mxEvent.addListener(w,"click",function(){p(a)})})(a[d],B);P.appendChild(B)}}}function t(a,b){Q.innerHTML="";q();for(var c=!b&&5a.length?"none":""}function w(a){var b=y.querySelector(".geTemplatesList"),c;for(c in a){var f=document.createElement("div"),h=mxResources.get(c),d=a[c];null==h&&(h=c.substring(0,1).toUpperCase()+c.substring(1));f.className="geTemplateCatLink"; +f.setAttribute("title",h+" ("+d.length+")");h=mxUtils.htmlEntities(h);15c.size&&(e=e.slice(0,c.size));b=e.join(",");null!=c.countProperty&&(t.setCellStyles(c.countProperty,e.length,t.getSelectionCells()),h.push(c.countProperty),d.push(e.length))}t.setCellStyles(a,b,t.getSelectionCells()); -h.push(a);d.push(b);if(null!=c.dependentProps)for(a=0;ab)q=q.slice(0,b);else for(var k=q.length;kc.size&&(e=e.slice(0,c.size));b=e.join(",");null!=c.countProperty&&(q.setCellStyles(c.countProperty,e.length,q.getSelectionCells()),h.push(c.countProperty),d.push(e.length))}q.setCellStyles(a,b,q.getSelectionCells()); +h.push(a);d.push(b);if(null!=c.dependentProps)for(a=0;ab)g=g.slice(0,b);else for(var k=g.length;kq.max&&(a=q.max);a=mxUtils.htmlEntities(("int"==v?parseInt(a):a)+"");f(b,a,q)}var e=document.createElement("input");h(w,e,!0);e.value=c;e.className="gePropEditor"; -"int"!=v&&"float"!=v||q.allowAuto||(e.type="number",e.step="int"==v?"1":"any",null!=q.min&&(e.min=parseFloat(q.min)),null!=q.max&&(e.max=parseFloat(q.max)));a.appendChild(e);mxEvent.addListener(e,"keypress",function(a){13==a.keyCode&&d()});e.focus();mxEvent.addListener(e,"blur",function(){d()})})));q.isDeletable&&(k=mxUtils.button("-",mxUtils.bind(p,function(a){f(b,"",q,q.index);mxEvent.consume(a)})),k.style.height="16px",k.style.width="25px",k.style["float"]="right",k.className="geColorBtn",w.appendChild(k)); -u.appendChild(w);return u}var p=this,t=this.editorUi.editor.graph,k=[];a.style.position="relative";a.style.padding="0";var v=document.createElement("table");v.style.whiteSpace="nowrap";v.style.width="100%";var l=document.createElement("tr");l.className="gePropHeader";var u=document.createElement("th");u.className="gePropHeaderCell";var w=document.createElement("img");w.src=Sidebar.prototype.expandedImage;u.appendChild(w);mxUtils.write(u,mxResources.get("property"));l.style.cursor="pointer";var m= -function(){var b=v.querySelectorAll(".gePropNonHeaderRow"),c;if(p.editorUi.propertiesCollapsed){w.src=Sidebar.prototype.collapsedImage;c="none";for(var f=a.childNodes.length-1;0<=f;f--)try{var h=a.childNodes[f],d=h.nodeName.toUpperCase();"INPUT"!=d&&"SELECT"!=d||a.removeChild(h)}catch(ea){}}else w.src=Sidebar.prototype.expandedImage,c="";for(f=0;fg.max&&(a=g.max);a=mxUtils.htmlEntities(("int"==l?parseInt(a):a)+"");f(b,a,g)}var e=document.createElement("input");h(w,e,!0);e.value=c;e.className="gePropEditor"; +"int"!=l&&"float"!=l||g.allowAuto||(e.type="number",e.step="int"==l?"1":"any",null!=g.min&&(e.min=parseFloat(g.min)),null!=g.max&&(e.max=parseFloat(g.max)));a.appendChild(e);mxEvent.addListener(e,"keypress",function(a){13==a.keyCode&&d()});e.focus();mxEvent.addListener(e,"blur",function(){d()})})));g.isDeletable&&(k=mxUtils.button("-",mxUtils.bind(p,function(a){f(b,"",g,g.index);mxEvent.consume(a)})),k.style.height="16px",k.style.width="25px",k.style["float"]="right",k.className="geColorBtn",w.appendChild(k)); +u.appendChild(w);return u}var p=this,q=this.editorUi.editor.graph,k=[];a.style.position="relative";a.style.padding="0";var l=document.createElement("table");l.style.whiteSpace="nowrap";l.style.width="100%";var v=document.createElement("tr");v.className="gePropHeader";var u=document.createElement("th");u.className="gePropHeaderCell";var w=document.createElement("img");w.src=Sidebar.prototype.expandedImage;u.appendChild(w);mxUtils.write(u,mxResources.get("property"));v.style.cursor="pointer";var m= +function(){var b=l.querySelectorAll(".gePropNonHeaderRow"),c;if(p.editorUi.propertiesCollapsed){w.src=Sidebar.prototype.collapsedImage;c="none";for(var f=a.childNodes.length-1;0<=f;f--)try{var h=a.childNodes[f],d=h.nodeName.toUpperCase();"INPUT"!=d&&"SELECT"!=d||a.removeChild(h)}catch(ea){}}else w.src=Sidebar.prototype.expandedImage,c="";for(f=0;f'),b.writeln(a.editor.fontCss), -b.writeln(""))};if("undefined"!==typeof MathJax){var l=c.renderPage;c.renderPage=function(a,b,c,f,h,d){var e=mxClient.NO_FO;mxClient.NO_FO=this.graph.mathEnabled&&!this.useForeignObjectForMath?!0:this.originalNoForeignObject;var n=l.apply(this,arguments);mxClient.NO_FO=e;this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:n.className="geDisableMathJax";return n}}c.open(null,null,h,!0)}else{q=b.background;if(null==q||""==q||q==mxConstants.NONE)q="#ffffff";c.backgroundColor=q;c.autoOrigin= -p;c.appendGraph(b,g,e,n,h,!0)}return c}var f=parseInt(ba.value)/100;isNaN(f)&&(f=1,ba.value="100 %");var f=.75*f,d=k.value,e=l.value,n=!p.checked,q=null;n&&(n=d==g&&e==g);if(!n&&null!=a.pages&&a.pages.length){var t=0,n=a.pages.length-1;p.checked||(t=parseInt(d)-1,n=parseInt(e)-1);for(var v=t;v<=n;v++){var u=a.pages[v],d=u==a.currentPage?h:null;if(null==d){var d=a.createTemporaryGraph(h.getStylesheet()),e=!0,t=!1,x=null,A=null;null==u.viewState&&null==u.root&&a.updatePageRoot(u);null!=u.viewState&& -(e=u.viewState.pageVisible,t=u.viewState.mathEnabled,x=u.viewState.background,A=u.viewState.backgroundImage);d.background=x;d.backgroundImage=null!=A?new mxImage(A.src,A.width,A.height):null;d.pageVisible=e;d.mathEnabled=t;var C=d.getGlobalVariable;d.getGlobalVariable=function(a){return"page"==a?u.getName():"pagenumber"==a?v+1:C.apply(this,arguments)};document.body.appendChild(d.container);a.updatePageRoot(u);d.model.setRoot(u.root)}q=c(d,q,v!=n);d!=h&&d.container.parentNode.removeChild(d.container)}}else q= -c(h);q.mathEnabled&&(n=q.wnd.document,n.writeln('