13.5.3 release

This commit is contained in:
Gaudenz Alder 2020-07-24 14:27:30 +02:00
parent 8e7c4263ac
commit a579fe9c09
6 changed files with 16 additions and 13 deletions

View file

@ -1,6 +1,9 @@
24-JUL-2020: 13.5.3
- Fixes print in static viewer
24-JUL-2020: 13.5.2
- Fixes auth for OneDrive viewer
- Fixes viewer links
- Uses mxGraph 4.2.1 beta 8

View file

@ -1 +1 @@
13.5.2
13.5.3

View file

@ -9380,9 +9380,9 @@ c);u.height=Math.ceil(u.height*c);q*=c;!x&&d.pageVisible?(l=d.getPageLayout(),t-
null!=a.editor.fontCss&&(b.writeln('<style type="text/css">'),b.writeln(a.editor.fontCss),b.writeln("</style>"));if(null!=d.extFonts)for(var c=0;c<d.extFonts.length;c++){var e=d.extFonts[c].name,g=d.extFonts[c].url;0==g.indexOf(Editor.GOOGLE_FONTS)?b.writeln('<link rel="stylesheet" href="'+g+'" charset="UTF-8" type="text/css">'):(b.writeln('<style type="text/css">'),b.writeln('@font-face {\n\tfont-family: "'+e+'";\n\tsrc: url("'+g+'");\n}'),b.writeln("</style>"))}};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}}t=null;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(t=e.stylesheet,e.stylesheet=e.getDefaultStylesheet(),e.refresh());b.open(null,null,g,!0);null!=t&&(e.stylesheet=t,e.refresh())}else{u=
d.background;if(null==u||""==u||u==mxConstants.NONE)u="#ffffff";b.backgroundColor=u;b.autoOrigin=x;b.appendGraph(d,q,t,z,g,!0);if(null!=d.extFonts&&null!=b.wnd)for(g=0;g<d.extFonts.length;g++)t=d.extFonts[g].name,z=d.extFonts[g].url,0==z.indexOf(Editor.GOOGLE_FONTS)?b.wnd.document.writeln('<link rel="stylesheet" href="'+z+'" charset="UTF-8" type="text/css">'):(b.wnd.document.writeln('<style type="text/css">'),b.wnd.document.writeln('@font-face {\n\tfont-family: "'+t+'";\n\tsrc: url("'+z+'");\n}'),
b.wnd.document.writeln("</style>"))}m&&(d.useCssTransforms=m,d.currentTranslate=f,d.currentScale=n,d.view.translate=p,d.view.scale=k);return b}var c=parseInt(ha.value)/100;isNaN(c)&&(c=1,ha.value="100 %");var c=.75*c,g=null;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(g=e.stylesheet,e.stylesheet=e.getDefaultStylesheet(),e.refresh());var m=t.value,f=z.value,p=!k.checked,l=null;if(mxIsElectron)PrintDialog.electronPrint(a,k.checked,m,f,B.checked,K.value,ja.value,parseInt(v.value)/100,parseInt(ha.value)/
100,oa.get());else{p&&(p=m==n&&f==n);if(!p&&null!=a.pages&&a.pages.length){var u=0,p=a.pages.length-1;k.checked||(u=parseInt(m)-1,p=parseInt(f)-1);for(var q=u;q<=p;q++){var x=a.pages[q],m=x==a.currentPage?e:null;if(null==m){var m=a.createTemporaryGraph(e.stylesheet),f=!0,u=!1,C=null,y=null;null==x.viewState&&null==x.root&&a.updatePageRoot(x);null!=x.viewState&&(f=x.viewState.pageVisible,u=x.viewState.mathEnabled,C=x.viewState.background,y=x.viewState.backgroundImage,m.extFonts=x.viewState.extFonts);
m.background=C;m.backgroundImage=null!=y?new mxImage(y.src,y.width,y.height):null;m.pageVisible=f;m.mathEnabled=u;var D=m.getGlobalVariable;m.getGlobalVariable=function(d){return"page"==d?x.getName():"pagenumber"==d?q+1:"pagecount"==d?null!=a.pages?a.pages.length:1:D.apply(this,arguments)};document.body.appendChild(m.container);a.updatePageRoot(x);m.model.setRoot(x.root)}l=b(m,l,q!=p);m!=e&&m.container.parentNode.removeChild(m.container)}}else l=b(e);null==l?a.handleError({message:mxResources.get("errorUpdatingPreview")}):
b.wnd.document.writeln("</style>"))}m&&(d.useCssTransforms=m,d.currentTranslate=f,d.currentScale=n,d.view.translate=p,d.view.scale=k);return b}var c=parseInt(ha.value)/100;isNaN(c)&&(c=1,ha.value="100 %");var c=.75*c,g=null;null!=e.themes&&"darkTheme"==e.defaultThemeName&&(g=e.stylesheet,e.stylesheet=e.getDefaultStylesheet(),e.refresh());var m=t.value,f=z.value,p=!k.checked,l=null;if("undefined"!==typeof mxIsElectron&&mxIsElectron)PrintDialog.electronPrint(a,k.checked,m,f,B.checked,K.value,ja.value,
parseInt(v.value)/100,parseInt(ha.value)/100,oa.get());else{p&&(p=m==n&&f==n);if(!p&&null!=a.pages&&a.pages.length){var u=0,p=a.pages.length-1;k.checked||(u=parseInt(m)-1,p=parseInt(f)-1);for(var q=u;q<=p;q++){var x=a.pages[q],m=x==a.currentPage?e:null;if(null==m){var m=a.createTemporaryGraph(e.stylesheet),f=!0,u=!1,C=null,y=null;null==x.viewState&&null==x.root&&a.updatePageRoot(x);null!=x.viewState&&(f=x.viewState.pageVisible,u=x.viewState.mathEnabled,C=x.viewState.background,y=x.viewState.backgroundImage,
m.extFonts=x.viewState.extFonts);m.background=C;m.backgroundImage=null!=y?new mxImage(y.src,y.width,y.height):null;m.pageVisible=f;m.mathEnabled=u;var D=m.getGlobalVariable;m.getGlobalVariable=function(d){return"page"==d?x.getName():"pagenumber"==d?q+1:"pagecount"==d?null!=a.pages?a.pages.length:1:D.apply(this,arguments)};document.body.appendChild(m.container);a.updatePageRoot(x);m.model.setRoot(x.root)}l=b(m,l,q!=p);m!=e&&m.container.parentNode.removeChild(m.container)}}else l=b(e);null==l?a.handleError({message:mxResources.get("errorUpdatingPreview")}):
(l.mathEnabled&&(p=l.wnd.document,d&&(l.wnd.IMMEDIATE_PRINT=!0),p.writeln('<script type="text/javascript" src="'+DRAWIO_BASE_URL+'/js/math-print.js">\x3c/script>')),l.closeDocument(),!l.mathEnabled&&d&&PrintDialog.printPreview(l));null!=g&&(e.stylesheet=g,e.refresh())}}var e=a.editor.graph,g=document.createElement("div"),m=document.createElement("h3");m.style.width="100%";m.style.textAlign="center";m.style.marginTop="0px";mxUtils.write(m,d||mxResources.get("print"));g.appendChild(m);var f=1,n=1,p=
document.createElement("div");p.style.cssText="border-bottom:1px solid lightGray;padding-bottom:12px;margin-bottom:12px;";var k=document.createElement("input");k.style.cssText="margin-right:8px;margin-bottom:8px;";k.setAttribute("value","all");k.setAttribute("type","radio");k.setAttribute("name","pages-printdialog");p.appendChild(k);m=document.createElement("span");mxUtils.write(m,mxResources.get("printAllPages"));p.appendChild(m);mxUtils.br(p);var l=k.cloneNode(!0);k.setAttribute("checked","checked");
l.setAttribute("value","range");p.appendChild(l);m=document.createElement("span");mxUtils.write(m,mxResources.get("pages")+":");p.appendChild(m);var t=document.createElement("input");t.style.cssText="margin:0 8px 0 8px;";t.setAttribute("value","1");t.setAttribute("type","number");t.setAttribute("min","1");t.style.width="50px";p.appendChild(t);m=document.createElement("span");mxUtils.write(m,mxResources.get("to"));p.appendChild(m);var z=t.cloneNode(!0);p.appendChild(z);mxEvent.addListener(t,"focus",
@ -9396,7 +9396,7 @@ m=document.createElement("div");m.style.marginBottom="12px";var oa=PageSetupDial
"print":"ok"),function(){a.hideDialog();c(!0)});u.className="geBtn gePrimaryBtn";m.appendChild(u);a.editor.cancelFirst||m.appendChild(p);g.appendChild(m);this.container=g};var E=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=function(){null==this.page&&(this.page=this.ui.currentPage);this.page!=this.ui.currentPage?null!=this.page.viewState&&(this.ignoreColor||(this.page.viewState.background=this.color),this.ignoreImage||(this.page.viewState.backgroundImage=this.image),null!=this.format&&
(this.page.viewState.pageFormat=this.format),null!=this.mathEnabled&&(this.page.viewState.mathEnabled=this.mathEnabled),null!=this.shadowVisible&&(this.page.viewState.shadowVisible=this.shadowVisible)):(E.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),
this.shadowVisible=!this.shadowVisible))};Editor.prototype.useCanvasForExport=!1;try{var F=document.createElement("canvas"),H=new Image;H.onload=function(){try{F.getContext("2d").drawImage(H,0,0);var a=F.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=a&&6<a.length}catch(K){}};H.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(I){}})();
(function(){var a=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);a.beforeDecode=function(a,c,b){b.ui=a.ui;return c};a.afterDecode=function(a,c,b){b.previousColor=b.color;b.previousImage=b.image;b.previousFormat=b.format;null!=b.foldingEnabled&&(b.foldingEnabled=!b.foldingEnabled);null!=b.mathEnabled&&(b.mathEnabled=!b.mathEnabled);null!=b.shadowVisible&&(b.shadowVisible=!b.shadowVisible);return b};mxCodecRegistry.register(a)})();(function(){EditorUi.VERSION="13.5.2";EditorUi.compactUi="atlas"!=uiTheme;mxGraphView.prototype.defaultDarkGridColor="#6e6e6e";"dark"==uiTheme&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;
(function(){var a=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);a.beforeDecode=function(a,c,b){b.ui=a.ui;return c};a.afterDecode=function(a,c,b){b.previousColor=b.color;b.previousImage=b.image;b.previousFormat=b.format;null!=b.foldingEnabled&&(b.foldingEnabled=!b.foldingEnabled);null!=b.mathEnabled&&(b.mathEnabled=!b.mathEnabled);null!=b.shadowVisible&&(b.shadowVisible=!b.shadowVisible);return b};mxCodecRegistry.register(a)})();(function(){EditorUi.VERSION="13.5.3";EditorUi.compactUi="atlas"!=uiTheme;mxGraphView.prototype.defaultDarkGridColor="#6e6e6e";"dark"==uiTheme&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost=window.DRAWIO_BASE_URL;EditorUi.lightboxHost=window.DRAWIO_LIGHTBOX_URL;
EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";EditorUi.templateFile=TEMPLATE_PATH+"/index.xml";EditorUi.cacheUrl="1"==urlParams.dev?"/cache":window.REALTIME_URL;null==EditorUi.cacheUrl&&"undefined"!==typeof DrawioFile&&(DrawioFile.SYNC="none");Editor.cacheTimeout=1E4;EditorUi.enablePlantUml=EditorUi.enableLogging;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;
EditorUi.enableDrafts=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&isLocalStorage&&"0"!=urlParams.drafts;EditorUi.scratchpadHelpLink="https://desk.draw.io/support/solutions/articles/16000042367";EditorUi.defaultMermaidConfig={theme:"neutral",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!1},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},
gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};EditorUi.logError=function(a,b,c,e,f,k,l){k=null!=k?k:0<=a.indexOf("NetworkError")||0<=a.indexOf("SecurityError")||0<=a.indexOf("NS_ERROR_FAILURE")||0<=a.indexOf("out of memory")?"CONFIG":"SEVERE";if(EditorUi.enableLogging&&"1"!=urlParams.dev)try{if(a!=EditorUi.lastErrorMessage&&(null==a||null==b||-1==a.indexOf("Script error")&&

View file

@ -6848,7 +6848,7 @@
var ignorePages = !allPagesRadio.checked;
var pv = null;
if (mxIsElectron)
if (typeof mxIsElectron !== 'undefined' && mxIsElectron)
{
PrintDialog.electronPrint(editorUi, allPagesRadio.checked, pagesFrom, pagesTo,
fitRadio.checked, sheetsAcrossInput.value, sheetsDownInput.value, parseInt(zoomInput.value) / 100, parseInt(pageScaleInput.value) / 100, accessor.get());

View file

@ -3240,9 +3240,9 @@ f);x.height=Math.ceil(x.height*f);y*=f;!q&&c.pageVisible?(u=c.getPageLayout(),k-
null!=a.editor.fontCss&&(b.writeln('<style type="text/css">'),b.writeln(a.editor.fontCss),b.writeln("</style>"));if(null!=c.extFonts)for(var f=0;f<c.extFonts.length;f++){var d=c.extFonts[f].name,e=c.extFonts[f].url;0==e.indexOf(Editor.GOOGLE_FONTS)?b.writeln('<link rel="stylesheet" href="'+e+'" charset="UTF-8" type="text/css">'):(b.writeln('<style type="text/css">'),b.writeln('@font-face {\n\tfont-family: "'+d+'";\n\tsrc: url("'+e+'");\n}'),b.writeln("</style>"))}};if("undefined"!==typeof MathJax){var B=
b.renderPage;b.renderPage=function(c,b,f,d,e,g){var l=mxClient.NO_FO;mxClient.NO_FO=this.graph.mathEnabled&&!a.editor.useForeignObjectForMath?!0:a.editor.originalNoForeignObject;var m=B.apply(this,arguments);mxClient.NO_FO=l;this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:m.className="geDisableMathJax";return m}}k=null;null!=d.themes&&"darkTheme"==d.defaultThemeName&&(k=d.stylesheet,d.stylesheet=d.getDefaultStylesheet(),d.refresh());b.open(null,null,e,!0);null!=k&&(d.stylesheet=k,d.refresh())}else{x=
c.background;if(null==x||""==x||x==mxConstants.NONE)x="#ffffff";b.backgroundColor=x;b.autoOrigin=q;b.appendGraph(c,y,k,n,e,!0);if(null!=c.extFonts&&null!=b.wnd)for(e=0;e<c.extFonts.length;e++)k=c.extFonts[e].name,n=c.extFonts[e].url,0==n.indexOf(Editor.GOOGLE_FONTS)?b.wnd.document.writeln('<link rel="stylesheet" href="'+n+'" charset="UTF-8" type="text/css">'):(b.wnd.document.writeln('<style type="text/css">'),b.wnd.document.writeln('@font-face {\n\tfont-family: "'+k+'";\n\tsrc: url("'+n+'");\n}'),
b.wnd.document.writeln("</style>"))}g&&(c.useCssTransforms=g,c.currentTranslate=l,c.currentScale=m,c.view.translate=p,c.view.scale=t);return b}var f=parseInt(ja.value)/100;isNaN(f)&&(f=1,ja.value="100 %");var f=.75*f,e=null;null!=d.themes&&"darkTheme"==d.defaultThemeName&&(e=d.stylesheet,d.stylesheet=d.getDefaultStylesheet(),d.refresh());var g=k.value,l=n.value,p=!t.checked,u=null;if(mxIsElectron)PrintDialog.electronPrint(a,t.checked,g,l,A.checked,K.value,R.value,parseInt(v.value)/100,parseInt(ja.value)/
100,ga.get());else{p&&(p=g==m&&l==m);if(!p&&null!=a.pages&&a.pages.length){var x=0,p=a.pages.length-1;t.checked||(x=parseInt(g)-1,p=parseInt(l)-1);for(var y=x;y<=p;y++){var q=a.pages[y],g=q==a.currentPage?d:null;if(null==g){var g=a.createTemporaryGraph(d.stylesheet),l=!0,x=!1,z=null,E=null;null==q.viewState&&null==q.root&&a.updatePageRoot(q);null!=q.viewState&&(l=q.viewState.pageVisible,x=q.viewState.mathEnabled,z=q.viewState.background,E=q.viewState.backgroundImage,g.extFonts=q.viewState.extFonts);
g.background=z;g.backgroundImage=null!=E?new mxImage(E.src,E.width,E.height):null;g.pageVisible=l;g.mathEnabled=x;var B=g.getGlobalVariable;g.getGlobalVariable=function(c){return"page"==c?q.getName():"pagenumber"==c?y+1:"pagecount"==c?null!=a.pages?a.pages.length:1:B.apply(this,arguments)};document.body.appendChild(g.container);a.updatePageRoot(q);g.model.setRoot(q.root)}u=b(g,u,y!=p);g!=d&&g.container.parentNode.removeChild(g.container)}}else u=b(d);null==u?a.handleError({message:mxResources.get("errorUpdatingPreview")}):
b.wnd.document.writeln("</style>"))}g&&(c.useCssTransforms=g,c.currentTranslate=l,c.currentScale=m,c.view.translate=p,c.view.scale=t);return b}var f=parseInt(ja.value)/100;isNaN(f)&&(f=1,ja.value="100 %");var f=.75*f,e=null;null!=d.themes&&"darkTheme"==d.defaultThemeName&&(e=d.stylesheet,d.stylesheet=d.getDefaultStylesheet(),d.refresh());var g=k.value,l=n.value,p=!t.checked,u=null;if("undefined"!==typeof mxIsElectron&&mxIsElectron)PrintDialog.electronPrint(a,t.checked,g,l,A.checked,K.value,R.value,
parseInt(v.value)/100,parseInt(ja.value)/100,ga.get());else{p&&(p=g==m&&l==m);if(!p&&null!=a.pages&&a.pages.length){var x=0,p=a.pages.length-1;t.checked||(x=parseInt(g)-1,p=parseInt(l)-1);for(var y=x;y<=p;y++){var q=a.pages[y],g=q==a.currentPage?d:null;if(null==g){var g=a.createTemporaryGraph(d.stylesheet),l=!0,x=!1,z=null,E=null;null==q.viewState&&null==q.root&&a.updatePageRoot(q);null!=q.viewState&&(l=q.viewState.pageVisible,x=q.viewState.mathEnabled,z=q.viewState.background,E=q.viewState.backgroundImage,
g.extFonts=q.viewState.extFonts);g.background=z;g.backgroundImage=null!=E?new mxImage(E.src,E.width,E.height):null;g.pageVisible=l;g.mathEnabled=x;var B=g.getGlobalVariable;g.getGlobalVariable=function(c){return"page"==c?q.getName():"pagenumber"==c?y+1:"pagecount"==c?null!=a.pages?a.pages.length:1:B.apply(this,arguments)};document.body.appendChild(g.container);a.updatePageRoot(q);g.model.setRoot(q.root)}u=b(g,u,y!=p);g!=d&&g.container.parentNode.removeChild(g.container)}}else u=b(d);null==u?a.handleError({message:mxResources.get("errorUpdatingPreview")}):
(u.mathEnabled&&(p=u.wnd.document,c&&(u.wnd.IMMEDIATE_PRINT=!0),p.writeln('<script type="text/javascript" src="'+DRAWIO_BASE_URL+'/js/math-print.js">\x3c/script>')),u.closeDocument(),!u.mathEnabled&&c&&PrintDialog.printPreview(u));null!=e&&(d.stylesheet=e,d.refresh())}}var d=a.editor.graph,e=document.createElement("div"),g=document.createElement("h3");g.style.width="100%";g.style.textAlign="center";g.style.marginTop="0px";mxUtils.write(g,c||mxResources.get("print"));e.appendChild(g);var l=1,m=1,p=
document.createElement("div");p.style.cssText="border-bottom:1px solid lightGray;padding-bottom:12px;margin-bottom:12px;";var t=document.createElement("input");t.style.cssText="margin-right:8px;margin-bottom:8px;";t.setAttribute("value","all");t.setAttribute("type","radio");t.setAttribute("name","pages-printdialog");p.appendChild(t);g=document.createElement("span");mxUtils.write(g,mxResources.get("printAllPages"));p.appendChild(g);mxUtils.br(p);var u=t.cloneNode(!0);t.setAttribute("checked","checked");
u.setAttribute("value","range");p.appendChild(u);g=document.createElement("span");mxUtils.write(g,mxResources.get("pages")+":");p.appendChild(g);var k=document.createElement("input");k.style.cssText="margin:0 8px 0 8px;";k.setAttribute("value","1");k.setAttribute("type","number");k.setAttribute("min","1");k.style.width="50px";p.appendChild(k);g=document.createElement("span");mxUtils.write(g,mxResources.get("to"));p.appendChild(g);var n=k.cloneNode(!0);p.appendChild(n);mxEvent.addListener(k,"focus",

View file

@ -3240,9 +3240,9 @@ f);x.height=Math.ceil(x.height*f);y*=f;!q&&c.pageVisible?(u=c.getPageLayout(),k-
null!=a.editor.fontCss&&(b.writeln('<style type="text/css">'),b.writeln(a.editor.fontCss),b.writeln("</style>"));if(null!=c.extFonts)for(var f=0;f<c.extFonts.length;f++){var d=c.extFonts[f].name,e=c.extFonts[f].url;0==e.indexOf(Editor.GOOGLE_FONTS)?b.writeln('<link rel="stylesheet" href="'+e+'" charset="UTF-8" type="text/css">'):(b.writeln('<style type="text/css">'),b.writeln('@font-face {\n\tfont-family: "'+d+'";\n\tsrc: url("'+e+'");\n}'),b.writeln("</style>"))}};if("undefined"!==typeof MathJax){var B=
b.renderPage;b.renderPage=function(c,b,f,d,e,g){var l=mxClient.NO_FO;mxClient.NO_FO=this.graph.mathEnabled&&!a.editor.useForeignObjectForMath?!0:a.editor.originalNoForeignObject;var m=B.apply(this,arguments);mxClient.NO_FO=l;this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:m.className="geDisableMathJax";return m}}k=null;null!=d.themes&&"darkTheme"==d.defaultThemeName&&(k=d.stylesheet,d.stylesheet=d.getDefaultStylesheet(),d.refresh());b.open(null,null,e,!0);null!=k&&(d.stylesheet=k,d.refresh())}else{x=
c.background;if(null==x||""==x||x==mxConstants.NONE)x="#ffffff";b.backgroundColor=x;b.autoOrigin=q;b.appendGraph(c,y,k,n,e,!0);if(null!=c.extFonts&&null!=b.wnd)for(e=0;e<c.extFonts.length;e++)k=c.extFonts[e].name,n=c.extFonts[e].url,0==n.indexOf(Editor.GOOGLE_FONTS)?b.wnd.document.writeln('<link rel="stylesheet" href="'+n+'" charset="UTF-8" type="text/css">'):(b.wnd.document.writeln('<style type="text/css">'),b.wnd.document.writeln('@font-face {\n\tfont-family: "'+k+'";\n\tsrc: url("'+n+'");\n}'),
b.wnd.document.writeln("</style>"))}g&&(c.useCssTransforms=g,c.currentTranslate=l,c.currentScale=m,c.view.translate=p,c.view.scale=t);return b}var f=parseInt(ja.value)/100;isNaN(f)&&(f=1,ja.value="100 %");var f=.75*f,e=null;null!=d.themes&&"darkTheme"==d.defaultThemeName&&(e=d.stylesheet,d.stylesheet=d.getDefaultStylesheet(),d.refresh());var g=k.value,l=n.value,p=!t.checked,u=null;if(mxIsElectron)PrintDialog.electronPrint(a,t.checked,g,l,A.checked,K.value,R.value,parseInt(v.value)/100,parseInt(ja.value)/
100,ga.get());else{p&&(p=g==m&&l==m);if(!p&&null!=a.pages&&a.pages.length){var x=0,p=a.pages.length-1;t.checked||(x=parseInt(g)-1,p=parseInt(l)-1);for(var y=x;y<=p;y++){var q=a.pages[y],g=q==a.currentPage?d:null;if(null==g){var g=a.createTemporaryGraph(d.stylesheet),l=!0,x=!1,z=null,E=null;null==q.viewState&&null==q.root&&a.updatePageRoot(q);null!=q.viewState&&(l=q.viewState.pageVisible,x=q.viewState.mathEnabled,z=q.viewState.background,E=q.viewState.backgroundImage,g.extFonts=q.viewState.extFonts);
g.background=z;g.backgroundImage=null!=E?new mxImage(E.src,E.width,E.height):null;g.pageVisible=l;g.mathEnabled=x;var B=g.getGlobalVariable;g.getGlobalVariable=function(c){return"page"==c?q.getName():"pagenumber"==c?y+1:"pagecount"==c?null!=a.pages?a.pages.length:1:B.apply(this,arguments)};document.body.appendChild(g.container);a.updatePageRoot(q);g.model.setRoot(q.root)}u=b(g,u,y!=p);g!=d&&g.container.parentNode.removeChild(g.container)}}else u=b(d);null==u?a.handleError({message:mxResources.get("errorUpdatingPreview")}):
b.wnd.document.writeln("</style>"))}g&&(c.useCssTransforms=g,c.currentTranslate=l,c.currentScale=m,c.view.translate=p,c.view.scale=t);return b}var f=parseInt(ja.value)/100;isNaN(f)&&(f=1,ja.value="100 %");var f=.75*f,e=null;null!=d.themes&&"darkTheme"==d.defaultThemeName&&(e=d.stylesheet,d.stylesheet=d.getDefaultStylesheet(),d.refresh());var g=k.value,l=n.value,p=!t.checked,u=null;if("undefined"!==typeof mxIsElectron&&mxIsElectron)PrintDialog.electronPrint(a,t.checked,g,l,A.checked,K.value,R.value,
parseInt(v.value)/100,parseInt(ja.value)/100,ga.get());else{p&&(p=g==m&&l==m);if(!p&&null!=a.pages&&a.pages.length){var x=0,p=a.pages.length-1;t.checked||(x=parseInt(g)-1,p=parseInt(l)-1);for(var y=x;y<=p;y++){var q=a.pages[y],g=q==a.currentPage?d:null;if(null==g){var g=a.createTemporaryGraph(d.stylesheet),l=!0,x=!1,z=null,E=null;null==q.viewState&&null==q.root&&a.updatePageRoot(q);null!=q.viewState&&(l=q.viewState.pageVisible,x=q.viewState.mathEnabled,z=q.viewState.background,E=q.viewState.backgroundImage,
g.extFonts=q.viewState.extFonts);g.background=z;g.backgroundImage=null!=E?new mxImage(E.src,E.width,E.height):null;g.pageVisible=l;g.mathEnabled=x;var B=g.getGlobalVariable;g.getGlobalVariable=function(c){return"page"==c?q.getName():"pagenumber"==c?y+1:"pagecount"==c?null!=a.pages?a.pages.length:1:B.apply(this,arguments)};document.body.appendChild(g.container);a.updatePageRoot(q);g.model.setRoot(q.root)}u=b(g,u,y!=p);g!=d&&g.container.parentNode.removeChild(g.container)}}else u=b(d);null==u?a.handleError({message:mxResources.get("errorUpdatingPreview")}):
(u.mathEnabled&&(p=u.wnd.document,c&&(u.wnd.IMMEDIATE_PRINT=!0),p.writeln('<script type="text/javascript" src="'+DRAWIO_BASE_URL+'/js/math-print.js">\x3c/script>')),u.closeDocument(),!u.mathEnabled&&c&&PrintDialog.printPreview(u));null!=e&&(d.stylesheet=e,d.refresh())}}var d=a.editor.graph,e=document.createElement("div"),g=document.createElement("h3");g.style.width="100%";g.style.textAlign="center";g.style.marginTop="0px";mxUtils.write(g,c||mxResources.get("print"));e.appendChild(g);var l=1,m=1,p=
document.createElement("div");p.style.cssText="border-bottom:1px solid lightGray;padding-bottom:12px;margin-bottom:12px;";var t=document.createElement("input");t.style.cssText="margin-right:8px;margin-bottom:8px;";t.setAttribute("value","all");t.setAttribute("type","radio");t.setAttribute("name","pages-printdialog");p.appendChild(t);g=document.createElement("span");mxUtils.write(g,mxResources.get("printAllPages"));p.appendChild(g);mxUtils.br(p);var u=t.cloneNode(!0);t.setAttribute("checked","checked");
u.setAttribute("value","range");p.appendChild(u);g=document.createElement("span");mxUtils.write(g,mxResources.get("pages")+":");p.appendChild(g);var k=document.createElement("input");k.style.cssText="margin:0 8px 0 8px;";k.setAttribute("value","1");k.setAttribute("type","number");k.setAttribute("min","1");k.style.width="50px";p.appendChild(k);g=document.createElement("span");mxUtils.write(g,mxResources.get("to"));p.appendChild(g);var n=k.cloneNode(!0);p.appendChild(n);mxEvent.addListener(k,"focus",