6.7.2 release

This commit is contained in:
Gaudenz Alder 2017-05-31 08:29:59 +02:00
parent 931f0c5938
commit 33c182f144
20 changed files with 2441 additions and 1503 deletions

View file

@ -1,3 +1,7 @@
31-MAY-2017: 6.7.2
- Adds Atlassian shapes
30-MAY-2017: 6.7.1
- Adds viewer lightbox option in Confluence Connect

View file

@ -1 +1 @@
6.7.1
6.7.2

View file

@ -98,6 +98,7 @@
<file name="Sidebar-ArchiMate.js" />
<file name="Sidebar-ArchiMate3.js" />
<file name="Sidebar-Arrows2.js" />
<file name="Sidebar-Atlassian.js" />
<file name="Sidebar-AWS.js" />
<file name="Sidebar-AWS3.js" />
<file name="Sidebar-AWS3D.js" />

View file

@ -127,7 +127,7 @@ public class EllipticalArcTo extends Row
* @param x3 y3 control point
* @return true if the start to end angle that contains the control point is a reflex angle
*/
private boolean isReflexAngle(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3)
protected boolean isReflexAngle(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3)
{
x1 = x1 - x0;
y1 = y1 - y0;

View file

@ -1,24 +1,27 @@
package com.mxgraph.io.vsdx.geometry;
import com.mxgraph.io.vsdx.Shape;
import com.mxgraph.io.vsdx.mxVsdxUtils;
import com.mxgraph.util.mxPoint;
public class RelEllipticalArcTo extends Row
public class RelEllipticalArcTo extends EllipticalArcTo
{
public RelEllipticalArcTo(int index, Double x, Double y, Double a, Double b, Double c, Double d)
{
super(index, x, y);
this.a = a;
this.b = b;
this.c = c;
this.d = d;
super(index, x, y, a, b, c, d);
}
@Override
public String handle(mxPoint p, Shape shape)
{
//TODO implement this!
return "";
public String handle(mxPoint p, Shape shape) {
if (this.x != null && this.y != null && this.a != null && this.b != null && this.c != null && this.d != null)
{
double h = shape.getHeight() / mxVsdxUtils.conversionFactor;
double w = shape.getWidth() / mxVsdxUtils.conversionFactor;
this.x *= w;
this.y *= h;
this.a *= w;
this.b *= h;
}
return super.handle(p, shape);
}
}

View file

@ -109,7 +109,7 @@ public class RowFactory
return new PolylineTo(index, x, y, formulaA);
case "RelCubBezTo":
return new RelCubBezTo(index, x, y, a, b, c, d);
case "RelEllipticalArcTo ":
case "RelEllipticalArcTo":
return new RelEllipticalArcTo(index, x, y, a, b, c, d);
case "RelLineTo":
return new RelLineTo(index, x, y);

View file

@ -1,7 +1,7 @@
CACHE MANIFEST
# THIS FILE WAS GENERATED. DO NOT MODIFY!
# 05/30/2017 11:30 AM
# 05/31/2017 08:23 AM
app.html
index.html?offline=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

1935
war/js/app.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -2646,30 +2646,30 @@ d.createElement("feGaussianBlur");f.setAttribute("in","SourceAlpha");f.setAttrib
"#3D4574");f.setAttribute("flood-opacity","0.4");f.setAttribute("result","offsetColor");e.appendChild(f);f=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"feComposite"):d.createElement("feComposite");f.setAttribute("in","offsetColor");f.setAttribute("in2","offsetBlur");f.setAttribute("operator","in");f.setAttribute("result","offsetBlur");e.appendChild(f);f=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"feBlend"):d.createElement("feBlend");f.setAttribute("in","SourceGraphic");
f.setAttribute("in2","offsetBlur");e.appendChild(f);f=a.getElementsByTagName("defs");0==f.length?(d=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"defs"):d.createElement("defs"),null!=a.firstChild?a.insertBefore(d,a.firstChild):a.appendChild(d)):d=f[0];d.appendChild(e);c||((b||a.getElementsByTagName("g")[0]).setAttribute("filter","url(#"+this.shadowId+")"),isNaN(parseInt(a.getAttribute("width")))||(a.setAttribute("width",parseInt(a.getAttribute("width"))+6),a.setAttribute("height",
parseInt(a.getAttribute("height"))+6)));return e};Graph.prototype.setShadowVisible=function(a,b){mxClient.IS_SVG&&(b=null!=b?b:!0,(this.shadowVisible=a)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),b&&this.fireEvent(new mxEventObject("shadowVisibleChanged")))};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var a=this.model.getChildCount(this.model.root),b,c=0;do b=this.model.getChildAt(this.model.root,
c);while(c++<a&&"1"==mxUtils.getValue(this.getCellStyle(b),"locked","0"));null!=b&&this.setDefaultParent(b)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/bpmn/mxBpmnShape2.js",STENCIL_PATH+"/bpmn.xml"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=
[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=
[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=
[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=
[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=
[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=
[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(a){var b=null;null!=a&&0<a.length&&("ER"==a.substring(0,2)?b="mxgraph.er":"sysML"==a.substring(0,5)&&(b="mxgraph.sysml"));return b};var r=mxMarker.createMarker;mxMarker.createMarker=function(a,b,c,d,e,f,k,g,l,m){if(null!=c&&null==mxMarker.markers[c]){var n=this.getPackageForType(c);null!=n&&mxStencilRegistry.getStencil(n)}return r.apply(this,arguments)};
PrintDialog.prototype.create=function(a,b){function c(){r.value=Math.max(1,Math.min(g,Math.max(parseInt(r.value),parseInt(q.value))));q.value=Math.max(1,Math.min(g,Math.min(parseInt(r.value),parseInt(q.value))))}function d(b){function c(a,b,c){var e=a.getGraphBounds(),f=0,k=0,g=ba.get(),l=1/a.pageScale,m=P.checked;if(m)var l=parseInt(M.value),n=parseInt(T.value),l=Math.min(g.height*n/(e.height/a.view.scale),g.width*l/(e.width/a.view.scale));else l=parseInt(U.value)/(100*a.pageScale),isNaN(l)&&(d=
1/a.pageScale,U.value="100 %");g=mxRectangle.fromRectangle(g);g.width=Math.ceil(g.width*d);g.height=Math.ceil(g.height*d);l*=d;!m&&a.pageVisible?(e=a.getPageLayout(),f-=e.x*g.width,k-=e.y*g.height):m=!0;if(null==b){b=PrintDialog.createPrintPreview(a,l,g,0,f,k,m);b.pageSelector=!1;b.mathEnabled=!1;if("undefined"!==typeof MathJax){var p=b.renderPage;b.renderPage=function(a,b,c,d,e,f){var k=p.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=!0:k.className="geDisableMathJax";return k}}b.open(null,
null,c,!0)}else{g=a.background;if(null==g||""==g||g==mxConstants.NONE)g="#ffffff";b.backgroundColor=g;b.autoOrigin=m;b.appendGraph(a,l,f,k,c,!0)}return b}var d=parseInt(Y.value)/100;isNaN(d)&&(d=1,Y.value="100 %");var d=.75*d,f=q.value,k=r.value,g=!n.checked,m=null;g&&(g=f==l&&k==l);if(!g&&null!=a.pages&&a.pages.length){var p=0,g=a.pages.length-1;n.checked||(p=parseInt(f)-1,g=parseInt(k)-1);for(var t=p;t<=g;t++){var u=a.pages[t],f=u==a.currentPage?e:null;if(null==f){var f=a.createTemporaryGraph(e.getStylesheet()),
k=!0,p=!1,x=null,v=null;null==u.viewState&&null==u.mapping&&null==u.root&&a.updatePageRoot(u);null!=u.viewState?(k=u.viewState.pageVisible,p=u.viewState.mathEnabled,x=u.viewState.background,v=u.viewState.backgroundImage):null!=u.mapping&&null!=u.mapping.diagramMap&&(p="0"!=u.mapping.diagramMap.get("mathEnabled"),x=u.mapping.diagramMap.get("background"),v=u.mapping.diagramMap.get("backgroundImage"),v=null!=v&&0<v.length?JSON.parse(v):null);f.background=x;f.backgroundImage=null!=v?new mxImage(v.src,
v.width,v.height):null;f.pageVisible=k;f.mathEnabled=p;var z=f.getGlobalVariable;f.getGlobalVariable=function(a){return"page"==a?u.getName():"pagenumber"==a?t+1:z.apply(this,arguments)};document.body.appendChild(f.container);a.updatePageRoot(u);f.model.setRoot(u.root)}m=c(f,m,t!=g);f!=e&&f.container.parentNode.removeChild(f.container)}}else m=c(e);m.mathEnabled&&(g=m.wnd.document,g.writeln('<script type="text/x-mathjax-config">'),g.writeln("MathJax.Hub.Config({"),g.writeln('messageStyle: "none",'),
g.writeln('jax: ["input/TeX", "input/MathML", "input/AsciiMath", "output/HTML-CSS"],'),g.writeln('extensions: ["tex2jax.js", "mml2jax.js", "asciimath2jax.js"],'),g.writeln("TeX: {"),g.writeln('extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js"]'),g.writeln("},"),g.writeln("tex2jax: {"),g.writeln('\tignoreClass: "geDisableMathJax"'),g.writeln("},"),g.writeln("asciimath2jax: {"),g.writeln('\tignoreClass: "geDisableMathJax"'),g.writeln("}"),g.writeln("});"),b&&(g.writeln("MathJax.Hub.Queue(function () {"),
g.writeln("window.print();"),g.writeln("});")),g.writeln("\x3c/script>"),g.writeln('<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js">\x3c/script>'));m.closeDocument();!m.mathEnabled&&b&&PrintDialog.printPreview(m)}var e=a.editor.graph,f=document.createElement("div"),k=document.createElement("h3");k.style.width="100%";k.style.textAlign="center";k.style.marginTop="0px";mxUtils.write(k,b||mxResources.get("print"));f.appendChild(k);var g=1,l=1,m=document.createElement("div");
m.style.cssText="border-bottom:1px solid lightGray;padding-bottom:12px;margin-bottom:12px;";var n=document.createElement("input");n.style.cssText="margin-right:8px;margin-bottom:8px;";n.setAttribute("value","all");n.setAttribute("type","radio");n.setAttribute("name","pages-printdialog");m.appendChild(n);k=document.createElement("span");mxUtils.write(k,mxResources.get("printAllPages"));m.appendChild(k);mxUtils.br(m);var p=n.cloneNode(!0);n.setAttribute("checked","checked");p.setAttribute("value","range");
m.appendChild(p);k=document.createElement("span");mxUtils.write(k,mxResources.get("pages")+":");m.appendChild(k);var q=document.createElement("input");q.style.cssText="margin:0 8px 0 8px;";q.setAttribute("value","1");q.setAttribute("type","number");q.setAttribute("min","1");q.style.width="50px";m.appendChild(q);k=document.createElement("span");mxUtils.write(k,mxResources.get("to"));m.appendChild(k);var r=q.cloneNode(!0);m.appendChild(r);mxEvent.addListener(q,"focus",function(){p.checked=!0});mxEvent.addListener(r,
"focus",function(){p.checked=!0});mxEvent.addListener(q,"change",c);mxEvent.addListener(r,"change",c);if(null!=a.pages&&(g=a.pages.length,null!=a.currentPage))for(k=0;k<a.pages.length;k++)if(a.currentPage==a.pages[k]){l=k+1;q.value=l;r.value=l;break}q.setAttribute("max",g);r.setAttribute("max",g);1<g&&f.appendChild(m);var t=document.createElement("div");t.style.marginBottom="10px";var u=document.createElement("input");u.style.marginRight="8px";u.setAttribute("value","adjust");u.setAttribute("type",
"radio");u.setAttribute("name","printZoom");t.appendChild(u);k=document.createElement("span");mxUtils.write(k,mxResources.get("adjustTo"));t.appendChild(k);var U=document.createElement("input");U.style.cssText="margin:0 8px 0 8px;";U.setAttribute("value","100 %");U.style.width="50px";t.appendChild(U);mxEvent.addListener(U,"focus",function(){u.checked=!0});f.appendChild(t);var m=m.cloneNode(!1),P=u.cloneNode(!0);P.setAttribute("value","fit");u.setAttribute("checked","checked");k=document.createElement("div");
k.style.cssText="display:inline-block;height:100%;vertical-align:top;padding-top:2px;";k.appendChild(P);m.appendChild(k);t=document.createElement("table");t.style.display="inline-block";var aa=document.createElement("tbody"),S=document.createElement("tr"),C=S.cloneNode(!0),W=document.createElement("td"),K=W.cloneNode(!0),da=W.cloneNode(!0),X=W.cloneNode(!0),O=W.cloneNode(!0),J=W.cloneNode(!0);W.style.textAlign="right";X.style.textAlign="right";mxUtils.write(W,mxResources.get("fitTo"));var M=document.createElement("input");
M.style.cssText="margin:0 8px 0 8px;";M.setAttribute("value","1");M.setAttribute("min","1");M.setAttribute("type","number");M.style.width="40px";K.appendChild(M);k=document.createElement("span");mxUtils.write(k,mxResources.get("fitToSheetsAcross"));da.appendChild(k);mxUtils.write(X,mxResources.get("fitToBy"));var T=M.cloneNode(!0);O.appendChild(T);mxEvent.addListener(M,"focus",function(){P.checked=!0});mxEvent.addListener(T,"focus",function(){P.checked=!0});k=document.createElement("span");mxUtils.write(k,
mxResources.get("fitToSheetsDown"));J.appendChild(k);S.appendChild(W);S.appendChild(K);S.appendChild(da);C.appendChild(X);C.appendChild(O);C.appendChild(J);aa.appendChild(S);aa.appendChild(C);t.appendChild(aa);m.appendChild(t);f.appendChild(m);m=document.createElement("div");k=document.createElement("div");k.style.fontWeight="bold";k.style.marginBottom="12px";mxUtils.write(k,mxResources.get("paperSize"));m.appendChild(k);k=document.createElement("div");k.style.marginBottom="12px";var ba=PageSetupDialog.addPageFormatPanel(k,
"printdialog",a.editor.graph.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT);m.appendChild(k);k=document.createElement("span");mxUtils.write(k,mxResources.get("pageScale"));m.appendChild(k);var Y=document.createElement("input");Y.style.cssText="margin:0 8px 0 8px;";Y.setAttribute("value","100 %");Y.style.width="60px";m.appendChild(Y);f.appendChild(m);k=document.createElement("div");k.style.cssText="text-align:right;margin:62px 0 0 0;";m=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});
m.className="geBtn";a.editor.cancelFirst&&k.appendChild(m);a.isOffline()||(t=mxUtils.button(mxResources.get("help"),function(){window.open("https://desk.draw.io/support/solutions/articles/16000048947")}),t.className="geBtn",k.appendChild(t));PrintDialog.previewEnabled&&(t=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();d(!1)}),t.className="geBtn",k.appendChild(t));t=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();d(!0)});t.className=
"geBtn gePrimaryBtn";k.appendChild(t);a.editor.cancelFirst||k.appendChild(m);f.appendChild(k);this.container=f}})();(function(){EditorUi.VERSION="@DRAWIO-VERSION@";EditorUi.compactUi="atlas"!=uiTheme;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode=null;EditorUi.prototype.sidebarFooterHeight=36;EditorUi.prototype.defaultCustomShapeStyle=
c);while(c++<a&&"1"==mxUtils.getValue(this.getCellStyle(b),"locked","0"));null!=b&&this.setDefaultParent(b)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/bpmn/mxBpmnShape2.js",STENCIL_PATH+"/bpmn.xml"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.ios=
[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=
[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=
[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=
[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate3=
[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",
STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(a){var b=null;null!=a&&0<a.length&&("ER"==a.substring(0,2)?b="mxgraph.er":"sysML"==a.substring(0,5)&&(b="mxgraph.sysml"));return b};var r=mxMarker.createMarker;mxMarker.createMarker=function(a,b,c,d,e,f,k,g,l,m){if(null!=c&&null==mxMarker.markers[c]){var n=this.getPackageForType(c);
null!=n&&mxStencilRegistry.getStencil(n)}return r.apply(this,arguments)};PrintDialog.prototype.create=function(a,b){function c(){r.value=Math.max(1,Math.min(g,Math.max(parseInt(r.value),parseInt(q.value))));q.value=Math.max(1,Math.min(g,Math.min(parseInt(r.value),parseInt(q.value))))}function d(b){function c(a,b,c){var e=a.getGraphBounds(),f=0,k=0,g=ba.get(),l=1/a.pageScale,m=P.checked;if(m)var l=parseInt(M.value),n=parseInt(T.value),l=Math.min(g.height*n/(e.height/a.view.scale),g.width*l/(e.width/
a.view.scale));else l=parseInt(U.value)/(100*a.pageScale),isNaN(l)&&(d=1/a.pageScale,U.value="100 %");g=mxRectangle.fromRectangle(g);g.width=Math.ceil(g.width*d);g.height=Math.ceil(g.height*d);l*=d;!m&&a.pageVisible?(e=a.getPageLayout(),f-=e.x*g.width,k-=e.y*g.height):m=!0;if(null==b){b=PrintDialog.createPrintPreview(a,l,g,0,f,k,m);b.pageSelector=!1;b.mathEnabled=!1;if("undefined"!==typeof MathJax){var p=b.renderPage;b.renderPage=function(a,b,c,d,e,f){var k=p.apply(this,arguments);this.graph.mathEnabled?
this.mathEnabled=!0:k.className="geDisableMathJax";return k}}b.open(null,null,c,!0)}else{g=a.background;if(null==g||""==g||g==mxConstants.NONE)g="#ffffff";b.backgroundColor=g;b.autoOrigin=m;b.appendGraph(a,l,f,k,c,!0)}return b}var d=parseInt(Y.value)/100;isNaN(d)&&(d=1,Y.value="100 %");var d=.75*d,f=q.value,k=r.value,g=!n.checked,m=null;g&&(g=f==l&&k==l);if(!g&&null!=a.pages&&a.pages.length){var p=0,g=a.pages.length-1;n.checked||(p=parseInt(f)-1,g=parseInt(k)-1);for(var t=p;t<=g;t++){var u=a.pages[t],
f=u==a.currentPage?e:null;if(null==f){var f=a.createTemporaryGraph(e.getStylesheet()),k=!0,p=!1,x=null,v=null;null==u.viewState&&null==u.mapping&&null==u.root&&a.updatePageRoot(u);null!=u.viewState?(k=u.viewState.pageVisible,p=u.viewState.mathEnabled,x=u.viewState.background,v=u.viewState.backgroundImage):null!=u.mapping&&null!=u.mapping.diagramMap&&(p="0"!=u.mapping.diagramMap.get("mathEnabled"),x=u.mapping.diagramMap.get("background"),v=u.mapping.diagramMap.get("backgroundImage"),v=null!=v&&0<v.length?
JSON.parse(v):null);f.background=x;f.backgroundImage=null!=v?new mxImage(v.src,v.width,v.height):null;f.pageVisible=k;f.mathEnabled=p;var z=f.getGlobalVariable;f.getGlobalVariable=function(a){return"page"==a?u.getName():"pagenumber"==a?t+1:z.apply(this,arguments)};document.body.appendChild(f.container);a.updatePageRoot(u);f.model.setRoot(u.root)}m=c(f,m,t!=g);f!=e&&f.container.parentNode.removeChild(f.container)}}else m=c(e);m.mathEnabled&&(g=m.wnd.document,g.writeln('<script type="text/x-mathjax-config">'),
g.writeln("MathJax.Hub.Config({"),g.writeln('messageStyle: "none",'),g.writeln('jax: ["input/TeX", "input/MathML", "input/AsciiMath", "output/HTML-CSS"],'),g.writeln('extensions: ["tex2jax.js", "mml2jax.js", "asciimath2jax.js"],'),g.writeln("TeX: {"),g.writeln('extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js"]'),g.writeln("},"),g.writeln("tex2jax: {"),g.writeln('\tignoreClass: "geDisableMathJax"'),g.writeln("},"),g.writeln("asciimath2jax: {"),g.writeln('\tignoreClass: "geDisableMathJax"'),
g.writeln("}"),g.writeln("});"),b&&(g.writeln("MathJax.Hub.Queue(function () {"),g.writeln("window.print();"),g.writeln("});")),g.writeln("\x3c/script>"),g.writeln('<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js">\x3c/script>'));m.closeDocument();!m.mathEnabled&&b&&PrintDialog.printPreview(m)}var e=a.editor.graph,f=document.createElement("div"),k=document.createElement("h3");k.style.width="100%";k.style.textAlign="center";k.style.marginTop="0px";
mxUtils.write(k,b||mxResources.get("print"));f.appendChild(k);var g=1,l=1,m=document.createElement("div");m.style.cssText="border-bottom:1px solid lightGray;padding-bottom:12px;margin-bottom:12px;";var n=document.createElement("input");n.style.cssText="margin-right:8px;margin-bottom:8px;";n.setAttribute("value","all");n.setAttribute("type","radio");n.setAttribute("name","pages-printdialog");m.appendChild(n);k=document.createElement("span");mxUtils.write(k,mxResources.get("printAllPages"));m.appendChild(k);
mxUtils.br(m);var p=n.cloneNode(!0);n.setAttribute("checked","checked");p.setAttribute("value","range");m.appendChild(p);k=document.createElement("span");mxUtils.write(k,mxResources.get("pages")+":");m.appendChild(k);var q=document.createElement("input");q.style.cssText="margin:0 8px 0 8px;";q.setAttribute("value","1");q.setAttribute("type","number");q.setAttribute("min","1");q.style.width="50px";m.appendChild(q);k=document.createElement("span");mxUtils.write(k,mxResources.get("to"));m.appendChild(k);
var r=q.cloneNode(!0);m.appendChild(r);mxEvent.addListener(q,"focus",function(){p.checked=!0});mxEvent.addListener(r,"focus",function(){p.checked=!0});mxEvent.addListener(q,"change",c);mxEvent.addListener(r,"change",c);if(null!=a.pages&&(g=a.pages.length,null!=a.currentPage))for(k=0;k<a.pages.length;k++)if(a.currentPage==a.pages[k]){l=k+1;q.value=l;r.value=l;break}q.setAttribute("max",g);r.setAttribute("max",g);1<g&&f.appendChild(m);var t=document.createElement("div");t.style.marginBottom="10px";
var u=document.createElement("input");u.style.marginRight="8px";u.setAttribute("value","adjust");u.setAttribute("type","radio");u.setAttribute("name","printZoom");t.appendChild(u);k=document.createElement("span");mxUtils.write(k,mxResources.get("adjustTo"));t.appendChild(k);var U=document.createElement("input");U.style.cssText="margin:0 8px 0 8px;";U.setAttribute("value","100 %");U.style.width="50px";t.appendChild(U);mxEvent.addListener(U,"focus",function(){u.checked=!0});f.appendChild(t);var m=m.cloneNode(!1),
P=u.cloneNode(!0);P.setAttribute("value","fit");u.setAttribute("checked","checked");k=document.createElement("div");k.style.cssText="display:inline-block;height:100%;vertical-align:top;padding-top:2px;";k.appendChild(P);m.appendChild(k);t=document.createElement("table");t.style.display="inline-block";var aa=document.createElement("tbody"),S=document.createElement("tr"),C=S.cloneNode(!0),W=document.createElement("td"),K=W.cloneNode(!0),da=W.cloneNode(!0),X=W.cloneNode(!0),O=W.cloneNode(!0),J=W.cloneNode(!0);
W.style.textAlign="right";X.style.textAlign="right";mxUtils.write(W,mxResources.get("fitTo"));var M=document.createElement("input");M.style.cssText="margin:0 8px 0 8px;";M.setAttribute("value","1");M.setAttribute("min","1");M.setAttribute("type","number");M.style.width="40px";K.appendChild(M);k=document.createElement("span");mxUtils.write(k,mxResources.get("fitToSheetsAcross"));da.appendChild(k);mxUtils.write(X,mxResources.get("fitToBy"));var T=M.cloneNode(!0);O.appendChild(T);mxEvent.addListener(M,
"focus",function(){P.checked=!0});mxEvent.addListener(T,"focus",function(){P.checked=!0});k=document.createElement("span");mxUtils.write(k,mxResources.get("fitToSheetsDown"));J.appendChild(k);S.appendChild(W);S.appendChild(K);S.appendChild(da);C.appendChild(X);C.appendChild(O);C.appendChild(J);aa.appendChild(S);aa.appendChild(C);t.appendChild(aa);m.appendChild(t);f.appendChild(m);m=document.createElement("div");k=document.createElement("div");k.style.fontWeight="bold";k.style.marginBottom="12px";
mxUtils.write(k,mxResources.get("paperSize"));m.appendChild(k);k=document.createElement("div");k.style.marginBottom="12px";var ba=PageSetupDialog.addPageFormatPanel(k,"printdialog",a.editor.graph.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT);m.appendChild(k);k=document.createElement("span");mxUtils.write(k,mxResources.get("pageScale"));m.appendChild(k);var Y=document.createElement("input");Y.style.cssText="margin:0 8px 0 8px;";Y.setAttribute("value","100 %");Y.style.width="60px";m.appendChild(Y);
f.appendChild(m);k=document.createElement("div");k.style.cssText="text-align:right;margin:62px 0 0 0;";m=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});m.className="geBtn";a.editor.cancelFirst&&k.appendChild(m);a.isOffline()||(t=mxUtils.button(mxResources.get("help"),function(){window.open("https://desk.draw.io/support/solutions/articles/16000048947")}),t.className="geBtn",k.appendChild(t));PrintDialog.previewEnabled&&(t=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();
d(!1)}),t.className="geBtn",k.appendChild(t));t=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();d(!0)});t.className="geBtn gePrimaryBtn";k.appendChild(t);a.editor.cancelFirst||k.appendChild(m);f.appendChild(k);this.container=f}})();(function(){EditorUi.VERSION="@DRAWIO-VERSION@";EditorUi.compactUi="atlas"!=uiTheme;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode=null;EditorUi.prototype.sidebarFooterHeight=36;EditorUi.prototype.defaultCustomShapeStyle=
"shape=stencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE=);whiteSpace=wrap;html=1;";EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=1E6;
EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.currentFile=null;EditorUi.prototype.enableLogging=/.*\.draw\.io$/.test(window.location.hostname);EditorUi.prototype.printPdfExport=!1;EditorUi.prototype.pdfPageExport=!0;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;try{var a=document.createElement("canvas"),b=new Image;b.onload=function(){try{a.getContext("2d").drawImage(b,0,0);var c=a.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=
null!=c&&6<c.length}catch(p){}};b.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(n){}try{a=document.createElement("canvas");a.width=a.height=1;var c=a.toDataURL("image/jpeg");EditorUi.prototype.jpgSupported=null!==c.match("image/jpeg")}catch(n){}})();

1189
war/js/atlas.min.js vendored

File diff suppressed because it is too large Load diff

View file

@ -31,6 +31,7 @@ mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-Android.js');
mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-ArchiMate.js');
mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-ArchiMate3.js');
mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-Arrows2.js');
mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-Atlassian.js');
mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-AWS.js');
mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-AWS3.js');
mxscript(drawDevUrl + 'js/diagramly/sidebar/Sidebar-AWS3D.js');

View file

@ -1247,6 +1247,7 @@
mxStencilRegistry.libraries['mockup'] = [SHAPES_PATH + '/mockup/mxMockupButtons.js'];
mxStencilRegistry.libraries['arrows2'] = [SHAPES_PATH + '/mxArrows.js'];
mxStencilRegistry.libraries['atlassian'] = [STENCIL_PATH + '/atlassian.xml'];
mxStencilRegistry.libraries['bpmn'] = [SHAPES_PATH + '/bpmn/mxBpmnShape2.js', STENCIL_PATH + '/bpmn.xml'];
mxStencilRegistry.libraries['er'] = [SHAPES_PATH + '/er/mxER.js'];
mxStencilRegistry.libraries['ios'] = [SHAPES_PATH + '/mockup/mxMockupiOS.js'];

File diff suppressed because it is too large Load diff

View file

@ -135,6 +135,7 @@
{id: 'cabinets', libs: ['cabinets']},
{id: 'floorplan', libs: ['floorplan']},
{id: 'bootstrap', libs: ['bootstrap']},
{id: 'atlassian', libs: ['atlassian']},
{id: 'gmdl', prefix: 'gmdl', libs: Sidebar.prototype.gmdl},
{id: 'archimate3', prefix: 'archimate3', libs: Sidebar.prototype.archimate3},
{id: 'archimate', libs: ['archimate']},
@ -329,6 +330,7 @@
{title: mxResources.get('flowchart'), id: 'flowchart', image: IMAGE_PATH + '/sidebar-flowchart.png'}]},
{title: mxResources.get('software'),
entries: [{title: mxResources.get('android'), id: 'android', image: IMAGE_PATH + '/sidebar-android.png'},
{title: 'Atlassian', id: 'atlassian', image: IMAGE_PATH + '/sidebar-atlassian.png'},
{title: mxResources.get('bootstrap'), id: 'bootstrap', image: IMAGE_PATH + '/sidebar-bootstrap.png'},
{title: mxResources.get('entityRelation'), id: 'er', image: IMAGE_PATH + '/sidebar-er.png'},
{title: mxResources.get('ios'), id: 'ios', image: IMAGE_PATH + '/sidebar-ios.png'},
@ -928,6 +930,7 @@
}
this.addFloorplanPalette();
this.addAtlassianPalette();
this.addBootstrapPalette();
for (var i = 0; i < gmdl.length; i++)

View file

@ -40,12 +40,8 @@ function VsdxExport(editorUi, resDir)
}
}
//var p1Id = that.VISIO_PAGES_RELS + "page1.xml.rels";
for (var i = 2; i <= pageCount; i++)
{
//var fId = that.VISIO_PAGES_RELS + "page" + i + ".xml.rels";
//zip.file(fId, files[p1Id]);
var newPage = page1.cloneNode();
newPage.setAttribute(that.PART_NAME, "/visio/pages/page" + i + ".xml");
root.appendChild(newPage);
@ -69,30 +65,42 @@ function VsdxExport(editorUi, resDir)
try
{
//This doesn't work when pageView is off
// // Computes the horizontal and vertical page count
// var bounds = graph.getGraphBounds();
// var sc = graph.view.scale;
// var bgBounds = graph.view.getBackgroundPageBounds();
//
// var x0 = Math.round((bounds.x - bgBounds.x) / sc);
// var y0 = Math.round((bounds.y - bgBounds.y) / sc);
//
// var hpages = Math.max(1, Math.ceil((bounds.width / sc + x0) / graph.pageFormat.width));
// var vpages = Math.max(1, Math.ceil((bounds.height / sc + y0) / graph.pageFormat.height));
// Computes the horizontal and vertical page count
var bounds = graph.getGraphBounds().clone();
var sc = graph.view.scale;
var tr = graph.view.translate;
//TODO compute the empty space at the left most page and add it to width and height
// Compute the unscaled, untranslated bounds to find
// the number of vertical and horizontal pages
bounds.width /= sc;
bounds.height /= sc;
// bounds.x /= sc;
// bounds.y /= sc;
// var x0 = bounds.width - Math.abs(bounds.x - tr.x);
// var y0 = bounds.height - Math.abs(bounds.y - tr.y);
var x0 = Math.round(bounds.x / sc) - tr.x;
var y0 = Math.round(bounds.y / sc) - tr.y;
// Store the available page area
var availableWidth = graph.pageFormat.width;
var availableHeight = graph.pageFormat.height;
var hpages = Math.max(1, Math.ceil((bounds.width /*+ x0*/) / availableWidth));
var vpages = Math.max(1, Math.ceil((bounds.height /*+ y0*/) / availableHeight));
if (x0 < 0)
{
x0 += Math.ceil((tr.x - bounds.x / sc) / availableWidth) * availableWidth;
}
if (y0 < 0)
{
y0 += Math.ceil((tr.y - bounds.y / sc) / availableHeight) * availableHeight;
}
var hpages = Math.max(1, Math.ceil((bounds.width / sc + x0) / availableWidth));
var vpages = Math.max(1, Math.ceil((bounds.height / sc + y0) / availableHeight));
attr['gridEnabled'] = graph.gridEnabled;
attr['gridSize'] = graph.gridSize;

View file

@ -602,7 +602,8 @@ mxVsdxCanvas2D.prototype.text = function(x, y, w, h, str, align, valign, wrap, f
this.shape.appendChild(this.createCellElemScaled("TxtLocPinX", hw));
this.shape.appendChild(this.createCellElemScaled("TxtLocPinY", hh));
this.shape.appendChild(this.createCellElemScaled("TxtAngle", (360 - rotation) * Math.PI / 180));
if (rotation != 0)
this.shape.appendChild(this.createCellElemScaled("TxtAngle", (360 - rotation) * Math.PI / 180));
var text = this.xmlDoc.createElement("Text");
text.textContent = str + "\n";

View file

@ -184,7 +184,7 @@ f)+"\n"+t+"}":"{"+x.join(",")+"}";f=t;return l}}"function"!==typeof Date.prototy
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})});
"function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();var mxBasePath="https://www.draw.io/mxgraph/",mxLoadStylesheets=mxLoadResources=!1,mxLanguage="en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"6.7.1",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"6.7.2",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&&
0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&
0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||

View file

@ -184,7 +184,7 @@ f)+"\n"+t+"}":"{"+x.join(",")+"}";f=t;return l}}"function"!==typeof Date.prototy
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})});
"function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();var mxBasePath="https://www.draw.io/mxgraph/",mxLoadStylesheets=mxLoadResources=!1,mxLanguage="en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"6.7.1",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"6.7.2",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&&
0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&
0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||

48
war/js/viewer.min.js vendored
View file

@ -2657,30 +2657,30 @@ d.createElement("feGaussianBlur");f.setAttribute("in","SourceAlpha");f.setAttrib
"#3D4574");f.setAttribute("flood-opacity","0.4");f.setAttribute("result","offsetColor");e.appendChild(f);f=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"feComposite"):d.createElement("feComposite");f.setAttribute("in","offsetColor");f.setAttribute("in2","offsetBlur");f.setAttribute("operator","in");f.setAttribute("result","offsetBlur");e.appendChild(f);f=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"feBlend"):d.createElement("feBlend");f.setAttribute("in","SourceGraphic");
f.setAttribute("in2","offsetBlur");e.appendChild(f);f=a.getElementsByTagName("defs");0==f.length?(d=null!=d.createElementNS?d.createElementNS(mxConstants.NS_SVG,"defs"):d.createElement("defs"),null!=a.firstChild?a.insertBefore(d,a.firstChild):a.appendChild(d)):d=f[0];d.appendChild(e);c||((b||a.getElementsByTagName("g")[0]).setAttribute("filter","url(#"+this.shadowId+")"),isNaN(parseInt(a.getAttribute("width")))||(a.setAttribute("width",parseInt(a.getAttribute("width"))+6),a.setAttribute("height",
parseInt(a.getAttribute("height"))+6)));return e};Graph.prototype.setShadowVisible=function(a,b){mxClient.IS_SVG&&(b=null!=b?b:!0,(this.shadowVisible=a)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),b&&this.fireEvent(new mxEventObject("shadowVisibleChanged")))};Graph.prototype.selectUnlockedLayer=function(){if(null==this.defaultParent){var a=this.model.getChildCount(this.model.root),b,c=0;do b=this.model.getChildAt(this.model.root,
c);while(c++<a&&"1"==mxUtils.getValue(this.getCellStyle(b),"locked","0"));null!=b&&this.setDefaultParent(b)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/bpmn/mxBpmnShape2.js",STENCIL_PATH+"/bpmn.xml"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=
[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=
[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=
[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=
[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate3=[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=
[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=
[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(a){var b=null;null!=a&&0<a.length&&("ER"==a.substring(0,2)?b="mxgraph.er":"sysML"==a.substring(0,5)&&(b="mxgraph.sysml"));return b};var r=mxMarker.createMarker;mxMarker.createMarker=function(a,b,c,d,e,f,k,g,l,m){if(null!=c&&null==mxMarker.markers[c]){var n=this.getPackageForType(c);null!=n&&mxStencilRegistry.getStencil(n)}return r.apply(this,arguments)};
PrintDialog.prototype.create=function(a,b){function c(){r.value=Math.max(1,Math.min(g,Math.max(parseInt(r.value),parseInt(q.value))));q.value=Math.max(1,Math.min(g,Math.min(parseInt(r.value),parseInt(q.value))))}function d(b){function c(a,b,c){var e=a.getGraphBounds(),f=0,k=0,g=ba.get(),l=1/a.pageScale,m=P.checked;if(m)var l=parseInt(M.value),n=parseInt(T.value),l=Math.min(g.height*n/(e.height/a.view.scale),g.width*l/(e.width/a.view.scale));else l=parseInt(U.value)/(100*a.pageScale),isNaN(l)&&(d=
1/a.pageScale,U.value="100 %");g=mxRectangle.fromRectangle(g);g.width=Math.ceil(g.width*d);g.height=Math.ceil(g.height*d);l*=d;!m&&a.pageVisible?(e=a.getPageLayout(),f-=e.x*g.width,k-=e.y*g.height):m=!0;if(null==b){b=PrintDialog.createPrintPreview(a,l,g,0,f,k,m);b.pageSelector=!1;b.mathEnabled=!1;if("undefined"!==typeof MathJax){var p=b.renderPage;b.renderPage=function(a,b,c,d,e,f){var k=p.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=!0:k.className="geDisableMathJax";return k}}b.open(null,
null,c,!0)}else{g=a.background;if(null==g||""==g||g==mxConstants.NONE)g="#ffffff";b.backgroundColor=g;b.autoOrigin=m;b.appendGraph(a,l,f,k,c,!0)}return b}var d=parseInt(Y.value)/100;isNaN(d)&&(d=1,Y.value="100 %");var d=.75*d,f=q.value,k=r.value,g=!n.checked,m=null;g&&(g=f==l&&k==l);if(!g&&null!=a.pages&&a.pages.length){var p=0,g=a.pages.length-1;n.checked||(p=parseInt(f)-1,g=parseInt(k)-1);for(var t=p;t<=g;t++){var u=a.pages[t],f=u==a.currentPage?e:null;if(null==f){var f=a.createTemporaryGraph(e.getStylesheet()),
k=!0,p=!1,x=null,v=null;null==u.viewState&&null==u.mapping&&null==u.root&&a.updatePageRoot(u);null!=u.viewState?(k=u.viewState.pageVisible,p=u.viewState.mathEnabled,x=u.viewState.background,v=u.viewState.backgroundImage):null!=u.mapping&&null!=u.mapping.diagramMap&&(p="0"!=u.mapping.diagramMap.get("mathEnabled"),x=u.mapping.diagramMap.get("background"),v=u.mapping.diagramMap.get("backgroundImage"),v=null!=v&&0<v.length?JSON.parse(v):null);f.background=x;f.backgroundImage=null!=v?new mxImage(v.src,
v.width,v.height):null;f.pageVisible=k;f.mathEnabled=p;var z=f.getGlobalVariable;f.getGlobalVariable=function(a){return"page"==a?u.getName():"pagenumber"==a?t+1:z.apply(this,arguments)};document.body.appendChild(f.container);a.updatePageRoot(u);f.model.setRoot(u.root)}m=c(f,m,t!=g);f!=e&&f.container.parentNode.removeChild(f.container)}}else m=c(e);m.mathEnabled&&(g=m.wnd.document,g.writeln('<script type="text/x-mathjax-config">'),g.writeln("MathJax.Hub.Config({"),g.writeln('messageStyle: "none",'),
g.writeln('jax: ["input/TeX", "input/MathML", "input/AsciiMath", "output/HTML-CSS"],'),g.writeln('extensions: ["tex2jax.js", "mml2jax.js", "asciimath2jax.js"],'),g.writeln("TeX: {"),g.writeln('extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js"]'),g.writeln("},"),g.writeln("tex2jax: {"),g.writeln('\tignoreClass: "geDisableMathJax"'),g.writeln("},"),g.writeln("asciimath2jax: {"),g.writeln('\tignoreClass: "geDisableMathJax"'),g.writeln("}"),g.writeln("});"),b&&(g.writeln("MathJax.Hub.Queue(function () {"),
g.writeln("window.print();"),g.writeln("});")),g.writeln("\x3c/script>"),g.writeln('<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js">\x3c/script>'));m.closeDocument();!m.mathEnabled&&b&&PrintDialog.printPreview(m)}var e=a.editor.graph,f=document.createElement("div"),k=document.createElement("h3");k.style.width="100%";k.style.textAlign="center";k.style.marginTop="0px";mxUtils.write(k,b||mxResources.get("print"));f.appendChild(k);var g=1,l=1,m=document.createElement("div");
m.style.cssText="border-bottom:1px solid lightGray;padding-bottom:12px;margin-bottom:12px;";var n=document.createElement("input");n.style.cssText="margin-right:8px;margin-bottom:8px;";n.setAttribute("value","all");n.setAttribute("type","radio");n.setAttribute("name","pages-printdialog");m.appendChild(n);k=document.createElement("span");mxUtils.write(k,mxResources.get("printAllPages"));m.appendChild(k);mxUtils.br(m);var p=n.cloneNode(!0);n.setAttribute("checked","checked");p.setAttribute("value","range");
m.appendChild(p);k=document.createElement("span");mxUtils.write(k,mxResources.get("pages")+":");m.appendChild(k);var q=document.createElement("input");q.style.cssText="margin:0 8px 0 8px;";q.setAttribute("value","1");q.setAttribute("type","number");q.setAttribute("min","1");q.style.width="50px";m.appendChild(q);k=document.createElement("span");mxUtils.write(k,mxResources.get("to"));m.appendChild(k);var r=q.cloneNode(!0);m.appendChild(r);mxEvent.addListener(q,"focus",function(){p.checked=!0});mxEvent.addListener(r,
"focus",function(){p.checked=!0});mxEvent.addListener(q,"change",c);mxEvent.addListener(r,"change",c);if(null!=a.pages&&(g=a.pages.length,null!=a.currentPage))for(k=0;k<a.pages.length;k++)if(a.currentPage==a.pages[k]){l=k+1;q.value=l;r.value=l;break}q.setAttribute("max",g);r.setAttribute("max",g);1<g&&f.appendChild(m);var t=document.createElement("div");t.style.marginBottom="10px";var u=document.createElement("input");u.style.marginRight="8px";u.setAttribute("value","adjust");u.setAttribute("type",
"radio");u.setAttribute("name","printZoom");t.appendChild(u);k=document.createElement("span");mxUtils.write(k,mxResources.get("adjustTo"));t.appendChild(k);var U=document.createElement("input");U.style.cssText="margin:0 8px 0 8px;";U.setAttribute("value","100 %");U.style.width="50px";t.appendChild(U);mxEvent.addListener(U,"focus",function(){u.checked=!0});f.appendChild(t);var m=m.cloneNode(!1),P=u.cloneNode(!0);P.setAttribute("value","fit");u.setAttribute("checked","checked");k=document.createElement("div");
k.style.cssText="display:inline-block;height:100%;vertical-align:top;padding-top:2px;";k.appendChild(P);m.appendChild(k);t=document.createElement("table");t.style.display="inline-block";var aa=document.createElement("tbody"),S=document.createElement("tr"),C=S.cloneNode(!0),W=document.createElement("td"),K=W.cloneNode(!0),da=W.cloneNode(!0),X=W.cloneNode(!0),O=W.cloneNode(!0),J=W.cloneNode(!0);W.style.textAlign="right";X.style.textAlign="right";mxUtils.write(W,mxResources.get("fitTo"));var M=document.createElement("input");
M.style.cssText="margin:0 8px 0 8px;";M.setAttribute("value","1");M.setAttribute("min","1");M.setAttribute("type","number");M.style.width="40px";K.appendChild(M);k=document.createElement("span");mxUtils.write(k,mxResources.get("fitToSheetsAcross"));da.appendChild(k);mxUtils.write(X,mxResources.get("fitToBy"));var T=M.cloneNode(!0);O.appendChild(T);mxEvent.addListener(M,"focus",function(){P.checked=!0});mxEvent.addListener(T,"focus",function(){P.checked=!0});k=document.createElement("span");mxUtils.write(k,
mxResources.get("fitToSheetsDown"));J.appendChild(k);S.appendChild(W);S.appendChild(K);S.appendChild(da);C.appendChild(X);C.appendChild(O);C.appendChild(J);aa.appendChild(S);aa.appendChild(C);t.appendChild(aa);m.appendChild(t);f.appendChild(m);m=document.createElement("div");k=document.createElement("div");k.style.fontWeight="bold";k.style.marginBottom="12px";mxUtils.write(k,mxResources.get("paperSize"));m.appendChild(k);k=document.createElement("div");k.style.marginBottom="12px";var ba=PageSetupDialog.addPageFormatPanel(k,
"printdialog",a.editor.graph.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT);m.appendChild(k);k=document.createElement("span");mxUtils.write(k,mxResources.get("pageScale"));m.appendChild(k);var Y=document.createElement("input");Y.style.cssText="margin:0 8px 0 8px;";Y.setAttribute("value","100 %");Y.style.width="60px";m.appendChild(Y);f.appendChild(m);k=document.createElement("div");k.style.cssText="text-align:right;margin:62px 0 0 0;";m=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});
m.className="geBtn";a.editor.cancelFirst&&k.appendChild(m);a.isOffline()||(t=mxUtils.button(mxResources.get("help"),function(){window.open("https://desk.draw.io/support/solutions/articles/16000048947")}),t.className="geBtn",k.appendChild(t));PrintDialog.previewEnabled&&(t=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();d(!1)}),t.className="geBtn",k.appendChild(t));t=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();d(!0)});t.className=
"geBtn gePrimaryBtn";k.appendChild(t);a.editor.cancelFirst||k.appendChild(m);f.appendChild(k);this.container=f}})();
c);while(c++<a&&"1"==mxUtils.getValue(this.getCellStyle(b),"locked","0"));null!=b&&this.setDefaultParent(b)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries.arrows2=[SHAPES_PATH+"/mxArrows.js"];mxStencilRegistry.libraries.atlassian=[STENCIL_PATH+"/atlassian.xml"];mxStencilRegistry.libraries.bpmn=[SHAPES_PATH+"/bpmn/mxBpmnShape2.js",STENCIL_PATH+"/bpmn.xml"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.ios=
[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+"/rack/mxRack.js",STENCIL_PATH+"/rack/general.xml"];mxStencilRegistry.libraries.rackF5=[STENCIL_PATH+"/rack/f5.xml"];mxStencilRegistry.libraries.lean_mapping=[SHAPES_PATH+"/mxLeanMap.js",STENCIL_PATH+"/lean_mapping.xml"];mxStencilRegistry.libraries.basic=[SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/basic.xml"];mxStencilRegistry.libraries.ios7icons=[STENCIL_PATH+"/ios7/icons.xml"];mxStencilRegistry.libraries.ios7ui=
[SHAPES_PATH+"/ios7/mxIOS7Ui.js",STENCIL_PATH+"/ios7/misc.xml"];mxStencilRegistry.libraries.android=[SHAPES_PATH+"/mxAndroid.js",STENCIL_PATH+"/android/android.xml"];mxStencilRegistry.libraries["electrical/transmission"]=[SHAPES_PATH+"/mxElectrical.js",STENCIL_PATH+"/electrical/transmission.xml"];mxStencilRegistry.libraries["mockup/buttons"]=[SHAPES_PATH+"/mockup/mxMockupButtons.js"];mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=
[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=
[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+"/gmdl.xml"];mxStencilRegistry.libraries.cabinets=[SHAPES_PATH+"/mxCabinets.js",STENCIL_PATH+"/cabinets.xml"];mxStencilRegistry.libraries.archimate=[SHAPES_PATH+"/mxArchiMate.js"];mxStencilRegistry.libraries.archimate3=
[SHAPES_PATH+"/mxArchiMate3.js"];mxStencilRegistry.libraries.sysml=[SHAPES_PATH+"/mxSysML.js"];mxStencilRegistry.libraries.eip=[SHAPES_PATH+"/mxEip.js",STENCIL_PATH+"/eip.xml"];mxStencilRegistry.libraries.networks=[SHAPES_PATH+"/mxNetworks.js",STENCIL_PATH+"/networks.xml"];mxStencilRegistry.libraries.aws3d=[SHAPES_PATH+"/mxAWS3D.js",STENCIL_PATH+"/aws3d.xml"];mxStencilRegistry.libraries.pid2inst=[SHAPES_PATH+"/pid2/mxPidInstruments.js"];mxStencilRegistry.libraries.pid2misc=[SHAPES_PATH+"/pid2/mxPidMisc.js",
STENCIL_PATH+"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(a){var b=null;null!=a&&0<a.length&&("ER"==a.substring(0,2)?b="mxgraph.er":"sysML"==a.substring(0,5)&&(b="mxgraph.sysml"));return b};var r=mxMarker.createMarker;mxMarker.createMarker=function(a,b,c,d,e,f,k,g,l,m){if(null!=c&&null==mxMarker.markers[c]){var n=this.getPackageForType(c);
null!=n&&mxStencilRegistry.getStencil(n)}return r.apply(this,arguments)};PrintDialog.prototype.create=function(a,b){function c(){r.value=Math.max(1,Math.min(g,Math.max(parseInt(r.value),parseInt(q.value))));q.value=Math.max(1,Math.min(g,Math.min(parseInt(r.value),parseInt(q.value))))}function d(b){function c(a,b,c){var e=a.getGraphBounds(),f=0,k=0,g=ba.get(),l=1/a.pageScale,m=P.checked;if(m)var l=parseInt(M.value),n=parseInt(T.value),l=Math.min(g.height*n/(e.height/a.view.scale),g.width*l/(e.width/
a.view.scale));else l=parseInt(U.value)/(100*a.pageScale),isNaN(l)&&(d=1/a.pageScale,U.value="100 %");g=mxRectangle.fromRectangle(g);g.width=Math.ceil(g.width*d);g.height=Math.ceil(g.height*d);l*=d;!m&&a.pageVisible?(e=a.getPageLayout(),f-=e.x*g.width,k-=e.y*g.height):m=!0;if(null==b){b=PrintDialog.createPrintPreview(a,l,g,0,f,k,m);b.pageSelector=!1;b.mathEnabled=!1;if("undefined"!==typeof MathJax){var p=b.renderPage;b.renderPage=function(a,b,c,d,e,f){var k=p.apply(this,arguments);this.graph.mathEnabled?
this.mathEnabled=!0:k.className="geDisableMathJax";return k}}b.open(null,null,c,!0)}else{g=a.background;if(null==g||""==g||g==mxConstants.NONE)g="#ffffff";b.backgroundColor=g;b.autoOrigin=m;b.appendGraph(a,l,f,k,c,!0)}return b}var d=parseInt(Y.value)/100;isNaN(d)&&(d=1,Y.value="100 %");var d=.75*d,f=q.value,k=r.value,g=!n.checked,m=null;g&&(g=f==l&&k==l);if(!g&&null!=a.pages&&a.pages.length){var p=0,g=a.pages.length-1;n.checked||(p=parseInt(f)-1,g=parseInt(k)-1);for(var t=p;t<=g;t++){var u=a.pages[t],
f=u==a.currentPage?e:null;if(null==f){var f=a.createTemporaryGraph(e.getStylesheet()),k=!0,p=!1,x=null,v=null;null==u.viewState&&null==u.mapping&&null==u.root&&a.updatePageRoot(u);null!=u.viewState?(k=u.viewState.pageVisible,p=u.viewState.mathEnabled,x=u.viewState.background,v=u.viewState.backgroundImage):null!=u.mapping&&null!=u.mapping.diagramMap&&(p="0"!=u.mapping.diagramMap.get("mathEnabled"),x=u.mapping.diagramMap.get("background"),v=u.mapping.diagramMap.get("backgroundImage"),v=null!=v&&0<v.length?
JSON.parse(v):null);f.background=x;f.backgroundImage=null!=v?new mxImage(v.src,v.width,v.height):null;f.pageVisible=k;f.mathEnabled=p;var z=f.getGlobalVariable;f.getGlobalVariable=function(a){return"page"==a?u.getName():"pagenumber"==a?t+1:z.apply(this,arguments)};document.body.appendChild(f.container);a.updatePageRoot(u);f.model.setRoot(u.root)}m=c(f,m,t!=g);f!=e&&f.container.parentNode.removeChild(f.container)}}else m=c(e);m.mathEnabled&&(g=m.wnd.document,g.writeln('<script type="text/x-mathjax-config">'),
g.writeln("MathJax.Hub.Config({"),g.writeln('messageStyle: "none",'),g.writeln('jax: ["input/TeX", "input/MathML", "input/AsciiMath", "output/HTML-CSS"],'),g.writeln('extensions: ["tex2jax.js", "mml2jax.js", "asciimath2jax.js"],'),g.writeln("TeX: {"),g.writeln('extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js"]'),g.writeln("},"),g.writeln("tex2jax: {"),g.writeln('\tignoreClass: "geDisableMathJax"'),g.writeln("},"),g.writeln("asciimath2jax: {"),g.writeln('\tignoreClass: "geDisableMathJax"'),
g.writeln("}"),g.writeln("});"),b&&(g.writeln("MathJax.Hub.Queue(function () {"),g.writeln("window.print();"),g.writeln("});")),g.writeln("\x3c/script>"),g.writeln('<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js">\x3c/script>'));m.closeDocument();!m.mathEnabled&&b&&PrintDialog.printPreview(m)}var e=a.editor.graph,f=document.createElement("div"),k=document.createElement("h3");k.style.width="100%";k.style.textAlign="center";k.style.marginTop="0px";
mxUtils.write(k,b||mxResources.get("print"));f.appendChild(k);var g=1,l=1,m=document.createElement("div");m.style.cssText="border-bottom:1px solid lightGray;padding-bottom:12px;margin-bottom:12px;";var n=document.createElement("input");n.style.cssText="margin-right:8px;margin-bottom:8px;";n.setAttribute("value","all");n.setAttribute("type","radio");n.setAttribute("name","pages-printdialog");m.appendChild(n);k=document.createElement("span");mxUtils.write(k,mxResources.get("printAllPages"));m.appendChild(k);
mxUtils.br(m);var p=n.cloneNode(!0);n.setAttribute("checked","checked");p.setAttribute("value","range");m.appendChild(p);k=document.createElement("span");mxUtils.write(k,mxResources.get("pages")+":");m.appendChild(k);var q=document.createElement("input");q.style.cssText="margin:0 8px 0 8px;";q.setAttribute("value","1");q.setAttribute("type","number");q.setAttribute("min","1");q.style.width="50px";m.appendChild(q);k=document.createElement("span");mxUtils.write(k,mxResources.get("to"));m.appendChild(k);
var r=q.cloneNode(!0);m.appendChild(r);mxEvent.addListener(q,"focus",function(){p.checked=!0});mxEvent.addListener(r,"focus",function(){p.checked=!0});mxEvent.addListener(q,"change",c);mxEvent.addListener(r,"change",c);if(null!=a.pages&&(g=a.pages.length,null!=a.currentPage))for(k=0;k<a.pages.length;k++)if(a.currentPage==a.pages[k]){l=k+1;q.value=l;r.value=l;break}q.setAttribute("max",g);r.setAttribute("max",g);1<g&&f.appendChild(m);var t=document.createElement("div");t.style.marginBottom="10px";
var u=document.createElement("input");u.style.marginRight="8px";u.setAttribute("value","adjust");u.setAttribute("type","radio");u.setAttribute("name","printZoom");t.appendChild(u);k=document.createElement("span");mxUtils.write(k,mxResources.get("adjustTo"));t.appendChild(k);var U=document.createElement("input");U.style.cssText="margin:0 8px 0 8px;";U.setAttribute("value","100 %");U.style.width="50px";t.appendChild(U);mxEvent.addListener(U,"focus",function(){u.checked=!0});f.appendChild(t);var m=m.cloneNode(!1),
P=u.cloneNode(!0);P.setAttribute("value","fit");u.setAttribute("checked","checked");k=document.createElement("div");k.style.cssText="display:inline-block;height:100%;vertical-align:top;padding-top:2px;";k.appendChild(P);m.appendChild(k);t=document.createElement("table");t.style.display="inline-block";var aa=document.createElement("tbody"),S=document.createElement("tr"),C=S.cloneNode(!0),W=document.createElement("td"),K=W.cloneNode(!0),da=W.cloneNode(!0),X=W.cloneNode(!0),O=W.cloneNode(!0),J=W.cloneNode(!0);
W.style.textAlign="right";X.style.textAlign="right";mxUtils.write(W,mxResources.get("fitTo"));var M=document.createElement("input");M.style.cssText="margin:0 8px 0 8px;";M.setAttribute("value","1");M.setAttribute("min","1");M.setAttribute("type","number");M.style.width="40px";K.appendChild(M);k=document.createElement("span");mxUtils.write(k,mxResources.get("fitToSheetsAcross"));da.appendChild(k);mxUtils.write(X,mxResources.get("fitToBy"));var T=M.cloneNode(!0);O.appendChild(T);mxEvent.addListener(M,
"focus",function(){P.checked=!0});mxEvent.addListener(T,"focus",function(){P.checked=!0});k=document.createElement("span");mxUtils.write(k,mxResources.get("fitToSheetsDown"));J.appendChild(k);S.appendChild(W);S.appendChild(K);S.appendChild(da);C.appendChild(X);C.appendChild(O);C.appendChild(J);aa.appendChild(S);aa.appendChild(C);t.appendChild(aa);m.appendChild(t);f.appendChild(m);m=document.createElement("div");k=document.createElement("div");k.style.fontWeight="bold";k.style.marginBottom="12px";
mxUtils.write(k,mxResources.get("paperSize"));m.appendChild(k);k=document.createElement("div");k.style.marginBottom="12px";var ba=PageSetupDialog.addPageFormatPanel(k,"printdialog",a.editor.graph.pageFormat||mxConstants.PAGE_FORMAT_A4_PORTRAIT);m.appendChild(k);k=document.createElement("span");mxUtils.write(k,mxResources.get("pageScale"));m.appendChild(k);var Y=document.createElement("input");Y.style.cssText="margin:0 8px 0 8px;";Y.setAttribute("value","100 %");Y.style.width="60px";m.appendChild(Y);
f.appendChild(m);k=document.createElement("div");k.style.cssText="text-align:right;margin:62px 0 0 0;";m=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});m.className="geBtn";a.editor.cancelFirst&&k.appendChild(m);a.isOffline()||(t=mxUtils.button(mxResources.get("help"),function(){window.open("https://desk.draw.io/support/solutions/articles/16000048947")}),t.className="geBtn",k.appendChild(t));PrintDialog.previewEnabled&&(t=mxUtils.button(mxResources.get("preview"),function(){a.hideDialog();
d(!1)}),t.className="geBtn",k.appendChild(t));t=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){a.hideDialog();d(!0)});t.className="geBtn gePrimaryBtn";k.appendChild(t);a.editor.cancelFirst||k.appendChild(m);f.appendChild(k);this.container=f}})();
(function(){EditorUi.VERSION="@DRAWIO-VERSION@";EditorUi.compactUi="atlas"!=uiTheme;EditorUi.isElectronApp=null!=window&&null!=window.process&&null!=window.process.versions&&null!=window.process.versions.electron;EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode=null;EditorUi.prototype.sidebarFooterHeight=36;EditorUi.prototype.defaultCustomShapeStyle=
"shape=stencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE=);whiteSpace=wrap;html=1;";EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=1E6;
EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.currentFile=null;EditorUi.prototype.enableLogging=/.*\.draw\.io$/.test(window.location.hostname);EditorUi.prototype.printPdfExport=!1;EditorUi.prototype.pdfPageExport=!0;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;try{var a=document.createElement("canvas"),b=new Image;b.onload=function(){try{a.getContext("2d").drawImage(b,0,0);var c=a.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=