code
stringlengths
31
2.05k
label_name
stringclasses
5 values
label
int64
0
4
return P==M||0==G.length?H(D,M):Q==U?N(D):L(D,M!=mxConstants.DIRECTION_NORTH&&M!=mxConstants.DIRECTION_WEST)}return S.apply(this,arguments)};e.getSubtree=function(D){var M=[D];!u(D)&&!d(D)||E(D)||e.traverse(D,!0,function(K,O){var V=null!=O&&e.isTreeEdge(O);V&&0>mxUtils.indexOf(M,O)&&M.push(O);(null==O||V)&&0>mxUtils.in...
Base
1
u.model.isVertex(l)&&u.isAutoSizeCell(l)&&u.updateCellSize(l)}finally{u.getModel().endUpdate()}u.scrollCellToVisible(l);u.setSelectionCell(l);u.container.focus();u.editAfterInsert&&u.startEditing(l);window.setTimeout(function(){null!=d.hoverIcons&&d.hoverIcons.update(u.view.getState(l))},0);return l},B=function(l,n,z,C...
Base
1
EditorUi.prototype.convertImages=function(c,e,g,q){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,e,g,q)};EditorUi.prototype.convertImageToDataUri=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,e)};Ed...
Base
1
Graph.prototype.setHiddenTags=function(k){this.hiddenTags=k;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(k){var y=mxUtils.indexOf(this.hiddenTags,k);0>y?this.hiddenTags.push(k):0<=y&&this.hiddenTags.splice(y,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};G...
Base
1
var CreateDialog=function(b,f,m,d,u,v,E,F,L,N,H,R,J,c,e,g,q){function p(n,z,C,D){function M(){mxEvent.addListener(K,"click",function(){var G=C;if(E){var P=B.value,Q=P.lastIndexOf(".");if(0>f.lastIndexOf(".")&&0>Q){G=null!=G?G:l.value;var U="";G==App.MODE_GOOGLE?U=b.drive.extension:G==App.MODE_GITHUB?U=b.gitHub.extensio...
Base
1
!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,e,g){var q=null==c||null==e;g=null!=g?g:24;var p=new Spinner({lines:12,length:g,w...
Base
1
W){var ba=Q.getGlobalVariable;Q=this.createTemporaryGraph(Q.getStylesheet());for(var da,qa=0;qa<this.pages.length;qa++)if(this.pages[qa].getId()==W){da=this.updatePageRoot(this.pages[qa]);break}null==da&&(da=this.currentPage);Q.getGlobalVariable=function(wa){return"page"==wa?da.getName():"pagenumber"==wa?1:ba.apply(thi...
Base
1
return S};EditorUi.prototype.getXmlFileData=function(c,e,g,q){c=null!=c?c:!0;e=null!=e?e:!1;g=null!=g?g:!Editor.defaultCompressed;var p=this.editor.getGraphXml(c,q);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(I){var A=I.getElementsByTagName("mxGraphModel");A=0<A.length?A[0]:null;null==A&&g?(A=mxUtil...
Base
1
E,v)}catch(F){null!=d&&d(F)}else null!=d&&d()}),["filesInfo","files"])}catch(F){null!=d&&d(F)}});this.isRenamable()&&"."==b.charAt(0)&&null!=d?d({message:mxResources.get("invalidName")}):StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(v){this.isRenamable()&&this.getTitle()!=b&&null!=v?this.ui.confirm(mxRes...
Base
1
EditorUi.prototype.getImageForPage=function(b,f,m){m=null!=m?m:this.editor.graph;var d=m.getGlobalVariable,u=this.createTemporaryGraph(m.getStylesheet());u.defaultPageBackgroundColor=m.defaultPageBackgroundColor;u.shapeBackgroundColor=m.shapeBackgroundColor;u.shapeForegroundColor=m.shapeForegroundColor;var v=this.getPa...
Base
1
var D=0,M=0,K=J.geometry,O=mxUtils.format((C.geometry.x+3-K.x)/K.width);C=mxUtils.format((C.geometry.y+3-K.y)/K.height);0>O?(D=O*K.width,O=0):1<O&&(D=(O-1)*K.width,O=1);0>C?(M=C*K.height,C=0):1<C&&(M=(C-1)*K.height,C=1);return{x:O,y:C,dx:parseInt(D),dy:parseInt(M)}}function N(C){if(1==R.getSelectionCount()){var D=R.get...
Base
1
function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,e,g){return this.editor.graph.openLink(c,e,g)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,e){e(loc...
Base
1
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,x,null,1<B,I,q,t,p);B=this.isServices(B)?4<B?390:280:160;this.showDialog(c.container,420,B,!0,!0);c.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){re...
Base
1
g){g=null!=g?g:c.name;var q=new FileReader;q.onload=mxUtils.bind(this,function(){this.parseFileData(q.result,e,g)});q.readAsText(c)};EditorUi.prototype.parseFileData=function(c,e,g){var q=new XMLHttpRequest;q.open("POST",OPEN_URL);q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q.onreadystatechan...
Base
1
za.push(ea[Ca]);T.setSelectionCells(za)}function Q(ea){T.setHiddenTags(ea?[]:W.slice());P();T.refresh()}function U(ea,za){Y.innerText="";if(0<ea.length){var Ca=document.createElement("table");Ca.setAttribute("cellpadding","2");Ca.style.boxSizing="border-box";Ca.style.tableLayout="fixed";Ca.style.width="100%";var Ba=doc...
Base
1
"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(k){var y=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?y="mxgraph.er":"sysML"==k.substring(0,5)&&(y="mxgr...
Base
1
DrawioFileSync.prototype.cleanup=function(b,f,m){window.clearTimeout(this.cleanupThread);if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()&&!this.file.isModified()){var d=[this.ui.diffPages(this.ui.pages,this.file.ownPages)];this.file.theirPages=this.ui.clonePages(this.file.ownPages);this.file....
Base
1
0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,f,m,d,u,v,E,F,L,N,H...
Base
1
this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var z=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(D){z.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=D?"":"none")};var C=mxVertexHandler.prototype.destroy;mxVertexHandle...
Base
1
App.loadScripts=function(b,f,m){for(var d=b.length,u=!1,v=0;v<b.length;v++)mxscript(b[v],function(){0!=--d||u||null==f||f()},null,null,null,function(E){u=!0;null!=m&&m(Error(E))})};
Base
1
Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(k){if(null!=k){Editor.prototype.fontCss=k;var y=document.getElementsByTagName("script")[0];if(null!=y&&null!=y.parentNode){var G=document.createElement("style");G.s...
Base
1
F.getGlobalVariable=function(W){return"page"==W&&null!=N&&null!=N[H]?N[H].getAttribute("name"):"pagenumber"==W?H+1:"pagecount"==W?null!=N?N.length:1:R.apply(this,arguments)};F.getLinkForCell=function(){return null};Editor.MathJaxRender&&F.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(W,X){b.editor.graph.m...
Base
1
K);var k=e.getModel().getGeometry(O);null!=k&&null!=k.points&&0<k.points.length&&this.addMenuItems(K,["clearWaypoints"],null,V)}1==e.getSelectionCount()&&this.addMenuItems(K,["enterGroup"],null,V);k=c.getSelectionState();null!=k.mergeCell?this.addMenuItem(K,"mergeCells"):(1<k.style.colspan||1<k.style.rowspan)&&this.add...
Base
1
"")+"/log?severity="+t+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(g)+(null!=q?":colno:"+encodeURIComponent(q):"")+(""!=p.stack?"&stack="+encodeURIComponent(p.stack):""))}catch(B){}try{x||null==window.c...
Base
1
O.spin(da);var la=function(ma,oa,fa){K=0;O.stop();Ha=ma;fa=fa||{};var ja=0,sa;for(sa in fa)ja+=fa[sa].length;if(oa)da.innerText=oa;else if(0==ma.length&&0==ja)da.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(da.innerText="",0<ja){wa.style.display="";da.style.left="160px";wa.innerText="";Da=0;...
Base
1
u.nextSibling,u.parentNode.removeChild(u),u=d;null!=u;){d=u.nextSibling;if(u.nodeType==mxConstants.NODETYPE_ELEMENT){var v=u.getAttribute("id");null==f.lookup(v)&&f.decodeCell(u)}u.parentNode.removeChild(u);u=d}}return m};b.afterDecode=function(f,m,d){d.index=d.previousIndex;return d};mxCodecRegistry.register(b)})();(f...
Base
1
function(g,q,p){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(p.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(t){q.fireEvent(new mxEventObject("pointerdown","event",t,"state",g))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(p.node,"touchst...
Base
1
null,null,null,!0,null,null,p,g,q);this.showDialog(c.container,620,460,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=function(c,e,g,q){c=null!=c?c:mxUtils.bind(this,function(p,t,x,B){t||(p=new ChangePageSetup(this,q?x:null,p),p.ignoreColor=!q,null!=B&&q&&(p.shadowVisible=B),this.editor.graph.model.execu...
Base
1
function(z){H=z};this.setAutoScroll=function(z){R=z};this.setOpenFill=function(z){J=z};this.setStopClickEnabled=function(z){g=z};this.setSelectInserted=function(z){q=z};this.setSmoothing=function(z){m=z};this.setPerfectFreehandMode=function(z){t=z};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=funct...
Base
1
typeof window.mxUtilsBinaryToArray){Z=mxUtilsBinaryToArray(Z.request.responseBody).toArray();ca=Array(Z.length);for(var ha=0;ha<Z.length;ha++)ca[ha]=String.fromCharCode(Z[ha]);ca=ca.join("")}U=null!=U?U:"data:image/png;base64,";ca=U+Editor.base64Encode(ca)}y(ca)}}else null!=G&&(0==Z.getStatus()?G({message:mxResources.g...
Base
1
this.editor.setStatus(""),c?e.reloadFile(mxUtils.bind(this,function(){e.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(g){e.handleFileError(g,!0)})):e.synchronizeFile(mxUtils.bind(this,function(){e.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(g){e.handleFileError(...
Base
1
mxUtils.getTextContent(Z[Y]);U=b.stringToCells(Graph.decompress(y));var ca=b.editor.graph.getBoundingBoxFromGeometry(U);F(null,null,0,0,0,0,{xml:y,w:ca.width,h:ca.height})}C=!0}}catch(ha){null!=window.console&&console.log("Error in library dialog: "+ha)}C||(b.spinner.stop(),b.handleError({message:mxResources.get("error...
Base
1
161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var e=b.apply(this,arguments);if(!...
Base
1
p?4E3:3E4);A=!0}return A};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=funct...
Base
1
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,ca=U.setStrokeColor;U.setStrokeColor=function(){};var ha=U.setFillColor;U.setFillColor=function(){};W||null==X||(this.configurePointerEvents=function(){});U.handJiggle.passThrough=!0;P.apply(this,arguments);U.handJiggle.passThrou...
Base
1
function(z){H=z};this.setAutoScroll=function(z){R=z};this.setOpenFill=function(z){J=z};this.setStopClickEnabled=function(z){g=z};this.setSelectInserted=function(z){q=z};this.setSmoothing=function(z){m=z};this.setPerfectFreehandMode=function(z){t=z};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=funct...
Base
1
Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(k,y,G){var P=mxClient.IS_FF?8192:16384;return Math.min(G,Math.min(P/k,P/y))};Editor.prototype.exportToCanvas=function(k,y,G,P,Q,U,T,W,X,Y,Z,ca,ha,na,ea,za,Ca,Ba){try{U=null!=U?...
Base
1
arguments))};var q=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(k,y,G,P,Q,U,T,W,X,Y,Z){q.apply(this,arguments);Graph.processFontAttributes(Z)};var p=mxText.prototype.redraw;mxText.prototype.redraw=function(){p.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&...
Base
1
mxUtils.bind(this,function(ha){this.cachedFonts[X]=ha;P--;Q()}),mxUtils.bind(this,function(ha){P--;Q()}),!0,null,"data:"+Z+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(G[k].substring(0,U)),T)}Q()}else y(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(thi...
Base
1
this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};k.prototype.destroy=function(){this.canvas.lineTo=this.originalLineTo;this.canvas.moveTo=this.originalMoveTo;this.canvas.close=this.originalClose;this.canvas.quadTo=this.originalQuadTo;this.canvas.curveTo=this.originalCurveTo;t...
Base
1
380,240,!0,!1)});H=d.actions.addAction("search",function(){var l=d.sidebar.isEntryVisible("search");d.sidebar.showPalette("search",!l);isLocalStorage&&(mxSettings.settings.search=!l,mxSettings.save())});H.label=mxResources.get("searchShapes");H.setToggleAction(!0);H.setSelectedCallback(function(){return d.sidebar.isEnt...
Base
1
else{var sa=function(ta){pa&&b.sidebar.currentElt==aa&&fa(ta,mxEvent.getClientX(ma),mxEvent.getClientY(ma));pa=!1;la.src="/images/icon-search.svg"};b.sidebar.hideTooltip();b.sidebar.currentElt=aa;pa=!0;la.src="/images/aui-wait.gif";ia.isExt?L(ia,sa,function(){g(mxResources.get("cantLoadPrev"));pa=!1;la.src="/images/ico...
Base
1
null==V.getTerminal(k[y],!0)){V.setTerminal(k[y],D,!0);var G=e.getCellGeometry(k[y]);G.points=null;null!=G.getTerminalPoint(!0)&&G.setTerminalPoint(null,!0)}}finally{V.endUpdate()}return k}}var I={67:c.actions.get("selectChildren"),88:c.actions.get("selectDescendants"),80:c.actions.get("selectParent"),83:c.actions.get(...
Base
1
EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var c=[(new Date).toISOString()],e=0;e<arguments.length;e++)c.push(arguments[e]);console.log.apply(console,c)}}catch(g){}};EditorUi.removeChildNodes=function(c){for(;null!=c.firstChild;)c.removeChild(c.firstChild)};EditorUi.prototype.emptyD...
Base
1
C.evt.button};var c=R.isCellSelectable;R.isCellSelectable=function(C){return C==J?!1:c.apply(this,arguments)};R.getLinkForCell=function(){return null};var e=R.view.getState(J);H=R.getAllConnectionConstraints(e);for(var g=0;null!=H&&g<H.length;g++){var q=R.getConnectionPoint(e,H[g]);v(q.x-3,q.y-3,H[g])}R.fit(8);R.center...
Base
1
function(n){t=null!=t?t:"pdf"==e?"application/pdf":"image/"+e;if(null!=q)try{this.exportFile(q,A,t,!0,S,n)}catch(z){this.handleError(z)}else this.spinner.spin(document.body,mxResources.get("saving"))&&l.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=l.getStatus()&&299>=l.getStatus())try{this.exportFile(l...
Base
1
y[G].url)}catch(Q){console.log("ExtFonts format error: "+Q.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var f=Editor.prototype.getG...
Base
1
0;ja<ta.length;ja++)oa=ta[ja],0==fa==(null==la[oa.url])&&(Ga[oa.url]=!0,La.push(oa));la=Ga;fa++}0==La.length?za.innerText=mxResources.get("noResultsFor",[ia]):A(La,!0)}}function D(ia){if(Z!=ia||T!=ca)q(),Ba.scrollTop=0,ea.innerText="",za.innerText=mxResources.get("searchResults")+' "'+ia+'"',Ua=null,ha?C(ia):F&&(ia?(Qa...
Base
1
DrawioFile.prototype.reloadFile=function(b,f){try{this.ui.spinner.stop();var m=mxUtils.bind(this,function(){EditorUi.debug("DrawioFile.reloadFile",[this],"hash",this.getHash(),"modified",this.isModified(),"backupPatch",this.backupPatch);this.stats.fileReloaded++;if(""==this.getHash())this.mergeLatestVersion(null!=this....
Base
1
this.editor.graph.isEnabled()};var H=EditorUi.prototype.createSidebar;EditorUi.prototype.createSidebar=function(c){var e=H.apply(this,arguments);this.addListener("darkModeChanged",mxUtils.bind(this,function(){e.refresh()}));this.addListener("sketchModeChanged",mxUtils.bind(this,function(){e.refresh()}));return e};var R...
Base
1
mxGraphView.prototype.stateValidated=function(k){null!=k.shape&&this.redrawEnumerationState(k);return S.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(k){k=decodeURIComponent(mxUtils.getValue(k.style,"enumerateValue",""));""==k&&(k=++this.enumerationState);return'<div style="padding:2px;bo...
Base
1
return S}),A=!0);return A};var x=p.stop;p.stop=function(){x.call(this);this.active=!1;null!=p.status&&null!=p.status.parentNode&&p.status.parentNode.removeChild(p.status);p.status=null};p.pause=function(){return function(){}};return p};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),g=th...
Base
1
function(K){for(var U=z.apply(this,arguments),L=new mxDictionary,O=[],X=0;X<U.length;X++){var W=this.graph.isTableCell(K)&&this.graph.isTableCell(U[X])&&this.graph.isCellSelected(U[X])?this.graph.model.getParent(U[X]):this.graph.isTableRow(K)&&this.graph.isTableRow(U[X])&&this.graph.isCellSelected(U[X])?U[X]:this.graph...
Base
1
"cells",[C])),b.fireEvent(new mxEventObject("freehandInserted","cell",C))}finally{b.model.endUpdate()}q&&b.setSelectionCells([C])}}for(C=0;C<u.length;C++)u[C].parentNode.removeChild(u[C]);d=null;u=[];E=[]}x(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(z,C){z=C.getProperty("eventName");C=C.getP...
Base
1
var c=Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(l){var n=c.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=n&&Editor.enableSimpleTheme&&"atlassian"!=d.getServiceName()){var z=this.get("appearance");if(null!=z){var C=n.addMenu("",z.funct);C.setAttribute("title",mxR...
Base
1
this.fileLoaded(new LocalFile(this,T,ha,!0)),null):this.importFile(T,W,X,Y,Z,ca,ha,na,ea,z,l,n)}catch(za){return this.handleError(za),null}});t=null!=t?t:mxUtils.bind(this,function(T){V.setSelectionCells(T)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var y=c.length,G=y,P=[],Q=mxUtils.bind(this,...
Base
1
(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var x=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl...
Base
1
C.y,null,null,null,null,mxUtils.bind(this,function(D){return e.getCenterInsertPoint(e.getBoundingBoxFromGeometry(D,!0))}),"simple"==c,!1)}mxEvent.consume(z)}));x.style.backgroundSize="24px";"simple"==c?x.style.flexShrink="0":x.style.marginBottom="4px";var A=!1,S=mxUtils.bind(this,function(z){if(z||document.body.contain...
Base
1
"hidden";na.style.bottom="0px";na.style.height="42px";na.style.right="10px";na.style.left="10px";T.isEnabled()&&(na.appendChild(Z),na.appendChild(ca),X.appendChild(na));return{div:X,refresh:ha}};Graph.prototype.getCustomFonts=function(){var k=this.extFonts;k=null!=k?k.slice():[];for(var y in Graph.customFontElements){v...
Base
1
F=document.createElement("div");F.style.height="300px";F.style.width="300px";F.style.display="inline-flex";F.style.justifyContent="center";F.style.alignItems="center";F.style.position="absolute";var L=document.createElement("img");L.onload=function(){function A(){H.model.setStyle(c,e+u())}H=new Graph(N);H.autoExtend=!1...
Base
1
e.getCurrentCellStyle(D).treeMoving);return M}function v(D){var M=!1;null!=D&&(D=g.getParent(D),M=e.view.getState(D),M="tree"==(null!=M?M.style:e.getCellStyle(D)).containerType);return M}function E(D){var M=!1;null!=D&&(D=g.getParent(D),M=e.view.getState(D),e.view.getState(D),M=null!=(null!=M?M.style:e.getCellStyle(D))...
Base
1
g){g=null!=g?g:c.name;var q=new FileReader;q.onload=mxUtils.bind(this,function(){this.parseFileData(q.result,e,g)});q.readAsText(c)};EditorUi.prototype.parseFileData=function(c,e,g){var q=new XMLHttpRequest;q.open("POST",OPEN_URL);q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q.onreadystatechan...
Base
1
mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype...
Base
1
P.length&&(Q=P[Math.max(0,Math.min(P.length-1,urlParams.page||0))])),null!=Q&&(k=Editor.parseDiagramNode(Q,G)));null==k||"mxGraphModel"==k.nodeName||y&&"mxfile"==k.nodeName||(k=null);return k};Editor.parseDiagramNode=function(k,y){var G=mxUtils.trim(mxUtils.getTextContent(k)),P=null;0<G.length?(k=Graph.decompress(G,nul...
Base
1
"pHYs","dpi",q));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,e,g,q,p){var t="jpeg"==g?"jpg":g;q=this.getBaseFilename(q)+(null!=e?".drawio":"")+"."+t;c=this.createImageDataUri(c,e,g,p);this.saveData(q,t,c.substring(c.lastIndexOf(",")+1),"image/"+g,!0)};EditorUi....
Base
1
mxUtils.setTextContent(g,JSON.stringify(c,null,2));e.appendChild(g);return mxUtils.getXml(e,"\n")};EditorUi.prototype.closeLibrary=function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),".scratchpad"==c.title&&(this.scratchpad=null))};Editor...
Base
1
function(K,U,L){return this.graph.isCellSelected(K)?!1:da.apply(this,arguments)};var ja=this.updateMouseEvent;this.updateMouseEvent=function(K){K=ja.apply(this,arguments);null!=K.state&&this.isCellLocked(this.getLayerForCell(K.getCell()))&&(K.state=null);return K};var ia=this.isCellSelectable;this.isCellSelectable=func...
Base
1
EditorUi.prototype.showLocalStorageDialog=function(c,e,g,q,p,t){var x=localStorage.getItem(e);c=new TextareaDialog(this,c,null!=x?JSON.stringify(JSON.parse(x),null,2):"",mxUtils.bind(this,function(B){if(null!=B)try{if(null!=t&&t(B),B==x)this.hideDialog();else{if(0<B.length){var I=JSON.parse(B);localStorage.setItem(e,JS...
Base
1
Editor.createRoughCanvas=function(k){var y=rough.canvas({getContext:function(){return k}});y.draw=function(G){var P=G.sets||[];G=G.options||this.getDefaultOptions();for(var Q=0;Q<P.length;Q++){var U=P[Q];switch(U.type){case "path":null!=G.stroke&&this._drawToContext(k,U,G);break;case "fillPath":this._drawToContext(k,U,...
Base
1
EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():L.apply(this,arguments)};var N=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(c){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){c=null!=c?c:!0;if("1"!=urlParams.embedIn...
Base
1
null!=ta?new mxImage(ta.src,ta.width,ta.height,ta.x,ta.y):null;ia.pageVisible=aa;ia.mathEnabled=oa;var La=ia.getGraphBounds;ia.getGraphBounds=function(){var ya=La.apply(this,arguments),Ja=this.backgroundImage;if(null!=Ja&&null!=Ja.width&&null!=Ja.height){var Ma=this.view.translate,ra=this.view.scale;ya=mxRectangle.from...
Base
1
mxEvent.consume(W)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(W){mxEvent.isTouchEvent(W)||F(30)}));var Y=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(W,J){this.startX=J.getGraphX();this.startY=J.getGraphY();this.scrollLeft=...
Base
1
EditorUi.prototype.createParentLookup=function(b,f){function m(N){var H=d[N];null==H&&(H={inserted:[],moved:{}},d[N]=H);return H}var d={};if(null!=f[EditorUi.DIFF_INSERT])for(var u=0;u<f[EditorUi.DIFF_INSERT].length;u++){var v=f[EditorUi.DIFF_INSERT][u],E=null!=v.parent?v.parent:"",F=null!=v.previous?v.previous:"";m(E)...
Base
1
this.defaultFilename,!0);N.getHash=function(){return b};this.fileLoaded(N);null!=d&&d()}else if("E"==b.charAt(0))null==this.getCurrentFile()?this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile")):this.remoteInvoke("getDraftFileContent",null,null,mxUtils.bind(this,...
Base
1
[J]);return J};var G=new mxRubberband(this);this.getRubberband=function(){return G};var D=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var K=this.currentState;N.apply(this,arguments);K!=this.currentState?(D=(new Date).getTime(),F=0):F=(new Date).getTime()-D};va...
Base
1
[J]);return J};var G=new mxRubberband(this);this.getRubberband=function(){return G};var D=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var K=this.currentState;N.apply(this,arguments);K!=this.currentState?(D=(new Date).getTime(),F=0):F=(new Date).getTime()-D};va...
Base
1
function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,e,g){return this.editor.graph.openLink(c,e,g)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,e){e(loc...
Base
1
function(K){for(var U=z.apply(this,arguments),L=new mxDictionary,O=[],X=0;X<U.length;X++){var W=this.graph.isTableCell(K)&&this.graph.isTableCell(U[X])&&this.graph.isCellSelected(U[X])?this.graph.model.getParent(U[X]):this.graph.isTableRow(K)&&this.graph.isTableRow(U[X])&&this.graph.isCellSelected(U[X])?U[X]:this.graph...
Base
1
function(K,U,L){return this.graph.isCellSelected(K)?!1:da.apply(this,arguments)};var ja=this.updateMouseEvent;this.updateMouseEvent=function(K){K=ja.apply(this,arguments);null!=K.state&&this.isCellLocked(this.getLayerForCell(K.getCell()))&&(K.state=null);return K};var ia=this.isCellSelectable;this.isCellSelectable=func...
Base
1
mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var c=this.getCurrentFile();window.location.hash=null!=c?c.getHash():""}));else{var J=b.charAt(0);b=decodeURIComponent(b.substring(1));N.getFile(b,mxUtils.bind(this,function(c){this.spinner.stop();this.fileLoaded(c);var e=this.getCurrentFile();null==e?(wi...
Base
1
Menus.prototype.init=function(){function m(l,n,z){this.ui=l;this.previousExtFonts=this.extFonts=n;this.prevCustomFonts=this.customFonts=z}f.apply(this,arguments);var d=this.editorUi,u=d.editor.graph,v=mxUtils.bind(u,u.isEnabled),E=("1"!=urlParams.embed&&"0"!=urlParams.gapi||"1"==urlParams.embed&&"1"==urlParams.gapi)&&m...
Base
1
typeof window.mxUtilsBinaryToArray){Z=mxUtilsBinaryToArray(Z.request.responseBody).toArray();ca=Array(Z.length);for(var ha=0;ha<Z.length;ha++)ca[ha]=String.fromCharCode(Z[ha]);ca=ca.join("")}U=null!=U?U:"data:image/png;base64,";ca=U+Editor.base64Encode(ca)}y(ca)}}else null!=G&&(0==Z.getStatus()?G({message:mxResources.g...
Base
1
ua,va,Ea,Da,Ta,Ia){if(0<Da){var Sa=Array(Da);ua=null!=ua?ua.split(","):[];for(var Ha=0;Ha<Da;Ha++)Sa[Ha]=null!=ua[Ha]?ua[Ha]:null!=Ea?Ea:"";ha.push({name:pa,values:Sa,type:va,defVal:Ea,parentRow:Ta,flipBkg:Ia,size:Da})}return document.createElement("div")}function X(pa,ua,va){var Ea=document.createElement("input");Ea.t...
Base
1
null;x=mxUtils.button("",mxUtils.bind(this,function(B){this.pickColor(t||"none",function(I){t=I;g()});mxEvent.consume(B)}));g();x.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";x.style.marginLeft="4px";x.style.height="22px";x.style.width="22px";x.style.position="relative";x.style.top=mxClient.IS_IE||mxClient.IS_I...
Base
1
Y&&Y()}}catch(Ma){this.handleError(Ma)}};EditorUi.prototype.getSearch=function(c){var e="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var g="?",q;for(q in urlParams)0>mxUtils.indexOf(c,q)&&null!=urlParams[q]&&(e+=g+q+"="+urlParams[q],g="&")}else e=window.location.search;re...
Base
1
EditorUi.prototype.isResampleImageSize=function(c,e){e=null!=e?e:this.resampleThreshold;return c>e};EditorUi.prototype.resizeImage=function(c,e,g,q,p,t,x){p=null!=p?p:this.maxImageSize;var B=Math.max(1,c.width),I=Math.max(1,c.height);if(q&&this.isResampleImageSize(null!=x?x:e.length,t))try{var A=Math.max(B/p,I/p);if(1<...
Base
1
App.prototype.createFile=function(b,f,m,d,u,v,E,F,L,N){d=F?null:null!=d?d:this.mode;if(null!=b&&this.spinner.spin(document.body,mxResources.get("inserting"))){f=null!=f?f:this.emptyDiagramXml;null==f||Editor.defaultCompressed||(f=this.uncompressPages(f));var H=mxUtils.bind(this,function(){this.spinner.stop()}),R=mxUtil...
Base
1
EditorUi.prototype.chromelessWindowResize=function(){};var N=Menus.prototype.init;Menus.prototype.init=function(){N.apply(this,arguments);var J=this.editorUi;EditorUi.enablePlantUml&&!J.isOffline()&&J.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var g=new ParseDialog(J,mxResources.get(...
Base
1
F.getGlobalVariable=function(W){return"page"==W&&null!=N&&null!=N[H]?N[H].getAttribute("name"):"pagenumber"==W?H+1:"pagecount"==W?null!=N?N.length:1:R.apply(this,arguments)};F.getLinkForCell=function(){return null};Editor.MathJaxRender&&F.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(W,X){b.editor.graph.m...
Base
1
function(N){return this.isTreeEdge(N)}))};Graph.prototype.getIncomingTreeEdges=function(d,u){return this.getTreeEdges(d,u,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,u){return this.getTreeEdges(d,u,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.ed...
Base
1
function(){b.spinner.stop();d(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),d(x,null,null,J,c,e)):(x=b.convertDataUri(x),B=null==B?120:B,I=null==I?100:I,b.hideDialog(),d(x,B,I,J,c,e))},q=function(x,B){if(null!=x){var I=u?null:N.getModel().getGeometry...
Base
1
f.appendChild(R);f.appendChild(m);H.appendChild(f);var J=F,c,e,g=function(x,B,I,A){var S="data:"==x.substring(0,5);!b.isOffline()||S&&"undefined"===typeof chrome?0<x.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(x,function(l){b.spinner.stop();b.hideDialog();var n=!1===A?1:null!=B&&null!...
Base
1
e;p.onerror=g;for(var t=0;t<q.length;t++)p.objectStore(q[t]).delete(c[t])}),g)};EditorUi.prototype.getDatabaseItem=function(c,e,g,q){this.openDatabase(mxUtils.bind(this,function(p){try{q=q||"objects";var t=p.transaction([q],"readonly").objectStore(q).get(c);t.onsuccess=function(){e(t.result)};t.onerror=g}catch(x){null!...
Base
1
function(c,e){var g=this.getCurrentFile();null!=g&&g.getRevisions?g.getRevisions(c,e):e({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototyp...
Base
1
this.defaultFilename;L=new LocalFile(this,L,N,!0);null!=window.location.hash&&"#P"==window.location.hash.substring(0,2)&&(L.getHash=function(){return window.location.hash.substring(1)});this.fileLoaded(L);this.getCurrentFile().setModified(!this.editor.chromeless)}),E=window.opener||window.parent;if(E!=window){var F=url...
Base
1
za.push(ea[Ca]);T.setSelectionCells(za)}function Q(ea){T.setHiddenTags(ea?[]:W.slice());P();T.refresh()}function U(ea,za){Y.innerText="";if(0<ea.length){var Ca=document.createElement("table");Ca.setAttribute("cellpadding","2");Ca.style.boxSizing="border-box";Ca.style.tableLayout="fixed";Ca.style.width="100%";var Ba=doc...
Base
1
t.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return g.checked?"blank"===t.value?"_blank":p:null},getEditInput:function(){return g},getEditSelect:function(){return t}}};EditorUi.prototype.addLinkSection=function(c,e){function g(){var B=document.createElement("div");B.style.width="100%...
Base
1
!1,!0)}finally{I.model.endUpdate()}}}catch(V){if(p)throw V;this.handleError(V)}return B};EditorUi.prototype.updatePageLinks=function(c,e){for(var g=0;g<e.length;g++)this.updatePageLinksForCell(c,e[g].root),null!=e[g].viewState&&this.updateBackgroundPageLink(c,e[g].viewState.backgroundImage)};EditorUi.prototype.updateBa...
Base
1
this.graph.currentStyle);var P=this.graph.getBackgroundImageObject(this.graph.backgroundImage,y);null!=P&&G.setAttribute("backgroundImage",JSON.stringify(P));G.setAttribute("math",this.graph.mathEnabled?"1":"0");G.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.l...
Base
1
"24px",q.innerText="");return q};EditorUi.prototype.createToolbarButton=function(c,e,g,q){q=null!=q?q:24;var p=document.createElement("a");p.className="geToolbarButton geAdaptiveAsset";p.setAttribute("title",e);p.style.backgroundImage="url("+c+")";p.style.backgroundPosition="center center";p.style.backgroundRepeat="no-...
Base
1