From bb41d938c66e026982cbdd2abc987033e5cf89f1 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Fri, 22 May 2026 13:23:02 +0200 Subject: [PATCH 1/3] feat(map): show fill picker when status bg disabled Previously the Format panel always hid the fill picker for RESOURCE and CONTAINER cells. Match the existing WIDGET OUTPUT behavior: hide it only when useBackgroundStatusColor is true, since the status color would otherwise override the picked fill. The stroke panel continues to hide for all RESOURCE and CONTAINER cells. Assisted-by: Claude Code (claude-opus-4-7) --- src/main/webapp/js/app.min.js | 6 +- src/main/webapp/js/grapheditor/Format.js | 12 +- src/main/webapp/js/integrate.min.js | 484 +++++++++++------------ 3 files changed, 254 insertions(+), 248 deletions(-) diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js index 1d0c00d804..95b64efe8f 100644 --- a/src/main/webapp/js/app.min.js +++ b/src/main/webapp/js/app.min.js @@ -3070,9 +3070,9 @@ D?D.fontSize:null;return null!=D&&"px"==D.substring(D.length-2)?parseFloat(D):mx null!=U?"":"none",document.activeElement!=J&&("FONT"==ha.nodeName&&"4"==ha.getAttribute("size")&&null!=W?(ha.removeAttribute("size"),ha.style.fontSize=W+" pt",W=null):J.value=isNaN(Za)?"":Za+" pt",A=parseFloat(eb),isNaN(A)?ya.value="100 %":ya.value=Math.round(100*A)+" %"),null!=N&&(Q="rgba(0, 0, 0, 0)"==Na.backgroundColor||"transparent"==Na.backgroundColor?mxConstants.NONE:mxUtils.rgba2hex(Na.backgroundColor),N(Q,!0)),null!=t.firstChild&&(t.firstChild.nodeValue=Graph.stripQuotes(Na.fontFamily)))}Ya= !1},0))};(mxClient.IS_FF||mxClient.IS_EDGE||mxClient.IS_IE||mxClient.IS_IE11)&&mxEvent.addListener(e.cellEditor.textarea,"DOMSubtreeModified",d);mxEvent.addListener(e.cellEditor.textarea,"input",d);mxEvent.addListener(e.cellEditor.textarea,"touchend",d);mxEvent.addListener(e.cellEditor.textarea,"mouseup",d);mxEvent.addListener(e.cellEditor.textarea,"keyup",d);this.listeners.push({destroy:function(){}});d()}return a};StyleFormatPanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);this.init()}; mxUtils.extend(StyleFormatPanel,BaseFormatPanel);StyleFormatPanel.prototype.defaultStrokeColor="black"; -StyleFormatPanel.prototype.init=function(){var a=this.editorUi.getSelectionState(),b=a.cells;if(!a.containsLabel&&0/g," ").replace(/ /g," "):S,P}}).filter(function(T){return void 0!==T})}var q=d.getSelectionCell()||d.getModel().getRoot();if(q&&q.value){var x=q.getAttribute("type");if(!("WIDGET"===x&&"LINK_LEGEND"=== -q.getAttribute("widgetType")||"LINK"===x&&"SIMPLE"===q.getAttribute("linkType"))&&["LINK","MEDIA","RESOURCE","WIDGET","CONTAINER"].includes(x)){x="type resourceType resourceId displayLabel displayImage displayParentName useResourceName label resourceName modelId viewId parentName parentType parentId displayWeatherStatusBackgroundColor useBackgroundStatusColor".split(" ");var B="type linkType parentName parentType parentId resourceType resourceId resourceName modelId metric1Min metric1Max metric2Min metric2Max metricName1 metricName2 displayPercent".split(" "), +q.getAttribute("widgetType")||"LINK"===x&&"SIMPLE"===q.getAttribute("linkType"))&&["LINK","MEDIA","RESOURCE","WIDGET","CONTAINER"].includes(x)){x="type resourceType resourceId displayLabel displayImage displayParentName useResourceName label resourceName modelId viewId parentName parentType parentId displayWeatherStatusBackgroundColor useBackgroundStatusColor".split(" ");var B="type linkType parentName parentType parentId resourceType resourceId resourceName resource2Id resource2Name modelId metric1Min metric1Max metric2Min metric2Max metricName1 metricName2 displayPercent".split(" "), C="type mediaType newTab elementUrl imageName centreonImageId label".split(" "),F="type widgetType resourceType useFontStatusColor useBackgroundStatusColor applyStatusColor resourceId pieChartInnerRadius useFontStatusColor pieChartDisplayLabel pieChartExplosion outputWidgetFormat chartDisplayThreshold chartFillLines chartNbPoints chartPeriod chartShowGrid chartStack displayLegend hiddenLine metric1Max metric1Min metricName1 metric2Max metric2Min metricName2 metricsColorStart metricsColorEnd parentName parentType parentId displayPercent resourceName orientation useResourceName displayLabel displayParentName label".split(" "), -I="type modelId viewId imageName centreonImageId label displayLabel displayImage displayWeatherStatusBackgroundColor useBackgroundStatusColor".split(" "),E=[];void 0!==q.getAttribute("resourceType")&&(E=k(x));void 0!==q.getAttribute("linkType")&&(E=k(B));void 0!==q.getAttribute("mediaType")&&(E=k(C));void 0!==q.getAttribute("widgetType")&&(E=k(F));"CONTAINER"===q.getAttribute("type")&&(E=k(I));parent.postMessage(JSON.stringify({mxObject:E,mxStyle:q.getStyle(),event:"setShowWizardShapeProperties"}), +I="type modelId viewId imageName centreonImageId label displayLabel displayImage displayWeatherStatusBackgroundColor useBackgroundStatusColor".split(" "),E=[];void 0!==q.getAttribute("resourceType")&&(E=k(x));void 0!==q.getAttribute("linkType")&&(E=k(B));void 0!==q.getAttribute("mediaType")&&(E=k(C));void 0!==q.getAttribute("widgetType")&&(E=k(F));"CONTAINER"===q.getAttribute("type")&&(E=k(I));d._centreonEditCell=q;parent.postMessage(JSON.stringify({mxObject:E,mxStyle:q.getStyle(),event:"setShowWizardShapeProperties"}), "*")}}},null,null,Editor.ctrlKey+"+E");this.addAction("editCentreonStyle",function(){var k=d.getSelectionCells()||d.getModel().getRoot();if(k){var q=["RESOURCE","CONTAINER"];k=k.filter(function(x){x=x.getAttribute("type");return q.includes(x)});1>k.length||(1===k.length?(k=d.getCellStyle(k[0]).style,parent.postMessage(JSON.stringify({mxObject:[{type:"RESOURCE_AND_CONTAINER"}],mxStyle:k||"ICON",event:"setCentreonStyle"}),"*")):parent.postMessage(JSON.stringify({mxObject:[{type:"RESOURCE_AND_CONTAINER"}], mxStyle:"ICON",event:"setCentreonStyle"}),"*"))}},null,null,Editor.ctrlKey+"+E");this.addAction("createMapFromContainer",function(){function k(B){return B.map(function(C){if(void 0!==q.getAttribute(C)){var F=q.getAttribute(C),I={};return I[C]="label"===C?F.replace(/
/g," ").replace(/ /g," "):F,I}}).filter(function(C){return void 0!==C})}var q=d.getSelectionCell()||d.getModel().getRoot(),x="type modelId viewId imageName centreonImageId label".split(" ");"CONTAINER"===q.getAttribute("type")&& (cellAttributes=k(x),parent.postMessage(JSON.stringify({mxObject:cellAttributes,mxStyle:q.getStyle(),event:"createMapFromContainer"}),"*"))},null,null,Editor.ctrlKey+"+Shift+C");this.addAction("editContent",function(){var k=d.getSelectionCell()||d.getModel().getRoot();null!==k&&(k.getAttribute("viewId")&&k.getAttribute("label")&&"CONTAINER"===k.getAttribute("type")?0==e.pages.filter(function(q){return q.getViewId()===k.getAttribute("viewId")}).length?parent.postMessage(JSON.stringify({event:"createDrawioPageFromContainer", @@ -11921,78 +11921,78 @@ mxResources.get("invalidOrMissingFile")),!ca){K=null!=Z?this.editor.extractGraph mxUtils.parseXml(G.xml).documentElement:null,ca=Editor.extractParserError(Z,mxResources.get("invalidOrMissingFile")),ca||(K=null!=Z?this.editor.extractGraphModel(Z,!0):null,null!=K&&(Z=K),null!=Z&&(this.editor.setGraphXml(Z),this.editor.setModified(!1)));else if("Save"==G.action)this.actions.get("save").funct();else if("Exit"==G.action)this.actions.get("exit").funct();else if("merge"==G.action){var fa=this.getCurrentFile();null!=fa&&(K=q(G.xml),null!=K&&""!=K&&fa.mergeFile(new LocalFile(this,K),function(){x.postMessage(JSON.stringify({event:"merge", message:G}),"*")},function(aa){x.postMessage(JSON.stringify({event:"merge",message:G,error:aa}),"*")}))}else if("remoteInvokeReady"==G.action)this.handleRemoteInvokeReady(x);else if("remoteInvoke"==G.action)this.handleRemoteInvoke(G,E.origin);else if("remoteInvokeResponse"==G.action)this.handleRemoteInvokeResponse(G);else if("setStyleProperties"===G.action){L=this.editor.graph;if("ResourcesAndContainer"===G.shapes){for(var Ea=["RESOURCE","CONTAINER"],Ca=L.getSelectionCells().filter(function(aa){aa= aa.getAttribute("type");return Ea.includes(aa)}),xa=$jscomp.makeIterator(Object.entries(G.data)),wa=xa.next();!wa.done;wa=xa.next()){var ia=$jscomp.makeIterator(wa.value),Pa=ia.next().value,Ma=ia.next().value;"style"===Pa&&L.handleCentreonStyleChangeForCells(Ca,Ma);L.setCellStyles(Pa,Ma,Ca)}return}for(var va=L.getSelectionCell(),Ha=L.getModel().getStyle(va),pa=$jscomp.makeIterator(Object.entries(G.data)),Oa=pa.next();!Oa.done;Oa=pa.next()){var ua=$jscomp.makeIterator(Oa.value),za=ua.next().value, -Aa=ua.next().value;if(Ha.includes(za)){var Na=new RegExp(za+"=(.+?);","g");"style"===za&&L.handleCentreonStyleChange(va,Ha,Aa);Ha=Ha.replace(Na,za+"="+Aa+";")}}L.getModel().setStyle(va,Ha)}else if("setDataProperties"===G.action){L=this.editor.graph;va=L.getSelectionCell();var ka=L.getModel().getValue(va);ka=ka.cloneNode(!0);void 0!==G&&void 0!==G.data&&Object.entries(G.data).forEach(function(aa){var ha=$jscomp.makeIterator(aa);aa=ha.next().value;ha=ha.next().value;ka.setAttribute(aa,ha)});if("CONTAINER"=== -va.getAttribute("type")&&0=aa.status&&"mxUtils.indexOf(v,pa)&&v.push(pa),E.fireEvent(new mxEventObject("cellsInserted","cells",[pa])));g=null!=pa;pa=ua;if(!g)for(Ma=0;MamxUtils.indexOf(v,Fa)}; -this.executeLayout(function(){ta.execute(E.getDefaultParent());ma()},!0,W);W=null}else if("horizontaltree"==ea||"verticaltree"==ea||"auto"==ea&&na.length==2*v.length-1&&1==sa.length){E.view.validate();var aa=new mxCompactTreeLayout(E,"horizontaltree"==ea);aa.levelDistance=M;aa.edgeRouting=!1;aa.resetEdges=!1;this.executeLayout(function(){aa.execute(E.getDefaultParent(),0mxUtils.indexOf(v,Fa)};this.executeLayout(function(){ja.execute(E.getDefaultParent()); -ma()},!0,W);W=null}else if("organic"==ea||"auto"==ea&&na.length>v.length){E.view.validate();var La=new mxFastOrganicLayout(E);La.forceConstant=3*M;La.disableEdgeStyle=!1;La.resetEdges=!1;var Va=La.isVertexIgnored;La.isVertexIgnored=function(Fa){return Va.apply(this,arguments)||0>mxUtils.indexOf(v,Fa)};this.executeLayout(function(){La.execute(E.getDefaultParent());ma()},!0,W);W=null}}this.hideDialog()}finally{E.model.endUpdate()}null!=W&&W()}}catch(Fa){this.handleError(Fa)}};EditorUi.prototype.getSearch= -function(c){var e="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0mxUtils.indexOf(c,p)&&null!=urlParams[p]&&(e+=g+p+"="+urlParams[p],g="&")}else e=window.location.search;return e};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var e=0mxUtils.indexOf(g,p)&&(c=0==e?c+"?":c+"&",null!=urlParams[p]&&(c+=p+"="+urlParams[p],e++))}return c};EditorUi.prototype.showLinkDialog=function(c,e,g,p,n){c=new LinkDialog(this,c,e,g,!0,p,n);this.showDialog(c.container,560,130,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var e=1;null==this.drive&&"function"!==typeof window.DriveClient||e++;null==this.dropbox&&"function"!==typeof window.DropboxClient||e++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient|| -e++;null!=this.gitHub&&e++;null!=this.gitLab&&e++;c&&isLocalStorage&&"1"==urlParams.browser&&e++;return e};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var c=this.getCurrentFile(),e=null!=c||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(e);this.menus.get("viewZoom").setEnabled(e);var g=("1"!=urlParams.embed||!this.editor.graph.isEnabled())&&(null==c||c.isRestricted());this.actions.get("makeCopy").setEnabled(!g); -this.actions.get("print").setEnabled(!g);this.menus.get("exportAs").setEnabled(!g);this.menus.get("embed").setEnabled(!g);g="1"!=urlParams.embed||this.editor.graph.isEnabled();this.menus.get("extras").setEnabled(g);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(g),this.menus.get("newLibrary").setEnabled(g));c="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=c&&c.isEditable();this.actions.get("image").setEnabled(e);this.actions.get("zoomIn").setEnabled(e);this.actions.get("zoomOut").setEnabled(e); -this.actions.get("smartFit").setEnabled(e);this.actions.get("resetView").setEnabled(e);this.actions.get("toggleDarkMode").setEnabled("atlas"!=Editor.currentTheme);this.actions.get("undo").setEnabled(this.canUndo()&&c);this.actions.get("redo").setEnabled(this.canRedo()&&c);this.menus.get("edit").setEnabled(e);this.menus.get("view").setEnabled(e);this.menus.get("importFrom").setEnabled(c);this.menus.get("arrange").setEnabled(c);null!=this.toolbar&&(null!=this.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(c), -null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(c));this.updateUserElement()};EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.updateUserElement=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var c=this.getCurrentFile();return null!=c&&c.isEditable()||"1"==urlParams.embed&&this.editor.graph.isEnabled()};var N=EditorUi.prototype.createSidebar; -EditorUi.prototype.createSidebar=function(c){var e=N.apply(this,arguments);this.addListener("darkModeChanged",mxUtils.bind(this,function(){e.refresh()}));this.addListener("sketchModeChanged",mxUtils.bind(this,function(){e.refresh()}));return e};var C=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){C.apply(this,arguments);var c=this.editor.graph,e=this.getCurrentFile(),g=this.getSelectionState(),p=this.isDiagramActive();this.actions.get("pageSetup").setEnabled(p); -this.actions.get("autosave").setEnabled(null!=e&&e.isEditable()&&e.isAutosaveOptional());this.actions.get("guides").setEnabled(p);this.actions.get("editData").setEnabled(c.isEnabled());this.actions.get("editConnectionPoints").setEnabled(p&&0==g.edges.length&&1==g.vertices.length);this.actions.get("editImage").setEnabled(p&&g.image&&0';var v={};try{var x=mxSettings.getCustomLibraries();for(c=0;c'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+ -"";else for(var G=0;Gn.oldVersion&&v.createObjectStore("objects",{keyPath:"key"});2>n.oldVersion&&(v.createObjectStore("files",{keyPath:"title"}),v.createObjectStore("filesInfo", -{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(x){null!=e&&e(x)}};p.onsuccess=mxUtils.bind(this,function(n){var v=p.result;this.database=v;EditorUi.migrateStorageFiles&&(StorageFile.migrate(v),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(x){if(!x||"1"==urlParams.forceMigration){var B=document.createElement("iframe");B.style.display= -"none";B.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(B);var E=!0,P=!1,G,l=0,q=mxUtils.bind(this,function(){P=!0;this.setDatabaseItem(".drawioMigrated3",!0);B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),z=mxUtils.bind(this,function(){l++;F()}),F=mxUtils.bind(this,function(){try{if(l>=G.length)q();else{var J=G[l];StorageFile.getFileContent(this,J,mxUtils.bind(this, -function(H){null==H||".scratchpad"==J&&H==this.emptyLibraryXml?B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[J]}),"*"):z()}),z)}}catch(H){console.log(H)}}),K=mxUtils.bind(this,function(J){try{this.setDatabaseItem(null,[{title:J.title,size:J.data.length,lastModified:Date.now(),type:J.isLib?"L":"F"},{title:J.title,data:J.data}],z,z,["filesInfo","files"])}catch(H){console.log(H)}});x=mxUtils.bind(this,function(J){try{if(J.source==B.contentWindow){var H= -{};try{H=JSON.parse(J.data)}catch(Q){}"init"==H.event?(B.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=H.event||P||(E?null!=H.resp&&0"===p.substring(0,12);p=""===p.substring(0,11);(n||p)&&c.push(g)}}return c};EditorUi.prototype.getLocalStorageFile= -function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var e=localStorage.getItem(c);return{title:c,data:e,isLib:""===e.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})(); +Aa=ua.next().value;if(Ha.includes(za)){var Na=new RegExp(za+"=(.+?);","g");"style"===za&&L.handleCentreonStyleChange(va,Ha,Aa);Ha=Ha.replace(Na,za+"="+Aa+";")}}L.getModel().setStyle(va,Ha)}else if("setDataProperties"===G.action){L=this.editor.graph;va=L.getSelectionCell()||L._centreonEditCell;L._centreonEditCell=null;var ka=L.getModel().getValue(va);ka=ka.cloneNode(!0);void 0!==G&&void 0!==G.data&&Object.entries(G.data).forEach(function(aa){var ha=$jscomp.makeIterator(aa);aa=ha.next().value;ha=ha.next().value; +ka.setAttribute(aa,ha)});if("CONTAINER"===va.getAttribute("type")&&0=aa.status&&"mxUtils.indexOf(v,pa)&&v.push(pa),E.fireEvent(new mxEventObject("cellsInserted","cells",[pa])));g=null!=pa;pa=ua;if(!g)for(Ma=0;MamxUtils.indexOf(v,Fa)};this.executeLayout(function(){ta.execute(E.getDefaultParent());ma()},!0,W);W=null}else if("horizontaltree"==ea||"verticaltree"==ea||"auto"==ea&&na.length==2*v.length-1&&1==sa.length){E.view.validate();var aa=new mxCompactTreeLayout(E,"horizontaltree"==ea);aa.levelDistance=M;aa.edgeRouting=!1;aa.resetEdges=!1;this.executeLayout(function(){aa.execute(E.getDefaultParent(), +0mxUtils.indexOf(v,Fa)};this.executeLayout(function(){ja.execute(E.getDefaultParent());ma()},!0,W);W=null}else if("organic"==ea||"auto"==ea&&na.length>v.length){E.view.validate();var La=new mxFastOrganicLayout(E);La.forceConstant=3*M;La.disableEdgeStyle=!1;La.resetEdges=!1;var Va=La.isVertexIgnored;La.isVertexIgnored=function(Fa){return Va.apply(this,arguments)||0>mxUtils.indexOf(v,Fa)};this.executeLayout(function(){La.execute(E.getDefaultParent()); +ma()},!0,W);W=null}}this.hideDialog()}finally{E.model.endUpdate()}null!=W&&W()}}catch(Fa){this.handleError(Fa)}};EditorUi.prototype.getSearch=function(c){var e="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0mxUtils.indexOf(c,p)&&null!=urlParams[p]&&(e+=g+p+"="+urlParams[p],g="&")}else e=window.location.search;return e};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var e=0mxUtils.indexOf(g,p)&&(c=0==e?c+"?":c+"&",null!=urlParams[p]&&(c+=p+"="+urlParams[p],e++))}return c};EditorUi.prototype.showLinkDialog=function(c,e,g,p,n){c=new LinkDialog(this,c,e,g,!0,p,n);this.showDialog(c.container,560,130,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var e=1;null==this.drive&& +"function"!==typeof window.DriveClient||e++;null==this.dropbox&&"function"!==typeof window.DropboxClient||e++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||e++;null!=this.gitHub&&e++;null!=this.gitLab&&e++;c&&isLocalStorage&&"1"==urlParams.browser&&e++;return e};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var c=this.getCurrentFile(),e=null!=c||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(e); +this.menus.get("viewZoom").setEnabled(e);var g=("1"!=urlParams.embed||!this.editor.graph.isEnabled())&&(null==c||c.isRestricted());this.actions.get("makeCopy").setEnabled(!g);this.actions.get("print").setEnabled(!g);this.menus.get("exportAs").setEnabled(!g);this.menus.get("embed").setEnabled(!g);g="1"!=urlParams.embed||this.editor.graph.isEnabled();this.menus.get("extras").setEnabled(g);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(g),this.menus.get("newLibrary").setEnabled(g)); +c="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=c&&c.isEditable();this.actions.get("image").setEnabled(e);this.actions.get("zoomIn").setEnabled(e);this.actions.get("zoomOut").setEnabled(e);this.actions.get("smartFit").setEnabled(e);this.actions.get("resetView").setEnabled(e);this.actions.get("toggleDarkMode").setEnabled("atlas"!=Editor.currentTheme);this.actions.get("undo").setEnabled(this.canUndo()&&c);this.actions.get("redo").setEnabled(this.canRedo()&&c);this.menus.get("edit").setEnabled(e); +this.menus.get("view").setEnabled(e);this.menus.get("importFrom").setEnabled(c);this.menus.get("arrange").setEnabled(c);null!=this.toolbar&&(null!=this.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(c),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(c));this.updateUserElement()};EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.updateUserElement=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck= +function(){};EditorUi.prototype.isDiagramActive=function(){var c=this.getCurrentFile();return null!=c&&c.isEditable()||"1"==urlParams.embed&&this.editor.graph.isEnabled()};var N=EditorUi.prototype.createSidebar;EditorUi.prototype.createSidebar=function(c){var e=N.apply(this,arguments);this.addListener("darkModeChanged",mxUtils.bind(this,function(){e.refresh()}));this.addListener("sketchModeChanged",mxUtils.bind(this,function(){e.refresh()}));return e};var C=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates= +function(){C.apply(this,arguments);var c=this.editor.graph,e=this.getCurrentFile(),g=this.getSelectionState(),p=this.isDiagramActive();this.actions.get("pageSetup").setEnabled(p);this.actions.get("autosave").setEnabled(null!=e&&e.isEditable()&&e.isAutosaveOptional());this.actions.get("guides").setEnabled(p);this.actions.get("editData").setEnabled(c.isEnabled());this.actions.get("editConnectionPoints").setEnabled(p&&0==g.edges.length&&1==g.vertices.length);this.actions.get("editImage").setEnabled(p&& +g.image&&0';var v={};try{var x=mxSettings.getCustomLibraries();for(c=0;c'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"";else for(var G=0;Gn.oldVersion&&v.createObjectStore("objects",{keyPath:"key"}); +2>n.oldVersion&&(v.createObjectStore("files",{keyPath:"title"}),v.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(x){null!=e&&e(x)}};p.onsuccess=mxUtils.bind(this,function(n){var v=p.result;this.database=v;EditorUi.migrateStorageFiles&&(StorageFile.migrate(v),EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(x){if(!x|| +"1"==urlParams.forceMigration){var B=document.createElement("iframe");B.style.display="none";B.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(B);var E=!0,P=!1,G,l=0,q=mxUtils.bind(this,function(){P=!0;this.setDatabaseItem(".drawioMigrated3",!0);B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),z=mxUtils.bind(this,function(){l++;F()}),F=mxUtils.bind(this,function(){try{if(l>= +G.length)q();else{var J=G[l];StorageFile.getFileContent(this,J,mxUtils.bind(this,function(H){null==H||".scratchpad"==J&&H==this.emptyLibraryXml?B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[J]}),"*"):z()}),z)}}catch(H){console.log(H)}}),K=mxUtils.bind(this,function(J){try{this.setDatabaseItem(null,[{title:J.title,size:J.data.length,lastModified:Date.now(),type:J.isLib?"L":"F"},{title:J.title,data:J.data}],z,z,["filesInfo","files"])}catch(H){console.log(H)}}); +x=mxUtils.bind(this,function(J){try{if(J.source==B.contentWindow){var H={};try{H=JSON.parse(J.data)}catch(Q){}"init"==H.event?(B.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),B.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),"*")):"remoteInvokeResponse"!=H.event||P||(E?null!=H.resp&&0"===p.substring(0,12);p=""===p.substring(0,11);(n|| +p)&&c.push(g)}}return c};EditorUi.prototype.getLocalStorageFile=function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var e=localStorage.getItem(c);return{title:c,data:e,isLib:""===e.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})(); var CommentsWindow=function(b,f,k,d,t,u){function A(){for(var z=x.getElementsByTagName("div"),F=0,K=0;K Date: Fri, 22 May 2026 15:42:14 +0200 Subject: [PATCH 2/3] feat(map): preserve fill on GEOMETRIC switch GEOMETRIC resources always render the status color and ignore the user's fill. Hide the fill picker for GEOMETRIC cells in the Format panel. In handleCentreonStyleChange, save the current imageBackground onto fillColor when switching to GEOMETRIC, then clear imageBackground; on the way back, restore imageBackground from the saved fillColor. Also fix the setStyleProperties handler to re-read the cell's style after handleCentreonStyleChange, since the latter writes through setCellStyles. Without the re-read, the final setStyle() call clobbers those changes. The Resource wizard hit this; the ResourcesAndContainer path already used setCellStyles per key and was unaffected. Assisted-by: Claude Code (claude-opus-4-7) --- src/main/webapp/js/app.min.js | 268 ++-- src/main/webapp/js/diagramly/EditorUi.js | 4 + src/main/webapp/js/grapheditor/Format.js | 3 +- src/main/webapp/js/grapheditor/Graph.js | 18 + src/main/webapp/js/integrate.min.js | 158 +-- src/main/webapp/js/viewer-static.min.js | 1567 +++++++++++----------- src/main/webapp/js/viewer.min.js | 1567 +++++++++++----------- 7 files changed, 1807 insertions(+), 1778 deletions(-) diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js index 95b64efe8f..4758aade71 100644 --- a/src/main/webapp/js/app.min.js +++ b/src/main/webapp/js/app.min.js @@ -2806,72 +2806,73 @@ this.getCellGeometry(A);null!=fa&&(fa=fa.clone(),fa.width-=u,z.setGeometry(A,fa) V.height-=u,z.setGeometry(A,V))}}finally{z.endUpdate()}};Graph.prototype.insertRow=function(u,z){for(var A=u.tBodies[0],D=A.rows[0].cells,G=u=0;Gz&&u[A].deleteCell(z)}};Graph.prototype.pasteHtmlAtCaret=function(u){if(window.getSelection){var z=window.getSelection();if(z.getRangeAt&&z.rangeCount){z=z.getRangeAt(0);z.deleteContents();var A=document.createElement("div"); A.innerHTML=u;u=document.createDocumentFragment();for(var D;D=A.firstChild;)lastNode=u.appendChild(D);z.insertNode(u)}}else(z=document.selection)&&"Control"!=z.type&&z.createRange().pasteHTML(u)};Graph.prototype.getCentrenMapImagePath=function(u){return window.localStorage.getItem("centreon-url")+"/modules/centreon-map4-web-client/img/"+u};Graph.prototype.setCellDimensions=function(u,z,A){var D=this.getCellGeometry(u);null!=D&&(D=D.clone(),z&&(D.width=z),A&&(D.height=A),this.getModel().setGeometry(u, -D))};Graph.prototype.handleCentreonStyleChangeForCells=function(u,z){var A=this;u.forEach(function(D){var G=A.getModel().getStyle(D);A.handleCentreonStyleChange(D,G,z)})};Graph.prototype.handleCentreonStyleChange=function(u,z,A){"GEOMETRIC"!==A||z.includes("style=GEOMETRIC;")?"GEOMETRIC"!==A&&z.includes("style=GEOMETRIC;")&&this.setCellDimensions(u,84,84):this.setCellDimensions(u,20,20);"WEATHER"!==A||z.includes("style=WEATHER;")?"WEATHER"!==A&&z.includes("style=WEATHER;")&&this.removeWeatherIconToResource(u): -this.addWeatherIconToResource(u)};Graph.prototype.getValueByCell=function(u,z){var A=u.getAttribute("type");u=this.getCellStyle(u).style;return"WIDGET"===A&&84>z?84:(A="RESOURCE"===A||"CONTAINER"===A)&&u&&"GEOMETRIC"!==u&&84>=z||A&&u&&"GEOMETRIC"===u&&84z?20:z};Graph.prototype.addWeatherIconToResource=function(u){var z=this.getCentrenMapImagePath("weather/weather.svg");z=new mxImage(z,30,30);z=new mxCellOverlay(z,"Weather",null,mxConstants.ALIGN_TOP);this.addCellOverlay(u, -z)};Graph.prototype.removeWeatherIconToResource=function(u){this.removeCellOverlay(u)};Graph.prototype.createLinkForHint=function(u,z){function A(G,L){G.length>L&&(G=G.substring(0,Math.round(L/2))+"..."+G.substring(G.length-Math.round(L/4)));return G}u=null!=u?u:"javascript:void(0);";if(null==z||0==z.length)z=this.isCustomLink(u)?this.getLinkTitle(u):u;var D=document.createElement("a");D.setAttribute("rel",this.linkRelation);D.setAttribute("href",this.getAbsoluteUrl(u));D.setAttribute("title",A(this.isCustomLink(u)? -this.getLinkTitle(u):u,80));null!=this.linkTarget&&D.setAttribute("target",this.linkTarget);mxUtils.write(D,A(z,40));this.isCustomLink(u)&&mxEvent.addListener(D,"click",mxUtils.bind(this,function(G){this.customLinkClicked(u);mxEvent.consume(G)}));return D};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(L,V){this.popupMenuHandler.hideMenu()});var u=this.updateMouseEvent; -this.updateMouseEvent=function(L){L=u.apply(this,arguments);if(mxEvent.isTouchEvent(L.getEvent())&&null==L.getState()){var V=this.getCellAt(L.graphX,L.graphY);null!=V&&this.isSwimlane(V)&&this.hitsSwimlaneContent(V,L.graphX,L.graphY)||(L.state=this.view.getState(V),null!=L.state&&null!=L.state.shape&&(this.container.style.cursor=L.state.shape.node.style.cursor))}null==L.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return L};var z=!1,A=!1,D=!1,G=this.fireMouseEvent;this.fireMouseEvent= -function(L,V,ea){L==mxEvent.MOUSE_DOWN&&(V=this.updateMouseEvent(V),z=this.isCellSelected(V.getCell()),A=this.isSelectionEmpty(),D=this.popupMenuHandler.isMenuShowing());G.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(L,V){var ea=mxEvent.isMouseEvent(V.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==V.getState()||!V.isSource(V.getState().control))&&(this.popupMenuHandler.popupTrigger||!D&&!ea&&(A&&null==V.getCell()&&this.isSelectionEmpty()|| -z&&this.isCellSelected(V.getCell())));ea=!z||ea?null:mxUtils.bind(this,function(ba){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var fa=mxUtils.getScrollOrigin();this.popupMenuHandler.popup(V.getX()+fa.x+1,V.getY()+fa.y+1,ba,V.getEvent())}}),500)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,[L,V,ea])})};mxCellEditor.prototype.isContentEditing=function(){var u=this.graph.view.getState(this.editingCell);return null!=u&&1==u.style.html};mxCellEditor.prototype.isTableSelected= -function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected=function(){var u="";window.getSelection?u=window.getSelection():document.getSelection?u=document.getSelection():document.selection&&(u=document.selection.createRange().text);return""!=u};mxCellEditor.prototype.insertTab=function(u){var z=this.textarea.ownerDocument.defaultView.getSelection(),A=z.getRangeAt(0),D="\t";if(null!=u)for(D="";0")||0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")?A(this.textarea,L):Graph.removePasteFormatting(this.textarea))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var u=this.graph.view.getState(this.editingCell);if(null!=u){var z=null!=u&&"0"!=mxUtils.getValue(u.style,"nl2Br","1"),A=this.saveSelection();if(this.codeViewMode){ea=mxUtils.extractTextWithWhitespace(this.textarea.childNodes); -0"):ea,!0);this.textarea.className="mxCellEditor geContentEditable";ba=mxUtils.getValue(u.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);z=mxUtils.getValue(u.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var D=mxUtils.getValue(u.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),G=(mxUtils.getValue(u.style,mxConstants.STYLE_FONTSTYLE,0)& -mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,L=(mxUtils.getValue(u.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,V=[];(mxUtils.getValue(u.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&V.push("underline");(mxUtils.getValue(u.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&V.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT? -Math.round(ba*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ba)+"px";this.textarea.style.textDecoration=V.join(" ");this.textarea.style.fontWeight=G?"bold":"normal";this.textarea.style.fontStyle=L?"italic":"";this.textarea.style.fontFamily=z;this.textarea.style.textAlign=D;this.textarea.style.padding="0px";this.textarea.innerHTML!=ea&&(this.textarea.innerHTML=ea,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange= -0
"));ea=Graph.sanitizeHtml(z?ea.replace(/\n/g,"").replace(/<br\s*.?>/g,"
"):ea,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var ba=mxConstants.DEFAULT_FONTSIZE; -this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(ba*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ba)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=ea&&(this.textarea.innerHTML= -ea);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=A;this.resize()}};var T=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(u,z){if(null!=this.textarea)if(u=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=u){var A=u.view.scale;this.bounds=mxRectangle.fromRectangle(u);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*A;this.bounds.height= -60*A;var D=null!=u.text?u.text.margin:null;null==D&&(D=mxUtils.getAlignmentAsPoint(mxUtils.getValue(u.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),mxUtils.getValue(u.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=D.x*this.bounds.width;this.bounds.y+=D.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/A)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/A)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight< -this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/A)+(this.textarea.offsetHeight-this.textarea.clientHeight)+"px",this.bounds.height=parseInt(this.textarea.style.height)*A);this.textarea.clientWidth"));return A=Graph.sanitizeHtml(A,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=function(u){if("0"==mxUtils.getValue(u.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var z=Graph.sanitizeHtml(this.textarea.innerHTML,!0);return z="1"==mxUtils.getValue(u.style,"nl2Br","1")?z.replace(/\r\n/g,"
").replace(/\n/g,"
"):z.replace(/\r\n/g,"").replace(/\n/g,"")};var S=mxCellEditor.prototype.stopEditing; -mxCellEditor.prototype.stopEditing=function(u){this.codeViewMode&&this.toggleViewMode();S.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=function(){try{this.graph.container.focus()}catch(u){}};var P=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(u,z){this.graph.getModel().beginUpdate();try{P.apply(this,arguments),""==z&&this.graph.isCellDeletable(u.cell)&&0==this.graph.model.getChildCount(u.cell)&&this.graph.isTransparentState(u)&& -this.graph.removeCells([u.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(u){var z=mxUtils.getValue(u.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null);null!=z&&z!=mxConstants.NONE||!(null!=u.cell.geometry&&0ea.x+ea.width&&(this.unscaledBounds.width-=this.unscaledBounds.x+this.unscaledBounds.width-ea.x-ea.width),this.unscaledBounds.y+this.unscaledBounds.height>ea.y+ea.height&&(this.unscaledBounds.height-=this.unscaledBounds.y+this.unscaledBounds.height-ea.y-ea.height)));G=this.bounds;this.bounds=new mxRectangle((null!=this.parentState?this.parentState.x: -L.x*V)+this.unscaledBounds.x*V,(null!=this.parentState?this.parentState.y:L.y*V)+this.unscaledBounds.y*V,this.unscaledBounds.width*V,this.unscaledBounds.height*V);z.relative&&null!=this.parentState&&(this.bounds.x+=this.state.x-this.parentState.x,this.bounds.y+=this.state.y-this.parentState.y);ea=Math.cos(D);ba=Math.sin(D);z=new mxPoint(this.bounds.getCenterX(),this.bounds.getCenterY());fa=z.x-A.x;ra=z.y-A.y;A=ea*fa-ba*ra-fa;z=ba*fa+ea*ra-ra;L=this.bounds.x-this.state.x;fa=this.bounds.y-this.state.y; -D=ea*L-ba*fa;ea=ba*L+ea*fa;this.bounds.x+=A;this.bounds.y+=z;this.unscaledBounds.x=this.roundLength(this.unscaledBounds.x+A/V);this.unscaledBounds.y=this.roundLength(this.unscaledBounds.y+z/V);this.unscaledBounds.width=this.roundLength(this.unscaledBounds.width);this.unscaledBounds.height=this.roundLength(this.unscaledBounds.height);this.graph.isCellCollapsed(this.state.cell)||0==A&&0==z?this.childOffsetY=this.childOffsetX=0:(this.childOffsetX=this.state.x-this.bounds.x+D,this.childOffsetY=this.state.y- -this.bounds.y+ea);G.equals(this.bounds)||(this.livePreviewActive&&this.updateLivePreview(u),null!=this.preview?this.drawPreview():this.updateParentHighlight())};var Y=mxVertexHandler.prototype.isRotationHandleVisible;mxVertexHandler.prototype.isRotationHandleVisible=function(){return Y.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)? -this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var da=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible=function(){return da.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};var la=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(u){return u.tableHandle||la.apply(this,arguments)&& -(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var u=0;this.graph.isTableRow(this.state.cell)?u=1:this.graph.isTableCell(this.state.cell)&&(u=2);return u};var J=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=function(){return J.apply(this,arguments).grow(-this.getSelectionBorderInset())};var W=null,N=mxVertexHandler.prototype.createCustomHandles; -mxVertexHandler.prototype.createCustomHandles=function(){null==W&&(W=mxCellRenderer.defaultShapes.tableLine);var u=N.apply(this,arguments);if(this.graph.isTable(this.state.cell)){var z=function(Ka,za,wa){for(var Ca=[],Ta=0;Ta');Graph.prototype.collapsedImage=Graph.createSvgImage(9,9,''); -mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle=Graph.createSvgImage(18,18,'');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,''); -HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.endFixedHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.terminalHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.endTerminalHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.rotationHandle=Graph.createSvgImage(16,16,'', +D))};Graph.prototype.handleCentreonStyleChangeForCells=function(u,z){var A=this;u.forEach(function(D){var G=A.getModel().getStyle(D);A.handleCentreonStyleChange(D,G,z)})};Graph.prototype.handleCentreonStyleChange=function(u,z,A){if("GEOMETRIC"!==A||z.includes("style=GEOMETRIC;"))"GEOMETRIC"!==A&&z.includes("style=GEOMETRIC;")&&(this.setCellDimensions(u,84,84),D=this.getCellStyle(u)[mxConstants.STYLE_FILLCOLOR],null!=D&&this.setCellStyles(mxConstants.STYLE_IMAGE_BACKGROUND,D,[u]));else{this.setCellDimensions(u, +20,20);var D=this.getCellStyle(u)[mxConstants.STYLE_IMAGE_BACKGROUND];null!=D&&(this.setCellStyles(mxConstants.STYLE_FILLCOLOR,D,[u]),this.setCellStyles(mxConstants.STYLE_IMAGE_BACKGROUND,null,[u]))}"WEATHER"!==A||z.includes("style=WEATHER;")?"WEATHER"!==A&&z.includes("style=WEATHER;")&&this.removeWeatherIconToResource(u):this.addWeatherIconToResource(u)};Graph.prototype.getValueByCell=function(u,z){var A=u.getAttribute("type");u=this.getCellStyle(u).style;return"WIDGET"===A&&84>z?84:(A="RESOURCE"=== +A||"CONTAINER"===A)&&u&&"GEOMETRIC"!==u&&84>=z||A&&u&&"GEOMETRIC"===u&&84z?20:z};Graph.prototype.addWeatherIconToResource=function(u){var z=this.getCentrenMapImagePath("weather/weather.svg");z=new mxImage(z,30,30);z=new mxCellOverlay(z,"Weather",null,mxConstants.ALIGN_TOP);this.addCellOverlay(u,z)};Graph.prototype.removeWeatherIconToResource=function(u){this.removeCellOverlay(u)};Graph.prototype.createLinkForHint=function(u,z){function A(G,L){G.length>L&&(G=G.substring(0, +Math.round(L/2))+"..."+G.substring(G.length-Math.round(L/4)));return G}u=null!=u?u:"javascript:void(0);";if(null==z||0==z.length)z=this.isCustomLink(u)?this.getLinkTitle(u):u;var D=document.createElement("a");D.setAttribute("rel",this.linkRelation);D.setAttribute("href",this.getAbsoluteUrl(u));D.setAttribute("title",A(this.isCustomLink(u)?this.getLinkTitle(u):u,80));null!=this.linkTarget&&D.setAttribute("target",this.linkTarget);mxUtils.write(D,A(z,40));this.isCustomLink(u)&&mxEvent.addListener(D, +"click",mxUtils.bind(this,function(G){this.customLinkClicked(u);mxEvent.consume(G)}));return D};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(L,V){this.popupMenuHandler.hideMenu()});var u=this.updateMouseEvent;this.updateMouseEvent=function(L){L=u.apply(this,arguments);if(mxEvent.isTouchEvent(L.getEvent())&&null==L.getState()){var V=this.getCellAt(L.graphX,L.graphY); +null!=V&&this.isSwimlane(V)&&this.hitsSwimlaneContent(V,L.graphX,L.graphY)||(L.state=this.view.getState(V),null!=L.state&&null!=L.state.shape&&(this.container.style.cursor=L.state.shape.node.style.cursor))}null==L.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return L};var z=!1,A=!1,D=!1,G=this.fireMouseEvent;this.fireMouseEvent=function(L,V,ea){L==mxEvent.MOUSE_DOWN&&(V=this.updateMouseEvent(V),z=this.isCellSelected(V.getCell()),A=this.isSelectionEmpty(),D=this.popupMenuHandler.isMenuShowing()); +G.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(L,V){var ea=mxEvent.isMouseEvent(V.getEvent());this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==V.getState()||!V.isSource(V.getState().control))&&(this.popupMenuHandler.popupTrigger||!D&&!ea&&(A&&null==V.getCell()&&this.isSelectionEmpty()||z&&this.isCellSelected(V.getCell())));ea=!z||ea?null:mxUtils.bind(this,function(ba){window.setTimeout(mxUtils.bind(this,function(){if(!this.isEditing()){var fa= +mxUtils.getScrollOrigin();this.popupMenuHandler.popup(V.getX()+fa.x+1,V.getY()+fa.y+1,ba,V.getEvent())}}),500)});mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,[L,V,ea])})};mxCellEditor.prototype.isContentEditing=function(){var u=this.graph.view.getState(this.editingCell);return null!=u&&1==u.style.html};mxCellEditor.prototype.isTableSelected=function(){return null!=this.graph.getParentByName(this.graph.getSelectedElement(),"TABLE",this.textarea)};mxCellEditor.prototype.isTextSelected= +function(){var u="";window.getSelection?u=window.getSelection():document.getSelection?u=document.getSelection():document.selection&&(u=document.selection.createRange().text);return""!=u};mxCellEditor.prototype.insertTab=function(u){var z=this.textarea.ownerDocument.defaultView.getSelection(),A=z.getRangeAt(0),D="\t";if(null!=u)for(D="";0")||0<=this.textarea.innerHTML.indexOf("\x3c!--[if !mso]>")? +A(this.textarea,L):Graph.removePasteFormatting(this.textarea))}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var u=this.graph.view.getState(this.editingCell);if(null!=u){var z=null!=u&&"0"!=mxUtils.getValue(u.style,"nl2Br","1"),A=this.saveSelection();if(this.codeViewMode){ea=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0"):ea,!0);this.textarea.className= +"mxCellEditor geContentEditable";ba=mxUtils.getValue(u.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE);z=mxUtils.getValue(u.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY);var D=mxUtils.getValue(u.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),G=(mxUtils.getValue(u.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,L=(mxUtils.getValue(u.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,V= +[];(mxUtils.getValue(u.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&V.push("underline");(mxUtils.getValue(u.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_STRIKETHROUGH)==mxConstants.FONT_STRIKETHROUGH&&V.push("line-through");this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(ba*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(ba)+"px";this.textarea.style.textDecoration=V.join(" "); +this.textarea.style.fontWeight=G?"bold":"normal";this.textarea.style.fontStyle=L?"italic":"";this.textarea.style.fontFamily=z;this.textarea.style.textAlign=D;this.textarea.style.padding="0px";this.textarea.innerHTML!=ea&&(this.textarea.innerHTML=ea,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0
"));ea=Graph.sanitizeHtml(z?ea.replace(/\n/g,"").replace(/<br\s*.?>/g,"
"):ea,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var ba=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(ba*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize= +Math.round(ba)+"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.width="";this.textarea.style.padding="2px";this.textarea.innerHTML!=ea&&(this.textarea.innerHTML=ea);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState= +A;this.resize()}};var T=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(u,z){if(null!=this.textarea)if(u=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=u){var A=u.view.scale;this.bounds=mxRectangle.fromRectangle(u);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*A;this.bounds.height=60*A;var D=null!=u.text?u.text.margin:null;null==D&&(D=mxUtils.getAlignmentAsPoint(mxUtils.getValue(u.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER), +mxUtils.getValue(u.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));this.bounds.x+=D.x*this.bounds.width;this.bounds.y+=D.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/A)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/A)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight"));return A=Graph.sanitizeHtml(A,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue= +function(u){if("0"==mxUtils.getValue(u.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var z=Graph.sanitizeHtml(this.textarea.innerHTML,!0);return z="1"==mxUtils.getValue(u.style,"nl2Br","1")?z.replace(/\r\n/g,"
").replace(/\n/g,"
"):z.replace(/\r\n/g,"").replace(/\n/g,"")};var S=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(u){this.codeViewMode&&this.toggleViewMode();S.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer= +function(){try{this.graph.container.focus()}catch(u){}};var P=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(u,z){this.graph.getModel().beginUpdate();try{P.apply(this,arguments),""==z&&this.graph.isCellDeletable(u.cell)&&0==this.graph.model.getChildCount(u.cell)&&this.graph.isTransparentState(u)&&this.graph.removeCells([u.cell],!1)}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(u){var z=mxUtils.getValue(u.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR, +null);null!=z&&z!=mxConstants.NONE||!(null!=u.cell.geometry&&0ea.x+ea.width&&(this.unscaledBounds.width-= +this.unscaledBounds.x+this.unscaledBounds.width-ea.x-ea.width),this.unscaledBounds.y+this.unscaledBounds.height>ea.y+ea.height&&(this.unscaledBounds.height-=this.unscaledBounds.y+this.unscaledBounds.height-ea.y-ea.height)));G=this.bounds;this.bounds=new mxRectangle((null!=this.parentState?this.parentState.x:L.x*V)+this.unscaledBounds.x*V,(null!=this.parentState?this.parentState.y:L.y*V)+this.unscaledBounds.y*V,this.unscaledBounds.width*V,this.unscaledBounds.height*V);z.relative&&null!=this.parentState&& +(this.bounds.x+=this.state.x-this.parentState.x,this.bounds.y+=this.state.y-this.parentState.y);ea=Math.cos(D);ba=Math.sin(D);z=new mxPoint(this.bounds.getCenterX(),this.bounds.getCenterY());fa=z.x-A.x;ra=z.y-A.y;A=ea*fa-ba*ra-fa;z=ba*fa+ea*ra-ra;L=this.bounds.x-this.state.x;fa=this.bounds.y-this.state.y;D=ea*L-ba*fa;ea=ba*L+ea*fa;this.bounds.x+=A;this.bounds.y+=z;this.unscaledBounds.x=this.roundLength(this.unscaledBounds.x+A/V);this.unscaledBounds.y=this.roundLength(this.unscaledBounds.y+z/V);this.unscaledBounds.width= +this.roundLength(this.unscaledBounds.width);this.unscaledBounds.height=this.roundLength(this.unscaledBounds.height);this.graph.isCellCollapsed(this.state.cell)||0==A&&0==z?this.childOffsetY=this.childOffsetX=0:(this.childOffsetX=this.state.x-this.bounds.x+D,this.childOffsetY=this.state.y-this.bounds.y+ea);G.equals(this.bounds)||(this.livePreviewActive&&this.updateLivePreview(u),null!=this.preview?this.drawPreview():this.updateParentHighlight())};var Y=mxVertexHandler.prototype.isRotationHandleVisible; +mxVertexHandler.prototype.isRotationHandleVisible=function(){return Y.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)&&!this.graph.isTable(this.state.cell)};mxVertexHandler.prototype.getSizerBounds=function(){return this.graph.isTableCell(this.state.cell)?this.graph.view.getState(this.graph.model.getParent(this.graph.model.getParent(this.state.cell))):this.bounds};var da=mxVertexHandler.prototype.isParentHighlightVisible;mxVertexHandler.prototype.isParentHighlightVisible= +function(){return da.apply(this,arguments)&&!this.graph.isTableCell(this.state.cell)&&!this.graph.isTableRow(this.state.cell)};var la=mxVertexHandler.prototype.isCustomHandleVisible;mxVertexHandler.prototype.isCustomHandleVisible=function(u){return u.tableHandle||la.apply(this,arguments)&&(!this.graph.isTable(this.state.cell)||this.graph.isCellSelected(this.state.cell))};mxVertexHandler.prototype.getSelectionBorderInset=function(){var u=0;this.graph.isTableRow(this.state.cell)?u=1:this.graph.isTableCell(this.state.cell)&& +(u=2);return u};var J=mxVertexHandler.prototype.getSelectionBorderBounds;mxVertexHandler.prototype.getSelectionBorderBounds=function(){return J.apply(this,arguments).grow(-this.getSelectionBorderInset())};var W=null,N=mxVertexHandler.prototype.createCustomHandles;mxVertexHandler.prototype.createCustomHandles=function(){null==W&&(W=mxCellRenderer.defaultShapes.tableLine);var u=N.apply(this,arguments);if(this.graph.isTable(this.state.cell)){var z=function(Ka,za,wa){for(var Ca=[],Ta=0;Ta'); +Graph.prototype.collapsedImage=Graph.createSvgImage(9,9,'');mxEdgeHandler.prototype.removeHint=mxVertexHandler.prototype.removeHint;HoverIcons.prototype.mainHandle= +Graph.createSvgImage(18,18,'');HoverIcons.prototype.endMainHandle=Graph.createSvgImage(18,18,'');HoverIcons.prototype.secondaryHandle=Graph.createSvgImage(16,16,'');HoverIcons.prototype.fixedHandle=Graph.createSvgImage(22,22,''); +HoverIcons.prototype.endFixedHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.terminalHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.endTerminalHandle=Graph.createSvgImage(22,22,'');HoverIcons.prototype.rotationHandle=Graph.createSvgImage(16,16,'', 24,24);mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'');mxVertexHandler.TABLE_HANDLE_COLOR="#fca000";mxVertexHandler.prototype.handleImage=HoverIcons.prototype.mainHandle;mxVertexHandler.prototype.secondaryHandleImage=HoverIcons.prototype.secondaryHandle;mxEdgeHandler.prototype.handleImage=HoverIcons.prototype.mainHandle; mxEdgeHandler.prototype.endHandleImage=HoverIcons.prototype.endMainHandle;mxEdgeHandler.prototype.terminalHandleImage=HoverIcons.prototype.terminalHandle;mxEdgeHandler.prototype.endTerminalHandleImage=HoverIcons.prototype.endTerminalHandle;mxEdgeHandler.prototype.fixedHandleImage=HoverIcons.prototype.fixedHandle;mxEdgeHandler.prototype.endFixedHandleImage=HoverIcons.prototype.endFixedHandle;mxEdgeHandler.prototype.labelHandleImage=HoverIcons.prototype.secondaryHandle;mxOutline.prototype.sizerImage= HoverIcons.prototype.mainHandle;null!=window.Sidebar&&(Sidebar.prototype.triangleUp=HoverIcons.prototype.triangleUp,Sidebar.prototype.triangleRight=HoverIcons.prototype.triangleRight,Sidebar.prototype.triangleDown=HoverIcons.prototype.triangleDown,Sidebar.prototype.triangleLeft=HoverIcons.prototype.triangleLeft,Sidebar.prototype.refreshTarget=HoverIcons.prototype.refreshTarget,Sidebar.prototype.roundDrop=HoverIcons.prototype.roundDrop);mxVertexHandler.prototype.rotationEnabled=!1;mxVertexHandler.prototype.manageSizers= @@ -3070,9 +3071,10 @@ D?D.fontSize:null;return null!=D&&"px"==D.substring(D.length-2)?parseFloat(D):mx null!=U?"":"none",document.activeElement!=J&&("FONT"==ha.nodeName&&"4"==ha.getAttribute("size")&&null!=W?(ha.removeAttribute("size"),ha.style.fontSize=W+" pt",W=null):J.value=isNaN(Za)?"":Za+" pt",A=parseFloat(eb),isNaN(A)?ya.value="100 %":ya.value=Math.round(100*A)+" %"),null!=N&&(Q="rgba(0, 0, 0, 0)"==Na.backgroundColor||"transparent"==Na.backgroundColor?mxConstants.NONE:mxUtils.rgba2hex(Na.backgroundColor),N(Q,!0)),null!=t.firstChild&&(t.firstChild.nodeValue=Graph.stripQuotes(Na.fontFamily)))}Ya= !1},0))};(mxClient.IS_FF||mxClient.IS_EDGE||mxClient.IS_IE||mxClient.IS_IE11)&&mxEvent.addListener(e.cellEditor.textarea,"DOMSubtreeModified",d);mxEvent.addListener(e.cellEditor.textarea,"input",d);mxEvent.addListener(e.cellEditor.textarea,"touchend",d);mxEvent.addListener(e.cellEditor.textarea,"mouseup",d);mxEvent.addListener(e.cellEditor.textarea,"keyup",d);this.listeners.push({destroy:function(){}});d()}return a};StyleFormatPanel=function(a,b,f){BaseFormatPanel.call(this,a,b,f);this.init()}; mxUtils.extend(StyleFormatPanel,BaseFormatPanel);StyleFormatPanel.prototype.defaultStrokeColor="black"; -StyleFormatPanel.prototype.init=function(){var a=this.editorUi.getSelectionState(),b=a.cells;if(!a.containsLabel&&0=Sa.getStatus()&&(Ia=Sa.getText());Ta(Ia,Pa)}))):Ta(Ia,Pa)}function ba(Ha,Ta,Sa){if(null!=Ha&&mxUtils.isAncestorNode(document.body,ka)){Ha=mxUtils.parseXml(Ha);Ha=Editor.parseDiagramNode(Ha.documentElement);var Wa=new mxCodec(Ha.ownerDocument),$a=new mxGraphModel; Wa.decode(Ha,$a);Ha=$a.root.getChildAt(0).children;b.sidebar.createTooltip(ka,Ha,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-80,800),null!=ra?mxResources.get(ra,null,ra):null,!0,new mxPoint(Ta,Sa),!0,function(){Ua=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;G(ka,null,null,ja,da,wa)},!0,!1)}}function ia(Ha,Ta){null==ja||Va|| b.sidebar.currentElt==ka?b.sidebar.hideTooltip():(b.sidebar.hideTooltip(),null!=Ga?(Ta=''+Graph.compress('')+"",ba(Ta,mxEvent.getClientX(Ha),mxEvent.getClientY(Ha))):(b.sidebar.currentElt= -ka,Va=!0,Ea(ja,function(Sa){Va&&b.sidebar.currentElt==ka&&ba(Sa,mxEvent.getClientX(Ha),mxEvent.getClientY(Ha));Va=!1})))}var ka=document.createElement("div");ka.className="geTemplate geAdaptiveAsset";ka.style.position="relative";ka.style.height=ya+"px";ka.style.width=xa+"px";var Ia=null,Pa=ja;null!=ra?ka.setAttribute("title",mxResources.get(ra,null,ra)):null!=ta&&0=ca.scrollHeight&&(D(),mxEvent.consume(ia))})); -if(0=ca.scrollHeight&&(D(),mxEvent.consume(ia))})); +if(0(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);f=null!=f?f:!0;k=null!=k?k:!1;u=null!=u?u:"#ebf2f9";x=null!=x?x:Editor.isDarkMode()?"#a2a2a2":"#e6eff8";C=null!=C?C:Editor.isDarkMode()?"1px dashed #00a8ff":"1px solid #ccd9ea";z=null!=z?z:EditorUi.templateFile;var v=document.createElement("div"); v.style.userSelect="none";v.style.height="100%";var E=document.createElement("div");E.style.whiteSpace="nowrap";E.style.height="46px";f&&v.appendChild(E);var I=document.createElement("img");I.setAttribute("border","0");I.setAttribute("align","absmiddle");I.style.width="40px";I.style.height="40px";I.style.marginRight="10px";I.style.paddingBottom="4px";I.src=b.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg":b.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":b.mode==App.MODE_ONEDRIVE? @@ -10936,17 +10938,17 @@ b.mode==App.MODE_GOOGLE&&null!=b.drive?I=b.drive.extension:b.mode==App.MODE_DROP n?"144px":"244px";this.init=function(){f&&(M.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?M.select():document.execCommand("selectAll",!1,null));null!=ca.parentNode&&null!=ca.parentNode.parentNode&&mxEvent.addGestureListeners(ca.parentNode.parentNode,mxUtils.bind(this,function(ja){b.sidebar.hideTooltip()}),null,null)};f&&(E.appendChild(M),y?M.style.width=e||n?"350px":"450px":(null!=b.editor.diagramFileTypes&&(y=FilenameDialog.createFileTypes(b,M,b.editor.diagramFileTypes),y.style.marginLeft= "6px",y.style.width=e||n?"80px":"180px",E.appendChild(y)),null!=b.editor.fileExtensions&&(n=FilenameDialog.createTypeHint(b,M,b.editor.fileExtensions),n.style.marginTop="12px",E.appendChild(n))));E=!1;var K=0,L=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),R=mxUtils.button(q||mxResources.get("create"),function(){R.setAttribute("disabled","disabled");F();R.removeAttribute("disabled")});R.className="geBtn gePrimaryBtn"; if(H||d){var Q=[],V=null,X=null,p=null,B=function(ja){R.setAttribute("disabled","disabled");for(var ua=0;ua=Pa.getStatus()&&(ba=Pa.getText());Ia(ba)}))):Ia(ba)}function Ea(ka,Ia,Pa){if(null!=ka&&mxUtils.isAncestorNode(document.body,la)&&(ka=mxUtils.parseXml(ka),ka=Editor.extractGraphModel(ka.documentElement,!0),null!=ka)){"mxfile"==ka.nodeName&&(ka=Editor.parseDiagramNode(ka.getElementsByTagName("diagram")[0])); var Va=new mxCodec(ka.ownerDocument),Ga=new mxGraphModel;Va.decode(ka,Ga);ka=Ga.root.getChildAt(0).children||[];b.sidebar.createTooltip(la,ka,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-80,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-80,800),null!=da.title?mxResources.get(da.title,null,da.title):null,!0,new mxPoint(Ia,Pa),!0,null,!0);var Ma=document.createElement("div");Ma.className="geTempDlgDialogMask"; @@ -11162,16 +11164,16 @@ wa=[],Ea=0;Ea