diff --git a/ChangeLog b/ChangeLog index a7d470e6..56b158a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +07-MAR-2019: 10.3.6 + +- Improves error handling for Google Drive +- Adds realtime file conversion tool + 05-MAR-2019: 10.3.5 - Reduces possible number 403 errors in Drive diff --git a/VERSION b/VERSION index ef195c8e..9bab95e4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -10.3.5 \ No newline at end of file +10.3.6 \ No newline at end of file diff --git a/src/main/webapp/cache.manifest b/src/main/webapp/cache.manifest index 5372e38d..8e9315e0 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! -# 03/05/2019 06:52 PM +# 03/07/2019 12:33 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 32d536ab..b640dc10 100644 --- a/src/main/webapp/js/app.min.js +++ b/src/main/webapp/js/app.min.js @@ -2451,7 +2451,7 @@ b.getProperty("event"),d=b.getProperty("cell");null==d?(c=mxUtils.convertPoint(t mxUtils.bind(this,function(){var a=this.connectionHandler.constraintHandler;null!=a.currentFocus&&a.isStateIgnored(a.currentFocus,!0)&&(a.currentFocus=null,a.constraints=null,a.destroyIcons());a.destroyFocusHighlight()}));Graph.touchStyle&&this.initTouch();var E=this.updateMouseEvent;this.updateMouseEvent=function(a){a=E.apply(this,arguments);null!=a.state&&this.isCellLocked(a.getCell())&&(a.state=null);return a}}this.currentTranslate=new mxPoint(0,0)}; Graph.touchStyle=mxClient.IS_TOUCH||mxClient.IS_FF&&mxClient.IS_WIN||0'+d+""));return new mxImage("data:image/svg+xml;base64,"+(window.btoa?btoa(d):Base64.encode(d,!0)),a,c)}; -Graph.zapGremlins=function(a){for(var c=[],d=0;d=b&&(mxUtils.br(n),f=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")- 3+"px");if(!a.isOffline()&&1c.length?mxClient.IS_SF||null!=document.documentMode?q.className="geBtn gePrimaryBtn":(g.appendChild(f),f.className="geBtn gePrimaryBtn",q.className="geBtn"):(g.appendChild(n),q.className="geBtn",n.className="geBtn gePrimaryBtn");d.appendChild(g);this.container=d};EmbedDialog.showPreviewOption=!0; -var GoogleSitesDialog=function(a,c){function b(){var a=null!=A&&null!=A.getTitle()?A.getTitle():this.defaultFilename;if(I.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));0");if(2<=D.length){var m=n(D[0]),H=n(D[D.length-1]),D=new mxCell(2");if(2<=G.length){var m=n(G[0]),H=n(G[G.length-1]),G=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"==m.value||"plantUmlTxt"==m.value?"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: another authentication Response\n@enduml":";Example:\na->b\nb->edge label->c\nc->a\n"}var g=a.editor.graph.getFreeInsertPoint();c=document.createElement("div");c.style.textAlign="right";var l=document.createElement("textarea");l.style.resize="none";l.style.width="100%";l.style.height= @@ -7797,32 +7797,32 @@ m.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setNa n=document.createElement("option");n.setAttribute("value","diagram");mxUtils.write(n,mxResources.get("diagram"));"plantUml"!=b&&m.appendChild(n);n=document.createElement("option");n.setAttribute("value","plantUmlSvg");mxUtils.write(n,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");"plantUml"==b&&n.setAttribute("selected","selected");var q=document.createElement("option");q.setAttribute("value","plantUmlPng");mxUtils.write(q,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+ ")");var f=document.createElement("option");f.setAttribute("value","plantUmlTxt");mxUtils.write(f,mxResources.get("plantUml")+" ("+mxResources.get("text")+")");EditorUi.enablePlantUml&&Graph.fileSupport&&!a.isOffline()&&"plantUml"==b&&(m.appendChild(n),m.appendChild(q),m.appendChild(f));var k=e();l.value=k;c.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=a.getStatus()&&(y(t,a.getText(),c),A&&u())}))});mxEvent.addListener(t,"dblclick", -function(a){A=!0})}else t.innerHTML='
'+mxResources.get(f)+"
",k&&y(t),null!=g?mxEvent.addListener(t,"click",g):(mxEvent.addListener(t,"click",function(a){y(t)}),mxEvent.addListener(t,"dblclick",function(a){u()}));N.appendChild(t)}function I(){mxEvent.addListener(N,"scroll",function(a){N.scrollTop+N.clientHeight>=N.scrollHeight&&(z(),mxEvent.consume(a))});var a=null,b;for(b in aa){var c= +t.style.height=Q+"px";t.style.width=R+"px";null!=d&&0=a.getStatus()&&(y(t,a.getText(),c),A&&u())}))});mxEvent.addListener(t,"dblclick", +function(a){A=!0})}else t.innerHTML='
'+mxResources.get(f)+"
",k&&y(t),null!=g?mxEvent.addListener(t,"click",g):(mxEvent.addListener(t,"click",function(a){y(t)}),mxEvent.addListener(t,"dblclick",function(a){u()}));N.appendChild(t)}function K(){mxEvent.addListener(N,"scroll",function(a){N.scrollTop+N.clientHeight>=N.scrollHeight&&(z(),mxEvent.consume(a))});var a=null,b;for(b in aa){var c= document.createElement("div"),f=mxResources.get(b),d=aa[b];null==f&&(f=b.substring(0,1).toUpperCase()+b.substring(1));18c.lastIndexOf(".")&&0>k){var b=null!=b?b:A.value,p="";b==App.MODE_GOOGLE?p=a.drive.extension:b==App.MODE_GITHUB? +"change",function(c){a.openFiles(b.files,!0)});b.click()}),t.className="geBtn",f.appendChild(t));f.appendChild(H);a.editor.cancelFirst||null!=d||e&&null==g||f.appendChild(A);F.appendChild(f);this.container=F},CreateDialog=function(a,c,b,d,e,g,l,m,n,q,f,k,p,v,t,x){function z(b,f,d,p){function e(){mxEvent.addListener(g,"click",function(){var b=d;if(l){var f=C.value,k=f.lastIndexOf(".");if(0>c.lastIndexOf(".")&&0>k){var b=null!=b?b:A.value,p="";b==App.MODE_GOOGLE?p=a.drive.extension:b==App.MODE_GITHUB? p=a.gitHub.extension:b==App.MODE_TRELLO?p=a.trello.extension:b==App.MODE_DROPBOX?p=a.dropbox.extension:b==App.MODE_ONEDRIVE?p=a.oneDrive.extension:b==App.MODE_DEVICE&&(p=".xml");0<=k&&(f=f.substring(0,k));C.value=f+p}}u(d)})}var g=document.createElement("a");g.style.overflow="hidden";var y=document.createElement("img");y.src=b;y.setAttribute("border","0");y.setAttribute("align","absmiddle");y.style.width="60px";y.style.height="60px";y.style.paddingBottom="6px";g.style.display=mxClient.IS_QUIRKS?"inline": "inline-block";g.className="geBaseButton";g.style.position="relative";g.style.margin="4px";g.style.padding="8px 8px 10px 8px";g.style.whiteSpace="nowrap";g.appendChild(y);mxClient.IS_QUIRKS&&(g.style.cssFloat="left",g.style.zoom="1");g.style.color="gray";g.style.fontSize="11px";var t=document.createElement("div");g.appendChild(t);mxUtils.write(t,f);if(null!=p&&null==a[p]){y.style.visibility="hidden";mxUtils.setOpacity(t,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(g);var x=window.setTimeout(function(){null==a[p]&&(v.stop(),g.style.display="none")},3E4);a.addListener("clientLoaded",mxUtils.bind(this,function(){null!=a[p]&&(window.clearTimeout(x),mxUtils.setOpacity(t,100),y.style.visibility="",v.stop(),e())}))}else e();I.appendChild(g);++G==k&&(mxUtils.br(I),G=0)}function u(c){var f=C.value;if(null==c||null!=f&&0a.maxImageSize||e>a.maxImageSize){var B=Math.min(1,Math.min(a.maxImageSize/Math.max(1,p)),a.maxImageSize/Math.max(1,e));p*=B;e*=B}E>q?(q=Math.round(100*q/E),E=100):(E=Math.round(100*E/q),q=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 G=document.createElement("img");G.setAttribute("src",C.convert(b));G.style.width=E+"px";G.style.height=q+"px";G.style.margin="10px";G.style.paddingBottom=Math.floor((100-q)/2)+"px";G.style.paddingLeft=Math.floor((100-E)/2)+"px";H.appendChild(G)}else if(null!=g){var J=a.stringToCells(Graph.decompress(g.xml));0z?u-1:u,0,f.splice(z,1)[0]),v.insertBefore(v.children[z],v.children[u])): -(f.push(f.splice(z,1)[0]),v.appendChild(v.children[z]));else if(0a.maxImageSize||e>a.maxImageSize){var B=Math.min(1,Math.min(a.maxImageSize/Math.max(1,p)),a.maxImageSize/Math.max(1,e));p*=B;e*=B}D>q?(q=Math.round(100*q/D),D=100):(D=Math.round(100*D/q),q=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",C.convert(b));F.style.width=D+"px";F.style.height=q+"px";F.style.margin="10px";F.style.paddingBottom=Math.floor((100-q)/2)+"px";F.style.paddingLeft=Math.floor((100-D)/2)+"px";H.appendChild(F)}else if(null!=g){var J=a.stringToCells(Graph.decompress(g.xml));0z?u-1:u,0,f.splice(z,1)[0]),v.insertBefore(v.children[z],v.children[u])): +(f.push(f.splice(z,1)[0]),v.appendChild(v.children[z]));else if(0=c.status&&(m(c.responseText,f,d,k,p,e,g,"fixed",mxEvent.isAltDown(b)?null:g.substring(0,g.lastIndexOf(".")).replace(/_/g," ")),v.scrollTop=v.scrollHeight))})):(m(c,f,d,k,p,e,g,"fixed",mxEvent.isAltDown(b)?null:g.substring(0, g.lastIndexOf(".")).replace(/_/g," ")),v.scrollTop=v.scrollHeight)}};mxEvent.addListener(v,"dragover",n);mxEvent.addListener(v,"drop",q);mxEvent.addListener(t,"dragover",n);mxEvent.addListener(t,"drop",q);b.appendChild(v);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);k=mxUtils.button(mxResources.get("export"), function(){var b=a.createLibraryDataFromImages(f),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")});k.setAttribute("id","btnDownload");k.className="geBtn";d.appendChild(k);var A=document.createElement("input");A.setAttribute("multiple","multiple");A.setAttribute("type","file");null==document.documentMode&&(mxEvent.addListener(A, -"change",function(b){I=!1;a.importFiles(A.files,0,0,a.maxImageSize,function(a,c,f,d,k,p,e,g,u){G(b)(a,c,f,d,k,p,e,g,u);A.value=""});v.scrollTop=v.scrollHeight}),k=mxUtils.button(mxResources.get("import"),function(){null!=y&&(y(),y=null);A.click()}),k.setAttribute("id","btnAddImage"),k.className="geBtn",d.appendChild(k));k=mxUtils.button(mxResources.get("addImageUrl"),function(){null!=y&&(y(),y=null);a.showImageDialog(mxResources.get("addImageUrl"),"",function(a,b,c){I=!1;if(null!=a){if("data:image/"== +"change",function(b){K=!1;a.importFiles(A.files,0,0,a.maxImageSize,function(a,c,f,d,k,p,e,g,u){F(b)(a,c,f,d,k,p,e,g,u);A.value=""});v.scrollTop=v.scrollHeight}),k=mxUtils.button(mxResources.get("import"),function(){null!=y&&(y(),y=null);A.click()}),k.setAttribute("id","btnAddImage"),k.className="geBtn",d.appendChild(k));k=mxUtils.button(mxResources.get("addImageUrl"),function(){null!=y&&(y(),y=null);a.showImageDialog(mxResources.get("addImageUrl"),"",function(a,b,c){K=!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")+'
'+ @@ -7971,27 +7971,27 @@ mxResources.get("newDiagram",null,"New Diagram")+'
'+mxResources.get("allDiagrams",null,"All diagrams")+'

🛈 '+ 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 x(a){a=a?"":"none";for(var b=G.querySelectorAll(".geTempDlgLinkToDiagram"),c=0;c=b.getStatus()&&(c(b.getText(),"nameInput.value"),a.hideDialog(!0))}))}}function x(a){a=a?"":"none";for(var b=F.querySelectorAll(".geTempDlgLinkToDiagram"),c=0;cg&&(e=e.substring(0,g)+"…");if(c){var m=document.createElement("tr"),y=document.createElement("td"),n=document.createElement("img");n.src="/images/icon-search.svg";n.className="geTempDlgDiagramListPreviewBtn";n.setAttribute("title",mxResources.get("preview"));y.appendChild(n);u=document.createElement("span");u.className="geTempDlgDiagramTitle";u.innerHTML=e;y.appendChild(u);m.appendChild(y);y=document.createElement("td"); -y.innerHTML=l;m.appendChild(y);y=document.createElement("td");y.innerHTML=A;m.appendChild(y);d.appendChild(m);null==F&&(f(),v(m,"geTempDlgDiagramsListGridActive",a[k]));(function(a,b){mxEvent.addListener(m,"click",function(){F!=b&&(f(),v(b,"geTempDlgDiagramsListGridActive",a))});mxEvent.addListener(m,"dblclick",t);mxEvent.addListener(n,"click",function(){p(a)})})(a[k],m)}else{var z=document.createElement("div");z.className="geTempDlgDiagramTile";z.setAttribute("title",u);null==F&&(f(),v(z,"geTempDlgDiagramTileActive", +y.innerHTML=l;m.appendChild(y);y=document.createElement("td");y.innerHTML=A;m.appendChild(y);d.appendChild(m);null==E&&(f(),v(m,"geTempDlgDiagramsListGridActive",a[k]));(function(a,b){mxEvent.addListener(m,"click",function(){E!=b&&(f(),v(b,"geTempDlgDiagramsListGridActive",a))});mxEvent.addListener(m,"dblclick",t);mxEvent.addListener(n,"click",function(){p(a)})})(a[k],m)}else{var z=document.createElement("div");z.className="geTempDlgDiagramTile";z.setAttribute("title",u);null==E&&(f(),v(z,"geTempDlgDiagramTileActive", a[k]));l=document.createElement("div");l.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgLoading";var C=document.createElement("img");C.style.display="none";(function(a,b){C.onload=function(){b.className="geTempDlgDiagramTileImg";a.style.display=""};C.onerror=function(){b.className="geTempDlgDiagramTileImg geTempDlgDiagramTileImgError"}})(C,l);C.src=y;l.appendChild(C);z.appendChild(l);l=document.createElement("div");l.className="geTempDlgDiagramTileLbl";l.innerHTML=null!=e?e:"";z.appendChild(l); -n=document.createElement("img");n.src="/images/icon-search.svg";n.className="geTempDlgDiagramPreviewBtn";n.setAttribute("title",mxResources.get("preview"));z.appendChild(n);(function(a,b){mxEvent.addListener(z,"click",function(){F!=b&&(f(),v(b,"geTempDlgDiagramTileActive",a))});mxEvent.addListener(z,"dblclick",t);mxEvent.addListener(n,"click",function(){p(a)})})(a[k],z);U.appendChild(z)}}}function u(a,b){Z.innerHTML="";v();for(var c=!b&&5a.length?"none":""}function y(a){var b=G.querySelector(".geTemplatesList"), +n=document.createElement("img");n.src="/images/icon-search.svg";n.className="geTempDlgDiagramPreviewBtn";n.setAttribute("title",mxResources.get("preview"));z.appendChild(n);(function(a,b){mxEvent.addListener(z,"click",function(){E!=b&&(f(),v(b,"geTempDlgDiagramTileActive",a))});mxEvent.addListener(z,"dblclick",t);mxEvent.addListener(n,"click",function(){p(a)})})(a[k],z);U.appendChild(z)}}}function u(a,b){Z.innerHTML="";v();for(var c=!b&&5a.length?"none":""}function y(a){var b=F.querySelector(".geTemplatesList"), c;for(c in a){var f=document.createElement("div"),d=mxResources.get(c),k=a[c];null==d&&(d=c.substring(0,1).toUpperCase()+c.substring(1));f.className="geTemplateCatLink";f.setAttribute("title",d+" ("+k.length+")");d=mxUtils.htmlEntities(d);15>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 g=0;if(k(a,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=d&&d();else if(k(a,4),"IHDR"!=k(a,4))null!=d&&d();else{k(a,17);d=a.substring(0,g);do{var u=p(a); if("IDAT"==k(a,4)){d=a.substring(0,g-8);c=c+String.fromCharCode(0)+("zTXt"==b?String.fromCharCode(0):"")+f;f=4294967295;f=EditorUi.prototype.updateCRC(f,b,0,4);f=EditorUi.prototype.updateCRC(f,c,0,c.length);d+=e(c.length)+b+c+e(f^4294967295);d+=a.substring(g-8,a.length);break}d+=a.substring(g-8,g-4+u);k(a,u);k(a,4)}while(u);return"data:image/png;base64,"+(window.btoa?btoa(d):Base64.encode(d,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://desk.draw.io/support/solutions/articles/16000091426"; var e=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(a,b){e.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var g=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){g.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(a,b){var c=null;null!=a.editor.graph.getModel().getParent(b)?c=b.getId():null!=a.currentPage&& @@ -8094,7 +8094,7 @@ p.value,a=0==a.length&&"string"!=x?0:a;u.allowAuto&&("auto"==a.trim().toLowerCas a.appendChild(p);mxEvent.addListener(p,"keypress",function(a){13==a.keyCode&&k()});p.focus();mxEvent.addListener(p,"blur",function(){k()})})));u.isDeletable&&(v=mxUtils.button("-",mxUtils.bind(y,function(a){f(b,"",u,u.index);mxEvent.consume(a)})),v.style.height="16px",v.style.width="25px",v.style["float"]="right",v.className="geColorBtn",n.appendChild(v));m.appendChild(n);return m}var y=this,t=this.editorUi.editor.graph,v=[];a.style.position="relative";a.style.padding="0";var l=document.createElement("table"); l.style.whiteSpace="nowrap";l.style.width="100%";var x=document.createElement("tr");x.className="gePropHeader";var m=document.createElement("th");m.className="gePropHeaderCell";var n=document.createElement("img");n.src=Sidebar.prototype.expandedImage;m.appendChild(n);mxUtils.write(m,mxResources.get("property"));x.style.cursor="pointer";var A=function(){var b=l.querySelectorAll(".gePropNonHeaderRow"),c;if(y.editorUi.propertiesCollapsed){n.src=Sidebar.prototype.collapsedImage;c="none";for(var f=a.childNodes.length- 1;0<=f;f--)try{var d=a.childNodes[f],k=d.nodeName.toUpperCase();"INPUT"!=k&&"SELECT"!=k||a.removeChild(d)}catch(da){}}else n.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,d,k){var p=mxClient.NO_FO;mxClient.NO_FO= this.graph.mathEnabled&&!this.useForeignObjectForMath?!0:this.originalNoForeignObject;var e=l.apply(this,arguments);mxClient.NO_FO=p;this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:e.className="geDisableMathJax";return e}}c.open(null,null,d,!0)}else{g=b.background;if(null==g||""==g||g==mxConstants.NONE)g="#ffffff";c.backgroundColor=g;c.autoOrigin=y;c.appendGraph(b,u,p,e,d,!0)}return c}var f=parseInt(ca.value)/100;isNaN(f)&&(f=1,ca.value="100 %");var f=.75*f,k=v.value,p=l.value,e=!y.checked, u=null;e&&(e=k==g&&p==g);if(!e&&null!=a.pages&&a.pages.length){var t=0,e=a.pages.length-1;y.checked||(t=parseInt(k)-1,e=parseInt(p)-1);for(var x=t;x<=e;x++){var m=a.pages[x],k=m==a.currentPage?d:null;if(null==k){var k=a.createTemporaryGraph(d.getStylesheet()),p=!0,t=!1,C=null,q=null;null==m.viewState&&null==m.root&&a.updatePageRoot(m);null!=m.viewState&&(p=m.viewState.pageVisible,t=m.viewState.mathEnabled,C=m.viewState.background,q=m.viewState.backgroundImage);k.background=C;k.backgroundImage=null!= -q?new mxImage(q.src,q.width,q.height):null;k.pageVisible=p;k.mathEnabled=t;var I=k.getGlobalVariable;k.getGlobalVariable=function(a){return"page"==a?m.getName():"pagenumber"==a?x+1:I.apply(this,arguments)};document.body.appendChild(k.container);a.updatePageRoot(m);k.model.setRoot(m.root)}u=c(k,u,x!=e);k!=d&&k.container.parentNode.removeChild(k.container)}}else u=c(d);null==u?a.handleError({message:mxResources.get("errorUpdatingPreview")}):(u.mathEnabled&&(e=u.wnd.document,e.writeln('