code
stringlengths
31
2.05k
label_name
stringclasses
5 values
label
int64
0
4
function(C){z=C};this.setAutoScroll=function(C){M=C};this.setOpenFill=function(C){I=C};this.setStopClickEnabled=function(C){n=C};this.setSelectInserted=function(C){t=C};this.setSmoothing=function(C){f=C};this.setPerfectFreehandMode=function(C){v=C};this.isPerfectFreehandMode=function(){return v};this.setBrushSize=funct...
Base
1
new Image;S.onload=function(){try{var p=S.width,q=S.height;if(0==p&&0==q){var C=L.result,J=C.indexOf(","),G=decodeURIComponent(escape(atob(C.substring(J+1)))),P=mxUtils.parseXml(G).getElementsByTagName("svg");0<P.length&&(p=parseFloat(P[0].getAttribute("width")),q=parseFloat(P[0].getAttribute("height")))}n(L.result,p,q...
Base
1
0;ka<wa.length;ka++)pa=wa[ka],0==ha==(null==la[pa.url])&&(Ia[pa.url]=!0,Ma.push(pa));la=Ia;ha++}0==Ma.length?za.innerText=mxResources.get("noResultsFor",[ja]):F(Ma,!0)}}function G(ja){if(Z!=ja||Q!=ca)t(),Ca.scrollTop=0,ea.innerText="",za.innerText=mxResources.get("searchResults")+' "'+ja+'"',Ua=null,da?J(ja):y&&(ja?(Ka...
Base
1
ui.destroy = function() { mxEvent.removeListener(document.documentElement, 'keydown', keydownHandler); document.body.removeChild(backdrop); document.body.removeChild(closeImg); document.body.style.overflow = overflow; GraphViewer.resizeSensorEnabled = true; destroy.apply(this, arguments); };
Base
1
this.cellRenderer.getLabelValue = function(state) { var result = mxCellRenderer.prototype.getLabelValue.apply(this, arguments); if (state.view.graph.isHtmlLabel(state.cell)) { if (state.style['html'] != 1) { result = mxUtils.htmlEntities(result, false); } else { // Skips sanitizeHtml f...
Base
1
function(c,e,g,q,p){var t=document.createElement("div");t.style.whiteSpace="nowrap";var x=document.createElement("h3");mxUtils.write(x,mxResources.get("image"));x.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(p?"10":"4")+"px";t.appendChild(x);if(p){mxUtils.write(t,mxResources.get("zoom")+"...
Base
1
y,G,P){for(var Q=0;Q<P;Q++)k=Editor.crcTable[(k^y.charCodeAt(G+Q))&255]^k>>>8;return k};Editor.crc32=function(k){for(var y=-1,G=0;G<k.length;G++)y=y>>>8^Editor.crcTable[(y^k.charCodeAt(G))&255];return(y^-1)>>>0};Editor.writeGraphModelToPng=function(k,y,G,P,Q){function U(Z,ca){var ha=X;X+=ca;return Z.substring(ha,X)}fun...
Base
1
m=mxUtils.button(m,d);m.insertBefore(F,m.firstChild);m.style.marginTop="6px";m.className="geBigButton";m.style.fontSize="18px";m.style.padding="14px";u.appendChild(v);u.appendChild(b);u.appendChild(m);this.container=u},FontDialog=function(b,f,m,d,u){function v(x){this.style.border="";13==x.keyCode&&t.click()}var E=docu...
Base
1
"#000000")),wa=mxUtils.setStyle(wa,mxConstants.STYLE_GRADIENTCOLOR,mxUtils.getValue(pa,mxConstants.STYLE_GRADIENTCOLOR,null)),P.getModel().isVertex(Aa[xa])&&(wa=mxUtils.setStyle(wa,mxConstants.STYLE_FONTCOLOR,mxUtils.getValue(pa,mxConstants.STYLE_FONTCOLOR,null))));P.getModel().setStyle(Aa[xa],wa)}}finally{P.getModel()...
Base
1
b.editor.cancelFirst||m.appendChild(v);E.setAttribute("disabled","disabled");this.okBtn=E;f.appendChild(m);this.container=f}AspectDialog.prototype.init=function(){var b=this.ui.getFileData(!0);if(this.ui.pages)for(b=0;b<this.ui.pages.length;b++){var f=this.ui.updatePageRoot(this.ui.pages[b]);this.createPageItem(f.getId...
Base
1
F.apply(this,arguments)};var L=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(J){L.apply(this,arguments);if(J){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=c&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.fo...
Base
1
Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(k){return k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(k){return Graph.isGoogleFontUrl(k)};Graph.createFontElement=function(k,y){var G=Graph.fontMapping[y];null==G&&Graph.isCssFontUrl(y)?...
Base
1
"260px";e.style.textAlign="center";e.style.fontSize="22px";e.style.color="#a0c3ff";mxUtils.write(e,mxResources.get("dragImagesHere"));m.appendChild(e);var g={},q=null,p=null,t=null;R=function(S){"true"!=mxEvent.getSource(S).getAttribute("contentEditable")&&null!=t&&(t(),t=null,mxEvent.consume(S))};mxEvent.addListener(c...
Base
1
null!=b.currentPage&&null!=b.pages&&(L=mxUtils.indexOf(b.pages,b.currentPage));for(J=f.length-1;0<=J;J--){var T=function(W){var X=new Date(W.modifiedDate),Y=null;if(0<=X.getTime()){var Z=function(ha){c.stop();E.innerText="";var na=mxUtils.parseXml(ha),ea=b.editor.extractGraphModel(na.documentElement,!0);if(null!=ea){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
try{this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,f,this.isModified()),0==this.ui.pages.length&&this.ui.pages.push(this.ui.createPage()),0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0)}finally{F.container.style.visibility="";F.model.endUpdate();F.cellRenderer.redraw...
Base
1
(q<<5)-q+this.hashValue(c.childNodes[p],e,g)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);e=0;null!=g&&(g.byteCount+=c.length);for(p=0;p<c.length;p++)e=(e<<5)-e+c.charCodeAt(p)<<0;q^=e}return q};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototy...
Base
1
function(){function U(){F(n,k,function(){N(k);n.editComment(n.content,function(){R(k)},function(T){H(k);U();b.handleError(T,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}U()},n.isResolved),K(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){N(k);n.dele...
Base
1
App.prototype.checkLicense=function(){var b=this.drive.getUser(),f=null!=b?b.email:null;if(!this.isOffline()&&!this.editor.chromeless&&null!=f&&null!=b.id){var m=f.lastIndexOf("@"),d=0<=m?f.substring(m+1):"";b=Editor.crc32(b.id);mxUtils.post("/license","domain="+encodeURIComponent(d)+"&id="+encodeURIComponent(b)+"&ts="...
Base
1
mxClient.IS_FF&&mxClient.IS_WIN&&null==K.getState()&&mxEvent.isTouchEvent(K.getEvent())};var Y=null;this.panningHandler.addListener(mxEvent.PAN_START,mxUtils.bind(this,function(){this.isEnabled()&&(Y=this.container.style.cursor,this.container.style.cursor="move")}));this.panningHandler.addListener(mxEvent.PAN_END,mxUti...
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
this.defaultFonts[D];"string"===typeof M?z(M):null!=M.fontFamily&&null!=M.fontUrl&&(C[encodeURIComponent(M.fontFamily)+"@"+encodeURIComponent(M.fontUrl)]=!0,z(M.fontFamily,M.fontUrl))}l.addSeparator(n);if("1"!=urlParams["ext-fonts"]){M=function(G){var P=encodeURIComponent(G.name)+(null==G.url?"":"@"+encodeURIComponent(...
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
Editor.prototype.addFontCss=function(k,y){y=null!=y?y:this.absoluteCssFonts(this.fontCss);if(null!=y){var G=k.getElementsByTagName("defs"),P=k.ownerDocument;0==G.length?(G=null!=P.createElementNS?P.createElementNS(mxConstants.NS_SVG,"defs"):P.createElement("defs"),null!=k.firstChild?k.insertBefore(G,k.firstChild):k.app...
Base
1
J.vertex=!0;R.addCell(J);R.dblClick=function(C,D){if(null!=D&&D!=J)R.setSelectionCell(D);else{D=mxUtils.convertPoint(R.container,mxEvent.getClientX(C),mxEvent.getClientY(C));mxEvent.consume(C);C=R.view.scale;var M=R.view.translate;R.setSelectionCell(v((D.x-3*C)/C-M.x,(D.y-3*C)/C-M.y))}};u=new mxKeyHandler(R);u.bindKey(...
Base
1
EditorUi.prototype.duplicatePage=function(b,f){var m=null;try{var d=this.editor.graph;if(d.isEnabled()){d.isEditing()&&d.stopEditing();var u=b.node.cloneNode(!1);u.removeAttribute("id");var v={},E=d.createCellLookup([d.model.root]);m=new DiagramPage(u);m.root=d.cloneCell(d.model.root,null,v);var F=new mxGraphModel;F.pr...
Base
1
"none",c.style.display="none");var q=document.createElement("option"),p=!1,t=!1,x=function(D,M){p||null!=D&&t||(R.checked?null!=M&&M(q.selected?null:c.value):""==J.value||b.isOffline()?(I.value="",A.value="",null!=M&&M("")):(J.value=mxUtils.trim(J.value),b.loadImage(J.value,function(K){I.value=K.width;A.value=K.height;...
Base
1
new Image;S.onload=function(){try{var l=S.width,n=S.height;if(0==l&&0==n){var z=I.result,C=z.indexOf(","),D=decodeURIComponent(escape(atob(z.substring(C+1)))),M=mxUtils.parseXml(D).getElementsByTagName("svg");0<M.length&&(l=parseFloat(M[0].getAttribute("width")),n=parseFloat(M[0].getAttribute("height")))}g(I.result,l,n...
Base
1
mxResources.get("format"),c,60,240,e,mxUtils.bind(this,function(p){p.appendChild(this.formatContainer)}));this.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.formatWindow.window.fit()}));var g=this.formatWindow.window.toggleMinimized,q=240;this.formatWindow.window.toggleMinimized=functio...
Base
1
(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",c,"\nresponse:",S,"\nresult:",l),this.spinner.stop(),e(l,n,z,C))}),B)}),B,mxUtils.bind(this,function(n){3>q++?t.clear()&&(this.spinner.stop(),p()):B(n)}))}),B);else{var A={message:mxResources.get("error")+" "+I.getStatus()};try{A=JSON.parse(I.getText()...
Base
1
null!=aa&&0<aa.length){var Pa=function(Na){V.setAttribute("disabled","disabled");ra.style.backgroundColor="transparent";ra.style.border="1px solid transparent";O.spin(da);Ja(aa,function(Ya,Wa){O.stop();null!=Ya&&(A(ra,Ya,la,null,null,ya,Wa),Na&&I())})};fa=La||TEMPLATE_PATH+"/"+aa.substring(0,aa.length-4)+".png";ra.styl...
Base
1
q.isRemoteFileFormat(A,c.name)?q.isOffline()?q.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,g):q.parseFileData(A,mxUtils.bind(this,function(S){4==S.readyState&&(200<=S.status&&299>=S.status?e(S.responseText):g())}),c.name):g()}):I||g()}},function(t){g(t)}):g()});"undefined"!==typeof JSZip||th...
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
App.prototype.showAuthDialog=function(b,f,m,d){var u=this.spinner.pause();this.showDialog((new AuthDialog(this,b,f,mxUtils.bind(this,function(v){try{null!=m&&m(v,mxUtils.bind(this,function(){this.hideDialog();u()}))}catch(E){this.editor.setStatus(mxUtils.htmlEntities(E.message))}}))).container,300,f?180:140,!0,!0,mxUti...
Base
1
G=y.editor.graph;if(G.isEnabled()){var P=y.getCurrentFile();null!=P&&P.isAutosaveOptional()&&k.appendChild(this.createOption(mxResources.get("autosave"),function(){return y.editor.autosave},function(T){y.editor.setAutosave(T);y.editor.autosave&&P.isModified()&&P.fileChanged()},{install:function(T){this.listener=functio...
Base
1
function(y,G){if(null==G){var P=mxEvent.getSource(y);"a"==P.nodeName.toLowerCase()&&(G=P.getAttribute("href"))}null!=G&&e.isCustomLink(G)&&(mxEvent.isTouchEvent(y)||!mxEvent.isPopupTrigger(y))&&e.customLinkClicked(G)&&mxEvent.consume(y);null!=k&&k(y,G)};B.call(this,K,O,V)};v.apply(this,arguments);mxClient.IS_SVG&&this....
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
p=-1,t=function(){null!=E?(null!=F&&F(p),p=E(q)):q()};this.drawRuler=t;this.sizeListener=f=v(function(){var x=e.container;m?(x=x.offsetHeight+L,J.height!=x&&(J.height=x,R.style.height=x+"px",t())):(x=x.offsetWidth+L,J.width!=x&&(J.width=x,R.style.width=x+"px",t()))},10);this.pageListener=function(){t()};this.scrollList...
Base
1
"#ffffff";p.panningHandler.ignoreCell=!0;p.panningHandler.useLeftButtonForPanning=!0;p.minFitScale=null;p.maxFitScale=null;p.centerZoom=!0;var t=mxUtils.parseXml(m),x=b.editor.extractGraphModel(t.documentElement,!0),B=0,I=null,A=p.getGlobalVariable;p.getGlobalVariable=function(l){return"page"==l&&null!=I&&null!=I[B]?I[...
Base
1
function(c,e,g,q,p,t,x,B){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,e,g,q,p,t,x,B)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOU...
Base
1
this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(U){return new k(U,Editor.createRoughCanvas(U),this)};var y=mxShape.prototype.create...
Base
1
'<img src="'+(l.constructor!=DriveFile?n:"https://drive.google.com/uc?id="+l.getId())+'"/>'),d.showDialog(n.container,450,240,!0,!0),n.init()):d.handleError({message:mxResources.get("invalidPublicUrl")})})}));d.actions.put("embedImage",new Action(mxResources.get("image")+"...",function(){d.showEmbedImageDialog(function...
Base
1
c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,e){var...
Base
1
c.pages.length:1:l.apply(this,arguments)};var n=null;this.addListener("fileDescriptorChanged",function(){var K=this.getCurrentFile();null!=K&&n!=K.getTitle()&&(n=null!=K.getTitle()?K.getTitle():this.defaultFilename,e.invalidateDescendantsWithPlaceholders(e.model.getRoot()),e.view.validate())});var z=e.labelLinkClicked;...
Base
1
function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.newComment=function(c,e){var g=this.getCurrentFile();return null!=g?g.newComment(c,e):new DrawioComment(this,null,c,Da...
Base
1
this.addMenuItems(l,["-","close"])})));m.prototype.execute=function(){var l=this.ui.editor.graph;this.customFonts=this.prevCustomFonts;this.prevCustomFonts=this.ui.menus.customFonts;this.ui.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts));this.extFonts=this.previousExtFonts;for(var n=l....
Base
1
this.customFonts)))}finally{G.getModel().endUpdate()}}}));this.editorUi.showDialog(Q.container,380,Editor.enableWebFonts?250:180,!0,!0);Q.init()}),n,null,!0)})))}})();function DiagramPage(b,f){this.node=b;null!=f?this.node.setAttribute("id",f):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.p...
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
"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
"";W.style.textOverflow="";W.style.whiteSpace="";W.style.cursor="text";W.style.color="";W.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(W.style,"user-select","text");W.focus();document.execCommand("selectAll",!1,null);t=function(){W.removeAttribute("contentEditable");W.style.cursor="pointer";X.title=W...
Base
1
function(){if(null==this.sidebarWindow){var c=Math.min(this.diagramContainer.parentNode.clientWidth-10,218),e="1"==urlParams.embedInline?650:Math.min(this.diagramContainer.parentNode.clientHeight,650),g="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;this.sidebarWindow=new WrapperWindow(this,mxResources.ge...
Base
1
c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCo...
Base
1
mxEvent.getClientX(K),mxEvent.getClientY(K)),G.start(K.x,K.y)):null!=qa?this.addSelectionCells(qa):1<this.getSelectionCount()&&this.isCellSelected(L)&&this.removeSelectionCell(L);qa=null;U.consume()}}));this.connectionHandler.selectCells=function(K,U){this.graph.setSelectionCell(U||K)};this.connectionHandler.constraint...
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
App.prototype.addLanguageMenu=function(b,f,m){var d=null;null!=this.menus.get("language")&&(d=document.createElement("div"),d.setAttribute("title",mxResources.get("language")),d.className="atlas"!=Editor.currentTheme?"geIcon geAdaptiveAsset":"",d.style.backgroundImage="url("+Editor.globeImage+")",d.style.backgroundPosi...
Base
1
e&&e(n)}}),null,null,null,mxUtils.bind(this,function(S){null!=e&&e(S)}),null,null,q,null,t.shadowVisible,null,t,p,null,null,null,"diagram",null)}catch(S){null!=e&&e(S)}};EditorUi.prototype.getEmbeddedSvg=function(c,e,g,q,p,t,x,B,I,A,S,l,n){B=null!=B?B:!0;S=null!=S?S:0;x=null!=I?I:e.background;x==mxConstants.NONE&&(x=nu...
Base
1
J.vertex=!0;R.addCell(J);R.dblClick=function(C,D){if(null!=D&&D!=J)R.setSelectionCell(D);else{D=mxUtils.convertPoint(R.container,mxEvent.getClientX(C),mxEvent.getClientY(C));mxEvent.consume(C);C=R.view.scale;var M=R.view.translate;R.setSelectionCell(v((D.x-3*C)/C-M.x,(D.y-3*C)/C-M.y))}};u=new mxKeyHandler(R);u.bindKey(...
Base
1
x,null,null,null,t)):mxscript("js/extensions.min.js",x,null,null,null,t))};EditorUi.prototype.generatePlantUmlImage=function(c,e,g,q){function p(B,I,A){c1=B>>2;c2=(B&3)<<4|I>>4;c3=(I&15)<<2|A>>6;c4=A&63;r="";r+=t(c1&63);r+=t(c2&63);r+=t(c3&63);return r+=t(c4&63)}function t(B){if(10>B)return String.fromCharCode(48+B);B-...
Base
1
this.hsplit.style.bottom,this.checkTabScrollerOverflow()):(this.diagramContainer.style.left=g.x+"px",this.diagramContainer.style.right="0")}c&&this.editor.graph.sizeDidChange()}else N.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(c){var e=mxUtils.bind(this,function(q){q=this.createMenu(q,null,"ge...
Base
1
38==D.keyCode?(J(M,mxConstants.DIRECTION_NORTH),mxEvent.consume(D)):39==D.keyCode?(J(M,mxConstants.DIRECTION_EAST),mxEvent.consume(D)):40==D.keyCode&&(J(M,mxConstants.DIRECTION_SOUTH),mxEvent.consume(D)))}}catch(O){c.handleError(O)}mxEvent.isConsumed(D)||A.apply(this,arguments)};var S=e.connectVertex;e.connectVertex=fu...
Base
1
null!=m&&m();b.openLink(f,null,!0)});F.className="geBtn gePrimaryBtn";F.style.width=E.style.width;v.appendChild(F);mxUtils.br(v);mxUtils.br(v);mxUtils.write(v,mxResources.get("allowPopups"));this.container=v},ImageDialog=function(b,f,m,d,u,v,E,F){function L(){0<R.value.length?t.removeAttribute("disabled"):t.setAttribut...
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
c)+"px",A.style.top=Math.max(0,e+70)+"px",mxUtils.setPrefixedStyle(A.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(A.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(A.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=I.substring(I.length-3,I.length)&&"!"!=I.charAt(I.length-...
Base
1
"#ffffff";p.panningHandler.ignoreCell=!0;p.panningHandler.useLeftButtonForPanning=!0;p.minFitScale=null;p.maxFitScale=null;p.centerZoom=!0;var t=mxUtils.parseXml(m),x=b.editor.extractGraphModel(t.documentElement,!0),B=0,I=null,A=p.getGlobalVariable;p.getGlobalVariable=function(l){return"page"==l&&null!=I&&null!=I[B]?I[...
Base
1
App.prototype.filterDrafts=function(b,f,m){function d(){m(u)}var u=[];try{this.getDatabaseItems(mxUtils.bind(this,function(v){EditorUi.debug("App.filterDrafts",[this],"items",v);for(var E=0;E<v.length;E++)try{var F=v[E].key;if(null!=F&&".draft_"==F.substring(0,7)){var L=JSON.parse(v[E].data);null!=L&&"draft"==L.type&&L...
Base
1
mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(z,mxConstants.STYLE_STROKECOLOR,"#000"));"default"==z&&(z=b.shapeForegroundColor);return z};this.createStyle=function(z){var C=";fillColor=none;";t&&(C=";lineShape=1;");return mxConstants.STYLE_SHAPE+"="+z+C};this.stopDrawing=function(){if(0<u.length){if(t){for(var z=[],C=...
Base
1
StorageFile.listFiles=function(b,f,m,d){b.getDatabaseItems(function(u){var v=[];if(null!=u)for(var E=0;E<u.length;E++)"."==u[E].title.charAt(0)||null!=f&&u[E].type!=f||v.push(u[E]);m(v)},function(){null==b.database?m(StorageFile.listLocalStorageFiles(f)):null!=d&&d()},"filesInfo")};StorageFile.deleteFile=function(b,f,m...
Base
1
V,k,y,G){v=mxEvent.isAltDown(g)?v:t.getCenterInsertPoint(new mxRectangle(0,0,y,G));var P=null;t.getModel().beginUpdate();try{P="txt"==V?b.insertAsPreText(k,v.x,v.y):t.insertVertex(null,null,null,v.x,v.y,y,G,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(k)+";"),t.setAttribu...
Base
1
[C],"{1} ago"));z.setAttribute("title",n.toLocaleDateString()+" "+n.toLocaleTimeString())}function N(n){var z=document.createElement("img");z.className="geCommentBusyImg";z.src=IMAGE_PATH+"/spin.gif";n.appendChild(z);n.busyImg=z}function H(n){n.style.border="1px solid red";n.removeChild(n.busyImg)}function R(n){n.style...
Base
1
mxUtils.bind(this,function(){g(Error(mxResources.get("timeout")+" "+p.getAttribute("href")))}))}};EditorUi.prototype.setPagesVisible=function(c){Editor.pagesVisible!=c&&(Editor.pagesVisible=c,mxSettings.settings.pagesVisible=c,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototy...
Base
1
function(I,A,S,l,n,z){c.insertImage(I,n,z)},function(){},function(I){return"image/"==I.type.substring(0,6)},function(I){for(var A=0;A<I.length;A++)I[A]()});else{var B=this.editor.graph.getInsertPoint();this.importFiles([x.getAsFile()],B.x,B.y,this.maxImageSize);mxEvent.consume(e)}break}}}}catch(I){}}),!1)}};EditorUi.pr...
Base
1
var BackgroundImageDialog=function(b,f,m,d,u){function v(){null==z||z==mxConstants.NONE?(n.style.display="none",S.checked=!1):(n.style.backgroundColor=z,n.style.display="",S.checked=!0)}var E=b.editor.graph,F=document.createElement("div");F.style.whiteSpace="nowrap";var L=document.createElement("h2");mxUtils.write(L,mx...
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
EditorUi.prototype.importZipFile=function(c,e,g){var q=this,p=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(t){if(mxUtils.isEmptyObject(t.files))g();else{var x=0,B,I=!1;t.forEach(function(A,S){A=S.name.toLowerCase();"diagram/diagram.xml"==A?(I=!0,S.as...
Base
1
this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),e,null,!0,mxUtils.bind(this,function(p){g.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=c?!c:!0,data:Editor.createSvgDataUri(p)}),"*")}),null,null,!0,q,1,this.embedExportBorder)}else c||g.postMessage(JS...
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.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var e=c.msgMarkers,g=this.remoteInvokeCallbacks[e.callbackId];if(null==g)throw Error("No callback for "+(null!=e?e.callbackId:"null"));c.error?g.error&&g.error(c.error.errResp):g.callback&&g.callback.apply(this,c.resp);this.remote...
Base
1
function(K,U){return!1};this.alternateEdgeStyle="vertical";null==f&&this.loadStylesheet();var x=this.graphHandler.getGuideStates;this.graphHandler.getGuideStates=function(){var K=x.apply(this,arguments);if(this.graph.pageVisible){var U=[],L=this.graph.pageFormat,O=this.graph.pageScale,X=L.width*O;L=L.height*O;O=this.gr...
Base
1
b.container.style.cursor=z?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){x(!0)};this.isDrawing=function(){return e};var B=mxUtils.bind(this,function(z){if(d){var C=F.length,D=g&&0<E.length&&null!=F&&2>F.length;D||E.push.apply(E,F);F=[];E.push(null);u.push(d);d=null;...
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
libs:ia.getAttribute("libs"),clibs:ia.getAttribute("clibs"),title:ia.getAttribute("title")}),ia=ia.nextSibling;S(Ia)}});var Va=function(ia,aa,la){Ca.style.display="";Qa.stop();V=!1;if(k)k=!1;else if(aa)ea.innerText=aa;else{la=la||{};aa=0;for(var ma in la)aa+=la[ma].length;0==ia.length&&0==aa?ea.innerText=mxResources.ge...
Base
1
c;else if("mxfile"==c.nodeName){var q=c.getElementsByTagName("diagram");if(0<q.length){g=q[0];var p=e.getGlobalVariable;e.getGlobalVariable=function(t){return"page"==t?g.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==t?1:p.apply(this,arguments)}}}null!=g&&(c=Editor.parseDiagramNode(g))}q=this...
Base
1
"sketchStyle","rough")?this.createComicCanvas(U):this.createRoughCanvas(U)};var G=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(U,T,W,X,Y){null!=U.handJiggle&&U.handJiggle.passThrough||G.apply(this,arguments)};var P=mxShape.prototype.paint;mxShape.prototype.paint=function(U){v...
Base
1
document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,e){c=new TextareaDialog(this,c,e,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};E...
Base
1
G,k.y+4*G,0,0):mxRectangle.fromPoint(k.view.getPoint(k));y.bounds.equals(k)&&y.value==P&&y.scale==G||(y.bounds=k,y.value=P,y.scale=G,y.redraw())}};var l=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){l.apply(this,arguments);if(mxClient.IS_GC&&null!=this.getDrawPane(...
Base
1
c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,e){var...
Base
1
libs:ia.getAttribute("libs"),clibs:ia.getAttribute("clibs"),title:ia.getAttribute("title")}),ia=ia.nextSibling;S(Ia)}});var Va=function(ia,aa,la){Ca.style.display="";Qa.stop();V=!1;if(k)k=!1;else if(aa)ea.innerText=aa;else{la=la||{};aa=0;for(var ma in la)aa+=la[ma].length;0==ia.length&&0==aa?ea.innerText=mxResources.ge...
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
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
document.body.clientHeight,(1200>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>c)&&this.formatWindow.window.toggleMinimized()):this.formatWindow.window.setVisible(!1)}};var F=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(c){var e=this.form...
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
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
c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,e){var...
Base
1
U[T];U.stroke!=mxConstants.NONE&&null!=U.stroke||delete this.nextShape.options.stroke;U.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};k.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.get...
Base
1
m?H=new mxHierarchicalLayout(v,mxConstants.DIRECTION_WEST):"circle"==m?H=new mxCircleLayout(v):(H=new mxFastOrganicLayout(v,!1),H.forceConstant=80);if(null!=H){var R=function(g,q){v.getModel().beginUpdate();try{null!=g&&g(),H.execute(v.getDefaultParent(),N)}catch(p){throw p;}finally{g=new mxMorphing(v),g.addListener(mx...
Base
1
mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(t){t.preventDefault()})),mxEvent.addListener(p,"click",function(t){"disabled"!=p.getAttribute("disabled")&&g(t);mxEvent.consume(t)}));return p};EditorUi.prototype.createMenuItem=function(c,e,g){var q=this.actions.get(c),p=null!=q?q.funct:null,t=th...
Base
1
na=la;ca=ma;ha=ja;ea=aa;za=oa;Ca=sa;Ba=fa;ea.style.backgroundColor=F;ea.style.border=L}function S(aa,la,ma,oa,fa,ja,sa,ta,La,Ga,ya){function Ja(Na,Ya){null==Fa?(Ka=Na,Ka=/^https?:\/\//.test(Ka)&&!b.editor.isCorsEnabledForUrl(Ka)?PROXY_URL+"?url="+encodeURIComponent(Ka):TEMPLATE_PATH+"/"+Ka,mxUtils.get(Ka,mxUtils.bind(t...
Base
1
this.globalVars?mxUtils.clone(this.globalVars):{};var k=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=k)for(var y in k)this.globalVars[y]=k[y]}catch(G){null!=window.console&&console.log("Error in vars URL parameter: "+G)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clon...
Base
1
function(c){var e=this.editor.graph;e.defaultEdgeLength=Graph.prototype.defaultEdgeLength;e.defaultGridEnabled=Graph.prototype.defaultGridEnabled;e.defaultPageVisible=Graph.prototype.defaultPageVisible;null!=this.menus&&(this.menus.autoPopup="simple"!=c&&"sketch"!=c);"simple"==c||"sketch"==c?(Editor.fitWindowBorders=ne...
Base
1
function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var c=this.editor.graph;c.container.addEventListener("paste",mxUtils.bind(this,function(e){if(!mxEvent.isConsumed(e))try{for(var g=e.clipboardData||e.originalEvent.clipboardData,q=!1,p=0;p<g.types.length;p...
Base
1