diff options
author | Gaudenz Alder <alderg@gmail.com> | 2017-01-18 18:54:52 +0300 |
---|---|---|
committer | Gaudenz Alder <alderg@gmail.com> | 2017-01-18 18:54:52 +0300 |
commit | 8a88bd116dc2ff28ef605f4b1437ef280316818c (patch) | |
tree | d1ed7063a90e80f01261e604d5ea252d555803f3 | |
parent | bafe685031feb2617d001c48cbefb2cadde1eab5 (diff) |
6.0.2.12 releasev6.0.2.12
Former-commit-id: 7e6e255c9468cca345eeca4d99832789617b981b
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | war/cache.manifest | 2 | ||||
-rw-r--r-- | war/export2.html | 4 | ||||
-rw-r--r-- | war/js/app.min.js | 29 | ||||
-rw-r--r-- | war/js/atlas-viewer.min.js | 6 | ||||
-rw-r--r-- | war/js/atlas.min.js | 29 | ||||
-rw-r--r-- | war/js/diagramly/App.js | 2 | ||||
-rw-r--r-- | war/js/diagramly/EditorUi.js | 5 | ||||
-rw-r--r-- | war/js/embed-static.min.js | 2 | ||||
-rw-r--r-- | war/js/mxgraph/Actions.js | 2 | ||||
-rw-r--r-- | war/js/mxgraph/Dialogs.js | 126 | ||||
-rw-r--r-- | war/js/reader.min.js | 2 | ||||
-rw-r--r-- | war/js/viewer.min.js | 6 |
14 files changed, 176 insertions, 45 deletions
@@ -1,3 +1,7 @@ +18-JAN-2017: 6.0.2.12 + +- Adds width, height in advanced export dialog + 18-JAN-2017: 6.0.2.11 - Adds crop option for SVG and image export @@ -1 +1 @@ -6.0.2.11
\ No newline at end of file +6.0.2.12
\ No newline at end of file diff --git a/war/cache.manifest b/war/cache.manifest index f368d4a2..8baea8ed 100644 --- a/war/cache.manifest +++ b/war/cache.manifest @@ -1,7 +1,7 @@ CACHE MANIFEST # THIS FILE WAS GENERATED. DO NOT MODIFY! -# 01/18/2017 08:29 AM +# 01/18/2017 04:49 PM /app.html /index.html?offline=1 diff --git a/war/export2.html b/war/export2.html index 6716f731..8defccc1 100644 --- a/war/export2.html +++ b/war/export2.html @@ -29,8 +29,8 @@ { var graph = new Graph(document.getElementById('graph')); data.border = parseInt(data.border) || 0; - data.w = parseInt(data.w) || 0; - data.h = parseInt(data.h) || 0; + data.w = parseFloat(data.w) || 0; + data.h = parseFloat(data.h) || 0; // Parses XML var xmlDoc = mxUtils.parseXml(data.xml); diff --git a/war/js/app.min.js b/war/js/app.min.js index 47403e4b..b8dd4075 100644 --- a/war/js/app.min.js +++ b/war/js/app.min.js @@ -2696,7 +2696,7 @@ mxRectangleShape.prototype.constraints;p.prototype.constraints=mxRectangleShape. 0.25),!1),new mxConnectionConstraint(new mxPoint(0.25,0.5),!1),new mxConnectionConstraint(new mxPoint(0.175,0.75),!1),new mxConnectionConstraint(new mxPoint(1,0.5),!1),new mxConnectionConstraint(new mxPoint(0.7,0.1),!1),new mxConnectionConstraint(new mxPoint(0.7,0.9),!1)]})();function Actions(a){this.editorUi=a;this.actions={};this.init()} Actions.prototype.init=function(){function a(b){d.escape();var a=d.getDeletableCells(d.getSelectionCells());if(null!=a&&0<a.length){var c=d.model.getParents(a);d.removeCells(a,b);if(null!=c){b=[];for(a=0;a<c.length;a++)(d.model.isVertex(c[a])||d.model.isEdge(c[a]))&&b.push(c[a]);d.setSelectionCells(b)}}}var c=this.editorUi,f=c.editor,d=f.graph,b=function(){return Action.prototype.isEnabled.apply(this,arguments)&&d.isEnabled()};this.addAction("new...",function(){window.open(c.getUrl())});this.addAction("open...", function(){window.openNew=!0;window.openKey="open";c.openFile()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){c.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(b,a){try{var d=mxUtils.parseXml(b),c=new mxGraphModel;(new mxCodec(d)).decode(d.documentElement,c);var e=c.getChildren(c.getChildAt(c.getRoot(),0));f.graph.setSelectionCells(f.graph.importCells(e))}catch(p){mxUtils.alert(mxResources.get("invalidOrMissingFile")+ -": "+p.message)}}));c.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=b;this.addAction("save",function(){c.saveFile(!1)},null,null,"Ctrl+S").isEnabled=b;this.addAction("saveAs...",function(){c.saveFile(!0)},null,null,"Ctrl+Shift+S").isEnabled=b;this.addAction("export...",function(){c.showDialog((new ExportDialog(c)).container,300,180,!0,!0)});this.addAction("editDiagram...",function(){var b=new EditDiagramDialog(c);c.showDialog(b.container,620, +": "+p.message)}}));c.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=b;this.addAction("save",function(){c.saveFile(!1)},null,null,"Ctrl+S").isEnabled=b;this.addAction("saveAs...",function(){c.saveFile(!0)},null,null,"Ctrl+Shift+S").isEnabled=b;this.addAction("export...",function(){c.showDialog((new ExportDialog(c)).container,300,230,!0,!0)});this.addAction("editDiagram...",function(){var b=new EditDiagramDialog(c);c.showDialog(b.container,620, 420,!0,!0);b.init()});this.addAction("pageSetup...",function(){c.showDialog((new PageSetupDialog(c)).container,320,220,!0,!0)}).isEnabled=b;this.addAction("print...",function(){c.showDialog((new PrintDialog(c)).container,300,180,!0,!0)},null,"sprite-print","Ctrl+P");this.addAction("preview",function(){mxUtils.show(d,null,10,10)});this.addAction("undo",function(){c.undo()},null,"sprite-undo","Ctrl+Z");this.addAction("redo",function(){c.redo()},null,"sprite-redo",!mxClient.IS_WIN?"Ctrl+Shift+Z":"Ctrl+Y"); this.addAction("cut",function(){mxClipboard.cut(d)},null,"sprite-cut","Ctrl+X");this.addAction("copy",function(){mxClipboard.copy(d)},null,"sprite-copy","Ctrl+C");this.addAction("paste",function(){d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&mxClipboard.paste(d)},!1,"sprite-paste","Ctrl+V");this.addAction("pasteHere",function(b){if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())){d.getModel().beginUpdate();try{var a=mxClipboard.paste(d);if(null!=a){var c=d.getBoundingBoxFromGeometry(a); if(null!=c){var e=d.view.translate,f=d.view.scale,p=e.y,s=Math.round(d.snap(d.popupMenuHandler.triggerX/f-e.x)),t=Math.round(d.snap(d.popupMenuHandler.triggerY/f-p));d.cellsMoved(a,s-c.x,t-c.y)}}}finally{d.getModel().endUpdate()}}});this.addAction("delete",function(b){a(null!=b&&mxEvent.isShiftDown(b))},null,null,"Delete");this.addAction("deleteAll",function(){a(!0)},null,null,"Ctrl+Delete");this.addAction("duplicate",function(){d.setSelectionCells(d.duplicateCells())},null,null,"Ctrl+D");this.addAction("turn", @@ -3088,15 +3088,18 @@ function(){a.hideDialog();null!=b&&b()});c.className="geBtn";a.editor.cancelFirs function(b){f.value=b.target.result};d.readAsText(b)}else f.value=a.extractGraphModelFromEvent(b)},!1));var d=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});d.className="geBtn";a.editor.cancelFirst&&c.appendChild(d);var b=document.createElement("select");b.style.width="180px";b.className="geBtn";if(a.editor.graph.isEnabled()){var e=document.createElement("option");e.setAttribute("value","replace");mxUtils.write(e,mxResources.get("replaceExistingDrawing"));b.appendChild(e)}e= document.createElement("option");e.setAttribute("value","new");mxUtils.write(e,mxResources.get("openInNewWindow"));null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime||b.appendChild(e);a.editor.graph.isEnabled()&&(e=document.createElement("option"),e.setAttribute("value","import"),mxUtils.write(e,mxResources.get("addToExistingDrawing")),b.appendChild(e));c.appendChild(b);e=mxUtils.button(mxResources.get("ok"),function(){var d=a.editor.graph.zapGremlins(mxUtils.trim(f.value)),c=null;if("new"== b.value)window.openFile=new OpenFile(function(){a.hideDialog();window.openFile=null}),window.openFile.setData(d,null),window.open(a.getUrl());else if("replace"==b.value){a.editor.graph.model.beginUpdate();try{a.editor.setGraphXml(mxUtils.parseXml(d).documentElement),a.hideDialog()}catch(e){c=e}finally{a.editor.graph.model.endUpdate()}}else if("import"==b.value){a.editor.graph.model.beginUpdate();try{var n=mxUtils.parseXml(d),m=new mxGraphModel;(new mxCodec(n)).decode(n.documentElement,m);var p=m.getChildren(m.getChildAt(m.getRoot(), -0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(p));a.hideDialog()}catch(s){c=s}finally{a.editor.graph.model.endUpdate()}}null!=c&&mxUtils.alert(c.message)});e.className="geBtn gePrimaryBtn";c.appendChild(e);a.editor.cancelFirst||c.appendChild(d);this.container=c},ExportDialog=function(a){function c(){var b=k.value,a=b.lastIndexOf(".");k.value=0<a?b.substring(0,a+1)+l.value:b+"."+l.value;"xml"===l.value?(n.setAttribute("disabled","true"),p.setAttribute("disabled","true")):(n.removeAttribute("disabled"), -p.removeAttribute("disabled"));"png"===l.value||"svg"===l.value?m.removeAttribute("disabled"):m.setAttribute("disabled","disabled")}var f=a.editor.graph,d,b,e=document.createElement("table"),g=document.createElement("tbody");e.setAttribute("cellpadding","2");d=document.createElement("tr");b=document.createElement("td");b.style.fontSize="10pt";b.style.width="100px";mxUtils.write(b,mxResources.get("filename")+":");d.appendChild(b);var k=document.createElement("input");k.setAttribute("value",a.editor.getOrCreateFilename()); -k.style.width="180px";b=document.createElement("td");b.appendChild(k);d.appendChild(b);g.appendChild(d);d=document.createElement("tr");b=document.createElement("td");b.style.fontSize="10pt";mxUtils.write(b,mxResources.get("format")+":");d.appendChild(b);var l=document.createElement("select");l.style.width="180px";b=document.createElement("option");b.setAttribute("value","png");mxUtils.write(b,mxResources.get("formatPng"));l.appendChild(b);b=document.createElement("option");ExportDialog.showGifOption&& -(b.setAttribute("value","gif"),mxUtils.write(b,mxResources.get("formatGif")),l.appendChild(b));b=document.createElement("option");b.setAttribute("value","jpg");mxUtils.write(b,mxResources.get("formatJpg"));l.appendChild(b);b=document.createElement("option");b.setAttribute("value","pdf");mxUtils.write(b,mxResources.get("formatPdf"));l.appendChild(b);b=document.createElement("option");b.setAttribute("value","svg");mxUtils.write(b,mxResources.get("formatSvg"));l.appendChild(b);ExportDialog.showXmlOption&& -(b=document.createElement("option"),b.setAttribute("value","xml"),mxUtils.write(b,mxResources.get("formatXml")),l.appendChild(b));b=document.createElement("td");b.appendChild(l);d.appendChild(b);g.appendChild(d);d=document.createElement("tr");b=document.createElement("td");b.style.fontSize="10pt";mxUtils.write(b,mxResources.get("zoom")+" (%):");d.appendChild(b);var n=document.createElement("input");n.setAttribute("type","number");n.setAttribute("value","100");n.style.width="180px";b=document.createElement("td"); -b.appendChild(n);d.appendChild(b);g.appendChild(d);d=document.createElement("tr");b=document.createElement("td");b.style.fontSize="10pt";mxUtils.write(b,mxResources.get("background")+":");d.appendChild(b);var m=document.createElement("input");m.setAttribute("type","checkbox");m.checked=null==f.background||f.background==mxConstants.NONE;b=document.createElement("td");b.appendChild(m);mxUtils.write(b,mxResources.get("transparent"));d.appendChild(b);g.appendChild(d);d=document.createElement("tr");b= -document.createElement("td");b.style.fontSize="10pt";mxUtils.write(b,mxResources.get("borderWidth")+":");d.appendChild(b);var p=document.createElement("input");p.setAttribute("type","number");p.setAttribute("value","0");p.style.width="180px";b=document.createElement("td");b.appendChild(p);d.appendChild(b);g.appendChild(d);e.appendChild(g);mxEvent.addListener(l,"change",c);c();mxEvent.addListener(n,"change",function(){n.value=Math.max(0,parseInt(n.value)||100)});d=document.createElement("tr");b=document.createElement("td"); -b.setAttribute("align","right");b.style.paddingTop="22px";b.colSpan=2;var s=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(n.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var b=k.value,d=l.value,c=Math.max(0,parseInt(n.value)||100)/100,e=Math.max(0,parseInt(p.value)),g=f.background;if(("svg"==d||"png"==d)&&m.checked)g=null;else if(null==g||g==mxConstants.NONE)g="#ffffff";ExportDialog.exportFile(a,b,d,g,c,e)}}));s.className="geBtn gePrimaryBtn";var t= -mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});t.className="geBtn";a.editor.cancelFirst?(b.appendChild(t),b.appendChild(s)):(b.appendChild(s),b.appendChild(t));d.appendChild(b);g.appendChild(d);e.appendChild(g);this.container=e};ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0; +0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(p));a.hideDialog()}catch(s){c=s}finally{a.editor.graph.model.endUpdate()}}null!=c&&mxUtils.alert(c.message)});e.className="geBtn gePrimaryBtn";c.appendChild(e);a.editor.cancelFirst||c.appendChild(d);this.container=c},ExportDialog=function(a){function c(){var b=m.value,a=b.lastIndexOf(".");m.value=0<a?b.substring(0,a+1)+p.value:b+"."+p.value;"xml"===p.value?(s.setAttribute("disabled","true"),t.setAttribute("disabled","true"),q.setAttribute("disabled", +"true"),u.setAttribute("disabled","true")):(s.removeAttribute("disabled"),t.removeAttribute("disabled"),q.removeAttribute("disabled"),u.removeAttribute("disabled"));"png"===p.value||"svg"===p.value?v.removeAttribute("disabled"):v.setAttribute("disabled","disabled")}function f(){t.style.backgroundColor=t.value*q.value>MAX_AREA||0>=t.value?"red":"";q.style.backgroundColor=t.value*q.value>MAX_AREA||0>=q.value?"red":""}var d=a.editor.graph,b=d.getGraphBounds(),e=d.view.scale,g=Math.ceil(b.width/e),k= +Math.ceil(b.height/e),l,e=document.createElement("table"),n=document.createElement("tbody");e.setAttribute("cellpadding","2");b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";l.style.width="100px";mxUtils.write(l,mxResources.get("filename")+":");b.appendChild(l);var m=document.createElement("input");m.setAttribute("value",a.editor.getOrCreateFilename());m.style.width="180px";l=document.createElement("td");l.appendChild(m);b.appendChild(l);n.appendChild(b);b=document.createElement("tr"); +l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("format")+":");b.appendChild(l);var p=document.createElement("select");p.style.width="180px";l=document.createElement("option");l.setAttribute("value","png");mxUtils.write(l,mxResources.get("formatPng"));p.appendChild(l);l=document.createElement("option");ExportDialog.showGifOption&&(l.setAttribute("value","gif"),mxUtils.write(l,mxResources.get("formatGif")),p.appendChild(l));l=document.createElement("option"); +l.setAttribute("value","jpg");mxUtils.write(l,mxResources.get("formatJpg"));p.appendChild(l);l=document.createElement("option");l.setAttribute("value","pdf");mxUtils.write(l,mxResources.get("formatPdf"));p.appendChild(l);l=document.createElement("option");l.setAttribute("value","svg");mxUtils.write(l,mxResources.get("formatSvg"));p.appendChild(l);ExportDialog.showXmlOption&&(l=document.createElement("option"),l.setAttribute("value","xml"),mxUtils.write(l,mxResources.get("formatXml")),p.appendChild(l)); +l=document.createElement("td");l.appendChild(p);b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("zoom")+" (%):");b.appendChild(l);var s=document.createElement("input");s.setAttribute("type","number");s.setAttribute("value","100");s.style.width="180px";l=document.createElement("td");l.appendChild(s);b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize= +"10pt";mxUtils.write(l,mxResources.get("width")+":");b.appendChild(l);var t=document.createElement("input");t.setAttribute("value",g);t.style.width="180px";l=document.createElement("td");l.appendChild(t);b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("height")+":");b.appendChild(l);var q=document.createElement("input");q.setAttribute("value",k);q.style.width="180px";l=document.createElement("td"); +l.appendChild(q);b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("background")+":");b.appendChild(l);var v=document.createElement("input");v.setAttribute("type","checkbox");v.checked=null==d.background||d.background==mxConstants.NONE;l=document.createElement("td");l.appendChild(v);mxUtils.write(l,mxResources.get("transparent"));b.appendChild(l);n.appendChild(b);b=document.createElement("tr");l= +document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("borderWidth")+":");b.appendChild(l);var u=document.createElement("input");u.setAttribute("type","number");u.setAttribute("value","0");u.style.width="180px";l=document.createElement("td");l.appendChild(u);b.appendChild(l);n.appendChild(b);e.appendChild(n);mxEvent.addListener(p,"change",c);c();mxEvent.addListener(s,"change",function(){var b=Math.max(0,parseFloat(s.value)||100)/100;s.value=parseFloat((100*b).toFixed(2)); +0<g?(t.value=Math.floor(g*b),q.value=Math.floor(k*b)):(s.value="100",t.value=g,q.value=k);f()});mxEvent.addListener(t,"change",function(){var b=parseInt(t.value)/g;0<b?(s.value=parseFloat((100*b).toFixed(2)),q.value=Math.floor(k*b)):(s.value="100",t.value=g,q.value=k);f()});mxEvent.addListener(q,"change",function(){var b=parseInt(q.value)/k;0<b?(s.value=parseFloat((100*b).toFixed(2)),t.value=Math.floor(g*b)):(s.value="100",t.value=g,q.value=k);f()});b=document.createElement("tr");l=document.createElement("td"); +l.setAttribute("align","right");l.style.paddingTop="22px";l.colSpan=2;var x=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(s.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var b=m.value,c=p.value,e=Math.max(0,parseFloat(s.value)||100)/100,f=Math.max(0,parseInt(u.value)),g=d.background;if(("svg"==c||"png"==c)&&v.checked)g=null;else if(null==g||g==mxConstants.NONE)g="#ffffff";ExportDialog.exportFile(a,b,c,g,e,f)}}));x.className="geBtn gePrimaryBtn"; +var A=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});A.className="geBtn";a.editor.cancelFirst?(l.appendChild(A),l.appendChild(x)):(l.appendChild(x),l.appendChild(A));b.appendChild(l);n.appendChild(b);e.appendChild(n);this.container=e};ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0; ExportDialog.exportFile=function(a,c,f,d,b,e){var g=a.editor.graph;if("xml"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),c,f);else if("svg"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(g.getSvg(d,b,e)),c,f);else{var k=g.getGraphBounds(),l=mxUtils.createXmlDocument(),n=l.createElement("output");l.appendChild(n);l=new mxXmlCanvas2D(n);l.translate(Math.floor((e/b-k.x)/g.view.scale),Math.floor((e/b-k.y)/g.view.scale));l.scale(b/g.view.scale);(new mxImageExport).drawState(g.getView().getState(g.model.root), l);n="xml\x3d"+encodeURIComponent(mxUtils.getXml(n));l=Math.ceil(k.width*b/g.view.scale+2*e);b=Math.ceil(k.height*b/g.view.scale+2*e);n.length<=MAX_REQUEST_SIZE&&l*b<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format\x3d"+f+"\x26filename\x3d"+encodeURIComponent(c)+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+l+"\x26h\x3d"+b+"\x26"+n)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}}; ExportDialog.saveLocalFile=function(a,c,f,d){c.length<MAX_REQUEST_SIZE?(a.hideDialog(),(new mxXmlRequest(SAVE_URL,"xml\x3d"+encodeURIComponent(c)+"\x26filename\x3d"+encodeURIComponent(f)+"\x26format\x3d"+d)).simulate(document,"_blank")):(mxUtils.alert(mxResources.get("drawingTooLarge")),mxUtils.popup(xml))}; @@ -7553,7 +7556,7 @@ c);while(c++<a&&"1"==mxUtils.getValue(this.getCellStyle(b),"locked","0"));null!= [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 t=mxMarker.createMarker;mxMarker.createMarker=function(a,b,c,d,e,f,k,g,l,n){if(null!=c&&null==mxMarker.markers[c]){var m=this.getPackageForType(c);null!=m&&mxStencilRegistry.getStencil(m)}return t.apply(this,arguments)}})();(function(){EditorUi.VERSION="6.0.2.11";EditorUi.compactUi="atlas"!=uiTheme;EditorUi.isElectronApp=window&&window.process&&window.process.type;EditorUi.plusImage=!mxClient.IS_SVG?IMAGE_PATH+"/plus.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2Fy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ZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PtjrjmgAAAAtSURBVHjaYvz//z8DMigvLwcLdHZ2MiKLMzEQCaivkLGsrOw/dU0cAr4GCDAARQsQbTFrv10AAAAASUVORK5CYII\x3d"; +[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 t=mxMarker.createMarker;mxMarker.createMarker=function(a,b,c,d,e,f,k,g,l,n){if(null!=c&&null==mxMarker.markers[c]){var m=this.getPackageForType(c);null!=m&&mxStencilRegistry.getStencil(m)}return t.apply(this,arguments)}})();(function(){EditorUi.VERSION="6.0.2.12";EditorUi.compactUi="atlas"!=uiTheme;EditorUi.isElectronApp=window&&window.process&&window.process.type;EditorUi.plusImage=!mxClient.IS_SVG?IMAGE_PATH+"/plus.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9Ii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jqV2kaeAmq6FnbGFnrGLorWNpLaQp7mRqLmYrb2essGgs8Klt8apusitvcquv8u2xNC7yNO8ydS8ytTAzdfBzdfM1t7N197Q2eDU3OPX3+XZ4ObZ4ebc4+jf5erg5erg5uvp7fDu8fPv8vTz9fb09vf19/j3+Pn4+fn5+vr6+/v///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGRUCYcEgspkwjEKhUVJ1QsBNp0xm2VixiSOMRvlxFGAcTJook5eEHIhQcwpWIkAFQECkNy9AQWFwyEAkPRQ4FAwQIE2llQQAh+QQJCgAvACwAAAAADAAMAIVNcY5SdZFigptph6BvjKN0kKd8lquAmq+EnbGGn7KHn7ONpLaOpbearr+csMCdscCescGhtMOnuMauvsuzws60w862xdC9ytW/y9a/zNbCztjG0drH0tvK1N3M1t7N19/U3ePb4uff5urj6Ozk6e3l6u7m6u7o7PDq7vDt8PPv8vTw8vTw8/X19vf6+vv///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGQ8CXcEgsvlytVUplJLJIpSEDUESFTELBwSgCCQEV42kjDFiMo4uQsDB2MkLHoEHUTD7DRAHC8VAiZ0QSCgYIDxhNiUEAOw\x3d\x3d"; EditorUi.prototype.emptyDiagramXml='\x3cmxGraphModel\x3e\x3croot\x3e\x3cmxCell id\x3d"0"/\x3e\x3cmxCell id\x3d"1" parent\x3d"0"/\x3e\x3c/root\x3e\x3c/mxGraphModel\x3e';EditorUi.prototype.emptyLibraryXml="\x3cmxlibrary\x3e[]\x3c/mxlibrary\x3e";EditorUi.prototype.mode=null;EditorUi.prototype.sidebarFooterHeight=36;EditorUi.prototype.defaultCustomShapeStyle="shape\x3dstencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE\x3d);whiteSpace\x3dwrap;html\x3d1;"; EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=1E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.currentFile=null;(function(){EditorUi.prototype.useCanvasForExport=!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(d){}}; @@ -7752,8 +7755,8 @@ var e=window.setTimeout(mxUtils.bind(this,function(){d.status==d.IDLE&&(this.off c=null!=b&&b.isEditable()||"1"==urlParams.embed;this.actions.get("pageSetup").setEnabled(c);this.actions.get("autosave").setEnabled(null!=b&&b.isEditable()&&b.isAutosaveOptional());this.actions.get("guides").setEnabled(c);this.actions.get("shadowVisible").setEnabled(c);this.actions.get("connectionArrows").setEnabled(c);this.actions.get("connectionPoints").setEnabled(c);this.actions.get("copyStyle").setEnabled(c&&!a.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(c&&!a.isSelectionEmpty()); this.actions.get("editGeometry").setEnabled(a.getModel().isVertex(a.getSelectionCell()));this.actions.get("createShape").setEnabled(c);this.actions.get("createRevision").setEnabled(c);this.actions.get("moveToFolder").setEnabled(null!=b);this.actions.get("makeCopy").setEnabled(null!=b&&!b.isRestricted());this.actions.get("editDiagram").setEnabled("1"==urlParams.embed||null!=b&&!b.isRestricted());this.actions.get("imgur").setEnabled(null!=b&&!b.isRestricted());this.actions.get("twitter").setEnabled(null!= b&&!b.isRestricted());this.actions.get("facebook").setEnabled(null!=b&&!b.isRestricted());this.actions.get("github").setEnabled(null!=b&&!b.isRestricted());this.actions.get("publishLink").setEnabled(null!=b&&!b.isRestricted());this.menus.get("publish").setEnabled(null!=b&&!b.isRestricted());a=a.view.getState(a.getSelectionCell());this.actions.get("editShape").setEnabled(c&&null!=a&&null!=a.shape&&null!=a.shape.stencil)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption= -!1,ExportDialog.exportFile=function(a,b,c,d,e,f){var g=a.editor.graph;if("xml"==c)a.hideDialog(),a.saveData(b,"xml",mxUtils.getXml(a.editor.getGraphXml()),"text/xml");else if("svg"==c)a.hideDialog(),a.saveData(b,"svg",mxUtils.getXml(g.getSvg(d,e,f)),"image/svg+xml");else{var q=a.getFileData(!0,null,null,null,null,!0),v=g.getGraphBounds(),u=Math.ceil(v.width*e/g.view.scale),x=Math.ceil(v.height*e/g.view.scale);q.length<=MAX_REQUEST_SIZE&&u*x<MAX_AREA?(a.hideDialog(),a.saveRequest(b,c,function(a,b){return new mxXmlRequest(EXPORT_URL, -"format\x3d"+c+"\x26base64\x3d"+(b||"0")+(null!=a?"\x26filename\x3d"+encodeURIComponent(a):"")+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+u+"\x26h\x3d"+x+"\x26border\x3d"+f+"\x26xml\x3d"+encodeURIComponent(q))})):mxUtils.alert(mxResources.get("drawingTooLarge"))}})})();var mxSettings={key:".drawio-config",settings:{language:"",libraries:Sidebar.prototype.defaultEntries,customLibraries:[],plugins:[],recentColors:[],formatWidth:"240",currentEdgeStyle:Graph.prototype.defaultEdgeStyle,currentVertexStyle:{},createTarget:!1,pageFormat:mxGraph.prototype.pageFormat,search:!0,showStartScreen:!0,gridColor:mxGraphView.prototype.gridColor,autosave:!0,version:13,isNew:!0},getLanguage:function(){return this.settings.language},setLanguage:function(a){this.settings.language=a}, +!1,ExportDialog.exportFile=function(a,b,c,d,e,f){var g=a.editor.graph;if("xml"==c)a.hideDialog(),a.saveData(b,"xml",mxUtils.getXml(a.editor.getGraphXml()),"text/xml");else if("svg"==c)a.hideDialog(),a.saveData(b,"svg",mxUtils.getXml(g.getSvg(d,e,f)),"image/svg+xml");else{var q=a.getFileData(!0,null,null,null,null,!0),v=g.getGraphBounds(),u=Math.floor(v.width*e/g.view.scale),x=Math.floor(v.height*e/g.view.scale);q.length<=MAX_REQUEST_SIZE&&u*x<MAX_AREA?(a.hideDialog(),a.saveRequest(b,c,function(a, +b){return new mxXmlRequest(EXPORT_URL,"format\x3d"+c+"\x26base64\x3d"+(b||"0")+(null!=a?"\x26filename\x3d"+encodeURIComponent(a):"")+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+u+"\x26h\x3d"+x+"\x26border\x3d"+f+"\x26xml\x3d"+encodeURIComponent(q))})):mxUtils.alert(mxResources.get("drawingTooLarge"))}})})();var mxSettings={key:".drawio-config",settings:{language:"",libraries:Sidebar.prototype.defaultEntries,customLibraries:[],plugins:[],recentColors:[],formatWidth:"240",currentEdgeStyle:Graph.prototype.defaultEdgeStyle,currentVertexStyle:{},createTarget:!1,pageFormat:mxGraph.prototype.pageFormat,search:!0,showStartScreen:!0,gridColor:mxGraphView.prototype.gridColor,autosave:!0,version:13,isNew:!0},getLanguage:function(){return this.settings.language},setLanguage:function(a){this.settings.language=a}, getUi:function(){return this.settings.ui},setUi:function(a){this.settings.ui=a},getShowStartScreen:function(){return this.settings.showStartScreen},setShowStartScreen:function(a){this.settings.showStartScreen=a},getGridColor:function(){return this.settings.gridColor},setGridColor:function(a){this.settings.gridColor=a},getAutosave:function(){return this.settings.autosave},setAutosave:function(a){this.settings.autosave=a},getLibraries:function(){return this.settings.libraries},setLibraries:function(a){this.settings.libraries= a},addCustomLibrary:function(a){mxSettings.load();0>mxUtils.indexOf(this.settings.customLibraries,a)&&this.settings.customLibraries.push(a);mxSettings.save()},removeCustomLibrary:function(a){mxSettings.load();mxUtils.remove(a,this.settings.customLibraries);mxSettings.save()},getCustomLibraries:function(){return this.settings.customLibraries},getPlugins:function(){return this.settings.plugins},setPlugins:function(a){this.settings.plugins=a},getRecentColors:function(){return this.settings.recentColors}, setRecentColors:function(a){this.settings.recentColors=a},getFormatWidth:function(){return parseInt(this.settings.formatWidth)},setFormatWidth:function(a){this.settings.formatWidth=a},getCurrentEdgeStyle:function(){return this.settings.currentEdgeStyle},setCurrentEdgeStyle:function(a){this.settings.currentEdgeStyle=a},getCurrentVertexStyle:function(){return this.settings.currentVertexStyle},setCurrentVertexStyle:function(a){this.settings.currentVertexStyle=a},isCreateTarget:function(){return this.settings.createTarget}, diff --git a/war/js/atlas-viewer.min.js b/war/js/atlas-viewer.min.js index fe5c63b2..15bccea6 100644 --- a/war/js/atlas-viewer.min.js +++ b/war/js/atlas-viewer.min.js @@ -2505,7 +2505,7 @@ mxRectangleShape.prototype.constraints;p.prototype.constraints=mxRectangleShape. 0.25),!1),new mxConnectionConstraint(new mxPoint(0.25,0.5),!1),new mxConnectionConstraint(new mxPoint(0.175,0.75),!1),new mxConnectionConstraint(new mxPoint(1,0.5),!1),new mxConnectionConstraint(new mxPoint(0.7,0.1),!1),new mxConnectionConstraint(new mxPoint(0.7,0.9),!1)]})();function Actions(a){this.editorUi=a;this.actions={};this.init()} Actions.prototype.init=function(){function a(a){d.escape();var b=d.getDeletableCells(d.getSelectionCells());if(null!=b&&0<b.length){var c=d.model.getParents(b);d.removeCells(b,a);if(null!=c){a=[];for(b=0;b<c.length;b++)(d.model.isVertex(c[b])||d.model.isEdge(c[b]))&&a.push(c[b]);d.setSelectionCells(a)}}}var b=this.editorUi,c=b.editor,d=c.graph,e=function(){return Action.prototype.isEnabled.apply(this,arguments)&&d.isEnabled()};this.addAction("new...",function(){window.open(b.getUrl())});this.addAction("open...", function(){window.openNew=!0;window.openKey="open";b.openFile()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){b.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(a,b){try{var d=mxUtils.parseXml(a),e=new mxGraphModel;(new mxCodec(d)).decode(d.documentElement,e);var f=e.getChildren(e.getChildAt(e.getRoot(),0));c.graph.setSelectionCells(c.graph.importCells(f))}catch(p){mxUtils.alert(mxResources.get("invalidOrMissingFile")+ -": "+p.message)}}));b.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=e;this.addAction("save",function(){b.saveFile(!1)},null,null,"Ctrl+S").isEnabled=e;this.addAction("saveAs...",function(){b.saveFile(!0)},null,null,"Ctrl+Shift+S").isEnabled=e;this.addAction("export...",function(){b.showDialog((new ExportDialog(b)).container,300,180,!0,!0)});this.addAction("editDiagram...",function(){var a=new EditDiagramDialog(b);b.showDialog(a.container,620, +": "+p.message)}}));b.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=e;this.addAction("save",function(){b.saveFile(!1)},null,null,"Ctrl+S").isEnabled=e;this.addAction("saveAs...",function(){b.saveFile(!0)},null,null,"Ctrl+Shift+S").isEnabled=e;this.addAction("export...",function(){b.showDialog((new ExportDialog(b)).container,300,230,!0,!0)});this.addAction("editDiagram...",function(){var a=new EditDiagramDialog(b);b.showDialog(a.container,620, 420,!0,!0);a.init()});this.addAction("pageSetup...",function(){b.showDialog((new PageSetupDialog(b)).container,320,220,!0,!0)}).isEnabled=e;this.addAction("print...",function(){b.showDialog((new PrintDialog(b)).container,300,180,!0,!0)},null,"sprite-print","Ctrl+P");this.addAction("preview",function(){mxUtils.show(d,null,10,10)});this.addAction("undo",function(){b.undo()},null,"sprite-undo","Ctrl+Z");this.addAction("redo",function(){b.redo()},null,"sprite-redo",!mxClient.IS_WIN?"Ctrl+Shift+Z":"Ctrl+Y"); this.addAction("cut",function(){mxClipboard.cut(d)},null,"sprite-cut","Ctrl+X");this.addAction("copy",function(){mxClipboard.copy(d)},null,"sprite-copy","Ctrl+C");this.addAction("paste",function(){d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&mxClipboard.paste(d)},!1,"sprite-paste","Ctrl+V");this.addAction("pasteHere",function(a){if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())){d.getModel().beginUpdate();try{var b=mxClipboard.paste(d);if(null!=b){var c=d.getBoundingBoxFromGeometry(b); if(null!=c){var e=d.view.translate,f=d.view.scale,p=e.y,s=Math.round(d.snap(d.popupMenuHandler.triggerX/f-e.x)),r=Math.round(d.snap(d.popupMenuHandler.triggerY/f-p));d.cellsMoved(b,s-c.x,r-c.y)}}}finally{d.getModel().endUpdate()}}});this.addAction("delete",function(b){a(null!=b&&mxEvent.isShiftDown(b))},null,null,"Delete");this.addAction("deleteAll",function(){a(!0)},null,null,"Ctrl+Delete");this.addAction("duplicate",function(){d.setSelectionCells(d.duplicateCells())},null,null,"Ctrl+D");this.addAction("turn", @@ -2802,8 +2802,8 @@ var e=window.setTimeout(mxUtils.bind(this,function(){d.status==d.IDLE&&(this.off c=null!=b&&b.isEditable()||"1"==urlParams.embed;this.actions.get("pageSetup").setEnabled(c);this.actions.get("autosave").setEnabled(null!=b&&b.isEditable()&&b.isAutosaveOptional());this.actions.get("guides").setEnabled(c);this.actions.get("shadowVisible").setEnabled(c);this.actions.get("connectionArrows").setEnabled(c);this.actions.get("connectionPoints").setEnabled(c);this.actions.get("copyStyle").setEnabled(c&&!a.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(c&&!a.isSelectionEmpty()); this.actions.get("editGeometry").setEnabled(a.getModel().isVertex(a.getSelectionCell()));this.actions.get("createShape").setEnabled(c);this.actions.get("createRevision").setEnabled(c);this.actions.get("moveToFolder").setEnabled(null!=b);this.actions.get("makeCopy").setEnabled(null!=b&&!b.isRestricted());this.actions.get("editDiagram").setEnabled("1"==urlParams.embed||null!=b&&!b.isRestricted());this.actions.get("imgur").setEnabled(null!=b&&!b.isRestricted());this.actions.get("twitter").setEnabled(null!= b&&!b.isRestricted());this.actions.get("facebook").setEnabled(null!=b&&!b.isRestricted());this.actions.get("github").setEnabled(null!=b&&!b.isRestricted());this.actions.get("publishLink").setEnabled(null!=b&&!b.isRestricted());this.menus.get("publish").setEnabled(null!=b&&!b.isRestricted());a=a.view.getState(a.getSelectionCell());this.actions.get("editShape").setEnabled(c&&null!=a&&null!=a.shape&&null!=a.shape.stencil)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption= -!1,ExportDialog.exportFile=function(a,b,c,d,e,f){var g=a.editor.graph;if("xml"==c)a.hideDialog(),a.saveData(b,"xml",mxUtils.getXml(a.editor.getGraphXml()),"text/xml");else if("svg"==c)a.hideDialog(),a.saveData(b,"svg",mxUtils.getXml(g.getSvg(d,e,f)),"image/svg+xml");else{var q=a.getFileData(!0,null,null,null,null,!0),t=g.getGraphBounds(),u=Math.ceil(t.width*e/g.view.scale),x=Math.ceil(t.height*e/g.view.scale);q.length<=MAX_REQUEST_SIZE&&u*x<MAX_AREA?(a.hideDialog(),a.saveRequest(b,c,function(a,b){return new mxXmlRequest(EXPORT_URL, -"format\x3d"+c+"\x26base64\x3d"+(b||"0")+(null!=a?"\x26filename\x3d"+encodeURIComponent(a):"")+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+u+"\x26h\x3d"+x+"\x26border\x3d"+f+"\x26xml\x3d"+encodeURIComponent(q))})):mxUtils.alert(mxResources.get("drawingTooLarge"))}})})();function DiagramPage(a){this.node=a}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};DiagramPage.prototype.setName=function(a){null==a?this.node.removeAttribute("name"):this.node.setAttribute("name",a)};function RenamePage(a,b,c){this.ui=a;this.page=b;this.previous=c} +!1,ExportDialog.exportFile=function(a,b,c,d,e,f){var g=a.editor.graph;if("xml"==c)a.hideDialog(),a.saveData(b,"xml",mxUtils.getXml(a.editor.getGraphXml()),"text/xml");else if("svg"==c)a.hideDialog(),a.saveData(b,"svg",mxUtils.getXml(g.getSvg(d,e,f)),"image/svg+xml");else{var q=a.getFileData(!0,null,null,null,null,!0),t=g.getGraphBounds(),u=Math.floor(t.width*e/g.view.scale),x=Math.floor(t.height*e/g.view.scale);q.length<=MAX_REQUEST_SIZE&&u*x<MAX_AREA?(a.hideDialog(),a.saveRequest(b,c,function(a, +b){return new mxXmlRequest(EXPORT_URL,"format\x3d"+c+"\x26base64\x3d"+(b||"0")+(null!=a?"\x26filename\x3d"+encodeURIComponent(a):"")+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+u+"\x26h\x3d"+x+"\x26border\x3d"+f+"\x26xml\x3d"+encodeURIComponent(q))})):mxUtils.alert(mxResources.get("drawingTooLarge"))}})})();function DiagramPage(a){this.node=a}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")};DiagramPage.prototype.setName=function(a){null==a?this.node.removeAttribute("name"):this.node.setAttribute("name",a)};function RenamePage(a,b,c){this.ui=a;this.page=b;this.previous=c} RenamePage.prototype.execute=function(){var a=this.page.getName();this.page.setName(this.previous);this.previous=a;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageRenamed"))};function MovePage(a,b,c){this.ui=a;this.oldIndex=b;this.newIndex=c} MovePage.prototype.execute=function(){this.ui.pages.splice(this.newIndex,0,this.ui.pages.splice(this.oldIndex,1)[0]);var a=this.oldIndex;this.oldIndex=this.newIndex;this.newIndex=a;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageMoved"))};function SelectPage(a,b){this.ui=a;this.previousPage=this.page=b;this.neverShown=!0;null!=b&&(this.neverShown=null==b.viewState,this.ui.updatePageRoot(b))} SelectPage.prototype.execute=function(){var a=mxUtils.indexOf(this.ui.pages,this.previousPage);if(null!=this.page&&0<=a){var a=this.ui.currentPage,b=this.ui.editor,c=b.graph,d=b.graph.compress(c.zapGremlins(mxUtils.getXml(b.getGraphXml(!0))));mxUtils.setTextContent(a.node,d);a.viewState=c.getViewState();a.root=c.model.root;c.view.clear(a.root,!0);c.clearSelection();this.ui.currentPage=this.previousPage;this.previousPage=a;a=this.ui.currentPage;c.model.rootChanged(a.root);c.setViewState(a.viewState); diff --git a/war/js/atlas.min.js b/war/js/atlas.min.js index b1d64975..326790ce 100644 --- a/war/js/atlas.min.js +++ b/war/js/atlas.min.js @@ -2702,7 +2702,7 @@ mxRectangleShape.prototype.constraints;p.prototype.constraints=mxRectangleShape. 0.25),!1),new mxConnectionConstraint(new mxPoint(0.25,0.5),!1),new mxConnectionConstraint(new mxPoint(0.175,0.75),!1),new mxConnectionConstraint(new mxPoint(1,0.5),!1),new mxConnectionConstraint(new mxPoint(0.7,0.1),!1),new mxConnectionConstraint(new mxPoint(0.7,0.9),!1)]})();function Actions(a){this.editorUi=a;this.actions={};this.init()} Actions.prototype.init=function(){function a(b){d.escape();var a=d.getDeletableCells(d.getSelectionCells());if(null!=a&&0<a.length){var e=d.model.getParents(a);d.removeCells(a,b);if(null!=e){b=[];for(a=0;a<e.length;a++)(d.model.isVertex(e[a])||d.model.isEdge(e[a]))&&b.push(e[a]);d.setSelectionCells(b)}}}var c=this.editorUi,f=c.editor,d=f.graph,b=function(){return Action.prototype.isEnabled.apply(this,arguments)&&d.isEnabled()};this.addAction("new...",function(){window.open(c.getUrl())});this.addAction("open...", function(){window.openNew=!0;window.openKey="open";c.openFile()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){c.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(b,a){try{var d=mxUtils.parseXml(b),e=new mxGraphModel;(new mxCodec(d)).decode(d.documentElement,e);var c=e.getChildren(e.getChildAt(e.getRoot(),0));f.graph.setSelectionCells(f.graph.importCells(c))}catch(p){mxUtils.alert(mxResources.get("invalidOrMissingFile")+ -": "+p.message)}}));c.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=b;this.addAction("save",function(){c.saveFile(!1)},null,null,"Ctrl+S").isEnabled=b;this.addAction("saveAs...",function(){c.saveFile(!0)},null,null,"Ctrl+Shift+S").isEnabled=b;this.addAction("export...",function(){c.showDialog((new ExportDialog(c)).container,300,180,!0,!0)});this.addAction("editDiagram...",function(){var b=new EditDiagramDialog(c);c.showDialog(b.container,620, +": "+p.message)}}));c.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=b;this.addAction("save",function(){c.saveFile(!1)},null,null,"Ctrl+S").isEnabled=b;this.addAction("saveAs...",function(){c.saveFile(!0)},null,null,"Ctrl+Shift+S").isEnabled=b;this.addAction("export...",function(){c.showDialog((new ExportDialog(c)).container,300,230,!0,!0)});this.addAction("editDiagram...",function(){var b=new EditDiagramDialog(c);c.showDialog(b.container,620, 420,!0,!0);b.init()});this.addAction("pageSetup...",function(){c.showDialog((new PageSetupDialog(c)).container,320,220,!0,!0)}).isEnabled=b;this.addAction("print...",function(){c.showDialog((new PrintDialog(c)).container,300,180,!0,!0)},null,"sprite-print","Ctrl+P");this.addAction("preview",function(){mxUtils.show(d,null,10,10)});this.addAction("undo",function(){c.undo()},null,"sprite-undo","Ctrl+Z");this.addAction("redo",function(){c.redo()},null,"sprite-redo",!mxClient.IS_WIN?"Ctrl+Shift+Z":"Ctrl+Y"); this.addAction("cut",function(){mxClipboard.cut(d)},null,"sprite-cut","Ctrl+X");this.addAction("copy",function(){mxClipboard.copy(d)},null,"sprite-copy","Ctrl+C");this.addAction("paste",function(){d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&mxClipboard.paste(d)},!1,"sprite-paste","Ctrl+V");this.addAction("pasteHere",function(b){if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())){d.getModel().beginUpdate();try{var a=mxClipboard.paste(d);if(null!=a){var e=d.getBoundingBoxFromGeometry(a); if(null!=e){var c=d.view.translate,f=d.view.scale,p=c.y,s=Math.round(d.snap(d.popupMenuHandler.triggerX/f-c.x)),t=Math.round(d.snap(d.popupMenuHandler.triggerY/f-p));d.cellsMoved(a,s-e.x,t-e.y)}}}finally{d.getModel().endUpdate()}}});this.addAction("delete",function(b){a(null!=b&&mxEvent.isShiftDown(b))},null,null,"Delete");this.addAction("deleteAll",function(){a(!0)},null,null,"Ctrl+Delete");this.addAction("duplicate",function(){d.setSelectionCells(d.duplicateCells())},null,null,"Ctrl+D");this.addAction("turn", @@ -3094,15 +3094,18 @@ function(){a.hideDialog();null!=b&&b()});c.className="geBtn";a.editor.cancelFirs function(b){f.value=b.target.result};d.readAsText(b)}else f.value=a.extractGraphModelFromEvent(b)},!1));var d=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});d.className="geBtn";a.editor.cancelFirst&&c.appendChild(d);var b=document.createElement("select");b.style.width="180px";b.className="geBtn";if(a.editor.graph.isEnabled()){var e=document.createElement("option");e.setAttribute("value","replace");mxUtils.write(e,mxResources.get("replaceExistingDrawing"));b.appendChild(e)}e= document.createElement("option");e.setAttribute("value","new");mxUtils.write(e,mxResources.get("openInNewWindow"));null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime||b.appendChild(e);a.editor.graph.isEnabled()&&(e=document.createElement("option"),e.setAttribute("value","import"),mxUtils.write(e,mxResources.get("addToExistingDrawing")),b.appendChild(e));c.appendChild(b);e=mxUtils.button(mxResources.get("ok"),function(){var d=a.editor.graph.zapGremlins(mxUtils.trim(f.value)),e=null;if("new"== b.value)window.openFile=new OpenFile(function(){a.hideDialog();window.openFile=null}),window.openFile.setData(d,null),window.open(a.getUrl());else if("replace"==b.value){a.editor.graph.model.beginUpdate();try{a.editor.setGraphXml(mxUtils.parseXml(d).documentElement),a.hideDialog()}catch(c){e=c}finally{a.editor.graph.model.endUpdate()}}else if("import"==b.value){a.editor.graph.model.beginUpdate();try{var m=mxUtils.parseXml(d),n=new mxGraphModel;(new mxCodec(m)).decode(m.documentElement,n);var p=n.getChildren(n.getChildAt(n.getRoot(), -0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(p));a.hideDialog()}catch(s){e=s}finally{a.editor.graph.model.endUpdate()}}null!=e&&mxUtils.alert(e.message)});e.className="geBtn gePrimaryBtn";c.appendChild(e);a.editor.cancelFirst||c.appendChild(d);this.container=c},ExportDialog=function(a){function c(){var b=k.value,a=b.lastIndexOf(".");k.value=0<a?b.substring(0,a+1)+l.value:b+"."+l.value;"xml"===l.value?(m.setAttribute("disabled","true"),p.setAttribute("disabled","true")):(m.removeAttribute("disabled"), -p.removeAttribute("disabled"));"png"===l.value||"svg"===l.value?n.removeAttribute("disabled"):n.setAttribute("disabled","disabled")}var f=a.editor.graph,d,b,e=document.createElement("table"),g=document.createElement("tbody");e.setAttribute("cellpadding","2");d=document.createElement("tr");b=document.createElement("td");b.style.fontSize="10pt";b.style.width="100px";mxUtils.write(b,mxResources.get("filename")+":");d.appendChild(b);var k=document.createElement("input");k.setAttribute("value",a.editor.getOrCreateFilename()); -k.style.width="180px";b=document.createElement("td");b.appendChild(k);d.appendChild(b);g.appendChild(d);d=document.createElement("tr");b=document.createElement("td");b.style.fontSize="10pt";mxUtils.write(b,mxResources.get("format")+":");d.appendChild(b);var l=document.createElement("select");l.style.width="180px";b=document.createElement("option");b.setAttribute("value","png");mxUtils.write(b,mxResources.get("formatPng"));l.appendChild(b);b=document.createElement("option");ExportDialog.showGifOption&& -(b.setAttribute("value","gif"),mxUtils.write(b,mxResources.get("formatGif")),l.appendChild(b));b=document.createElement("option");b.setAttribute("value","jpg");mxUtils.write(b,mxResources.get("formatJpg"));l.appendChild(b);b=document.createElement("option");b.setAttribute("value","pdf");mxUtils.write(b,mxResources.get("formatPdf"));l.appendChild(b);b=document.createElement("option");b.setAttribute("value","svg");mxUtils.write(b,mxResources.get("formatSvg"));l.appendChild(b);ExportDialog.showXmlOption&& -(b=document.createElement("option"),b.setAttribute("value","xml"),mxUtils.write(b,mxResources.get("formatXml")),l.appendChild(b));b=document.createElement("td");b.appendChild(l);d.appendChild(b);g.appendChild(d);d=document.createElement("tr");b=document.createElement("td");b.style.fontSize="10pt";mxUtils.write(b,mxResources.get("zoom")+" (%):");d.appendChild(b);var m=document.createElement("input");m.setAttribute("type","number");m.setAttribute("value","100");m.style.width="180px";b=document.createElement("td"); -b.appendChild(m);d.appendChild(b);g.appendChild(d);d=document.createElement("tr");b=document.createElement("td");b.style.fontSize="10pt";mxUtils.write(b,mxResources.get("background")+":");d.appendChild(b);var n=document.createElement("input");n.setAttribute("type","checkbox");n.checked=null==f.background||f.background==mxConstants.NONE;b=document.createElement("td");b.appendChild(n);mxUtils.write(b,mxResources.get("transparent"));d.appendChild(b);g.appendChild(d);d=document.createElement("tr");b= -document.createElement("td");b.style.fontSize="10pt";mxUtils.write(b,mxResources.get("borderWidth")+":");d.appendChild(b);var p=document.createElement("input");p.setAttribute("type","number");p.setAttribute("value","0");p.style.width="180px";b=document.createElement("td");b.appendChild(p);d.appendChild(b);g.appendChild(d);e.appendChild(g);mxEvent.addListener(l,"change",c);c();mxEvent.addListener(m,"change",function(){m.value=Math.max(0,parseInt(m.value)||100)});d=document.createElement("tr");b=document.createElement("td"); -b.setAttribute("align","right");b.style.paddingTop="22px";b.colSpan=2;var s=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(m.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var b=k.value,d=l.value,e=Math.max(0,parseInt(m.value)||100)/100,c=Math.max(0,parseInt(p.value)),g=f.background;if(("svg"==d||"png"==d)&&n.checked)g=null;else if(null==g||g==mxConstants.NONE)g="#ffffff";ExportDialog.exportFile(a,b,d,g,e,c)}}));s.className="geBtn gePrimaryBtn";var t= -mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});t.className="geBtn";a.editor.cancelFirst?(b.appendChild(t),b.appendChild(s)):(b.appendChild(s),b.appendChild(t));d.appendChild(b);g.appendChild(d);e.appendChild(g);this.container=e};ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0; +0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(p));a.hideDialog()}catch(s){e=s}finally{a.editor.graph.model.endUpdate()}}null!=e&&mxUtils.alert(e.message)});e.className="geBtn gePrimaryBtn";c.appendChild(e);a.editor.cancelFirst||c.appendChild(d);this.container=c},ExportDialog=function(a){function c(){var b=n.value,a=b.lastIndexOf(".");n.value=0<a?b.substring(0,a+1)+p.value:b+"."+p.value;"xml"===p.value?(s.setAttribute("disabled","true"),t.setAttribute("disabled","true"),q.setAttribute("disabled", +"true"),v.setAttribute("disabled","true")):(s.removeAttribute("disabled"),t.removeAttribute("disabled"),q.removeAttribute("disabled"),v.removeAttribute("disabled"));"png"===p.value||"svg"===p.value?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled")}function f(){t.style.backgroundColor=t.value*q.value>MAX_AREA||0>=t.value?"red":"";q.style.backgroundColor=t.value*q.value>MAX_AREA||0>=q.value?"red":""}var d=a.editor.graph,b=d.getGraphBounds(),e=d.view.scale,g=Math.ceil(b.width/e),k= +Math.ceil(b.height/e),l,e=document.createElement("table"),m=document.createElement("tbody");e.setAttribute("cellpadding","2");b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";l.style.width="100px";mxUtils.write(l,mxResources.get("filename")+":");b.appendChild(l);var n=document.createElement("input");n.setAttribute("value",a.editor.getOrCreateFilename());n.style.width="180px";l=document.createElement("td");l.appendChild(n);b.appendChild(l);m.appendChild(b);b=document.createElement("tr"); +l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("format")+":");b.appendChild(l);var p=document.createElement("select");p.style.width="180px";l=document.createElement("option");l.setAttribute("value","png");mxUtils.write(l,mxResources.get("formatPng"));p.appendChild(l);l=document.createElement("option");ExportDialog.showGifOption&&(l.setAttribute("value","gif"),mxUtils.write(l,mxResources.get("formatGif")),p.appendChild(l));l=document.createElement("option"); +l.setAttribute("value","jpg");mxUtils.write(l,mxResources.get("formatJpg"));p.appendChild(l);l=document.createElement("option");l.setAttribute("value","pdf");mxUtils.write(l,mxResources.get("formatPdf"));p.appendChild(l);l=document.createElement("option");l.setAttribute("value","svg");mxUtils.write(l,mxResources.get("formatSvg"));p.appendChild(l);ExportDialog.showXmlOption&&(l=document.createElement("option"),l.setAttribute("value","xml"),mxUtils.write(l,mxResources.get("formatXml")),p.appendChild(l)); +l=document.createElement("td");l.appendChild(p);b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("zoom")+" (%):");b.appendChild(l);var s=document.createElement("input");s.setAttribute("type","number");s.setAttribute("value","100");s.style.width="180px";l=document.createElement("td");l.appendChild(s);b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize= +"10pt";mxUtils.write(l,mxResources.get("width")+":");b.appendChild(l);var t=document.createElement("input");t.setAttribute("value",g);t.style.width="180px";l=document.createElement("td");l.appendChild(t);b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("height")+":");b.appendChild(l);var q=document.createElement("input");q.setAttribute("value",k);q.style.width="180px";l=document.createElement("td"); +l.appendChild(q);b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l=document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("background")+":");b.appendChild(l);var u=document.createElement("input");u.setAttribute("type","checkbox");u.checked=null==d.background||d.background==mxConstants.NONE;l=document.createElement("td");l.appendChild(u);mxUtils.write(l,mxResources.get("transparent"));b.appendChild(l);m.appendChild(b);b=document.createElement("tr");l= +document.createElement("td");l.style.fontSize="10pt";mxUtils.write(l,mxResources.get("borderWidth")+":");b.appendChild(l);var v=document.createElement("input");v.setAttribute("type","number");v.setAttribute("value","0");v.style.width="180px";l=document.createElement("td");l.appendChild(v);b.appendChild(l);m.appendChild(b);e.appendChild(m);mxEvent.addListener(p,"change",c);c();mxEvent.addListener(s,"change",function(){var b=Math.max(0,parseFloat(s.value)||100)/100;s.value=parseFloat((100*b).toFixed(2)); +0<g?(t.value=Math.floor(g*b),q.value=Math.floor(k*b)):(s.value="100",t.value=g,q.value=k);f()});mxEvent.addListener(t,"change",function(){var b=parseInt(t.value)/g;0<b?(s.value=parseFloat((100*b).toFixed(2)),q.value=Math.floor(k*b)):(s.value="100",t.value=g,q.value=k);f()});mxEvent.addListener(q,"change",function(){var b=parseInt(q.value)/k;0<b?(s.value=parseFloat((100*b).toFixed(2)),t.value=Math.floor(g*b)):(s.value="100",t.value=g,q.value=k);f()});b=document.createElement("tr");l=document.createElement("td"); +l.setAttribute("align","right");l.style.paddingTop="22px";l.colSpan=2;var x=mxUtils.button(mxResources.get("export"),mxUtils.bind(this,function(){if(0>=parseInt(s.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var b=n.value,e=p.value,c=Math.max(0,parseFloat(s.value)||100)/100,f=Math.max(0,parseInt(v.value)),g=d.background;if(("svg"==e||"png"==e)&&u.checked)g=null;else if(null==g||g==mxConstants.NONE)g="#ffffff";ExportDialog.exportFile(a,b,e,g,c,f)}}));x.className="geBtn gePrimaryBtn"; +var z=mxUtils.button(mxResources.get("cancel"),function(){a.hideDialog()});z.className="geBtn";a.editor.cancelFirst?(l.appendChild(z),l.appendChild(x)):(l.appendChild(x),l.appendChild(z));b.appendChild(l);m.appendChild(b);e.appendChild(m);this.container=e};ExportDialog.showGifOption=!0;ExportDialog.showXmlOption=!0; ExportDialog.exportFile=function(a,c,f,d,b,e){var g=a.editor.graph;if("xml"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(a.editor.getGraphXml()),c,f);else if("svg"==f)ExportDialog.saveLocalFile(a,mxUtils.getXml(g.getSvg(d,b,e)),c,f);else{var k=g.getGraphBounds(),l=mxUtils.createXmlDocument(),m=l.createElement("output");l.appendChild(m);l=new mxXmlCanvas2D(m);l.translate(Math.floor((e/b-k.x)/g.view.scale),Math.floor((e/b-k.y)/g.view.scale));l.scale(b/g.view.scale);(new mxImageExport).drawState(g.getView().getState(g.model.root), l);m="xml\x3d"+encodeURIComponent(mxUtils.getXml(m));l=Math.ceil(k.width*b/g.view.scale+2*e);b=Math.ceil(k.height*b/g.view.scale+2*e);m.length<=MAX_REQUEST_SIZE&&l*b<MAX_AREA?(a.hideDialog(),(new mxXmlRequest(EXPORT_URL,"format\x3d"+f+"\x26filename\x3d"+encodeURIComponent(c)+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+l+"\x26h\x3d"+b+"\x26"+m)).simulate(document,"_blank")):mxUtils.alert(mxResources.get("drawingTooLarge"))}}; ExportDialog.saveLocalFile=function(a,c,f,d){c.length<MAX_REQUEST_SIZE?(a.hideDialog(),(new mxXmlRequest(SAVE_URL,"xml\x3d"+encodeURIComponent(c)+"\x26filename\x3d"+encodeURIComponent(f)+"\x26format\x3d"+d)).simulate(document,"_blank")):(mxUtils.alert(mxResources.get("drawingTooLarge")),mxUtils.popup(xml))}; @@ -7567,7 +7570,7 @@ c);while(c++<a&&"1"==mxUtils.getValue(this.getCellStyle(b),"locked","0"));null!= [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 t=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 t.apply(this,arguments)}})(); -(function(){EditorUi.VERSION="6.0.2.11";EditorUi.compactUi="atlas"!=uiTheme;EditorUi.isElectronApp=window&&window.process&&window.process.type;EditorUi.plusImage=!mxClient.IS_SVG?IMAGE_PATH+"/plus.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDdCMTdENjVCOEM4MTFFNDlCRjVBNDdCODU5NjNBNUMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDdCMTdENjZCOEM4MTFFNDlCRjVBNDdCODU5NjNBNUMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowN0IxN0Q2M0I4QzgxMUU0OUJGNUE0N0I4NTk2M0E1QyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowN0IxN0Q2NEI4QzgxMUU0OUJGNUE0N0I4NTk2M0E1QyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PtjrjmgAAAAtSURBVHjaYvz//z8DMigvLwcLdHZ2MiKLMzEQCaivkLGsrOw/dU0cAr4GCDAARQsQbTFrv10AAAAASUVORK5CYII\x3d"; +(function(){EditorUi.VERSION="6.0.2.12";EditorUi.compactUi="atlas"!=uiTheme;EditorUi.isElectronApp=window&&window.process&&window.process.type;EditorUi.plusImage=!mxClient.IS_SVG?IMAGE_PATH+"/plus.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5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gYIDxhNiUEAOw\x3d\x3d"; EditorUi.prototype.emptyDiagramXml='\x3cmxGraphModel\x3e\x3croot\x3e\x3cmxCell id\x3d"0"/\x3e\x3cmxCell id\x3d"1" parent\x3d"0"/\x3e\x3c/root\x3e\x3c/mxGraphModel\x3e';EditorUi.prototype.emptyLibraryXml="\x3cmxlibrary\x3e[]\x3c/mxlibrary\x3e";EditorUi.prototype.mode=null;EditorUi.prototype.sidebarFooterHeight=36;EditorUi.prototype.defaultCustomShapeStyle="shape\x3dstencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE\x3d);whiteSpace\x3dwrap;html\x3d1;"; EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=1E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.currentFile=null;(function(){EditorUi.prototype.useCanvasForExport=!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(d){}}; @@ -7766,8 +7769,8 @@ var e=window.setTimeout(mxUtils.bind(this,function(){d.status==d.IDLE&&(this.off c=null!=b&&b.isEditable()||"1"==urlParams.embed;this.actions.get("pageSetup").setEnabled(c);this.actions.get("autosave").setEnabled(null!=b&&b.isEditable()&&b.isAutosaveOptional());this.actions.get("guides").setEnabled(c);this.actions.get("shadowVisible").setEnabled(c);this.actions.get("connectionArrows").setEnabled(c);this.actions.get("connectionPoints").setEnabled(c);this.actions.get("copyStyle").setEnabled(c&&!a.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(c&&!a.isSelectionEmpty()); this.actions.get("editGeometry").setEnabled(a.getModel().isVertex(a.getSelectionCell()));this.actions.get("createShape").setEnabled(c);this.actions.get("createRevision").setEnabled(c);this.actions.get("moveToFolder").setEnabled(null!=b);this.actions.get("makeCopy").setEnabled(null!=b&&!b.isRestricted());this.actions.get("editDiagram").setEnabled("1"==urlParams.embed||null!=b&&!b.isRestricted());this.actions.get("imgur").setEnabled(null!=b&&!b.isRestricted());this.actions.get("twitter").setEnabled(null!= b&&!b.isRestricted());this.actions.get("facebook").setEnabled(null!=b&&!b.isRestricted());this.actions.get("github").setEnabled(null!=b&&!b.isRestricted());this.actions.get("publishLink").setEnabled(null!=b&&!b.isRestricted());this.menus.get("publish").setEnabled(null!=b&&!b.isRestricted());a=a.view.getState(a.getSelectionCell());this.actions.get("editShape").setEnabled(c&&null!=a&&null!=a.shape&&null!=a.shape.stencil)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption= -!1,ExportDialog.exportFile=function(a,b,c,d,e,f){var g=a.editor.graph;if("xml"==c)a.hideDialog(),a.saveData(b,"xml",mxUtils.getXml(a.editor.getGraphXml()),"text/xml");else if("svg"==c)a.hideDialog(),a.saveData(b,"svg",mxUtils.getXml(g.getSvg(d,e,f)),"image/svg+xml");else{var q=a.getFileData(!0,null,null,null,null,!0),u=g.getGraphBounds(),v=Math.ceil(u.width*e/g.view.scale),x=Math.ceil(u.height*e/g.view.scale);q.length<=MAX_REQUEST_SIZE&&v*x<MAX_AREA?(a.hideDialog(),a.saveRequest(b,c,function(a,b){return new mxXmlRequest(EXPORT_URL, -"format\x3d"+c+"\x26base64\x3d"+(b||"0")+(null!=a?"\x26filename\x3d"+encodeURIComponent(a):"")+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+v+"\x26h\x3d"+x+"\x26border\x3d"+f+"\x26xml\x3d"+encodeURIComponent(q))})):mxUtils.alert(mxResources.get("drawingTooLarge"))}})})(); +!1,ExportDialog.exportFile=function(a,b,c,d,e,f){var g=a.editor.graph;if("xml"==c)a.hideDialog(),a.saveData(b,"xml",mxUtils.getXml(a.editor.getGraphXml()),"text/xml");else if("svg"==c)a.hideDialog(),a.saveData(b,"svg",mxUtils.getXml(g.getSvg(d,e,f)),"image/svg+xml");else{var q=a.getFileData(!0,null,null,null,null,!0),u=g.getGraphBounds(),v=Math.floor(u.width*e/g.view.scale),x=Math.floor(u.height*e/g.view.scale);q.length<=MAX_REQUEST_SIZE&&v*x<MAX_AREA?(a.hideDialog(),a.saveRequest(b,c,function(a, +b){return new mxXmlRequest(EXPORT_URL,"format\x3d"+c+"\x26base64\x3d"+(b||"0")+(null!=a?"\x26filename\x3d"+encodeURIComponent(a):"")+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+v+"\x26h\x3d"+x+"\x26border\x3d"+f+"\x26xml\x3d"+encodeURIComponent(q))})):mxUtils.alert(mxResources.get("drawingTooLarge"))}})})(); var mxSettings={key:".drawio-config",settings:{language:"",libraries:Sidebar.prototype.defaultEntries,customLibraries:[],plugins:[],recentColors:[],formatWidth:"240",currentEdgeStyle:Graph.prototype.defaultEdgeStyle,currentVertexStyle:{},createTarget:!1,pageFormat:mxGraph.prototype.pageFormat,search:!0,showStartScreen:!0,gridColor:mxGraphView.prototype.gridColor,autosave:!0,version:13,isNew:!0},getLanguage:function(){return this.settings.language},setLanguage:function(a){this.settings.language=a}, getUi:function(){return this.settings.ui},setUi:function(a){this.settings.ui=a},getShowStartScreen:function(){return this.settings.showStartScreen},setShowStartScreen:function(a){this.settings.showStartScreen=a},getGridColor:function(){return this.settings.gridColor},setGridColor:function(a){this.settings.gridColor=a},getAutosave:function(){return this.settings.autosave},setAutosave:function(a){this.settings.autosave=a},getLibraries:function(){return this.settings.libraries},setLibraries:function(a){this.settings.libraries= a},addCustomLibrary:function(a){mxSettings.load();0>mxUtils.indexOf(this.settings.customLibraries,a)&&this.settings.customLibraries.push(a);mxSettings.save()},removeCustomLibrary:function(a){mxSettings.load();mxUtils.remove(a,this.settings.customLibraries);mxSettings.save()},getCustomLibraries:function(){return this.settings.customLibraries},getPlugins:function(){return this.settings.plugins},setPlugins:function(a){this.settings.plugins=a},getRecentColors:function(){return this.settings.recentColors}, diff --git a/war/js/diagramly/App.js b/war/js/diagramly/App.js index 818bc524..96983246 100644 --- a/war/js/diagramly/App.js +++ b/war/js/diagramly/App.js @@ -1469,7 +1469,7 @@ App.prototype.getThumbnail = function(width, success) this.thumbImageCache = new Object(); } - // Uses new client-side canvas export for Chrome, Firefox and Opera + // Uses client-side canvas export if (this.isExportToCanvas()) { this.exportToCanvas(mxUtils.bind(this, function(canvas) diff --git a/war/js/diagramly/EditorUi.js b/war/js/diagramly/EditorUi.js index e2fe4804..adbe2f0c 100644 --- a/war/js/diagramly/EditorUi.js +++ b/war/js/diagramly/EditorUi.js @@ -104,6 +104,7 @@ var ctx = canvas.getContext('2d'); ctx.drawImage(img, 0, 0); + // Works in Chrome, Firefox, Edge and Opera // LATER: Fix security error caused by foreignObjects in Safari for toDataUri (tainted canvas) var result = canvas.toDataURL('image/png'); EditorUi.prototype.useCanvasForExport = result != null && result.length > 6; @@ -7318,8 +7319,8 @@ { var data = editorUi.getFileData(true, null, null, null, null, true); var bounds = graph.getGraphBounds(); - var w = Math.ceil(bounds.width * s / graph.view.scale); - var h = Math.ceil(bounds.height * s / graph.view.scale); + var w = Math.floor(bounds.width * s / graph.view.scale); + var h = Math.floor(bounds.height * s / graph.view.scale); if (data.length <= MAX_REQUEST_SIZE && w * h < MAX_AREA) { diff --git a/war/js/embed-static.min.js b/war/js/embed-static.min.js index 1fdafff8..f3389b1f 100644 --- a/war/js/embed-static.min.js +++ b/war/js/embed-static.min.js @@ -184,7 +184,7 @@ f)+"\n"+u+"}":"{"+v.join(",")+"}";f=u;return r}}"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.0.2.11",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.0.2.12",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/")|| diff --git a/war/js/mxgraph/Actions.js b/war/js/mxgraph/Actions.js index 5cfd144a..c570ead3 100644 --- a/war/js/mxgraph/Actions.js +++ b/war/js/mxgraph/Actions.js @@ -70,7 +70,7 @@ Actions.prototype.init = function() }).isEnabled = isGraphEnabled; this.addAction('save', function() { ui.saveFile(false); }, null, null, 'Ctrl+S').isEnabled = isGraphEnabled; this.addAction('saveAs...', function() { ui.saveFile(true); }, null, null, 'Ctrl+Shift+S').isEnabled = isGraphEnabled; - this.addAction('export...', function() { ui.showDialog(new ExportDialog(ui).container, 300, 180, true, true); }); + this.addAction('export...', function() { ui.showDialog(new ExportDialog(ui).container, 300, 230, true, true); }); this.addAction('editDiagram...', function() { var dlg = new EditDiagramDialog(ui); diff --git a/war/js/mxgraph/Dialogs.js b/war/js/mxgraph/Dialogs.js index 6998c474..43bc2a1d 100644 --- a/war/js/mxgraph/Dialogs.js +++ b/war/js/mxgraph/Dialogs.js @@ -1694,6 +1694,12 @@ var EditDiagramDialog = function(editorUi) var ExportDialog = function(editorUi) { var graph = editorUi.editor.graph; + var bounds = graph.getGraphBounds(); + var scale = graph.view.scale; + + var width = Math.ceil(bounds.width / scale); + var height = Math.ceil(bounds.height / scale); + var row, td; var table = document.createElement('table'); @@ -1772,7 +1778,7 @@ var ExportDialog = function(editorUi) row.appendChild(td); tbody.appendChild(row); - + row = document.createElement('tr'); td = document.createElement('td'); @@ -1791,6 +1797,42 @@ var ExportDialog = function(editorUi) row.appendChild(td); tbody.appendChild(row); + + row = document.createElement('tr'); + + td = document.createElement('td'); + td.style.fontSize = '10pt'; + mxUtils.write(td, mxResources.get('width') + ':'); + + row.appendChild(td); + + var widthInput = document.createElement('input'); + widthInput.setAttribute('value', width); + widthInput.style.width = '180px'; + + td = document.createElement('td'); + td.appendChild(widthInput); + row.appendChild(td); + + tbody.appendChild(row); + + row = document.createElement('tr'); + + td = document.createElement('td'); + td.style.fontSize = '10pt'; + mxUtils.write(td, mxResources.get('height') + ':'); + + row.appendChild(td); + + var heightInput = document.createElement('input'); + heightInput.setAttribute('value', height); + heightInput.style.width = '180px'; + + td = document.createElement('td'); + td.appendChild(heightInput); + row.appendChild(td); + + tbody.appendChild(row); row = document.createElement('tr'); @@ -1850,11 +1892,15 @@ var ExportDialog = function(editorUi) if (imageFormatSelect.value === 'xml') { zoomInput.setAttribute('disabled', 'true'); + widthInput.setAttribute('disabled', 'true'); + heightInput.setAttribute('disabled', 'true'); borderInput.setAttribute('disabled', 'true'); } else { zoomInput.removeAttribute('disabled'); + widthInput.removeAttribute('disabled'); + heightInput.removeAttribute('disabled'); borderInput.removeAttribute('disabled'); } @@ -1871,11 +1917,85 @@ var ExportDialog = function(editorUi) mxEvent.addListener(imageFormatSelect, 'change', formatChanged); formatChanged(); + function checkValues() + { + if (widthInput.value * heightInput.value > MAX_AREA || widthInput.value <= 0) + { + widthInput.style.backgroundColor = 'red'; + } + else + { + widthInput.style.backgroundColor = ''; + } + + if (widthInput.value * heightInput.value > MAX_AREA || heightInput.value <= 0) + { + heightInput.style.backgroundColor = 'red'; + } + else + { + heightInput.style.backgroundColor = ''; + } + }; + mxEvent.addListener(zoomInput, 'change', function() { - zoomInput.value = Math.max(0, parseInt(zoomInput.value) || 100); + var s = Math.max(0, parseFloat(zoomInput.value) || 100) / 100; + zoomInput.value = parseFloat((s * 100).toFixed(2)); + + if (width > 0) + { + widthInput.value = Math.floor(width * s); + heightInput.value = Math.floor(height * s); + } + else + { + zoomInput.value = '100'; + widthInput.value = width; + heightInput.value = height; + } + + checkValues(); + }); + + mxEvent.addListener(widthInput, 'change', function() + { + var s = parseInt(widthInput.value) / width; + + if (s > 0) + { + zoomInput.value = parseFloat((s * 100).toFixed(2)); + heightInput.value = Math.floor(height * s); + } + else + { + zoomInput.value = '100'; + widthInput.value = width; + heightInput.value = height; + } + + checkValues(); }); + mxEvent.addListener(heightInput, 'change', function() + { + var s = parseInt(heightInput.value) / height; + + if (s > 0) + { + zoomInput.value = parseFloat((s * 100).toFixed(2)); + widthInput.value = Math.floor(width * s); + } + else + { + zoomInput.value = '100'; + widthInput.value = width; + heightInput.value = height; + } + + checkValues(); + }); + row = document.createElement('tr'); td = document.createElement('td'); td.setAttribute('align', 'right'); @@ -1892,7 +2012,7 @@ var ExportDialog = function(editorUi) { var name = nameInput.value; var format = imageFormatSelect.value; - var s = Math.max(0, parseInt(zoomInput.value) || 100) / 100; + var s = Math.max(0, parseFloat(zoomInput.value) || 100) / 100; var b = Math.max(0, parseInt(borderInput.value)); var bg = graph.background; diff --git a/war/js/reader.min.js b/war/js/reader.min.js index 1d265a78..7a02002a 100644 --- a/war/js/reader.min.js +++ b/war/js/reader.min.js @@ -184,7 +184,7 @@ f)+"\n"+u+"}":"{"+v.join(",")+"}";f=u;return r}}"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.0.2.11",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.0.2.12",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/")|| diff --git a/war/js/viewer.min.js b/war/js/viewer.min.js index 07b17a61..04ecf89b 100644 --- a/war/js/viewer.min.js +++ b/war/js/viewer.min.js @@ -2514,7 +2514,7 @@ mxRectangleShape.prototype.constraints;p.prototype.constraints=mxRectangleShape. 0.25),!1),new mxConnectionConstraint(new mxPoint(0.25,0.5),!1),new mxConnectionConstraint(new mxPoint(0.175,0.75),!1),new mxConnectionConstraint(new mxPoint(1,0.5),!1),new mxConnectionConstraint(new mxPoint(0.7,0.1),!1),new mxConnectionConstraint(new mxPoint(0.7,0.9),!1)]})();function Actions(a){this.editorUi=a;this.actions={};this.init()} Actions.prototype.init=function(){function a(a){d.escape();var b=d.getDeletableCells(d.getSelectionCells());if(null!=b&&0<b.length){var c=d.model.getParents(b);d.removeCells(b,a);if(null!=c){a=[];for(b=0;b<c.length;b++)(d.model.isVertex(c[b])||d.model.isEdge(c[b]))&&a.push(c[b]);d.setSelectionCells(a)}}}var b=this.editorUi,c=b.editor,d=c.graph,e=function(){return Action.prototype.isEnabled.apply(this,arguments)&&d.isEnabled()};this.addAction("new...",function(){window.open(b.getUrl())});this.addAction("open...", function(){window.openNew=!0;window.openKey="open";b.openFile()});this.addAction("import...",function(){window.openNew=!1;window.openKey="import";window.openFile=new OpenFile(mxUtils.bind(this,function(){b.hideDialog()}));window.openFile.setConsumer(mxUtils.bind(this,function(a,b){try{var d=mxUtils.parseXml(a),e=new mxGraphModel;(new mxCodec(d)).decode(d.documentElement,e);var f=e.getChildren(e.getChildAt(e.getRoot(),0));c.graph.setSelectionCells(c.graph.importCells(f))}catch(p){mxUtils.alert(mxResources.get("invalidOrMissingFile")+ -": "+p.message)}}));b.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=e;this.addAction("save",function(){b.saveFile(!1)},null,null,"Ctrl+S").isEnabled=e;this.addAction("saveAs...",function(){b.saveFile(!0)},null,null,"Ctrl+Shift+S").isEnabled=e;this.addAction("export...",function(){b.showDialog((new ExportDialog(b)).container,300,180,!0,!0)});this.addAction("editDiagram...",function(){var a=new EditDiagramDialog(b);b.showDialog(a.container,620, +": "+p.message)}}));b.showDialog((new OpenDialog(this)).container,320,220,!0,!0,function(){window.openFile=null})}).isEnabled=e;this.addAction("save",function(){b.saveFile(!1)},null,null,"Ctrl+S").isEnabled=e;this.addAction("saveAs...",function(){b.saveFile(!0)},null,null,"Ctrl+Shift+S").isEnabled=e;this.addAction("export...",function(){b.showDialog((new ExportDialog(b)).container,300,230,!0,!0)});this.addAction("editDiagram...",function(){var a=new EditDiagramDialog(b);b.showDialog(a.container,620, 420,!0,!0);a.init()});this.addAction("pageSetup...",function(){b.showDialog((new PageSetupDialog(b)).container,320,220,!0,!0)}).isEnabled=e;this.addAction("print...",function(){b.showDialog((new PrintDialog(b)).container,300,180,!0,!0)},null,"sprite-print","Ctrl+P");this.addAction("preview",function(){mxUtils.show(d,null,10,10)});this.addAction("undo",function(){b.undo()},null,"sprite-undo","Ctrl+Z");this.addAction("redo",function(){b.redo()},null,"sprite-redo",!mxClient.IS_WIN?"Ctrl+Shift+Z":"Ctrl+Y"); this.addAction("cut",function(){mxClipboard.cut(d)},null,"sprite-cut","Ctrl+X");this.addAction("copy",function(){mxClipboard.copy(d)},null,"sprite-copy","Ctrl+C");this.addAction("paste",function(){d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())&&mxClipboard.paste(d)},!1,"sprite-paste","Ctrl+V");this.addAction("pasteHere",function(a){if(d.isEnabled()&&!d.isCellLocked(d.getDefaultParent())){d.getModel().beginUpdate();try{var b=mxClipboard.paste(d);if(null!=b){var c=d.getBoundingBoxFromGeometry(b); if(null!=c){var e=d.view.translate,f=d.view.scale,p=e.y,s=Math.round(d.snap(d.popupMenuHandler.triggerX/f-e.x)),r=Math.round(d.snap(d.popupMenuHandler.triggerY/f-p));d.cellsMoved(b,s-c.x,r-c.y)}}}finally{d.getModel().endUpdate()}}});this.addAction("delete",function(b){a(null!=b&&mxEvent.isShiftDown(b))},null,null,"Delete");this.addAction("deleteAll",function(){a(!0)},null,null,"Ctrl+Delete");this.addAction("duplicate",function(){d.setSelectionCells(d.duplicateCells())},null,null,"Ctrl+D");this.addAction("turn", @@ -2815,8 +2815,8 @@ var e=window.setTimeout(mxUtils.bind(this,function(){d.status==d.IDLE&&(this.off c=null!=b&&b.isEditable()||"1"==urlParams.embed;this.actions.get("pageSetup").setEnabled(c);this.actions.get("autosave").setEnabled(null!=b&&b.isEditable()&&b.isAutosaveOptional());this.actions.get("guides").setEnabled(c);this.actions.get("shadowVisible").setEnabled(c);this.actions.get("connectionArrows").setEnabled(c);this.actions.get("connectionPoints").setEnabled(c);this.actions.get("copyStyle").setEnabled(c&&!a.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(c&&!a.isSelectionEmpty()); this.actions.get("editGeometry").setEnabled(a.getModel().isVertex(a.getSelectionCell()));this.actions.get("createShape").setEnabled(c);this.actions.get("createRevision").setEnabled(c);this.actions.get("moveToFolder").setEnabled(null!=b);this.actions.get("makeCopy").setEnabled(null!=b&&!b.isRestricted());this.actions.get("editDiagram").setEnabled("1"==urlParams.embed||null!=b&&!b.isRestricted());this.actions.get("imgur").setEnabled(null!=b&&!b.isRestricted());this.actions.get("twitter").setEnabled(null!= b&&!b.isRestricted());this.actions.get("facebook").setEnabled(null!=b&&!b.isRestricted());this.actions.get("github").setEnabled(null!=b&&!b.isRestricted());this.actions.get("publishLink").setEnabled(null!=b&&!b.isRestricted());this.menus.get("publish").setEnabled(null!=b&&!b.isRestricted());a=a.view.getState(a.getSelectionCell());this.actions.get("editShape").setEnabled(c&&null!=a&&null!=a.shape&&null!=a.shape.stencil)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption= -!1,ExportDialog.exportFile=function(a,b,c,d,e,f){var g=a.editor.graph;if("xml"==c)a.hideDialog(),a.saveData(b,"xml",mxUtils.getXml(a.editor.getGraphXml()),"text/xml");else if("svg"==c)a.hideDialog(),a.saveData(b,"svg",mxUtils.getXml(g.getSvg(d,e,f)),"image/svg+xml");else{var q=a.getFileData(!0,null,null,null,null,!0),t=g.getGraphBounds(),u=Math.ceil(t.width*e/g.view.scale),x=Math.ceil(t.height*e/g.view.scale);q.length<=MAX_REQUEST_SIZE&&u*x<MAX_AREA?(a.hideDialog(),a.saveRequest(b,c,function(a,b){return new mxXmlRequest(EXPORT_URL, -"format\x3d"+c+"\x26base64\x3d"+(b||"0")+(null!=a?"\x26filename\x3d"+encodeURIComponent(a):"")+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+u+"\x26h\x3d"+x+"\x26border\x3d"+f+"\x26xml\x3d"+encodeURIComponent(q))})):mxUtils.alert(mxResources.get("drawingTooLarge"))}})})();function DiagramPage(a){this.node=a}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")}; +!1,ExportDialog.exportFile=function(a,b,c,d,e,f){var g=a.editor.graph;if("xml"==c)a.hideDialog(),a.saveData(b,"xml",mxUtils.getXml(a.editor.getGraphXml()),"text/xml");else if("svg"==c)a.hideDialog(),a.saveData(b,"svg",mxUtils.getXml(g.getSvg(d,e,f)),"image/svg+xml");else{var q=a.getFileData(!0,null,null,null,null,!0),t=g.getGraphBounds(),u=Math.floor(t.width*e/g.view.scale),x=Math.floor(t.height*e/g.view.scale);q.length<=MAX_REQUEST_SIZE&&u*x<MAX_AREA?(a.hideDialog(),a.saveRequest(b,c,function(a, +b){return new mxXmlRequest(EXPORT_URL,"format\x3d"+c+"\x26base64\x3d"+(b||"0")+(null!=a?"\x26filename\x3d"+encodeURIComponent(a):"")+"\x26bg\x3d"+(null!=d?d:"none")+"\x26w\x3d"+u+"\x26h\x3d"+x+"\x26border\x3d"+f+"\x26xml\x3d"+encodeURIComponent(q))})):mxUtils.alert(mxResources.get("drawingTooLarge"))}})})();function DiagramPage(a){this.node=a}DiagramPage.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")}; DiagramPage.prototype.setName=function(a){null==a?this.node.removeAttribute("name"):this.node.setAttribute("name",a)};function RenamePage(a,b,c){this.ui=a;this.page=b;this.previous=c}RenamePage.prototype.execute=function(){var a=this.page.getName();this.page.setName(this.previous);this.previous=a;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageRenamed"))};function MovePage(a,b,c){this.ui=a;this.oldIndex=b;this.newIndex=c} MovePage.prototype.execute=function(){this.ui.pages.splice(this.newIndex,0,this.ui.pages.splice(this.oldIndex,1)[0]);var a=this.oldIndex;this.oldIndex=this.newIndex;this.newIndex=a;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageMoved"))};function SelectPage(a,b){this.ui=a;this.previousPage=this.page=b;this.neverShown=!0;null!=b&&(this.neverShown=null==b.viewState,this.ui.updatePageRoot(b))} SelectPage.prototype.execute=function(){var a=mxUtils.indexOf(this.ui.pages,this.previousPage);if(null!=this.page&&0<=a){var a=this.ui.currentPage,b=this.ui.editor,c=b.graph,d=b.graph.compress(c.zapGremlins(mxUtils.getXml(b.getGraphXml(!0))));mxUtils.setTextContent(a.node,d);a.viewState=c.getViewState();a.root=c.model.root;c.view.clear(a.root,!0);c.clearSelection();this.ui.currentPage=this.previousPage;this.previousPage=a;a=this.ui.currentPage;c.model.rootChanged(a.root);c.setViewState(a.viewState); |