12.4.5 release

This commit is contained in:
Gaudenz Alder 2019-12-27 10:51:34 +01:00
parent f7f2032ae8
commit 2e62fdf9db
6 changed files with 23 additions and 18 deletions

View file

@ -1,3 +1,8 @@
27-DEC-2019: 12.4.5
- Uses mxGraph 4.0.6 beta 14
- Fixes possible NPE
27-DEC-2019: 12.4.4
- Fixes events for mobile Safari in desktop mode

View file

@ -1 +1 @@
12.4.4
12.4.5

View file

@ -335,11 +335,11 @@ t,n.mxCachedFinalOffsetHeight=g);t+=0;g-=2;l&&(g=Math.min(g,d),t=Math.min(t,c));
r.rotationCy),a=b.x-c*r.scale/2,b=b.y-d*r.scale/2):(a*=r.scale,b*=r.scale);0!=m&&(e+="rotate("+m+","+-l+","+-g+")");n.setAttribute("transform","translate("+Math.round(a)+","+Math.round(b)+")"+e);p.setAttribute("width",Math.round(Math.max(1,c)));p.setAttribute("height",Math.round(Math.max(1,d)))}};
mxSvgCanvas2D.prototype.addForeignObject=function(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t){var u=this.state;q=this.createElement("g");1>u.alpha&&q.setAttribute("opacity",u.alpha);var x=this.createElement("foreignObject");x.setAttribute("style","overflow:visible;");x.setAttribute("pointer-events",this.pointerEvents?this.pointerEventsValue:"none");q.appendChild(x);t.appendChild(q);var y,A;t=y=2;if(!mxClient.IS_IE||9!=document.documentMode&&mxClient.IS_SVG){if(this.root.ownerDocument!=document){var z=document.createElementNS(mxConstants.NS_SVG,
"svg");z.style.position="absolute";z.style.visibility="hidden";A=this.createElement("foreignObject");A.appendChild(r);z.appendChild(A);document.body.appendChild(z)}else x.appendChild(r);z=r;null!=z.firstChild&&"DIV"==z.firstChild.nodeName&&(z=z.firstChild,k&&"break-word"==r.style.wordWrap&&(z.style.width="100%"));v=z.offsetWidth;0==v&&r.parentNode==x&&(r.style.visibility="hidden",document.body.appendChild(r),v=z.offsetWidth);this.cacheOffsetSize&&(q.mxCachedOffsetWidth=v);!n&&k&&0<c&&this.root.ownerDocument!=
document&&"fill"!=m&&"width"!=m&&(B=r.style.whiteSpace,r.style.whiteSpace="nowrap",v<z.offsetWidth&&(r.style.whiteSpace=B));y=v+y-1;k&&"fill"!=m&&"width"!=m&&(n&&(y=Math.min(y,c)),r.style.width=y+"px");y=z.offsetWidth;A=z.offsetHeight;this.cacheOffsetSize&&(q.mxCachedFinalOffsetWidth=y,q.mxCachedFinalOffsetHeight=A);A-=t;r.parentNode!=x&&(null!=r.parentNode&&r.parentNode.ownerSVGElement!=x.ownerSVGElement&&r.parentNode.ownerSVGElement.parentNode.removeChild(r.parentNode.ownerSVGElement),x.appendChild(r))}else{z=
document.createElement("div");z.style.cssText=r.getAttribute("style");z.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";z.style.position="absolute";z.style.visibility="hidden";A=document.createElement("div");A.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";A.style.wordWrap=mxConstants.WORD_WRAP;A.innerHTML=mxUtils.isNode(e)?e.outerHTML:e;z.appendChild(A);document.body.appendChild(z);8!=document.documentMode&&9!=document.documentMode&&null!=u.fontBorderColor&&(y+=2,t+=2);if(k&&0<
c){var v=A.offsetWidth;padDx=0;if(!n&&k&&0<c&&this.root.ownerDocument!=document&&"fill"!=m){var B=z.style.whiteSpace;A.style.whiteSpace="nowrap";v<A.offsetWidth&&(z.style.whiteSpace=B)}n&&(v=Math.min(v,c));z.style.width=v+"px";y=A.offsetWidth+y+padDx;A=A.offsetHeight+t;z.style.display="inline-block";z.style.position="";z.style.visibility="";z.style.width=y+"px";r.setAttribute("style",z.style.cssText)}else y=A.offsetWidth+y,A=A.offsetHeight+t;z.parentNode.removeChild(z);x.appendChild(r)}n&&(A=Math.min(A,
d),y=Math.min(y,c));"width"==m?d=A:"fill"!=m&&(c=y,d=A);1>u.alpha&&q.setAttribute("opacity",u.alpha);t=r=0;f==mxConstants.ALIGN_CENTER?r-=c/2:f==mxConstants.ALIGN_RIGHT&&(r-=c);a+=r;g==mxConstants.ALIGN_MIDDLE?t-=d/2:g==mxConstants.ALIGN_BOTTOM&&(t-=d);"fill"!=m&&mxClient.IS_FF&&mxClient.IS_WIN&&(t-=2);b+=t;y=1!=u.scale?"scale("+u.scale+")":"";0!=u.rotation&&this.rotateHtml?(y+="rotate("+u.rotation+","+c/2+","+d/2+")",b=this.rotatePoint((a+c/2)*u.scale,(b+d/2)*u.scale,u.rotation,u.rotationCx,u.rotationCy),
a=b.x-c*u.scale/2,b=b.y-d*u.scale/2):(a*=u.scale,b*=u.scale);0!=p&&(y+="rotate("+p+","+-r+","+-t+")");q.setAttribute("transform","translate("+(Math.round(a)+this.foOffset)+","+(Math.round(b)+this.foOffset)+")"+y);x.setAttribute("width",Math.round(Math.max(1,c)));x.setAttribute("height",Math.round(Math.max(1,d)));this.root.ownerDocument!=document&&(a=this.createAlternateContent(x,a,b,c,d,e,f,g,k,l,m,n,p),null!=a&&(x.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),
document&&"fill"!=m&&"width"!=m&&(B=r.style.whiteSpace,r.style.whiteSpace="nowrap",v<z.offsetWidth&&(r.style.whiteSpace=B));y=v+y-1;k&&"fill"!=m&&"width"!=m&&(n&&(y=Math.min(y,c)),r.style.width=y+"px");y=z.offsetWidth;A=z.offsetHeight;this.cacheOffsetSize&&(q.mxCachedFinalOffsetWidth=y,q.mxCachedFinalOffsetHeight=A);A-=t;r.parentNode!=x&&(null!=r.parentNode&&null!=r.parentNode.ownerSVGElement&&null!=r.parentNode.ownerSVGElement.parentNode&&r.parentNode.ownerSVGElement!=x.ownerSVGElement&&r.parentNode.ownerSVGElement.parentNode.removeChild(r.parentNode.ownerSVGElement),
x.appendChild(r))}else{z=document.createElement("div");z.style.cssText=r.getAttribute("style");z.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";z.style.position="absolute";z.style.visibility="hidden";A=document.createElement("div");A.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";A.style.wordWrap=mxConstants.WORD_WRAP;A.innerHTML=mxUtils.isNode(e)?e.outerHTML:e;z.appendChild(A);document.body.appendChild(z);8!=document.documentMode&&9!=document.documentMode&&null!=u.fontBorderColor&&
(y+=2,t+=2);if(k&&0<c){var v=A.offsetWidth;padDx=0;if(!n&&k&&0<c&&this.root.ownerDocument!=document&&"fill"!=m){var B=z.style.whiteSpace;A.style.whiteSpace="nowrap";v<A.offsetWidth&&(z.style.whiteSpace=B)}n&&(v=Math.min(v,c));z.style.width=v+"px";y=A.offsetWidth+y+padDx;A=A.offsetHeight+t;z.style.display="inline-block";z.style.position="";z.style.visibility="";z.style.width=y+"px";r.setAttribute("style",z.style.cssText)}else y=A.offsetWidth+y,A=A.offsetHeight+t;z.parentNode.removeChild(z);x.appendChild(r)}n&&
(A=Math.min(A,d),y=Math.min(y,c));"width"==m?d=A:"fill"!=m&&(c=y,d=A);1>u.alpha&&q.setAttribute("opacity",u.alpha);t=r=0;f==mxConstants.ALIGN_CENTER?r-=c/2:f==mxConstants.ALIGN_RIGHT&&(r-=c);a+=r;g==mxConstants.ALIGN_MIDDLE?t-=d/2:g==mxConstants.ALIGN_BOTTOM&&(t-=d);"fill"!=m&&mxClient.IS_FF&&mxClient.IS_WIN&&(t-=2);b+=t;y=1!=u.scale?"scale("+u.scale+")":"";0!=u.rotation&&this.rotateHtml?(y+="rotate("+u.rotation+","+c/2+","+d/2+")",b=this.rotatePoint((a+c/2)*u.scale,(b+d/2)*u.scale,u.rotation,u.rotationCx,
u.rotationCy),a=b.x-c*u.scale/2,b=b.y-d*u.scale/2):(a*=u.scale,b*=u.scale);0!=p&&(y+="rotate("+p+","+-r+","+-t+")");q.setAttribute("transform","translate("+(Math.round(a)+this.foOffset)+","+(Math.round(b)+this.foOffset)+")"+y);x.setAttribute("width",Math.round(Math.max(1,c)));x.setAttribute("height",Math.round(Math.max(1,d)));this.root.ownerDocument!=document&&(a=this.createAlternateContent(x,a,b,c,d,e,f,g,k,l,m,n,p),null!=a&&(x.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),
c=this.createElement("switch"),c.appendChild(x),c.appendChild(a),q.appendChild(c)))};
mxSvgCanvas2D.prototype.text=function(a,b,c,d,e,f,g,k,l,m,n,p,q){if(this.textEnabled&&null!=e){p=null!=p?p:0;var r=this.state;a+=r.dx;b+=r.dy;this.foEnabled&&"html"==l?(r="vertical-align:top;",n?r+="overflow:hidden;max-height:"+Math.round(d)+"px;max-width:"+Math.round(c)+"px;":"fill"==m?r+="width:"+Math.round(c+1)+"px;height:"+Math.round(d+1)+"px;overflow:hidden;":"width"==m&&(r+="width:"+Math.round(c+1)+"px;",0<d&&(r+="max-height:"+Math.round(d)+"px;overflow:hidden;")),r=k&&0<c?r+("width:"+Math.round(c+
1)+"px;white-space:normal;word-wrap:"+mxConstants.WORD_WRAP+";"):r+"white-space:nowrap;",r=this.createDiv(e,f,g,r,m,k&&0<c?"normal":null),null!=r&&(null!=q&&r.setAttribute("dir",q),this.addForeignObject(a,b,c,d,e,f,g,k,l,m,n,p,q,r,this.root))):this.plainText(a,b,c,d,e,f,g,k,m,n,p,q)}};

View file

@ -1,7 +1,7 @@
CACHE MANIFEST
# THIS FILE WAS GENERATED. DO NOT MODIFY!
# 12/27/2019 09:53 AM
# 12/27/2019 10:47 AM
app.html
index.html?offline=1

View file

@ -478,11 +478,11 @@ t,n.mxCachedFinalOffsetHeight=g);t+=0;g-=2;l&&(g=Math.min(g,d),t=Math.min(t,c));
r.rotationCy),a=b.x-c*r.scale/2,b=b.y-d*r.scale/2):(a*=r.scale,b*=r.scale);0!=m&&(e+="rotate("+m+","+-l+","+-g+")");n.setAttribute("transform","translate("+Math.round(a)+","+Math.round(b)+")"+e);p.setAttribute("width",Math.round(Math.max(1,c)));p.setAttribute("height",Math.round(Math.max(1,d)))}};
mxSvgCanvas2D.prototype.addForeignObject=function(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t){var u=this.state;q=this.createElement("g");1>u.alpha&&q.setAttribute("opacity",u.alpha);var x=this.createElement("foreignObject");x.setAttribute("style","overflow:visible;");x.setAttribute("pointer-events",this.pointerEvents?this.pointerEventsValue:"none");q.appendChild(x);t.appendChild(q);var y,A;t=y=2;if(!mxClient.IS_IE||9!=document.documentMode&&mxClient.IS_SVG){if(this.root.ownerDocument!=document){var z=document.createElementNS(mxConstants.NS_SVG,
"svg");z.style.position="absolute";z.style.visibility="hidden";A=this.createElement("foreignObject");A.appendChild(r);z.appendChild(A);document.body.appendChild(z)}else x.appendChild(r);z=r;null!=z.firstChild&&"DIV"==z.firstChild.nodeName&&(z=z.firstChild,k&&"break-word"==r.style.wordWrap&&(z.style.width="100%"));v=z.offsetWidth;0==v&&r.parentNode==x&&(r.style.visibility="hidden",document.body.appendChild(r),v=z.offsetWidth);this.cacheOffsetSize&&(q.mxCachedOffsetWidth=v);!n&&k&&0<c&&this.root.ownerDocument!=
document&&"fill"!=m&&"width"!=m&&(B=r.style.whiteSpace,r.style.whiteSpace="nowrap",v<z.offsetWidth&&(r.style.whiteSpace=B));y=v+y-1;k&&"fill"!=m&&"width"!=m&&(n&&(y=Math.min(y,c)),r.style.width=y+"px");y=z.offsetWidth;A=z.offsetHeight;this.cacheOffsetSize&&(q.mxCachedFinalOffsetWidth=y,q.mxCachedFinalOffsetHeight=A);A-=t;r.parentNode!=x&&(null!=r.parentNode&&r.parentNode.ownerSVGElement!=x.ownerSVGElement&&r.parentNode.ownerSVGElement.parentNode.removeChild(r.parentNode.ownerSVGElement),x.appendChild(r))}else{z=
document.createElement("div");z.style.cssText=r.getAttribute("style");z.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";z.style.position="absolute";z.style.visibility="hidden";A=document.createElement("div");A.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";A.style.wordWrap=mxConstants.WORD_WRAP;A.innerHTML=mxUtils.isNode(e)?e.outerHTML:e;z.appendChild(A);document.body.appendChild(z);8!=document.documentMode&&9!=document.documentMode&&null!=u.fontBorderColor&&(y+=2,t+=2);if(k&&0<
c){var v=A.offsetWidth;padDx=0;if(!n&&k&&0<c&&this.root.ownerDocument!=document&&"fill"!=m){var B=z.style.whiteSpace;A.style.whiteSpace="nowrap";v<A.offsetWidth&&(z.style.whiteSpace=B)}n&&(v=Math.min(v,c));z.style.width=v+"px";y=A.offsetWidth+y+padDx;A=A.offsetHeight+t;z.style.display="inline-block";z.style.position="";z.style.visibility="";z.style.width=y+"px";r.setAttribute("style",z.style.cssText)}else y=A.offsetWidth+y,A=A.offsetHeight+t;z.parentNode.removeChild(z);x.appendChild(r)}n&&(A=Math.min(A,
d),y=Math.min(y,c));"width"==m?d=A:"fill"!=m&&(c=y,d=A);1>u.alpha&&q.setAttribute("opacity",u.alpha);t=r=0;f==mxConstants.ALIGN_CENTER?r-=c/2:f==mxConstants.ALIGN_RIGHT&&(r-=c);a+=r;g==mxConstants.ALIGN_MIDDLE?t-=d/2:g==mxConstants.ALIGN_BOTTOM&&(t-=d);"fill"!=m&&mxClient.IS_FF&&mxClient.IS_WIN&&(t-=2);b+=t;y=1!=u.scale?"scale("+u.scale+")":"";0!=u.rotation&&this.rotateHtml?(y+="rotate("+u.rotation+","+c/2+","+d/2+")",b=this.rotatePoint((a+c/2)*u.scale,(b+d/2)*u.scale,u.rotation,u.rotationCx,u.rotationCy),
a=b.x-c*u.scale/2,b=b.y-d*u.scale/2):(a*=u.scale,b*=u.scale);0!=p&&(y+="rotate("+p+","+-r+","+-t+")");q.setAttribute("transform","translate("+(Math.round(a)+this.foOffset)+","+(Math.round(b)+this.foOffset)+")"+y);x.setAttribute("width",Math.round(Math.max(1,c)));x.setAttribute("height",Math.round(Math.max(1,d)));this.root.ownerDocument!=document&&(a=this.createAlternateContent(x,a,b,c,d,e,f,g,k,l,m,n,p),null!=a&&(x.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),
document&&"fill"!=m&&"width"!=m&&(B=r.style.whiteSpace,r.style.whiteSpace="nowrap",v<z.offsetWidth&&(r.style.whiteSpace=B));y=v+y-1;k&&"fill"!=m&&"width"!=m&&(n&&(y=Math.min(y,c)),r.style.width=y+"px");y=z.offsetWidth;A=z.offsetHeight;this.cacheOffsetSize&&(q.mxCachedFinalOffsetWidth=y,q.mxCachedFinalOffsetHeight=A);A-=t;r.parentNode!=x&&(null!=r.parentNode&&null!=r.parentNode.ownerSVGElement&&null!=r.parentNode.ownerSVGElement.parentNode&&r.parentNode.ownerSVGElement!=x.ownerSVGElement&&r.parentNode.ownerSVGElement.parentNode.removeChild(r.parentNode.ownerSVGElement),
x.appendChild(r))}else{z=document.createElement("div");z.style.cssText=r.getAttribute("style");z.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";z.style.position="absolute";z.style.visibility="hidden";A=document.createElement("div");A.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";A.style.wordWrap=mxConstants.WORD_WRAP;A.innerHTML=mxUtils.isNode(e)?e.outerHTML:e;z.appendChild(A);document.body.appendChild(z);8!=document.documentMode&&9!=document.documentMode&&null!=u.fontBorderColor&&
(y+=2,t+=2);if(k&&0<c){var v=A.offsetWidth;padDx=0;if(!n&&k&&0<c&&this.root.ownerDocument!=document&&"fill"!=m){var B=z.style.whiteSpace;A.style.whiteSpace="nowrap";v<A.offsetWidth&&(z.style.whiteSpace=B)}n&&(v=Math.min(v,c));z.style.width=v+"px";y=A.offsetWidth+y+padDx;A=A.offsetHeight+t;z.style.display="inline-block";z.style.position="";z.style.visibility="";z.style.width=y+"px";r.setAttribute("style",z.style.cssText)}else y=A.offsetWidth+y,A=A.offsetHeight+t;z.parentNode.removeChild(z);x.appendChild(r)}n&&
(A=Math.min(A,d),y=Math.min(y,c));"width"==m?d=A:"fill"!=m&&(c=y,d=A);1>u.alpha&&q.setAttribute("opacity",u.alpha);t=r=0;f==mxConstants.ALIGN_CENTER?r-=c/2:f==mxConstants.ALIGN_RIGHT&&(r-=c);a+=r;g==mxConstants.ALIGN_MIDDLE?t-=d/2:g==mxConstants.ALIGN_BOTTOM&&(t-=d);"fill"!=m&&mxClient.IS_FF&&mxClient.IS_WIN&&(t-=2);b+=t;y=1!=u.scale?"scale("+u.scale+")":"";0!=u.rotation&&this.rotateHtml?(y+="rotate("+u.rotation+","+c/2+","+d/2+")",b=this.rotatePoint((a+c/2)*u.scale,(b+d/2)*u.scale,u.rotation,u.rotationCx,
u.rotationCy),a=b.x-c*u.scale/2,b=b.y-d*u.scale/2):(a*=u.scale,b*=u.scale);0!=p&&(y+="rotate("+p+","+-r+","+-t+")");q.setAttribute("transform","translate("+(Math.round(a)+this.foOffset)+","+(Math.round(b)+this.foOffset)+")"+y);x.setAttribute("width",Math.round(Math.max(1,c)));x.setAttribute("height",Math.round(Math.max(1,d)));this.root.ownerDocument!=document&&(a=this.createAlternateContent(x,a,b,c,d,e,f,g,k,l,m,n,p),null!=a&&(x.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),
c=this.createElement("switch"),c.appendChild(x),c.appendChild(a),q.appendChild(c)))};
mxSvgCanvas2D.prototype.text=function(a,b,c,d,e,f,g,k,l,m,n,p,q){if(this.textEnabled&&null!=e){p=null!=p?p:0;var r=this.state;a+=r.dx;b+=r.dy;this.foEnabled&&"html"==l?(r="vertical-align:top;",n?r+="overflow:hidden;max-height:"+Math.round(d)+"px;max-width:"+Math.round(c)+"px;":"fill"==m?r+="width:"+Math.round(c+1)+"px;height:"+Math.round(d+1)+"px;overflow:hidden;":"width"==m&&(r+="width:"+Math.round(c+1)+"px;",0<d&&(r+="max-height:"+Math.round(d)+"px;overflow:hidden;")),r=k&&0<c?r+("width:"+Math.round(c+
1)+"px;white-space:normal;word-wrap:"+mxConstants.WORD_WRAP+";"):r+"white-space:nowrap;",r=this.createDiv(e,f,g,r,m,k&&0<c?"normal":null),null!=r&&(null!=q&&r.setAttribute("dir",q),this.addForeignObject(a,b,c,d,e,f,g,k,l,m,n,p,q,r,this.root))):this.plainText(a,b,c,d,e,f,g,k,m,n,p,q)}};
@ -8469,7 +8469,7 @@ l.className="geBtn",p.appendChild(l));PrintDialog.previewEnabled&&(l=mxUtils.but
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)):(y.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 B=document.createElement("canvas"),D=new Image;D.onload=function(){try{B.getContext("2d").drawImage(D,0,0);var a=B.toDataURL("image/png");Editor.prototype.useCanvasForExport=
null!=a&&6<a.length}catch(F){}};D.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(A){}})();
(function(){var a=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);a.beforeDecode=function(a,d,b){b.ui=a.ui;return d};a.afterDecode=function(a,d,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="12.4.4";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)&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost="https://www.draw.io";EditorUi.lastErrorMessage=null;EditorUi.ignoredAnonymizedChars="\n\t`~!@#$%^&*()_+{}|:\"<>?-=[];'./,\n\t";
(function(){var a=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);a.beforeDecode=function(a,d,b){b.ui=a.ui;return d};a.afterDecode=function(a,d,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="12.4.5";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)&&"support.draw.io"!=window.location.hostname;EditorUi.drawHost="https://www.draw.io";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.scratchpadHelpLink="https://desk.draw.io/support/solutions/articles/16000042367";EditorUi.logError=
function(a,b,c,d,e){if("1"==urlParams.dev)EditorUi.debug("logError",a,b,c,d,e);else if(EditorUi.enableLogging)try{if(a!=EditorUi.lastErrorMessage&&(null==a||null==b||-1==a.indexOf("Script error")&&-1==a.indexOf("extension"))&&null!=a&&0>a.indexOf("DocumentClosedError")){EditorUi.lastErrorMessage=a;var f=0<=a.indexOf("NetworkError")||0<=a.indexOf("SecurityError")||0<=a.indexOf("NS_ERROR_FAILURE")||0<=a.indexOf("out of memory")?"CONFIG":"SEVERE",m=null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"";
e=null!=e?e:Error(a);(new Image).src=m+"/log?severity="+f+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(a)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(c)+(null!=d?":colno:"+encodeURIComponent(d):"")+(null!=e&&null!=e.stack?"&stack="+encodeURIComponent(e.stack):"")}}catch(x){}};EditorUi.logEvent=function(a){if("1"==urlParams.dev)EditorUi.debug("logEvent",a);else if(EditorUi.enableLogging)try{var b=null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:

View file

@ -444,11 +444,11 @@ t,n.mxCachedFinalOffsetHeight=g);t+=0;g-=2;l&&(g=Math.min(g,d),t=Math.min(t,c));
r.rotationCy),a=b.x-c*r.scale/2,b=b.y-d*r.scale/2):(a*=r.scale,b*=r.scale);0!=m&&(e+="rotate("+m+","+-l+","+-g+")");n.setAttribute("transform","translate("+Math.round(a)+","+Math.round(b)+")"+e);p.setAttribute("width",Math.round(Math.max(1,c)));p.setAttribute("height",Math.round(Math.max(1,d)))}};
mxSvgCanvas2D.prototype.addForeignObject=function(a,b,c,d,e,f,g,k,l,m,n,p,q,r,t){var u=this.state;q=this.createElement("g");1>u.alpha&&q.setAttribute("opacity",u.alpha);var x=this.createElement("foreignObject");x.setAttribute("style","overflow:visible;");x.setAttribute("pointer-events",this.pointerEvents?this.pointerEventsValue:"none");q.appendChild(x);t.appendChild(q);var y,A;t=y=2;if(!mxClient.IS_IE||9!=document.documentMode&&mxClient.IS_SVG){if(this.root.ownerDocument!=document){var z=document.createElementNS(mxConstants.NS_SVG,
"svg");z.style.position="absolute";z.style.visibility="hidden";A=this.createElement("foreignObject");A.appendChild(r);z.appendChild(A);document.body.appendChild(z)}else x.appendChild(r);z=r;null!=z.firstChild&&"DIV"==z.firstChild.nodeName&&(z=z.firstChild,k&&"break-word"==r.style.wordWrap&&(z.style.width="100%"));v=z.offsetWidth;0==v&&r.parentNode==x&&(r.style.visibility="hidden",document.body.appendChild(r),v=z.offsetWidth);this.cacheOffsetSize&&(q.mxCachedOffsetWidth=v);!n&&k&&0<c&&this.root.ownerDocument!=
document&&"fill"!=m&&"width"!=m&&(B=r.style.whiteSpace,r.style.whiteSpace="nowrap",v<z.offsetWidth&&(r.style.whiteSpace=B));y=v+y-1;k&&"fill"!=m&&"width"!=m&&(n&&(y=Math.min(y,c)),r.style.width=y+"px");y=z.offsetWidth;A=z.offsetHeight;this.cacheOffsetSize&&(q.mxCachedFinalOffsetWidth=y,q.mxCachedFinalOffsetHeight=A);A-=t;r.parentNode!=x&&(null!=r.parentNode&&r.parentNode.ownerSVGElement!=x.ownerSVGElement&&r.parentNode.ownerSVGElement.parentNode.removeChild(r.parentNode.ownerSVGElement),x.appendChild(r))}else{z=
document.createElement("div");z.style.cssText=r.getAttribute("style");z.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";z.style.position="absolute";z.style.visibility="hidden";A=document.createElement("div");A.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";A.style.wordWrap=mxConstants.WORD_WRAP;A.innerHTML=mxUtils.isNode(e)?e.outerHTML:e;z.appendChild(A);document.body.appendChild(z);8!=document.documentMode&&9!=document.documentMode&&null!=u.fontBorderColor&&(y+=2,t+=2);if(k&&0<
c){var v=A.offsetWidth;padDx=0;if(!n&&k&&0<c&&this.root.ownerDocument!=document&&"fill"!=m){var B=z.style.whiteSpace;A.style.whiteSpace="nowrap";v<A.offsetWidth&&(z.style.whiteSpace=B)}n&&(v=Math.min(v,c));z.style.width=v+"px";y=A.offsetWidth+y+padDx;A=A.offsetHeight+t;z.style.display="inline-block";z.style.position="";z.style.visibility="";z.style.width=y+"px";r.setAttribute("style",z.style.cssText)}else y=A.offsetWidth+y,A=A.offsetHeight+t;z.parentNode.removeChild(z);x.appendChild(r)}n&&(A=Math.min(A,
d),y=Math.min(y,c));"width"==m?d=A:"fill"!=m&&(c=y,d=A);1>u.alpha&&q.setAttribute("opacity",u.alpha);t=r=0;f==mxConstants.ALIGN_CENTER?r-=c/2:f==mxConstants.ALIGN_RIGHT&&(r-=c);a+=r;g==mxConstants.ALIGN_MIDDLE?t-=d/2:g==mxConstants.ALIGN_BOTTOM&&(t-=d);"fill"!=m&&mxClient.IS_FF&&mxClient.IS_WIN&&(t-=2);b+=t;y=1!=u.scale?"scale("+u.scale+")":"";0!=u.rotation&&this.rotateHtml?(y+="rotate("+u.rotation+","+c/2+","+d/2+")",b=this.rotatePoint((a+c/2)*u.scale,(b+d/2)*u.scale,u.rotation,u.rotationCx,u.rotationCy),
a=b.x-c*u.scale/2,b=b.y-d*u.scale/2):(a*=u.scale,b*=u.scale);0!=p&&(y+="rotate("+p+","+-r+","+-t+")");q.setAttribute("transform","translate("+(Math.round(a)+this.foOffset)+","+(Math.round(b)+this.foOffset)+")"+y);x.setAttribute("width",Math.round(Math.max(1,c)));x.setAttribute("height",Math.round(Math.max(1,d)));this.root.ownerDocument!=document&&(a=this.createAlternateContent(x,a,b,c,d,e,f,g,k,l,m,n,p),null!=a&&(x.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),
document&&"fill"!=m&&"width"!=m&&(B=r.style.whiteSpace,r.style.whiteSpace="nowrap",v<z.offsetWidth&&(r.style.whiteSpace=B));y=v+y-1;k&&"fill"!=m&&"width"!=m&&(n&&(y=Math.min(y,c)),r.style.width=y+"px");y=z.offsetWidth;A=z.offsetHeight;this.cacheOffsetSize&&(q.mxCachedFinalOffsetWidth=y,q.mxCachedFinalOffsetHeight=A);A-=t;r.parentNode!=x&&(null!=r.parentNode&&null!=r.parentNode.ownerSVGElement&&null!=r.parentNode.ownerSVGElement.parentNode&&r.parentNode.ownerSVGElement!=x.ownerSVGElement&&r.parentNode.ownerSVGElement.parentNode.removeChild(r.parentNode.ownerSVGElement),
x.appendChild(r))}else{z=document.createElement("div");z.style.cssText=r.getAttribute("style");z.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";z.style.position="absolute";z.style.visibility="hidden";A=document.createElement("div");A.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";A.style.wordWrap=mxConstants.WORD_WRAP;A.innerHTML=mxUtils.isNode(e)?e.outerHTML:e;z.appendChild(A);document.body.appendChild(z);8!=document.documentMode&&9!=document.documentMode&&null!=u.fontBorderColor&&
(y+=2,t+=2);if(k&&0<c){var v=A.offsetWidth;padDx=0;if(!n&&k&&0<c&&this.root.ownerDocument!=document&&"fill"!=m){var B=z.style.whiteSpace;A.style.whiteSpace="nowrap";v<A.offsetWidth&&(z.style.whiteSpace=B)}n&&(v=Math.min(v,c));z.style.width=v+"px";y=A.offsetWidth+y+padDx;A=A.offsetHeight+t;z.style.display="inline-block";z.style.position="";z.style.visibility="";z.style.width=y+"px";r.setAttribute("style",z.style.cssText)}else y=A.offsetWidth+y,A=A.offsetHeight+t;z.parentNode.removeChild(z);x.appendChild(r)}n&&
(A=Math.min(A,d),y=Math.min(y,c));"width"==m?d=A:"fill"!=m&&(c=y,d=A);1>u.alpha&&q.setAttribute("opacity",u.alpha);t=r=0;f==mxConstants.ALIGN_CENTER?r-=c/2:f==mxConstants.ALIGN_RIGHT&&(r-=c);a+=r;g==mxConstants.ALIGN_MIDDLE?t-=d/2:g==mxConstants.ALIGN_BOTTOM&&(t-=d);"fill"!=m&&mxClient.IS_FF&&mxClient.IS_WIN&&(t-=2);b+=t;y=1!=u.scale?"scale("+u.scale+")":"";0!=u.rotation&&this.rotateHtml?(y+="rotate("+u.rotation+","+c/2+","+d/2+")",b=this.rotatePoint((a+c/2)*u.scale,(b+d/2)*u.scale,u.rotation,u.rotationCx,
u.rotationCy),a=b.x-c*u.scale/2,b=b.y-d*u.scale/2):(a*=u.scale,b*=u.scale);0!=p&&(y+="rotate("+p+","+-r+","+-t+")");q.setAttribute("transform","translate("+(Math.round(a)+this.foOffset)+","+(Math.round(b)+this.foOffset)+")"+y);x.setAttribute("width",Math.round(Math.max(1,c)));x.setAttribute("height",Math.round(Math.max(1,d)));this.root.ownerDocument!=document&&(a=this.createAlternateContent(x,a,b,c,d,e,f,g,k,l,m,n,p),null!=a&&(x.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),
c=this.createElement("switch"),c.appendChild(x),c.appendChild(a),q.appendChild(c)))};
mxSvgCanvas2D.prototype.text=function(a,b,c,d,e,f,g,k,l,m,n,p,q){if(this.textEnabled&&null!=e){p=null!=p?p:0;var r=this.state;a+=r.dx;b+=r.dy;this.foEnabled&&"html"==l?(r="vertical-align:top;",n?r+="overflow:hidden;max-height:"+Math.round(d)+"px;max-width:"+Math.round(c)+"px;":"fill"==m?r+="width:"+Math.round(c+1)+"px;height:"+Math.round(d+1)+"px;overflow:hidden;":"width"==m&&(r+="width:"+Math.round(c+1)+"px;",0<d&&(r+="max-height:"+Math.round(d)+"px;overflow:hidden;")),r=k&&0<c?r+("width:"+Math.round(c+
1)+"px;white-space:normal;word-wrap:"+mxConstants.WORD_WRAP+";"):r+"white-space:nowrap;",r=this.createDiv(e,f,g,r,m,k&&0<c?"normal":null),null!=r&&(null!=q&&r.setAttribute("dir",q),this.addForeignObject(a,b,c,d,e,f,g,k,l,m,n,p,q,r,this.root))):this.plainText(a,b,c,d,e,f,g,k,m,n,p,q)}};