code stringlengths 31 2.05k | label_name stringclasses 5
values | label int64 0 4 |
|---|---|---|
""),Da.value=sa,Da.style.width="96px",Da.style.borderWidth="0px",Ga.appendChild(Da)):(Ga.innerHTML=mxUtils.htmlEntities(decodeURIComponent(sa)),mxEvent.addListener(Ga,"click",mxUtils.bind(Z,function(){function Ua(){var aa=ja.value;aa=0==aa.length&&"string"!=Fa?0:aa;va.allowAuto&&(null!=aa.trim&&"auto"==aa.trim().toLowe... | 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 |
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 |
d=A)}this.spinner.stop();this.openLocalFile(d,g,t,u,null!=u?n:null)}}};EditorUi.prototype.openFiles=function(d,g){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var n=0;n<d.length;n++)mxUtils.bind(this,function(t){var u=new FileReader;u.onload=mxUtils.bind(this,function(v){try{this.openFileHandle(v.... | 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 |
T){k(T)},300),mouseUp:function(N,T){k(T)}};z.addMouseListener(this.mouseListeners);this.shareCursorPositionListener=function(){b.isShareCursorPosition()||c("cursor",{hide:!0})};b.addListener("shareCursorPositionChanged",this.shareCursorPositionListener);this.selectionChangeListener=function(N,T){N=function(K){return nu... | Base | 1 |
null!=aa&&0<aa.length){var Sa=function(Oa){T.setAttribute("disabled","disabled");ra.style.backgroundColor="transparent";ra.style.border="1px solid transparent";N.spin(fa);Ja(aa,function(Ya,Wa){N.stop();null!=Ya&&(F(ra,Ya,la,null,null,Aa,Wa),Oa&&L())})};ha=Ma||TEMPLATE_PATH+"/"+aa.substring(0,aa.length-4)+".png";ra.styl... | Base | 1 |
A.appendChild(C);var J=document.createElement("div");J.style.marginTop="10px";if(l){var G=function(T,m,B,K,R){if(null==R||"1"!=R.html)return K=T.toLowerCase().indexOf(m,K),0>K?T:T.substr(0,K)+B+T.substr(K+m.length);var U=T;m=mxUtils.htmlEntities(m);R=[];var W=-1;for(T=T.replace(/<br>/ig,"\n");-1<(W=T.indexOf("<",W+1));... | Base | 1 |
m);mxEvent.addListener(this.container,"mousemove",m);mxEvent.addListener(this.container,"mouseleave",function(U){B=null});this.isMouseInsertPoint=function(){return null!=B};var K=this.getInsertPoint;this.getInsertPoint=function(){return null!=B?this.getPointForEvent(B):K.apply(this,arguments)};var R=this.layoutManager.... | 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 |
function(){b.spinner.stop();if(null==b.linkPicker){var A=b.drive.createLinkPicker();b.linkPicker=A.setCallback(function(H){LinkDialog.filePicked(H)}).build()}b.linkPicker.setVisible(!0)}))});"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&y(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),func... | Base | 1 |
function(m,B){for(var K=0;K<B.length;K++){var R=B[K],U;for(U in R)this.updateCustomLinkAction(m,R[U],"cells"),this.updateCustomLinkAction(m,R[U],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(m,B,K){if(null!=B&&null!=B[K]){for(var R=[],U=0;U<B[K].length;U++)if("*"==B[K][U])R.push(B[K][U]);else{var W=... | 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 |
if(null!=v.hoverIcons){var C=v.hoverIcons.update;v.hoverIcons.update=function(){A.freehand.isDrawing()||C.apply(this,arguments)}}if(null!=A.freehand){var J=A.freehand.createStyle;A.freehand.createStyle=function(V){return J.apply(this,arguments)+"sketch=0;"}}v.editor.addListener("statusChanged",mxUtils.bind(this,functio... | Base | 1 |
ma=la;ca=na;da=ka;ea=aa;za=pa;Ba=ua;Ca=ha;ea.style.backgroundColor=y;ea.style.border=E}function S(aa,la,na,pa,ha,ka,ua,wa,Ma,Ia,Aa){function Ja(Oa,Ya){null==Ha?(La=Oa,La=/^https?:\/\//.test(La)&&!b.editor.isCorsEnabledForUrl(La)?PROXY_URL+"?url="+encodeURIComponent(La):TEMPLATE_PATH+"/"+La,mxUtils.get(La,mxUtils.bind(t... | Base | 1 |
c="data:image/jpeg;base64,"+c:/\.gif$/i.test(f)?c="data:image/gif;base64,"+c:/\.pdf$/i.test(f)?c="data:application/pdf;base64,"+c:/\.png$/i.test(f)?(e=this.ui.extractGraphModelFromPng(c),c=null!=e&&0<e.length?e:"data:image/png;base64,"+c):c=Base64.decode(c));return c};GitLabClient.prototype.createGitLabFile=function(e,... | Base | 1 |
function(e,f){try{var c=JSON.parse(e.getText());null!=c&&null!=c.message&&(f=c.message)}catch(k){}return f};GitHubClient.prototype.showAuthorizeDialog=function(e,f){this.ui.showError(mxResources.get("accessDenied"),mxResources.get("authorizationRequired"),mxResources.get("help"),mxUtils.bind(this,function(){this.ui.ope... | 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 |
Editor.extractGraphModelFromXref(W));null!=K&&(K=decodeURIComponent(K.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return K};Editor.extractGraphModelFromXref=function(m){var B=m.trailer,K=null;null!=B&&(B=/.* \/Info (\d+) (\d+) R/g.exec(B.join("\n")),null!=B&&0<B.length&&(B=m[B[1]],null!=B&&(B=/.* \/Subject (\d+) (\d+) ... | Base | 1 |
var GoogleSitesDialog=function(b,e){function f(){var S=null!=F&&null!=F.getTitle()?F.getTitle():this.defaultFilename;if(H.checked&&""!=I.value){var p="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(I.value));null!=S&&(p+="&title="+encodeURIComponent(S));0<L.length&&(p+="&s="+L);... | Base | 1 |
v=mxEvent.getClientX(F);t.popupMenuHandler.hideMenu();mxEvent.consume(F)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(F){var S=!1;null!=v&&(this.diagramContainer.style.width=Math.max(20,H+mxEvent.getClientX(F)-v)+"px",S=!0);null!=A&&(this.diagramContainer.style.height=Math.max(20,L+mxEve... | Base | 1 |
}finally{g.getModel().endUpdate()}v&&(g.setSelectionCell(n),g.scrollCellToVisible(n))}};f=mxUtils.button(mxResources.get("preview"),function(){d(z,M,!1)});f.className="geBtn";E.appendChild(f);f=mxUtils.button(mxResources.get("apply"),function(){d(b.editor.graph,e,!0)});f.className="geBtn gePrimaryBtn";E.appendChild(f);... | Base | 1 |
this.getWindows(),g=0;g<d.length;g++)null!=d[g]&&d[g].window.setVisible(!1)};EditorUi.prototype.destroyWindows=function(){null!=this.sidebarWindow&&(this.sidebarWindow.destroy(),this.sidebarWindow=null);null!=this.formatWindow&&(this.formatWindow.destroy(),this.formatWindow=null);null!=this.freehandWindow&&(this.freeha... | Base | 1 |
F=new mxAsyncCanvas(this.thumbImageCache);L.images=this.thumbImageCache.images;var S=new mxImageExport;S.drawShape=function(p,q){p.shape instanceof mxShape&&p.shape.checkBounds()&&(q.save(),q.translate(.5,.5),p.shape.paint(q),q.translate(-.5,-.5),q.restore())};S.drawText=function(p,q){};S.drawState(x.getView().getState... | Base | 1 |
for(var g=[],n=2;n<d.length;n++){var t=mxUtils.trim(d[n]);"["!=t&&"]"!=t&&"%%"!=t.substring(0,2)&&"##"!=t.substring(0,2)&&(t=d[n].replace(/[-|>]/g," "),""!=mxUtils.trim(t)&&" "==t.charAt(0)&&g.push(t))}return"mindmap\nroot(("+mxUtils.trim(d[1])+"))\n"+g.join("\n")};EditorUi.prototype.extractMermaidDeclaration=function(... | 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.showDialog(S.container,450,240,!0);S.init()}else k.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),mxUtils.bind(this,function(){b.drive.showPermissions(k.getId())}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({... | Base | 1 |
function(X){f.saveLevel=7;try{if(null!=X&&X.etag==T)if(M<this.staleEtagMaxRetries){M++;var Y=Math.round(2*M*this.coolOff*(1+.1*(Math.random()-.5)));window.setTimeout(B,Y);"1"==urlParams.test&&EditorUi.debug("DriveClient: Stale Etag Detected","retry",M,"delay",Y)}else{B(!0);try{EditorUi.logEvent({category:"STALE-ETAG-SA... | 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 |
"FONT"==m[B].nodeName?m[B].getAttribute("face"):m[B].style.fontFamily;null!=R&&Graph.addFont(R,K)}}};Graph.processFontStyle=function(m){if(null!=m){var B=mxUtils.getValue(m,"fontSource",null);if(null!=B){var K=mxUtils.getValue(m,mxConstants.STYLE_FONTFAMILY,null);null!=K&&Graph.addFont(K,decodeURIComponent(B))}}return ... | Base | 1 |
this.fileLoaded(new LocalFile(this,Q,da,!0)),null):this.importFile(Q,V,X,Y,Z,ca,da,ma,ea,C,p,q)}catch(za){return this.handleError(za),null}});v=null!=v?v:mxUtils.bind(this,function(Q){T.setSelectionCells(Q)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var B=d.length,K=B,R=[],U=mxUtils.bind(this,... | Base | 1 |
f,c,k,l){this.insertFile(e,f,c,k,!0,l,!1)};GitHubClient.prototype.insertFile=function(e,f,c,k,l,x,y){l=null!=l?l:!1;x=x.split("/");var E=x[0],D=x[1],z=x[2],M=x.slice(3,x.length).join("/");0<M.length&&(M+="/");M+=e;this.checkExists(E+"/"+D+"/"+z+"/"+M,!0,mxUtils.bind(this,function(I,d){I?l?(y||(f=Base64.encode(f)),this.... | Base | 1 |
this.ui.getEmbeddedPng(mxUtils.bind(this,function(d){z(e.meta.last_commit_id,d)}),c,this.ui.getCurrentFile()!=e?e.getData():null,I.scale,I.border)}else z(e.meta.last_commit_id,Base64.encode(e.getData()))});k?this.getFile(x+"/"+y+"/"+E+"/"+D,mxUtils.bind(this,function(I){e.meta.last_commit_id=I.meta.last_commit_id;M()})... | Base | 1 |
X+O.x)*W,((J.y+ha)*L+O.y)*W,X*W,L*W));K=U.concat(K)}return K};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(K,U){return null==K.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(K){this.previewColor="#000000"==this.grap... | 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 |
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 |
!O)if("sharepoint"==P)H("site",null,G.id,G.displayName);else if("site"==P)H("subsite",null,G.id,G.name);else{var Q=G.folder;G=G.remoteItem?G.remoteItem:G;var V=(G.parentReference?G.parentReference.driveId:null)||P,X=G.id;Q?H(V,X,null,G.name):t()}}function H(Q,V,X,Y,Z){function ca(ya){q.stop();var xa=document.createElem... | Base | 1 |
mxUtils.bind(this,function(){function p(O){return null==O||null==O.boundingBox||!isNaN(O.boundingBox.x)&&!isNaN(O.boundingBox.y)&&!isNaN(O.boundingBox.width)&&!isNaN(O.boundingBox.height)}var q=k.getGraphBounds(),C=k.view.translate,J=k.view.scale;k.insertVertex(k.getDefaultParent(),null,"",q.x/J-C.x,q.y/J-C.y,q.width/J... | Base | 1 |
Editor.extractGraphModelFromXref(W));null!=K&&(K=decodeURIComponent(K.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return K};Editor.extractGraphModelFromXref=function(m){var B=m.trailer,K=null;null!=B&&(B=/.* \/Info (\d+) (\d+) R/g.exec(B.join("\n")),null!=B&&0<B.length&&(B=m[B[1]],null!=B&&(B=/.* \/Subject (\d+) (\d+) ... | 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 |
mxUtils.indexOf(this.hiddenTags,m[B]))return!1;return!0};Graph.prototype.getCellsForTags=function(m,B,K,R){var U=[];if(null!=m){B=null!=B?B:this.model.getDescendants(this.model.getRoot());for(var W=0,Q={},V=0;V<m.length;V++)0<m[V].length&&(Q[m[V]]=!0,W++);for(V=0;V<B.length;V++)if(K&&this.model.getParent(B[V])==this.mo... | Base | 1 |
f.setCellStyles(mxConstants.STYLE_ROTATION,Number(u.value),[e[A]])}}finally{f.getModel().endUpdate()}});v.className="geBtn gePrimaryBtn";mxEvent.addListener(k,"keypress",function(A){13==A.keyCode&&v.click()});l=document.createElement("div");l.style.marginTop="20px";l.style.textAlign="right";b.editor.cancelFirst?(l.appe... | Base | 1 |
this.editor.graph.isEnabled()};var z=EditorUi.prototype.createSidebar;EditorUi.prototype.createSidebar=function(d){var g=z.apply(this,arguments);this.addListener("darkModeChanged",mxUtils.bind(this,function(){g.refresh()}));this.addListener("sketchModeChanged",mxUtils.bind(this,function(){g.refresh()}));return g};var M... | Base | 1 |
"/sites?search=";N=[{name:mxResources.get("sharepointSites",null,"Sharepoint Sites"),driveId:Q}];ea=1;break;case "site":N.push({name:Y,driveId:Q,folderId:V,siteId:X});qa="/sites/"+X+"/drives";ea=2;break;case "subsite":N.push({name:Y,driveId:Q,folderId:V,siteId:X});qa="/drives/"+X+(V?"/items/"+V:"/root")+"/children";bre... | Base | 1 |
!c.isOffline()&&!c.printPdfExport){var p=null==c.pages||1>=c.pages.length,q=document.createElement("div");q.style.whiteSpace="nowrap";var C=document.createElement("h3");mxUtils.write(C,mxResources.get("formatPdf"));C.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";q.appendChild(C);var J=fu... | Base | 1 |
I.formatElt.style.width)}function e(I,d){function g(u,v){var A=I.menus.get(u);u=n.addMenu(v,mxUtils.bind(this,function(){A.funct.apply(this,arguments)}));u.style.cssText="position:absolute;border-width:1px;cusor:pointer;border-style:none;height:24px;bottom:0px;text-align:center;padding:8px 6px 0 6px;border-top-style:so... | 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 |
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 |
this.defaultFonts[G];"string"===typeof P?C(P):null!=P.fontFamily&&null!=P.fontUrl&&(J[encodeURIComponent(P.fontFamily)+"@"+encodeURIComponent(P.fontUrl)]=!0,C(P.fontFamily,P.fontUrl))}p.addSeparator(q);if("1"!=urlParams["ext-fonts"]){P=function(K){var R=encodeURIComponent(K.name)+(null==K.url?"":"@"+encodeURIComponent(... | 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 |
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 |
ya.className="odEmptyFolder",ya.innerHTML=mxUtils.htmlEntities(mxResources.get("folderEmpty",null,"Folder is empty!")),Ba.appendChild(ya)):Ba.appendChild(xa);v();O=!1}function da(ya){f(ya?ya:qa,function(xa){if(ma){var ta=xa.value||[];if(d||ea)Array.prototype.push.apply(ia,ta);else for(var Ka=0;Ka<ta.length;Ka++){var oa... | Base | 1 |
!c.isOfflineApp()&&isLocalStorage&&this.addMenuItem(p,"plugins",q),this.addMenuItems(p,["-","editDiagram"],q),this.addSubmenu("diagramLanguage",p,q),p.addSeparator(q),"1"!=urlParams.embed&&(isLocalStorage||mxClient.IS_CHROMEAPP)&&this.addMenuItems(p,["showStartScreen"],q),this.addMenuItems(p,["configuration"],q),p.addS... | Base | 1 |
function(B,K){if(null==K){var R=mxEvent.getSource(B);"a"==R.nodeName.toLowerCase()&&(K=R.getAttribute("href"))}null!=K&&g.isCustomLink(K)&&(mxEvent.isTouchEvent(B)||!mxEvent.isPopupTrigger(B))&&g.customLinkClicked(K)&&mxEvent.consume(B);null!=m&&m(B,K)};H.call(this,O,N,T)};l.apply(this,arguments);mxClient.IS_SVG&&this.... | 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 |
161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||60==d.charCodeAt(0)&&63==d.charCodeAt(1)&&120==d.charCodeAt(2)&&109==d.charCodeAt(3)&&108==d.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(d){var g=b.apply(this,arguments);if(!... | Base | 1 |
Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(m,B,K){var R=mxClient.IS_FF?8192:16384;return Math.min(K,Math.min(R/m,R/B))};Editor.prototype.exportToCanvas=function(m,B,K,R,U,W,Q,V,X,Y,Z,ca,da,ma,ea,za,Ba,Ca){try{W=null!=W?... | 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 |
for(var U=R.getElementsByTagName("a"),W=!1,Q=0;Q<U.length;Q++)K=U[Q].getAttribute("href"),null!=K&&"data:action/json,"==K.substring(0,17)&&(U[Q].setAttribute("href",this.updateCustomLink(m,K)),W=!0);W&&this.labelChanged(B,R.innerHTML)}};Graph.prototype.updateCustomLink=function(m,B){if("data:action/json,"==B.substring(... | Base | 1 |
e+"?ref="+D;var z={Authorization:"token "+b};x=e.split("/");this.ui.convertFile(l,0<x.length?x[x.length-1]:e,null,this.extension,f,c,null,z)}else c({message:mxResources.get("accessDenied")});else x="&t="+(new Date).getTime(),e=new mxXmlRequest(this.baseUrl+"/repos/"+y+"/"+E+"/contents/"+e+"?ref="+D+x,null,"GET"),this.e... | 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 |
function(m,B){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var K=function(){R=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};m=null!=m?m:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var R=null;Editor.doMathJaxRen... | Base | 1 |
m+'";\nsrc: url("'+B+'");\n}'),m=document.createElement("style"),mxUtils.write(m,K));return m};Graph.addFont=function(m,B,K){if(null!=m&&0<m.length&&null!=B&&0<B.length){var R=m.toLowerCase();if("helvetica"!=R&&"arial"!=m&&"sans-serif"!=R){var U=Graph.customFontElements[R];null!=U&&U.url!=B&&(U.elt.parentNode.removeChi... | 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 |
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 |
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 |
Math.round(25*Math.random()))):/\s/.test(u)?n.push(" "):n.push("?"):n.push(g?"0":Math.round(9*Math.random()))}return n.join("")};EditorUi.prototype.anonymizePatch=function(d){if(null!=d[EditorUi.DIFF_INSERT])for(var g=0;g<d[EditorUi.DIFF_INSERT].length;g++)try{var n=mxUtils.parseXml(d[EditorUi.DIFF_INSERT][g].data).doc... | Base | 1 |
D)}};GitLabClient.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;this.getFile(x+"/"+y+"/"+E+"/"+D,mxUtils.bind(this,function(n){n.getData()==e.getData()?f(n.... | Base | 1 |
0==K%2,ea.flipBkg),B.parentNode.insertBefore(qa,B.nextSibling),B=qa;m.appendChild(ma);Ca();return m};StyleFormatPanel.prototype.addStyles=function(m){if(null!=this.defaultColorSchemes){var B=function(ea){mxEvent.addListener(ea,"mouseenter",function(){ea.style.opacity="1"});mxEvent.addListener(ea,"mouseleave",function()... | Base | 1 |
function(u){try{var v=t.result;1>u.oldVersion&&v.createObjectStore("objects",{keyPath:"key"});2>u.oldVersion&&(v.createObjectStore("files",{keyPath:"title"}),v.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(A){null!=g&&g(A)}};t.onsuccess=mxUtils.bind(this,function(u)... | Base | 1 |
c,k,l){e={org:e,repo:f,ref:c,name:k.name,path:k.path,sha:k.sha,html_url:k.html_url,download_url:k.download_url};f=k.content;"base64"===k.encoding&&(/\.jpe?g$/i.test(k.name)?f="data:image/jpeg;base64,"+f:/\.gif$/i.test(k.name)?f="data:image/gif;base64,"+f:/\.png$/i.test(k.name)?(k=this.ui.extractGraphModelFromPng(f),f=n... | Base | 1 |
parseInt(ca.value))))}function R(Qa){function Fa(Aa,Ja,Na,ra){var Ha=Aa.useCssTransforms,La=Aa.currentTranslate,Xa=Aa.currentScale,Sa=Aa.view.translate,Ta=Aa.view.scale;Aa.useCssTransforms&&(Aa.useCssTransforms=!1,Aa.currentTranslate=new mxPoint(0,0),Aa.currentScale=1,Aa.view.translate=new mxPoint(0,0),Aa.view.scale=1)... | Base | 1 |
K+8,U=(B.y+N.lastCursor.y)*K-12,W=N.cursor.getElementsByTagName("img")[0];T?(mxUtils.setPrefixedStyle(N.cursor.style,"transition","all 900ms ease-out"),mxUtils.setPrefixedStyle(W.style,"transition","all 900ms ease-out"),window.setTimeout(m,0)):(mxUtils.setPrefixedStyle(N.cursor.style,"transition",null),mxUtils.setPrefi... | Base | 1 |
[J],"{1} ago"));C.setAttribute("title",q.toLocaleDateString()+" "+q.toLocaleTimeString())}function D(q){var C=document.createElement("img");C.className="geCommentBusyImg";C.src=IMAGE_PATH+"/spin.gif";q.appendChild(C);q.busyImg=C}function z(q){q.style.border="1px solid red";q.removeChild(q.busyImg)}function M(q){q.style... | Base | 1 |
EditorUi.prototype.getWindows=function(){var d=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(d=d.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(d=d.concat([this.menus.tagsWindow,this.menus.findWindow,this.menus.findReplaceWindow,this.menus.commentsWi... | 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 |
function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}d.actions.get("print").funct=function(){d.showDialog((new PrintDialog(d)).container,360,null!=d.pages&&1<d.pages.length?470:390,!0,!0)};this.defaultFilenam... | 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 |
O.y||0<O.height)&&mxUtils.intersects(K,new mxRectangle(U.x,U.y+(O.y-O.height-1)*W+(0==O.y?U.height:0),U.width,1))&&(X="row-resize")),U=this.view.getState(this.model.getParent(U.cell))}null!=X&&L.setCursor(X)}}}),mouseUp:mxUtils.bind(this,function(K,U){m=h=n=t=null})})}this.cellRenderer.minSvgStrokeWidth=.1;this.cellRen... | 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 |
function(d,g,n,t,u,v,A){if(null!=d){u=null!=u?u:Error(d);u.stack=null!=u.stack?u.stack:"";v=null!=v?v:0>d.indexOf("NetworkError")&&0>d.indexOf("SecurityError")&&0>d.indexOf("NS_ERROR_FAILURE")&&0>d.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&d!=EditorUi.lastErrorMessage&&0... | Base | 1 |
EditorUi.prototype.createUrlParameters=function(d,g,n,t,u,v,A){A=null!=A?A:[];t&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||A.push("lightbox=1"),"auto"!=d&&A.push("target="+d),null!=g&&g!=mxConstants.NONE&&A.push("highlight="+("#"==g.charAt(0)?g.substring(1):g)),null!=u&&0<u.length&&A.pu... | Base | 1 |
}finally{g.getModel().endUpdate()}v&&(g.setSelectionCell(n),g.scrollCellToVisible(n))}};f=mxUtils.button(mxResources.get("preview"),function(){d(z,M,!1)});f.className="geBtn";E.appendChild(f);f=mxUtils.button(mxResources.get("apply"),function(){d(b.editor.graph,e,!0)});f.className="geBtn gePrimaryBtn";E.appendChild(f);... | 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 |
"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 |
Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(m){return m.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(m){return Graph.isGoogleFontUrl(m)};Graph.createFontElement=function(m,B){var K=Graph.fontMapping[B];null==K&&Graph.isCssFontUrl(B)?... | Base | 1 |
m.prototype.lineTo=function(W,Q){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,W,Q),this.lastX=W,this.lastY=Q)};m.prototype.moveTo=function(W,Q){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,W,Q),this.lastX=W,this.lastY=Q,this.first... | Base | 1 |
if(null!=B&&(null!=B&&"<"!=B.charAt(0)&&"%"!=B.charAt(0)&&(B=unescape(window.atob?atob(B):Base64.decode(cont,B))),null!=B&&"%"==B.charAt(0)&&(B=decodeURIComponent(B)),null!=B&&0<B.length)){var K=mxUtils.parseXml(B).documentElement;return"mxfile"==K.nodeName||"mxGraphModel"==K.nodeName}}catch(R){}return!1};Editor.protot... | Base | 1 |
d||mxUtils.isEmptyObject(d)||(g=g+"#"+encodeURIComponent(JSON.stringify(d)))}catch(t){}window.location.hash=g}};EditorUi.prototype.loadDescriptor=function(d,g,n){var t=window.location.hash,u=mxUtils.bind(this,function(A){var H=null!=d.data?d.data:"";null!=A&&0<A.length&&(0<H.length&&(H+="\n"),H+=A);A=new LocalFile(this... | 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 |
0;T<G.length;T++){var m=g.view.getState(g.model.getTerminal(G[T],!1));null!=m&&(!P&&Math.min(m.x+m.width,O.x+O.width)>=Math.max(m.x,O.x)||P&&Math.min(m.y+m.height,O.y+O.height)>=Math.max(m.y,O.y))&&N.push(m)}N.sort(function(B,K){return P?B.x+B.width-K.x-K.width:B.y+B.height-K.y-K.height})}return N}function I(G,P){var O... | 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 |
"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var F=mxUtils.parseXml(L).getElementsByTagName("svg");if(0<F.length&&"error"!=F[0].getAttribute("aria-roledescription")){var S=parseFloat(F[0].getAttribute("width")),p=parseFloat(F[0].getAttribute("height"));if(isNaN(S)||isNaN(p))try{var q=F[0].getA... | Base | 1 |
function(B,K){if(null==K){var R=mxEvent.getSource(B);"a"==R.nodeName.toLowerCase()&&(K=R.getAttribute("href"))}null!=K&&g.isCustomLink(K)&&(mxEvent.isTouchEvent(B)||!mxEvent.isPopupTrigger(B))&&g.customLinkClicked(K)&&mxEvent.consume(B);null!=m&&m(B,K)};H.call(this,O,N,T)};l.apply(this,arguments);mxClient.IS_SVG&&this.... | Base | 1 |
function(da){"true"!=V.getAttribute("contentEditable")&&mxEvent.consume(da)});W=function(da){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var ma=new FilenameDialog(b,X.title||"",mxResources.get("ok"),function(ea){null!=ea&&(X.title=ea,T())},mxResources.get("enterValue"));... | Base | 1 |
EditorUi.prototype.getWindows=function(){var d=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(d=d.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(d=d.concat([this.menus.tagsWindow,this.menus.findWindow,this.menus.findReplaceWindow,this.menus.commentsWi... | Base | 1 |
"/txt/":"png"==g?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(H){r="";for(i=0;i<H.length;i+=3)r=i+2==H.length?r+u(H.charCodeAt(i),H.charCodeAt(i+1),0):i+1==H.length?r+u(H.charCodeAt(i),0,0):r+u(H.charCodeAt(i),H.charCodeAt(i+1),H.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(d))),!0);"txt"!=g&&(... | 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 |
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 |
q.init()}else{var C=function(J){return{id:J.id,isExt:!0,url:J.downloadUrl,title:J.title,imgUrl:J.thumbnailLink,changedBy:J.lastModifyingUserName,lastModifiedOn:J.modifiedDate}};p=new TemplatesDialog(c,function(J,G,P){var O=P.libs,N=P.clibs;c.pickFolder(c.mode,function(T){c.createFile(G,J,null!=O&&0<O.length?O:null,null... | Base | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.