code
stringlengths
31
2.05k
label_name
stringclasses
5 values
label
int64
0
4
function(d,g,n,t,u){var v=document.createElement("div");v.style.whiteSpace="nowrap";var A=document.createElement("h3");mxUtils.write(A,mxResources.get("image"));A.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(u?"10":"4")+"px";v.appendChild(A);if(u){mxUtils.write(v,mxResources.get("zoom")+"...
Base
1
retry:k})}),mxUtils.bind(this,function(){l&&(window.onGitLabCallback=null,l=!1,c({message:mxResources.get("accessDenied"),retry:k}))}))});k()}else c({code:App.ERROR_BUSY})};GitLabClient.prototype.executeRequest=function(e,f,c,k){var l=mxUtils.bind(this,function(y){var E=!0,D=window.setTimeout(mxUtils.bind(this,function...
Base
1
"cells",[J])),b.fireEvent(new mxEventObject("freehandInserted","cell",J))}finally{b.model.endUpdate()}t&&b.setSelectionCells([J])}}for(J=0;J<k.length;J++)k[J].parentNode.removeChild(k[J]);c=null;k=[];x=[]}A(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(C,J){C=J.getProperty("eventName");J=J.getP...
Base
1
return R==P||0==K.length?z(G,P):U==W?D(G):E(G,P!=mxConstants.DIRECTION_NORTH&&P!=mxConstants.DIRECTION_WEST)}return S.apply(this,arguments)};g.getSubtree=function(G){var P=[G];!k(G)&&!c(G)||x(G)||g.traverse(G,!0,function(O,N){var T=null!=N&&g.isTreeEdge(N);T&&0>mxUtils.indexOf(P,N)&&P.push(N);(null==N||T)&&0>mxUtils.in...
Base
1
va,Ga=Fa+(Qa.x-Fa)/va-da,Va=Ra+(Qa.y-Ra)/va-da,Ua=new Image;Ua.onload=function(){try{for(var ja=-Math.round(Da-mxUtils.mod((Fa-Ga)*V,Da)),aa=-Math.round(Da-mxUtils.mod((Ra-Va)*V,Da));ja<ta;ja+=Da)for(var la=aa;la<Ka;la+=Da)oa.drawImage(Ua,ja/V,la/V);ya()}catch(na){null!=U&&U(na)}};Ua.onerror=function(ja){null!=U&&U(ja)...
Base
1
document.createElement("canvas");J.width=S;J.height=p;var G=J.toDataURL();C!==G&&(g=C,H=S,L=p)}}}catch(P){}n(g,H,L)};EditorUi.prototype.extractGraphModelFromPng=function(d){return Editor.extractGraphModelFromPng(d)};EditorUi.prototype.loadImage=function(d,g,n){try{var t=new Image;t.onload=function(){t.width=0<t.width?t...
Base
1
l)for(x=0;x<l.length;x++)l[x].node.style.visibility=c?"visible":"hidden"};var f=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){f.call(this);var c=this.guidesArrVer,k=this.guidesArrHor;if(null!=c){for(var l=0;l<c.length;l++)c[l].destroy();this.guidesArrVer=null}if(null!=k){for(l=0;l<k.length;l++)k[l].des...
Base
1
d.appendChild(f));D.appendChild(d);D.appendChild(g);this.container=D},FindWindow=function(b,e,f,c,k,l){function x(T,m,B,K){if("object"===typeof m.value&&null!=m.value.attributes){m=m.value.attributes;for(var R=0;R<m.length;R++)if("label"!=m[R].nodeName){var U=mxUtils.trim(m[R].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s...
Base
1
K,[O]);var W=g.model.getGeometry(O);null!=W&&(W=W.clone(),W.width=Math.max(W.width,R),W.height=Math.max(W.height,U),g.cellsResized([O],[W],!1));g.setAttributeForCell(O,"mermaidData",JSON.stringify({data:B,config:m.config},null,2))}finally{g.getModel().endUpdate()}},function(K){d.handleError(K)})},null,null,400,220);d.s...
Base
1
(new mxXmlRequest(SAVE_URL,"format="+M+"&xml="+encodeURIComponent(D)+"&filename="+encodeURIComponent(b)+(l?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(D)}));y()}});l?(e=this.ui.get...
Base
1
urlParams["remote-selection"]){var Q=null!=b.currentPage?b.currentPage.getId():null;if(null==Q||null!=W.pageId&&W.pageId==Q){m();for(m=0;m<W.removed.length;m++){var V=W.removed[m];if(null!=V){var X=U[V];delete U[V];null!=X&&X.destroy()}}for(m=0;m<W.added.length;m++)if(V=W.added[m],null!=V){var Y=z.model.getCell(V);null...
Base
1
"24px",t.innerText="");return t};EditorUi.prototype.createToolbarButton=function(d,g,n,t){t=null!=t?t:24;var u=document.createElement("a");u.className="geToolbarButton geAdaptiveAsset";u.setAttribute("title",g);u.style.backgroundImage="url("+d+")";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-...
Base
1
A:null),mxSettings.save();n();d(A)};null==t||g?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(v){u(v,!0)},function(v){u(v,!1)},mxResources.get("resize"),mxResources.get("actualSize"),'<img style="margin-top:8px;" src="'+Editor.loResImage+'"/>','<img style="margin-top:8px;" src="'+...
Base
1
size:P.data.length,lastModified:Date.now(),type:P.isLib?"L":"F"},{title:P.title,data:P.data}],C,C,["filesInfo","files"])}catch(O){console.log(O)}});A=mxUtils.bind(this,function(P){try{if(P.source==H.contentWindow){var O={};try{O=JSON.parse(P.data)}catch(N){}"init"==O.event?(H.contentWindow.postMessage(JSON.stringify({a...
Base
1
Graph.prototype.setHiddenTags=function(m){this.hiddenTags=m;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(m){var B=mxUtils.indexOf(this.hiddenTags,m);0>B?this.hiddenTags.push(m):0<=B&&this.hiddenTags.splice(B,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};G...
Base
1
var d=Menus.prototype.createMenubar;Menus.prototype.createMenubar=function(p){var q=d.apply(this,arguments);if(("1"!=urlParams.embed||"1"==urlParams.atlas)&&null!=q&&Editor.enableSimpleTheme&&"atlassian"!=c.getServiceName()){var C=this.get("appearance");if(null!=C){var J=q.addMenu("",C.funct);J.setAttribute("title",mxR...
Base
1
"simple"==Editor.currentTheme&&this.addMenuItems(O,["zoomIn","zoomOut","-"],null,T);L.apply(this,arguments);g.isSelectionEmpty()||null==d.addSelectionToScratchpad||this.addMenuItems(O,["-","addToScratchpad"],null,T);g.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(O,["-","exitGroup","home"],null,T...
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
N.cell.id,N.text),O=!1);O||G++;P++});console.log("states checked",P,"invalid",G)}));c.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var p=null!=c.pages&&null!=c.getCurrentFile()?c.getCurrentFile().getAnonymizedXmlForPages(c.pages):"";p=new TextareaDialog(c,"Paste Data:",p,function(q){if(0<q.length)try{...
Base
1
na.join(" ")}null!=ja?(R=ja,R.className+=" "+aa,U=la,ia.className="geTempDlgCreateBtn"):(U=R=null,ia.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function H(ja,aa){if(null!=U){var la=function(ua){ka.isExternal?E(ka,function(wa){na(wa,ua)},pa):ka.url?mxUtils.get(TEMPLATE_PATH+"/"+ka.url,mxUtils.bind(this,functio...
Base
1
B,K,R){for(var U=0;U<R;U++)m=Editor.crcTable[(m^B.charCodeAt(K+U))&255]^m>>>8;return m};Editor.crc32=function(m){for(var B=-1,K=0;K<m.length;K++)B=B>>>8^Editor.crcTable[(B^m.charCodeAt(K))&255];return(B^-1)>>>0};Editor.writeGraphModelToPng=function(m,B,K,R,U){function W(Z,ca){var da=X;X+=ca;return Z.substring(da,X)}fun...
Base
1
k.model.isVertex(p)&&k.isAutoSizeCell(p)&&k.updateCellSize(p)}finally{k.getModel().endUpdate()}k.scrollCellToVisible(p);k.setSelectionCell(p);k.container.focus();k.editAfterInsert&&k.startEditing(p);window.setTimeout(function(){null!=c.hoverIcons&&c.hoverIcons.update(k.view.getState(p))},0);return p},H=function(p,q,C,J...
Base
1
f,c,k,l,x,y,E,D){if(x.length>=this.maxFileSize)D({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(x.length)+" / 10 MB)"});else{var z="POST";c={path:encodeURIComponent(k),branch:decodeURIComponent(c),commit_message:l,content:x,encoding:"base64"};null!=y&&(c.last_commit_id=y,z="PUT");e=this.baseUrl...
Base
1
delete y[M];return x};EditorUi.prototype.patchViewState=function(b,e){if(null!=b.viewState&&null!=e){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var f in e)try{this.patchViewStateProperty(b,e,f)}catch(c){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototyp...
Base
1
P);var X=mxUtils.bind(this,function(Y,Z,ca){V.innerText="";mxUtils.write(V,Math.round(100*v.editor.graph.view.scale*(null!=ca?ca:1))+"%")});v.editor.graph.view.addListener(mxEvent.EVENT_SCALE,X);v.editor.addListener("resetGraphView",X);v.editor.addListener("pageSelected",X);v.editor.graph.addListener("zoomPreview",mxUt...
Base
1
mxResources.get("ok"),la,ja,function(ua){var wa=null!=ua&&0<ua.length;return wa&&g?(la(ua),!1):wa},null,null,null,ha,d?null:[]),b.showDialog(ja.container,350,80,!0,!0),ja.init())}}function L(ja){ia.innerText=mxResources.get(da||ja?"create":"copy");ja=ja?"none":"";M&&(ya.style.display=ja);for(var aa=N.querySelectorAll("...
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
function(H){A.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(H)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(t)}),Editor.cameraImage,mxResources.get("export"))}};Edito...
Base
1
var G=0,P=0,O=I.geometry,N=mxUtils.format((J.geometry.x+3-O.x)/O.width);J=mxUtils.format((J.geometry.y+3-O.y)/O.height);0>N?(G=N*O.width,N=0):1<N&&(G=(N-1)*O.width,N=1);0>J?(P=J*O.height,J=0):1<J&&(P=(J-1)*O.height,J=1);return{x:N,y:J,dx:parseInt(G),dy:parseInt(P)}}function D(J){if(1==M.getSelectionCount()){var G=M.get...
Base
1
function(l){try{this.ui.spinner.stop(),f(l.getHash().substring(1),l)}catch(x){c(x)}}),c,!0)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()}))};DropboxClient.prototype.pickFile=function(e,f){null!=Dropbox.choose?(e=null!=e?e:mxUtils.bind(this,function(c,k){this.ui.loadFile(null!=c?"D"+encodeURIComponent(c):k...
Base
1
k.model.isVertex(p)&&k.isAutoSizeCell(p)&&k.updateCellSize(p)}finally{k.getModel().endUpdate()}k.scrollCellToVisible(p);k.setSelectionCell(p);k.container.focus();k.editAfterInsert&&k.startEditing(p);window.setTimeout(function(){null!=c.hoverIcons&&c.hoverIcons.update(k.view.getState(p))},0);return p},H=function(p,q,C,J...
Base
1
try{this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,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{y.container.style.visibility="";y.model.endUpdate();y.cellRenderer.redraw...
Base
1
mxUtils.bind(this,function(Oa){R=b.sidebar.currentElt==ra}),null,null),mxEvent.addListener(ha,"click",mxUtils.bind(this,function(Oa){R||Na(Oa,null!=na?na:pa);mxEvent.consume(Oa)})));fa.appendChild(ra);return ra}function p(){function aa(ra,Ha){ra=mxResources.get(ra,null,ra.substring(0,1).toUpperCase()+ra.substring(1));1...
Base
1
B,K,R){for(var U=0;U<R;U++)m=Editor.crcTable[(m^B.charCodeAt(K+U))&255]^m>>>8;return m};Editor.crc32=function(m){for(var B=-1,K=0;K<m.length;K++)B=B>>>8^Editor.crcTable[(B^m.charCodeAt(K))&255];return(B^-1)>>>0};Editor.writeGraphModelToPng=function(m,B,K,R,U){function W(Z,ca){var da=X;X+=ca;return Z.substring(da,X)}fun...
Base
1
return S}),F=!0);return F};var A=u.stop;u.stop=function(){A.call(this);this.active=!1;null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status);u.status=null};u.pause=function(){return function(){}};return u};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=th...
Base
1
DriveComment.prototype.deleteComment=function(b,e){this.file.ui.drive.executeRequest(this.pCommentId?{url:"/files/"+this.file.getId()+"/comments/"+this.pCommentId+"/replies/"+this.id,method:"DELETE"}:{url:"/files/"+this.file.getId()+"/comments/"+this.id,method:"DELETE"},b,e)};function mxODPicker(b,e,f,c,k,l,x,y,E,D,z,M...
Base
1
d=G;this.confirmImageResize(function(T){J=T;N()},L)}else N()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(d,g){g=null!=g?g:!1;var n=null!=...
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
null;A=mxUtils.button("",mxUtils.bind(this,function(H){this.pickColor(v||"none",function(L){v=L;n()});mxEvent.consume(H)}));n();A.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";A.style.marginLeft="4px";A.style.height="22px";A.style.width="22px";A.style.position="relative";A.style.top=mxClient.IS_IE||mxClient.IS_I...
Base
1
d.pages.length:1:p.apply(this,arguments)};var q=null;this.addListener("fileDescriptorChanged",function(){var O=this.getCurrentFile();null!=O&&q!=O.getTitle()&&(q=null!=O.getTitle()?O.getTitle():this.defaultFilename,g.invalidateDescendantsWithPlaceholders(g.model.getRoot()),g.view.validate())});var C=g.labelLinkClicked;...
Base
1
S.preventDefault()}function D(S){S.stopPropagation();S.preventDefault();H=!1;u=x(S);if(null!=t)null!=u&&u<d.children.length?(z.splice(u>t?u-1:u,0,z.splice(t,1)[0]),d.insertBefore(d.children[t],d.children[u])):(z.push(z.splice(t,1)[0]),d.appendChild(d.children[t]));else if(0<S.dataTransfer.files.length)b.importFiles(S.d...
Base
1
EditorUi.initMinimalTheme=function(){function b(I,d){if(EditorUi.windowed){var g=I.editor.graph;g.popupMenuHandler.hideMenu();null==I.formatWindow?(d=Math.max(10,I.diagramContainer.clientWidth-248),g=Math.min(566,g.container.clientHeight-10),I.formatWindow=new WrapperWindow(I,mxResources.get("format"),d,60,240,g,functi...
Base
1
2)G=q(O),P.push([G.x,G.y]),y.push(G);c.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(P,u))}else{l+=" L"+G.x+" "+G.y;P="";y=[];for(O=2;O<d.length;O+=2)G=q(O),P+=" L"+G.x+" "+G.y,y.push(G);c.setAttribute("d",l+P)}M&&(G=b.view.translate,b.scrollRectToVisible((new mxRectangle(C.x-G.x,C.y-G.y)).grow(20)));J.consume(...
Base
1
za,this.stylesheet=ea,this.refresh());return Ca};var L=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(m){L.apply(this,arguments);null!=m.secondLabel&&(m.secondLabel.destroy(),m.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(m){return[m.shape,m.text,m.secondLabel,m.con...
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
Q};var U=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(W,Q,V,X,Y,Z){null!=W.handJiggle&&W.handJiggle.constructor==m?(W.handJiggle.passThrough=!0,U.apply(this,arguments),W.handJiggle.passThrough=!1):U.apply(this,arguments)}})();Editor.fastCompress=function(m){return null==m||0==m.length|...
Base
1
g[n].parentNode&&"root"!=g[n].parentNode.nodeName&&null!=g[n].parentNode.parentNode&&(g[n].setAttribute("id",g[n].parentNode.getAttribute("id")),g[n].parentNode.parentNode.replaceChild(g[n],g[n].parentNode));return d};EditorUi.prototype.synchronizeCurrentFile=function(d){var g=this.getCurrentFile();null!=g&&(g.savingFi...
Base
1
TrelloClient.prototype.getFile=function(b,e,f,c,k){k=null!=k?k:!1;var l=mxUtils.bind(this,function(){var x=b.split(this.SEPARATOR),y=!0,E=window.setTimeout(mxUtils.bind(this,function(){y=!1;f({code:App.ERROR_TIMEOUT,retry:l})}),this.ui.timeout);Trello.cards.get(x[0]+"/attachments/"+x[1],mxUtils.bind(this,function(D){wi...
Base
1
G):p.y+p.height>G+C&&(p.height=G+C-p.y,p.y=Math.min(p.y,G+C));var P=(p.x-J)/q*100;q=100-(p.x+p.width-J)/q*100;J=(p.y-G)/C*100;p=100-(p.y+p.height-G)/C*100;return"inset("+mxUtils.format(J)+"% "+mxUtils.format(q)+"% "+mxUtils.format(p)+"% "+mxUtils.format(P)+"%"+(F?" round "+I+"%":S?" round 50%":"")+")"}function l(F){nul...
Base
1
EditorUi.prototype.isResampleImageSize=function(d,g){g=null!=g?g:this.resampleThreshold;return d>g};EditorUi.prototype.resizeImage=function(d,g,n,t,u,v,A){u=null!=u?u:this.maxImageSize;var H=Math.max(1,d.width),L=Math.max(1,d.height);if(t&&this.isResampleImageSize(null!=A?A:g.length,v))try{var F=Math.max(H/u,L/u);if(1<...
Base
1
return S}),F=!0);return F};var A=u.stop;u.stop=function(){A.call(this);this.active=!1;null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status);u.status=null};u.pause=function(){return function(){}};return u};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=th...
Base
1
(L?null!=O.resp&&0<O.resp.length&&null!=O.resp[0]?(S=O.resp[0],L=!1,J()):q():null!=O.resp&&0<O.resp.length&&null!=O.resp[0]?G(O.resp[0]):C())}}catch(N){console.log(N)}});window.addEventListener("message",A)}})));d(v);v.onversionchange=function(){v.close()}}catch(A){null!=g?g(A):null!=window.console&&console.warn(A)}});...
Base
1
g&&g(q)}}),null,null,null,mxUtils.bind(this,function(S){null!=g&&g(S)}),null,null,t,null,v.shadowVisible,null,v,u,null,null,null,"diagram",null)}catch(S){null!=g&&g(S)}};EditorUi.prototype.getEmbeddedSvg=function(d,g,n,t,u,v,A,H,L,F,S,p,q){H=null!=H?H:!0;S=null!=S?S:0;A=null!=L?L:g.background;A==mxConstants.NONE&&(A=nu...
Base
1
document.body.clientHeight,(1200>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>d)&&this.formatWindow.window.toggleMinimized()):this.formatWindow.window.setVisible(!1)}};var y=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(d){var g=this.form...
Base
1
J.evt.button};var d=M.isCellSelectable;M.isCellSelectable=function(J){return J==I?!1:d.apply(this,arguments)};M.getLinkForCell=function(){return null};var g=M.view.getState(I);z=M.getAllConnectionConstraints(g);for(var n=0;null!=z&&n<z.length;n++){var t=M.getConnectionPoint(g,z[n]);l(t.x-3,t.y-3,z[n])}M.fit(8);M.center...
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
null}l(M)}));f=!0}}catch(p){f=!1,null!=x&&x!=this.editor.graph&&null!=x.container.parentNode&&x.container.parentNode.removeChild(x.container)}f||window.clearTimeout(k);return f};App.prototype.createBackground=function(){var b=this.createDiv("background");b.style.position="absolute";b.style.background="white";b.style.le...
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
!this.isCorsEnabledForUrl(m)){var B=/(\.v(dx|sdx?))($|\?)/i.test(m)||/(\.vs(x|sx?))($|\?)/i.test(m);B=/\.png$/i.test(m)||/\.pdf$/i.test(m)||B;var K="t="+(new Date).getTime();m=PROXY_URL+"?url="+encodeURIComponent(m)+"&"+K+(B?"&base64=1":"")}return m};Editor.prototype.isCorsEnabledForUrl=function(m){if(mxClient.IS_CHROM...
Base
1
function(d){var g=e.apply(this,arguments);if(null==g)try{var n=d.indexOf("&lt;mxfile ");if(0<=n){var t=d.lastIndexOf("&lt;/mxfile&gt;");t>n&&(g=d.substring(n,t+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else{var u=mxUtils.parseXml(d),v=this.editor.extractGraphModel(u.docum...
Base
1
!0,!0,null,null,null,null,!0);C.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?C.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(d,g,n,t,u){var v=document.createElement("div");v.style.whiteSpace="nowrap";var A=this.editor.graph;if(null!=g){var H=doc...
Base
1
Graph.prototype.setHiddenTags=function(m){this.hiddenTags=m;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(m){var B=mxUtils.indexOf(this.hiddenTags,m);0>B?this.hiddenTags.push(m):0<=B&&this.hiddenTags.splice(B,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};G...
Base
1
a.view.getBackgroundPane(),ia=a.view.getDrawPane();a.cumulativeZoomFactor=1;var qa=null,K=null,U=null,L=null,O=null,X=function(W){null!=qa&&window.clearTimeout(qa);0<=W&&window.setTimeout(function(){if(!a.isMouseDown||L)qa=window.setTimeout(mxUtils.bind(this,function(){a.isFastZoomEnabled()&&(null!=a.view.backgroundPag...
Base
1
var V=this.click;this.click=function(K){var U=null==K.state&&null!=K.sourceState&&this.isCellLocked(this.getLayerForCell(K.sourceState.cell));if(this.isEnabled()&&!U||K.isConsumed())return V.apply(this,arguments);U=U?K.sourceState.cell:K.getCell();null!=U&&(U=this.getClickableLinkForCell(U),null!=U&&(this.isCustomLink(...
Base
1
p();this.refreshComments=p;H=mxUtils.bind(this,function(){function q(O){var N=J[O.id];if(null!=N)for(E(O,N),N=0;null!=O.replies&&N<O.replies.length;N++)q(O.replies[N])}if(this.window.isVisible()){for(var C=v.querySelectorAll(".geCommentDate"),J={},G=0;G<C.length;G++){var P=C[G];J[P.getAttribute("data-commentId")]=P}for...
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
na[Xa],0<ja.length&&(pa=document.createElement("div"),pa.className="geTempDlgImportCat",pa.innerText=mxResources.get(Xa,null,Xa),ea.appendChild(pa),F(ja,aa,la,null,!0))}function S(ja,aa){qa.innerText="";A();var la=Math.floor(qa.offsetWidth/150)-1;aa=!aa&&ja.length>la?la:ja.length;for(var na=0;na<aa;na++){var pa=ja[na];...
Base
1
V)&&(R=0<R.length?R+" "+V:V,W=!0)}W&&this.setAttributeForCell(m[K],"tags",R)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(m,B){if(0<m.length&&0<B.length){this.model.beginUpdate();try{for(var K=0;K<m.length;K++){var R=this.getTagsForCell(m[K]);if(0<R.length){for(var U=R.split(" "),W=!1,...
Base
1
var V=this.click;this.click=function(K){var U=null==K.state&&null!=K.sourceState&&this.isCellLocked(this.getLayerForCell(K.sourceState.cell));if(this.isEnabled()&&!U||K.isConsumed())return V.apply(this,arguments);U=U?K.sourceState.cell:K.getCell();null!=U&&(U=this.getClickableLinkForCell(U),null!=U&&(this.isCustomLink(...
Base
1
document.body.clientHeight)-80,800),null!=ja.title?mxResources.get(ja.title,null,ja.title):null,!0,new mxPoint(Ma,Ia),!0,null,!0);var Na=document.createElement("div");Na.className="geTempDlgDialogMask";N.appendChild(Na);var ra=b.sidebar.hideTooltip;b.sidebar.hideTooltip=function(){Na&&(N.removeChild(Na),Na=null,ra.appl...
Base
1
G.readAsText(J)}else this.doImportVisio(J,g,H,t)}catch(P){H(P)}else try{""==C.responseType||"text"==C.responseType?H({message:C.responseText}):(G=new FileReader,G.onload=function(){try{H({message:JSON.parse(G.result).Message})}catch(P){H(P)}},G.readAsText(C.response))}catch(P){H({})}});C.send(F)}else if(A.clear())try{t...
Base
1
null,A,mxResources.get("cancel"),mxResources.get("discardChanges")):A()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var d={};if(null!=this.pages)for(var g=0;g<this.pages.length;g++)this.updatePageRoot(this.pages[g]),this.addBasenamesForCell(this.pages[g].root,d)...
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
libs:ja.getAttribute("libs"),clibs:ja.getAttribute("clibs"),title:ja.getAttribute("title")}),ja=ja.nextSibling;S(Fa)}});var Va=function(ja,aa,la){Ba.style.display="";Ka.stop();T=!1;if(m)m=!1;else if(aa)ea.innerText=aa;else{la=la||{};aa=0;for(var na in la)aa+=la[na].length;0==ja.length&&0==aa?ea.innerText=mxResources.ge...
Base
1
A){var H=A.lastIndexOf(".");0<H&&(A=A.substring(H+1,A.length));null==g[A]&&(g[A]=!0)}}var t=this.editor.graph,u=t.getCellStyle(d);n(mxStencilRegistry.getBasenameForStencil(u[mxConstants.STYLE_SHAPE]));t.model.isEdge(d)&&(n(mxMarker.getPackageForType(u[mxConstants.STYLE_STARTARROW])),n(mxMarker.getPackageForType(u[mxCon...
Base
1
this.toolbar.edgeShapeMenu&&this.toolbar.edgeShapeMenu.setEnabled(d),null!=this.toolbar.edgeStyleMenu&&this.toolbar.edgeStyleMenu.setEnabled(d));this.updateUserElement()};EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.updateUserElement=function(){};EditorUi.prototype.scheduleSanityCheck=functi...
Base
1
ColorDialog.resetRecentColors=function(){E.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(m,B){var K=null;null!=m.editor.graph.getModel().getParent(B)?K=B.getId():null!=m.currentPage&&...
Base
1
g.getCurrentCellStyle(G).treeMoving);return P}function l(G){var P=!1;null!=G&&(G=n.getParent(G),P=g.view.getState(G),P="tree"==(null!=P?P.style:g.getCellStyle(G)).containerType);return P}function x(G){var P=!1;null!=G&&(G=n.getParent(G),P=g.view.getState(G),g.view.getState(G),P=null!=(null!=P?P.style:g.getCellStyle(G))...
Base
1
!p){var O=function(){K.value=Math.max(1,Math.min(G,Math.max(parseInt(K.value),parseInt(m.value))));m.value=Math.max(1,Math.min(G,Math.min(parseInt(K.value),parseInt(m.value))))},N=c.addRadiobox(q,"pages",mxResources.get("allPages"),!0),T=c.addRadiobox(q,"pages",mxResources.get("pages")+":",!1,null,!0),m=document.create...
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
DriveFile.prototype.saveFile=function(b,e,f,c,k,l){try{this.isEditable()?this.savingFile||(this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.createSecret(mxUtils.bind(this,function(x,y){var E=mxUtils.bind(this,function(D,z){try{var M=this.desc;null!=this.sync&&this.sync.fileSaving();this.u...
Base
1
500)});g("#refreshOD").addEventListener("click",function(){null!=T&&(e(null),H.apply(this,T))});D&&g("#odBackBtn").addEventListener("click",D);z&&g("#odSubmitBtn").addEventListener("click",t);null!=I?(D=I.pop(),"sharepoint"==I[0].driveId&&L(g("#odSharepoint")),N=I,H(D.driveId,D.folderId,D.siteId,D.name)):H()};App=funct...
Base
1
t)}))}else c({message:mxResources.get("accessDenied")});else D="&t="+(new Date).getTime(),d=this.baseUrl+"/projects/"+encodeURIComponent(z+"/"+M)+"/repository/files/"+encodeURIComponent(e)+"?ref="+I,y=new mxXmlRequest(d+D,null,"GET"),this.executeRequest(y,mxUtils.bind(this,function(g){try{f(this.createGitLabFile(z,M,I,...
Base
1
this.addMenuItems(p,["-","close"])})));f.prototype.execute=function(){var p=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 q=p....
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
0;W<Q.length;W++)Q[W].parentNode.removeChild(Q[W]);M(m);m.style.opacity="0.5"}else{Q=N(q).replies;for(W=0;W<Q.length;W++)v.removeChild(Q[W]);for(W=0;W<C.length;W++)if(C[W]==q){C.splice(W,1);break}A.style.display=0==v.getElementsByTagName("div").length?"block":"none"}},function(W){z(m);b.handleError(W,null,null,null,mxU...
Base
1
mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(C,mxConstants.STYLE_STROKECOLOR,"#000"));"default"==C&&(C=b.shapeForegroundColor);return C};this.createStyle=function(C){var J=";fillColor=none;";v&&(J=";lineShape=1;");return mxConstants.STYLE_SHAPE+"="+C+J};this.stopDrawing=function(){if(0<k.length){if(v){for(var C=[],J=...
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
"sketchStyle","rough")?this.createComicCanvas(W):this.createRoughCanvas(W)};var K=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(W,Q,V,X,Y){null!=W.handJiggle&&W.handJiggle.passThrough||K.apply(this,arguments)};var R=mxShape.prototype.paint;mxShape.prototype.paint=function(W){v...
Base
1
(this.graph.isCellSelected(K)?X=!0:K=this.graph.model.getParent(K));X||this.graph.isTableRow(K)&&this.graph.isCellSelected(K)||(K=this.graph.getCompositeParent(K));C.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(K,U){U=this.graph.getCompositeParent(U);return mxConnectionHandler.prototype.cre...
Base
1
6)this.curveTo(da[ma],da[ma+1],da[ma+2],da[ma+3],da[ma+4],da[ma+5]);this.lastX=Z;this.lastY=ca}};m.prototype.rect=function(W,Q,V,X){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(W,Q,V,X,this.getStyle(!0,!0)))};m.prototype.ellipse=function(W,Q,V,...
Base
1
n&&v.setAttribute("resource",n);var C=mxUtils.bind(this,function(J){J=(t?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(J);null!=u&&u(J);return J});g.mathEnabled&&this.editor.addMathCss(v);if(null!=u)this.embedFonts(v,mxUtils.bind(this,function(J){H?this.editor.convertImage...
Base
1
"4px");null!=Z&&ma.setAttribute("title",Z);null!=ca&&(V=function(){ca.isEnabled()?(ma.removeAttribute("disabled"),ma.style.cursor="pointer"):(ma.setAttribute("disabled","disabled"),ma.style.cursor="default")},ca.addListener("stateChanged",V),A.addListener("enabledChanged",V),V());return ma}function g(V,X,Y){Y=document....
Base
1
null!=b.currentPage&&null!=b.pages&&(E=mxUtils.indexOf(b.pages,b.currentPage));for(I=e.length-1;0<=I;I--){var Q=function(V){var X=new Date(V.modifiedDate),Y=null;if(0<=X.getTime()){var Z=function(da){d.stop();x.innerText="";var ma=mxUtils.parseXml(da),ea=b.editor.extractGraphModel(ma.documentElement,!0);if(null!=ea){va...
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
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
N)):(m.noP2PMapDel=!0,m.destroy(),EditorUi.debug("P2PCollab: p2p socket duplicate",N))});m.on("close",function(){m.noP2PMapDel||(EditorUi.debug("P2PCollab: p2p socket closed",N),D(u[N]),delete F[N])});m.on("data",x);return L[N]=m}}function E(N,T){D(T||u[N]);null!=N&&(delete u[N],v[N]=!1)}function D(N){var T=g[N];if(nul...
Base
1
encodeURIComponent(G.name);y="";v()})));z.appendChild(O)})(C[J],J);100==C.length&&(z.appendChild(t),u=function(){z.scrollTop>=z.scrollHeight-z.offsetHeight&&p()},mxEvent.addListener(z,"scroll",u))}}))}),n)});I.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(z,mxResources.get("loading"));var H=mxUtils....
Base
1
this.update)};var z=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?z.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(m){return"simple"==Editor.currentTheme||"sketch"==E...
Base
1
null,null,function(Q){console.log(Q)},600,null,null,null,null,null,J):(x(G,void 0),l(G))}function u(Q){function V(X){R.style.background="transparent";R.innerText="";var Y=document.createElement("div");Y.className="odPreviewStatus";mxUtils.write(Y,X);R.appendChild(Y);q.stop()}if(null!=R)if(R.style.background="transparen...
Base
1