code
stringlengths
31
2.05k
label_name
stringclasses
5 values
label
int64
0
4
mxConstants.STYLE_DASHED,"0")&&l[1].setAttribute("stroke-dasharray",8*this.state.view.scale);var q=this.state.view.graph.getFlowAnimationStyle();null!=q&&l[1].setAttribute("class",q.getAttribute("id"))}}};var n=mxCellRenderer.prototype.isShapeInvalid;mxCellRenderer.prototype.isShapeInvalid=function(l,q){return n.apply(...
Class
2
0;g<f.length;g++)if(this.pageId==f[g].getAttribute("id")){this.currentPage=g;break}var l=this.graph.getGlobalVariable;d=this;this.graph.getGlobalVariable=function(H){var G=f[d.currentPage];return"page"==H?G.getAttribute("name")||"Page-"+(d.currentPage+1):"pagenumber"==H?d.currentPage+1:"pagecount"==H?f.length:l.apply(t...
Class
2
null!=this.linkHint&&(this.linkHint.style.visibility="")};var $a=mxEdgeHandler.prototype.destroy;mxEdgeHandler.prototype.destroy=function(){$a.apply(this,arguments);null!=this.linkHint&&(this.linkHint.parentNode.removeChild(this.linkHint),this.linkHint=null);null!=this.changeHandler&&(this.graph.getModel().removeListen...
Class
2
DrawioFile.prototype.patch=function(b,e,k){if(null!=b){var n=this.ui.editor.undoManager,D=n.history.slice(),t=n.indexOfNextAdd,E=this.ui.editor.graph;E.container.style.visibility="hidden";var d=this.changeListenerEnabled;this.changeListenerEnabled=k;var f=E.foldingEnabled,g=E.mathEnabled,l=E.cellRenderer.redraw;E.cellR...
Class
2
this.handleError(ja)}return C};EditorUi.prototype.updatePageLinks=function(d,f){for(var g=0;g<f.length;g++)this.updatePageLinksForCell(d,f[g].root),null!=f[g].viewState&&this.updateBackgroundPageLink(d,f[g].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(d,f){try{if(null!=f&&Graph.isPag...
Class
2
function(c,m,x,p,v){var A=Math.max(0,Math.min(p,Math.min(v,parseFloat(mxUtils.getValue(this.style,"size",this.size))))),B=Math.max(-1,Math.min(1,parseFloat(mxUtils.getValue(this.style,"darkOpacity",this.darkOpacity))));c.translate(m,x);c.begin();c.moveTo(0,0);c.lineTo(p-A,0);c.lineTo(p,A);c.lineTo(p,v);c.lineTo(0,v);c....
Class
2
if(null==na&&(ha=pa.indexOf("/"),na=pa.substring(0,ha),null==la)){var ka=pa.indexOf("/",ha+1);-1<ka&&(la=pa.substring(ha+1,ka))}ha=Ea[na];null==ha&&(Ra++,ha=[],Ea[na]=ha);pa=ja.getAttribute("clibs");null!=aa[pa]&&(pa=aa[pa]);pa={url:ja.getAttribute("url"),libs:ja.getAttribute("libs"),title:ja.getAttribute("title")||ja....
Base
1
d?d:"",extras:JSON.stringify(u),scale:A,border:H,w:p&&isFinite(p)?p:null,h:q&&isFinite(q)?q:null}};EditorUi.prototype.setMode=function(d,g){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!=d&&1<d.length){var g=d.indexOf("#");0<=g&&(d=d.s...
Base
1
this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,W,Q,V,X),this.lastX=V,this.lastY=X)};m.prototype.curveTo=function(W,Q,V,X,Y,Z){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,W,Q,V,X,Y,Z),this.lastX=Y,this.lastY=Z)};m.prototype.arcTo=function(W,Q,V,X,...
Base
1
A.parentNode.removeChild(A)}catch(L){}}else this.createEchoRequest(d,g,n,t,u).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(d,g,n,t,u,v){d="xml="+encodeURIComponent(d);return new mxXmlRequest(SAVE_URL,d+(null!=n?"&mime="+n:"")+(null!=u?"&format="+u:"")+(null!=v?"&base64="+v:"")+(null!=g?"&...
Base
1
0<Object.getOwnPropertyNames(B).length&&this.container.appendChild(this.addProperties(this.createPanel(),B,m))}};var d=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(m){var B=this.editorUi.getSelectionState();1==B.cells.length?this.addActions(m,["copyStyle","pasteStyle"]):1<=B.ce...
Base
1
(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",d,"\nresponse:",S,"\nresult:",p),this.spinner.stop(),g(p,q,C,J))}),H)}),H,mxUtils.bind(this,function(q){3>t++?v.clear()&&(this.spinner.stop(),u()):H(q)}))}),H);else{var F={message:mxResources.get("error")+" "+L.getStatus()};try{F=JSON.parse(L.getText()...
Base
1
A,null,null,null,v)):mxscript("js/extensions.min.js",A,null,null,null,v))};EditorUi.prototype.generatePlantUmlImage=function(d,g,n,t){function u(H,L,F){c1=H>>2;c2=(H&3)<<4|L>>4;c3=(L&15)<<2|F>>6;c4=F&63;r="";r+=v(c1&63);r+=v(c2&63);r+=v(c3&63);return r+=v(c4&63)}function v(H){if(10>H)return String.fromCharCode(48+H);H-...
Base
1
(t<<5)-t+this.hashValue(d.childNodes[u],g,n)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);g=0;null!=n&&(n.byteCount+=d.length);for(u=0;u<d.length;u++)g=(g<<5)-g+d.charCodeAt(u)<<0;t^=g}return t};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototy...
Base
1
this.handleError({message:mxResources.get("error")+" "+C.getStatus()}))}),mxUtils.bind(this,function(C){this.handleError(C)}))}),p=mxUtils.bind(this,function(){window.clearTimeout(F);F=window.setTimeout(S,L)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){p();S()}));p();S()}null!=g&&g()});if(null!...
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(W){return new m(W,Editor.createRoughCanvas(W),this)};var B=mxShape.prototype.create...
Base
1
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,ca=W.setStrokeColor;W.setStrokeColor=function(){};var da=W.setFillColor;W.setFillColor=function(){};V||null==X||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;R.apply(this,arguments);W.handJiggle.passThrou...
Base
1
N=document.createElement("div");N.style.marginTop="6px";N.style.display="inline-block";N.style.width="140px";mxUtils.write(N,mxResources.get("siblingSpacing")+": ");O.appendChild(N);var R=document.createElement("input");R.type="number";R.value=G;R.style.width="200px";R.style.boxSizing="border-box";O.appendChild(R);mxEv...
Base
1
null!=d.getMode())try{this.addRecent({id:d.getHash(),title:d.getTitle(),mode:d.getMode()})}catch(H){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(H){}}catch(H){this.fileLoadedError=H;if(null!=d)try{d.close()}catch(L){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logE...
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
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
e.getCell(g),null!=d&&d!=I&&(I=null));null!=I&&(e.getChildAt(f,y)!=I&&e.add(f,I,y),this.patchCellRecursive(b,e,I,c,k),y++);return g});for(D=[null];0<D.length;)if(z=D.shift(),z=E(null!=z?z.child:null,null!=z?z.insert:!1),M=l[z],null!=M&&(delete l[z],D.push({child:e.getCell(M)})),M=x[z],null!=M&&(delete x[z],D.push({chil...
Base
1
window.console&&console.error(K,N,T)}}function k(N){if(b.shareCursorPosition&&!z.isMouseDown){var T=mxUtils.getOffset(z.container),m=z.view.translate,B=z.view.scale,K=null!=b.currentPage?b.currentPage.getId():null;c("cursor",{pageId:K,x:Math.round((N.getX()-T.x+z.container.scrollLeft)/B-m.x),y:Math.round((N.getY()-T.y+...
Base
1
this.hsplit.style.bottom,this.checkTabScrollerOverflow()):(this.diagramContainer.style.left=n.x+"px",this.diagramContainer.style.right="0")}d&&this.editor.graph.sizeDidChange()}else D.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(d){var g=mxUtils.bind(this,function(t){t=this.createMenu(t,null,"ge...
Base
1
S(la.url,la.libs,la.title,la.tooltip?la.tooltip:la.title,la.select,la.imgUrl,la.info,la.onClick,la.preview,la.noImg,la.clibs);aa&&la.click();aa=!1}}function A(aa,la,na,pa,ha,ka){if(null!=aa&&mxUtils.isAncestorNode(document.body,pa)){aa=mxUtils.parseXml(aa);aa=Editor.parseDiagramNode(aa.documentElement);var ua=new mxCod...
Base
1
mxGraphView.prototype.stateValidated=function(m){null!=m.shape&&this.redrawEnumerationState(m);return S.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(m){m=decodeURIComponent(mxUtils.getValue(m.style,"enumerateValue",""));""==m&&(m=++this.enumerationState);return'<div style="padding:2px;bo...
Base
1
d,g,n,t,u);this.showDialog(d.container,640,440,!0,!1,mxUtils.bind(this,function(v){v&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));d.init()};var f=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(d){var g=f.apply(this,arguments);this.editor.graph.addListener("viewState...
Base
1
mxResources.get("format"),d,60,240,g,mxUtils.bind(this,function(u){u.appendChild(this.formatContainer)}));this.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.formatWindow.window.fit()}));var n=this.formatWindow.window.toggleMinimized,t=240;this.formatWindow.window.toggleMinimized=functio...
Base
1
I.vertex=!0;M.addCell(I);M.dblClick=function(J,G){if(null!=G&&G!=I)M.setSelectionCell(G);else{G=mxUtils.convertPoint(M.container,mxEvent.getClientX(J),mxEvent.getClientY(J));mxEvent.consume(J);J=M.view.scale;var P=M.view.translate;M.setSelectionCell(l((G.x-3*J)/J-P.x,(G.y-3*J)/J-P.y))}};k=new mxKeyHandler(M);k.bindKey(...
Base
1
function(d,g,n,t,u,v,A,H){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(d,g,n,t,u,v,A,H)};EditorUi.prototype.loadFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(d)};EditorUi.prototype.createSvgDataUri=function(d){EditorUi.logEvent("SHOU...
Base
1
"unknown");null!=S&&null!=S.error&&null!=S.error.code&&(p+="-code_"+S.error.code);EditorUi.logEvent({category:"ERROR-SAVE-FILE-"+f.getHash()+"-rev_"+f.desc.headRevisionId+"-mod_"+f.desc.modifiedDate+"-size_"+f.getSize()+"-mime_"+f.desc.mimeType+(this.ui.editor.autosave?"":"-nosave")+(f.isAutosave()?"":"-noauto")+(f.cha...
Base
1
u=-1,v=function(){null!=x?(null!=y&&y(u),u=x(t)):t()};this.drawRuler=v;this.sizeListener=e=l(function(){var A=g.container;f?(A=A.offsetHeight+E,I.height!=A&&(I.height=A,M.style.height=A+"px",v())):(A=A.offsetWidth+E,I.width!=A&&(I.width=A,M.style.width=A+"px",v()))},10);this.pageListener=function(){v()};this.scrollList...
Base
1
K=B.editor.graph;if(K.isEnabled()){var R=B.getCurrentFile();null!=R&&R.isAutosaveOptional()&&m.appendChild(this.createOption(mxResources.get("autosave"),function(){return B.editor.autosave},function(Q){B.editor.setAutosave(Q);B.editor.autosave&&R.isModified()&&R.fileChanged()},{install:function(Q){this.listener=functio...
Base
1
!1,!0)}finally{L.model.endUpdate()}}}catch(T){if(u)throw T;this.handleError(T)}return H};EditorUi.prototype.updatePageLinks=function(d,g){for(var n=0;n<g.length;n++)this.updatePageLinksForCell(d,g[n].root),null!=g[n].viewState&&this.updateBackgroundPageLink(d,g[n].viewState.backgroundImage)};EditorUi.prototype.updateBa...
Base
1
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
R));var U=document.createElement("link");U.setAttribute("rel","preload");U.setAttribute("href",R);U.setAttribute("as","font");U.setAttribute("crossorigin","");B.parentNode.insertBefore(U,B)}}}};Editor.trimCssUrl=function(m){return m.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGL...
Base
1
u=-1,v=function(){null!=x?(null!=y&&y(u),u=x(t)):t()};this.drawRuler=v;this.sizeListener=e=l(function(){var A=g.container;f?(A=A.offsetHeight+E,I.height!=A&&(I.height=A,M.style.height=A+"px",v())):(A=A.offsetWidth+E,I.width!=A&&(I.width=A,M.style.width=A+"px",v()))},10);this.pageListener=function(){v()};this.scrollList...
Base
1
ma[ea])&&da.push(ma[ea]);this.setHiddenTags(da);this.refresh()}0<ca.length&&(R++,this.executeAnimations(ca,V,Y?1:Z.steps,Y?0:Z.delay));0==R?X():Q()}else this.stoppingCustomActions=this.executingCustomActions=!1,Q(),null!=B&&B()});X()}};Graph.prototype.doUpdateCustomLinksForCell=function(m,B){var K=this.getLinkForCell(B...
Base
1
(this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){k(!1)}))}),function(x){k(!1)},!0)};OneDriveClient.prototype.saveFile=function(e,f,c,k){try{var l=e.getData(),x=mxUtils.bind(this,function(E){var D=mxUtils.bind(this,function(M){f(M,l)}),z=th...
Base
1
App.prototype.fileCreated=function(b,e,f,c,k,l){var x=window.location.pathname;null!=e&&0<e.length&&(x+="?libs="+e);null!=k&&0<k.length&&(x+="?clibs="+k);x=this.getUrl(x);b.getMode()!=App.MODE_DEVICE&&(x+="#"+b.getHash());if(this.spinner.spin(document.body,mxResources.get("inserting"))){var y=b.getData();y=0<y.length?t...
Base
1
'<img src="'+(p.constructor!=DriveFile?q:"https://drive.google.com/uc?id="+p.getId())+'"/>'),c.showDialog(q.container,450,240,!0,!0),q.init()):c.handleError({message:mxResources.get("invalidPublicUrl")})})}));c.actions.put("embedImage",new Action(mxResources.get("image")+"...",function(){c.showEmbedImageDialog(function...
Base
1
if(null!=m.excludeCells){for(var K=[],R=0;R<B.length;R++)0>m.excludeCells.indexOf(B[R].id)&&K.push(B[R]);B=K}return B};Graph.prototype.getCellsById=function(m){var B=[];if(null!=m)for(var K=0;K<m.length;K++)if("*"==m[K]){var R=this.model.getRoot();B=B.concat(this.model.filterDescendants(function(W){return W!=R},R))}els...
Base
1
document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(d,g){d=new TextareaDialog(this,d,g,null,null,mxResources.get("close"));this.showDialog(d.container,620,460,!0,!0,null,null,null,null,!0);d.init();document.execCommand("selectall",!1,null)};E...
Base
1
mxEvent.getClientX(C),mxEvent.getClientY(C))},p=function(C){for(d.push(C);d.length>f;)d.shift()},q=function(C){var J=d.length;if(1===J%2||J>=f){var G=0,P=0,O,N=0;for(O=C;O<J;O++)N++,C=d[O],G+=C.x,P+=C.y;return{x:G/N,y:P/N}}return null}}}mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;mxFreehan...
Base
1
Q[X[Z]]&&Y++;Y=Y==W}Y&&(1!=R||this.isCellVisible(B[V]))&&U.push(B[V])}}return U};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(m){for(var B=null,K=[],R=0;R<m.length;R++){var U=this.getTagsForCell(m[R]);K...
Base
1
g.addListener(mxEvent.SIZE,e);g.container.addEventListener("scroll",c);g.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(A){z=A;M.style.bac...
Base
1
A.push("page-id="+this.currentPage.getId());return A};EditorUi.prototype.createLink=function(d,g,n,t,u,v,A,H,L,F){L=this.createUrlParameters(d,g,n,t,u,v,L);d=this.getCurrentFile();g=!0;null!=A?n="#U"+encodeURIComponent(A):(d=this.getCurrentFile(),H||null==d||d.constructor!=window.DriveFile?n="#R"+encodeURIComponent(n?t...
Base
1
(I=d)}k?e(new TrelloLibrary(this.ui,I,D)):e(new TrelloFile(this.ui,I,D))}}),mxUtils.bind(this,function(I,d){window.clearTimeout(E);y&&(401==d.status?this.authenticate(l,f,!0):f())}),z||null!=D.mimeType&&"image/"==D.mimeType.substring(0,6),null,null,null,M))}}),mxUtils.bind(this,function(D){window.clearTimeout(E);y&&(nu...
Base
1
this.customFonts)))}finally{K.getModel().endUpdate()}}}));this.editorUi.showDialog(U.container,380,Editor.enableWebFonts?250:180,!0,!0);U.init()}),q,null,!0)})))}})();function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.p...
Base
1
this.editor.graph.mathEnabled&&this.editor.addMathCss(P);var T=mxUtils.bind(this,function(m){v?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(m,N,this.thumbImageCache)):N(m)});q?this.embedFonts(P,T):(this.editor.addFontCss(P),T(P))}catch(m){this.handleError(m)}};EditorUi.prototype.addR...
Base
1
V.fillStyle=Q;return V};m.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};m.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};m.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.lengt...
Base
1
if(null==na&&(ha=pa.indexOf("/"),na=pa.substring(0,ha),null==la)){var ka=pa.indexOf("/",ha+1);-1<ka&&(la=pa.substring(ha+1,ka))}ha=Ea[na];null==ha&&(Ra++,ha=[],Ea[na]=ha);pa=ja.getAttribute("clibs");null!=aa[pa]&&(pa=aa[pa]);pa={url:ja.getAttribute("url"),libs:ja.getAttribute("libs"),title:ja.getAttribute("title")||ja....
Base
1
e.appendChild(M);e.appendChild(f);z.appendChild(e);var I=y,d,g,n=function(A,H,L,F){var S="data:"==A.substring(0,5);!b.isOffline()||S&&"undefined"===typeof chrome?0<A.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(A,function(p){b.spinner.stop();b.hideDialog();var q=!1===F?1:null!=H&&null!...
Base
1
E;this.okButton=k;this.container=I},TemplatesDialog=function(b,e,f,c,k,l,x,y,E,D,z,M,I,d,g){function n(ja){ta.innerText=ja;ta.style.display="block";setTimeout(function(){ta.style.display="none"},4E3)}function t(){null!=B&&(B.style.fontWeight="normal",B.style.textDecoration="none",K=B,B=null)}function u(ja,aa,la,na,pa,h...
Base
1
!0;Editor.enableRealtime=!0;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.config=null;Editor.configVersion=null;Editor.defaultBorder=5;Editor.commonProperties=[{name:"enumerate",dispName:"Enume...
Base
1
E;this.okButton=k;this.container=I},TemplatesDialog=function(b,e,f,c,k,l,x,y,E,D,z,M,I,d,g){function n(ja){ta.innerText=ja;ta.style.display="block";setTimeout(function(){ta.style.display="none"},4E3)}function t(){null!=B&&(B.style.fontWeight="normal",B.style.textDecoration="none",K=B,B=null)}function u(ja,aa,la,na,pa,h...
Base
1
function(v){return mxEvent.getSource(v)==n?!0:u.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(d,g){mxSettings.setUi(d);(g=this.doSetCurrentTheme(d)||g)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(d){return""==d||"dark"==d||"default"==d||"ken...
Base
1
function(){if(null==this.sidebarWindow){var d=Math.min(this.diagramContainer.parentNode.clientWidth-10,218),g="1"==urlParams.embedInline?650:Math.min(this.diagramContainer.parentNode.clientHeight,650),n="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;this.sidebarWindow=new WrapperWindow(this,mxResources.ge...
Base
1
this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()})}};EditorUi.prototype.copyImage=function...
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(W,Q,V,X,Y,Z){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(W+Y,Q),this.lineTo(W+V-Y,Q),this.quadTo(W+V,Q,W+V,Q+Z),this.lineTo(W+V,Q+X-Z),this.quadTo(W+V,Q+X,W+V-Y,Q+X),this.lineTo(W+Y,Q+X),this.quadTo(W,Q+X,W,Q+X-Z),this.lineTo(W,Q+Z),this.quadTo(W,Q,W+Y,Q))};m....
Base
1
Oa.dx||null!=Oa.dy)Ya.geometry.offset=new mxPoint(null!=Oa.dx?Oa.dx:0,null!=Oa.dy?Oa.dy:0);Ta.insert(Ya)}Ua.push(Ta);mxUtils.remove(Ha.invert?Na:Sa,Va)}}}});aa(oa,oa,ja);if(null!=A[oa.id])for(Ea=0;Ea<A[oa.id].length;Ea++)aa(oa,A[oa.id][Ea],ja)}}if(null!=Ca)for(ia=0;ia<t.length;ia++)for(oa=t[ia],Ea=0;Ea<Ca.length;Ea++)L...
Base
1
v.getGlobalVariable=function(S){return"page"==S?F.getName():"pagenumber"==S?1:L.apply(this,arguments)};document.body.appendChild(v.container);v.model.setRoot(F.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(S){try{null==H&&(H=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var p=S.toDataUR...
Base
1
EditorUi.prototype.updateDiagram=function(d){function g(T){var m=new mxCellOverlay(T.image||u.warningImage,T.tooltip,T.align,T.valign,T.offset);m.addListener(mxEvent.CLICK,function(B,K){t.alert(T.tooltip)});return m}var n=null,t=this;if(null!=d&&0<d.length&&(n=mxUtils.parseXml(d),d=null!=n?n.documentElement:null,null!=...
Base
1
""),mxUtils.bind(this,function(g){window.clearTimeout(d);I&&(200<=g.getStatus()&&299>=g.getStatus()?null!=f&&f():c({message:mxResources.get("realtimeCollaboration")+(0!=g.getStatus()?": "+g.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"diff",D,M.length,"bytes","from",y,"to",E,"etag",this.file....
Base
1
"?inline=false",last_commit_id:k.last_commit_id,refPos:x};k=this.getFileContent(k);return l?new GitLabLibrary(this.ui,k,e):new GitLabFile(this.ui,k,e)};GitLabClient.prototype.insertFile=function(e,f,c,k,l,x,y){l=null!=l?l:!1;x=x.split("/");this.getRefIndex(x,!0,mxUtils.bind(this,function(E,D){var z=Math.max(D-1,0),M=E....
Base
1
!0)};GitHubClient.prototype.saveFile=function(e,f,c,k,l){var x=e.meta.org,y=e.meta.repo,E=e.meta.ref,D=e.meta.path,z=mxUtils.bind(this,function(I,d){this.writeFile(x,y,E,D,l,d,I,mxUtils.bind(this,function(g){delete e.meta.isNew;f(JSON.parse(g.getText()).content.sha)}),mxUtils.bind(this,function(g){c(g)}))}),M=mxUtils.b...
Base
1
this.useCanvasForExport||".png"!=t||(t=".drawio"),".svg"===t||".xml"===t||".html"===t||".png"===t||".drawio"===t)&&(g=n+t)}d=new LocalFile(this,d,null!=urlParams.title?decodeURIComponent(urlParams.title):g,!0);d.getHash=function(){return b};this.fileLoaded(d,!0)?null!=c&&c():M()||this.handleError({message:mxResources.g...
Base
1
"&redirect="+this.sameWinRedirectUrl:""));this.sameWinAuthMode?(window.location.assign(D),y=null):null==y?y=this.createAuthWin(D):y.location=D;null!=y?(window.onGoogleDriveCallback=mxUtils.bind(this,function(z,M){window.onGoogleDriveCallback=null;try{null==z?null!=l&&l({message:mxResources.get("accessDenied")}):this.up...
Base
1
340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}...
Base
1
EditorUi.debug("P2PCollab:","sendReply error",arguments,m)}});this.sendMessage=c;this.sendDiff=function(N){this.sendMessage("diff",{diff:N})};this.getState=function(){return null!=I?I.readyState:3};this.getLastError=function(){return P};this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(...
Base
1
0));mxEvent.addListener(la,"change",pa);mxEvent.addListener(la,"keydown",pa);mxEvent.addListener(la,"cut",pa);mxEvent.addListener(la,"paste",pa);mxEvent.addListener(la,"keydown",function(Ia){13==Ia.keyCode&&Ma.click()});pa=document.createElement("div");pa.style.height="40px";pa.style.marginTop="4px";pa.style.marginBott...
Base
1
K,0,K.length);U+=V(K.length)+B+K+V(R^4294967295);U+=m.substring(X-8,m.length);break}U+=m.substring(X-8,X-4+Y);W(m,Y);W(m,4)}while(Y);return"data:image/png;base64,"+(window.btoa?btoa(U):Base64.encode(U,!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var y=...
Base
1
this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};m.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
0>mxUtils.indexOf(v,Na)};this.executeLayout(function(){Ma.execute(L.getDefaultParent());na()},!0,Y);Y=null}else if("organic"==ea||"auto"==ea&&Ua.length>v.length){L.view.validate();var Aa=new mxFastOrganicLayout(L);Aa.forceConstant=3*Q;Aa.disableEdgeStyle=!1;Aa.resetEdges=!1;var Ja=Aa.isVertexIgnored;Aa.isVertexIgnored=...
Base
1
L.style.paddingRight=18*F.childNodes.length+"px"}};EditorUi.prototype.addLibraryEntries=function(d,g){for(var n=0;n<d.length;n++){var t=d[n],u=t.data;if(null!=u){u=this.convertDataUri(u);var v="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==t.aspect&&(v+="aspect=fixed;");g.appendChi...
Base
1
La+" ("+Xa.length+")",Ta=La=mxUtils.htmlEntities(La);15<La.length&&(La=La.substring(0,15)+"&hellip;");return{lbl:La+" ("+Xa.length+")",fullLbl:Sa,lblOnly:Ta}}function pa(La,Xa,Sa,Ta,Pa){mxEvent.addListener(Sa,"click",function(){B!=Sa&&(null!=B?(B.style.fontWeight="normal",B.style.textDecoration="none"):(fa.style.displa...
Base
1
d)+"px",F.style.top=Math.max(0,g+70)+"px",mxUtils.setPrefixedStyle(F.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(F.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(F.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=L.substring(L.length-3,L.length)&&"!"!=L.charAt(L.length-...
Base
1
this.editor.addFontCss(d,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(n){try{null!=n&&this.editor.addFontCss(d,n),g(d)}catch(t){g(d)}}))}catch(n){g(d)}}))};EditorUi.prototype.exportImage=function(d,g,n,t,u,v,A,H,L,F,S,p,q){L=null!=L?L:"png";if(this.spinner.spin(document.body,mxResou...
Base
1
t.model.getChildAt(g,H))};EditorUi.prototype.updatePageLink=function(d,g){if(Graph.isPageLink(g)){var n=d[g.substring(g.indexOf(",")+1)];g=null!=n?"data:page/id,"+n:null}else if("data:action/json,"==g.substring(0,17))try{var t=JSON.parse(g.substring(17));if(null!=t.actions){for(var u=0;u<t.actions.length;u++){var v=t.a...
Base
1
function(L,F,S,p,q,C){d.insertImage(L,q,C)},function(){},function(L){return"image/"==L.type.substring(0,6)},function(L){for(var F=0;F<L.length;F++)L[F]()});else{var H=this.editor.graph.getInsertPoint();this.importFiles([A.getAsFile()],H.x,H.y,this.maxImageSize);mxEvent.consume(g)}break}}}}catch(L){}}),!1)}};EditorUi.pr...
Base
1
u=null;t.getModel().beginUpdate();try{u=t.insertVertex(null,null,"<pre>"+d+"</pre>",g,n,1,1,"text;html=1;align=left;verticalAlign=top;"),t.updateCellSize(u,!0)}finally{t.getModel().endUpdate()}return u};EditorUi.prototype.insertTextAt=function(d,g,n,t,u,v,A,H){v=null!=v?v:!0;A=null!=A?A:!0;if(null!=d)if(Graph.fileSuppo...
Base
1
d)}),c,this.ui.getCurrentFile()!=e?e.getData():null,I.scale,I.border)}else z(e.meta.sha,Base64.encode(e.getData()))});k?this.getSha(x,y,D,E,mxUtils.bind(this,function(I){e.meta.sha=I;M()}),c):M()};GitHubClient.prototype.pickLibrary=function(e){this.pickFile(e)};GitHubClient.prototype.pickFolder=function(e){this.showGit...
Base
1
"";V.style.textOverflow="";V.style.whiteSpace="";V.style.cursor="text";V.style.color="";V.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(V.style,"user-select","text");V.focus();document.execCommand("selectAll",!1,null);v=function(){V.removeAttribute("contentEditable");V.style.cursor="pointer";X.title=V...
Base
1
mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(v){v.preventDefault()})),mxEvent.addListener(u,"click",function(v){"disabled"!=u.getAttribute("disabled")&&n(v);mxEvent.consume(v)}));return u};EditorUi.prototype.createMenuItem=function(d,g,n){var t=this.actions.get(d),u=null!=t?t.funct:null,v=th...
Base
1
EditorUi.prototype.patchPage=function(b,e,f,c){var k=b==this.currentPage?this.editor.graph.model:new mxGraphModel(b.root),l=this.createParentLookup(k,e);k.beginUpdate();try{var x=k.updateEdgeParent,y=new mxDictionary,E=[];k.updateEdgeParent=function(t,u){!y.get(t)&&c&&(y.put(t,!0),E.push(t))};var D=l[""],z=null!=D&&nul...
Base
1
R--;U()}),mxUtils.bind(this,function(X){R--;K.push("@import url("+V+");\n");U()}))):K.push(this.cachedGoogleFonts[V]+"\n"):K.push('@font-face {font-family: "'+Q+'";src: url("'+V+'")}\n')})(B[W].name,B[W].url);U()}else m()};Editor.prototype.addMathCss=function(m){m=m.getElementsByTagName("defs");if(null!=m&&0<m.length)f...
Base
1
b.editor.graph.rendering=!1;z.getModel().beginUpdate();try{for(var B=0,K={};E(!1,!0,!0)&&100>B;){var R=I.cell,U=z.getLabel(R),W=K[R.id];if(W&&W.replAllMrk==u&&W.replAllPos>=t)break;K[R.id]={replAllMrk:u,replAllPos:t};z.isCellEditable(R)&&(z.model.setValue(R,G(U,n,L.value,t-n.length,z.getCurrentCellStyle(R))),B++)}T!=b....
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
T)this.editPlantUmlData(O,N,T);else if(T=this.graph.getAttributeForCell(O,"mermaidData"),null!=T)this.editMermaidData(O,N,T);else{var m=g.getCellStyle(O);"1"==mxUtils.getValue(m,"metaEdit","0")?d.showDataDialog(O):n.apply(this,arguments)}}catch(B){d.handleError(B)}};g.getLinkTitle=function(O){return d.getLinkTitle(O)};...
Base
1
b.container.style.cursor=C?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){A(!0)};this.isDrawing=function(){return g};var H=mxUtils.bind(this,function(C){if(c){var J=y.length,G=n&&0<x.length&&null!=y&&2>y.length;G||x.push.apply(x,y);y=[];x.push(null);k.push(c);c=null;...
Base
1
Graph.recentCustomFonts[R]=U,B=document.getElementsByTagName("head")[0],null!=K&&("link"==U.elt.nodeName.toLowerCase()?(U.elt.onload=K,U.elt.onerror=K):K()),null!=B&&B.appendChild(U.elt)):null!=K&&K()}else null!=K&&K()}else null!=K&&K();return m};Graph.getFontUrl=function(m,B){m=Graph.customFontElements[m.toLowerCase()...
Base
1
Editor.createRoughCanvas=function(m){var B=rough.canvas({getContext:function(){return m}});B.draw=function(K){var R=K.sets||[];K=K.options||this.getDefaultOptions();for(var U=0;U<R.length;U++){var W=R[U];switch(W.type){case "path":null!=K.stroke&&this._drawToContext(m,W,K);break;case "fillPath":this._drawToContext(m,W,...
Base
1
K,m.y+4*K,0,0):mxRectangle.fromPoint(m.view.getPoint(m));B.bounds.equals(m)&&B.value==R&&B.scale==K||(B.bounds=m,B.value=R,B.scale=K,B.redraw())}};var p=mxGraphView.prototype.validateBackgroundPage;mxGraphView.prototype.validateBackgroundPage=function(){p.apply(this,arguments);if(mxClient.IS_GC&&null!=this.getDrawPane(...
Base
1
[],K={},R=0;R<m.length;R++){var U=this.getTagsForCell(m[R]);if(0<U.length){U=U.split(" ");for(var W=0;W<U.length;W++)null==K[U[W]]&&(K[U[W]]=!0,B.push(U[W]))}}return B};Graph.prototype.getTagsForCell=function(m){return this.getAttributeForCell(m,"tags","")};Graph.prototype.addTagsForCells=function(m,B){if(0<m.length&&0...
Base
1
var PopupDialog=function(b,e,f,c,k){k=null!=k?k:!0;var l=document.createElement("div");l.style.textAlign="left";l.style.height="100%";mxUtils.write(l,mxResources.get("fileOpenLocation"));mxUtils.br(l);mxUtils.br(l);var x=mxUtils.button(mxResources.get("openInThisWindow"),function(){k&&b.hideDialog();null!=c&&c()});x.cl...
Base
1
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
"keys",Da,"values",Qa,"cells",ca.getSelectionCells()))}finally{ca.getModel().endUpdate()}}function U(oa,sa,va){var Ea=mxUtils.getOffset(m,!0),Da=mxUtils.getOffset(oa,!0);sa.style.position="absolute";sa.style.left=Da.x-Ea.x+"px";sa.style.top=Da.y-Ea.y+"px";sa.style.width=oa.offsetWidth+"px";sa.style.height=oa.offsetHeig...
Base
1
Q))}var S="";null==e&&(e=u,S='<div style="text-align: center;" class="odPreview"></div>');null==k&&(k=function(){var Q=null;try{Q=JSON.parse(localStorage.getItem("mxODPickerRecentList"))}catch(V){}return Q});null==l&&(l=function(Q){if(null!=Q){var V=k()||{};delete Q["@microsoft.graph.downloadUrl"];V[Q.id]=Q;localStorag...
Base
1
"&redirect="+this.sameWinRedirectUrl:""));this.sameWinAuthMode?(window.location.assign(D),y=null):null==y?y=this.createAuthWin(D):y.location=D;null!=y?(window.onGoogleDriveCallback=mxUtils.bind(this,function(z,M){window.onGoogleDriveCallback=null;try{null==z?null!=l&&l({message:mxResources.get("accessDenied")}):this.up...
Base
1