code stringlengths 31 2.05k | label_name stringclasses 5
values | label int64 0 4 |
|---|---|---|
!navigator.onLine||!d&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(d,g,n){var t=null==d||null==g;n=null!=n?n:24;var u=new Spinner({lines:12,length:n,w... | Base | 1 |
else{var ua=function(wa){oa&&b.sidebar.currentElt==aa&&ha(wa,mxEvent.getClientX(na),mxEvent.getClientY(na));oa=!1;la.src="/images/icon-search.svg"};b.sidebar.hideTooltip();b.sidebar.currentElt=aa;oa=!0;la.src="/images/aui-wait.gif";ja.isExt?E(ja,ua,function(){n(mxResources.get("cantLoadPrev"));oa=!1;la.src="/images/ico... | 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 |
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 |
mxUtils.bind(this,function(U){this.spinner.stop();B(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(U))})))}else C=q+".svg",m=this.getFileData(!1,!0,null,mxUtils.bind(this,function(U){this.spinner.stop();B(U)}),t)}}catch(U){this.handleError(U)}};EditorUi.prototype.createDownloadRequest=function(d,g,n,t,u... | Base | 1 |
null,null,null,!0,null,null,u,n,t);this.showDialog(d.container,620,460,!0,!1);d.init()};EditorUi.prototype.showBackgroundImageDialog=function(d,g,n,t){d=null!=d?d:mxUtils.bind(this,function(u,v,A,H){v||(u=new ChangePageSetup(this,t?A:null,u),u.ignoreColor=!t,null!=H&&t&&(u.shadowVisible=H),this.editor.graph.model.execu... | Base | 1 |
function(d,g,n,t,u){this.openDatabase(mxUtils.bind(this,function(v){try{u=u||"objects";Array.isArray(u)||(u=[u],d=[d],g=[g]);var A=v.transaction(u,"readwrite");A.oncomplete=n;A.onerror=t;for(v=0;v<u.length;v++)A.objectStore(u[v]).put(null!=d&&null!=d[v]?{key:d[v],data:g[v]}:g[v])}catch(H){null!=t&&t(H)}}),t)};EditorUi.... | Base | 1 |
mxAsyncCanvas.prototype.text=function(b,e,f,c,k,l,x,y,E,D,z,M){if(null!=k&&0!=k.length&&(b=this.state.scale,"html"==E&&"function"===typeof html2canvas)){this.incWaitCounter();var I=this.canvasIndex++;html2canvas(k,{onrendered:mxUtils.bind(this,function(d){this.htmlCanvas.subCanvas[I]=d;this.decWaitCounter()}),scale:b,l... | Base | 1 |
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,A,null,1<H,L,t,v,u);H=this.isServices(H)?4<H?390:280:160;this.showDialog(d.container,420,H,!0,!0);d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){re... | Base | 1 |
O,y=x=null,A()):this.ui.spinner.spin(z,mxResources.get("loading"))&&(P=encodeURIComponent(P.slice(2,P.length).join("/")),this.getFile(G+"/"+O+"/"+P,mxUtils.bind(this,function(N){this.ui.spinner.stop();k=N.meta.org;l=N.meta.repo;x=decodeURIComponent(N.meta.ref);y="";v()}),mxUtils.bind(this,function(N){this.ui.spinner.st... | 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 |
ha[la]=na),na.push(pa))}ja=ja.nextSibling}p(Ea,Qa,Ga)}})}function C(ja){x&&(Ca.scrollTop=0,ea.innerText="",Ka.spin(ea),m=!1,T=!0,za.innerText=mxResources.get("recentDiag"),Z=null,x(Va,function(){n(mxResources.get("cannotLoad"));Va([])},ja?null:l))}function J(ja){if(""==ja)null!=K&&(K.click(),K=null);else{if(null==Templ... | 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.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var C=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(G){C.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=G?"":"none")};var J=mxVertexHandler.prototype.destroy;mxVertexHandle... | Base | 1 |
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,A,null,1<H,L,t,v,u);H=this.isServices(H)?4<H?390:280:160;this.showDialog(d.container,420,H,!0,!0);d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){re... | 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 |
W[Q];W.stroke!=mxConstants.NONE&&null!=W.stroke||delete this.nextShape.options.stroke;W.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};m.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.get... | Base | 1 |
za.push(ea[Ba]);Q.setSelectionCells(za)}function U(ea){Q.setHiddenTags(ea?[]:V.slice());R();Q.refresh()}function W(ea,za){Y.innerText="";if(0<ea.length){var Ba=document.createElement("table");Ba.setAttribute("cellpadding","2");Ba.style.boxSizing="border-box";Ba.style.tableLayout="fixed";Ba.style.width="100%";var Ca=doc... | 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 |
ha()},ha=function(){U=ka;ia.className="geTempDlgCreateBtn";aa&&(ya.className="geTempDlgOpenBtn")},ka=U;U=null;"boolean"!==typeof aa&&(aa=ka.isExternal&&M);1==ja?D(ka.url,ka):aa?(ya.className="geTempDlgOpenBtn geTempDlgBtnDisabled geTempDlgBtnBusy",la()):(ia.className="geTempDlgCreateBtn geTempDlgBtnDisabled geTempDlgBt... | Base | 1 |
function(){return this.openLink("mailto:"+mxUtils.htmlEntities(L.ownerEmail))}));this.showError(g,A,F,n,S,null,null,v,q,null,null,null,t?n:null)}else null!=n&&n()};EditorUi.prototype.alert=function(d,g,n){d=new ErrorDialog(this,null,d,mxResources.get("ok"),g);this.showDialog(d.container,n||340,100,!0,!1);d.init()};Edit... | Base | 1 |
var CommentsWindow=function(b,e,f,c,k,l){function x(){for(var q=v.getElementsByTagName("div"),C=0,J=0;J<q.length;J++)"none"!=q[J].style.display&&q[J].parentNode==v&&C++;A.style.display=0==C?"block":"none"}function y(q,C,J,G){function P(){C.removeChild(T);C.removeChild(m);N.style.display="block";O.style.display="block"}... | Base | 1 |
!1,!1),c.pdfPageExport||mxEvent.addListener(R,"change",J);J=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&"draw.io"==c.getServiceName();var Q=null,V=null;if(EditorUi.isElectronApp||J)V=c.addCheckbox(q,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram),C+=30;J&&(Q=c.addCheckbox(q,mxResources.get(... | Base | 1 |
mxAsyncCanvas.prototype.text=function(b,e,f,c,k,l,x,y,E,D,z,M){if(null!=k&&0!=k.length&&(b=this.state.scale,"html"==E&&"function"===typeof html2canvas)){this.incWaitCounter();var I=this.canvasIndex++;html2canvas(k,{onrendered:mxUtils.bind(this,function(d){this.htmlCanvas.subCanvas[I]=d;this.decWaitCounter()}),scale:b,l... | Base | 1 |
O);var m=g.getModel().getGeometry(N);null!=m&&null!=m.points&&0<m.points.length&&this.addMenuItems(O,["clearWaypoints"],null,T)}1==g.getSelectionCount()&&this.addMenuItems(O,["enterGroup"],null,T);m=d.getSelectionState();null!=m.mergeCell?this.addMenuItem(O,"mergeCells"):(1<m.style.colspan||1<m.style.rowspan)&&this.add... | 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 |
if(0==S&&0==F)S=G,F=1;else if(Math.abs(S-G)<=(P||1==u&&J?g:0))F+=1;else if(1<F&&J){t=t.slice(0,u+1);break}else if(3<=t.length-u&&!J)F=0,p=S=0!=q?q:0,t.splice(0,0==u?1:u),u=-1;else break;0!=p||P||(S=p=G)}3==t.length&&t[1]==I&&(p=0)}g=function(O,N,T,m){var B=[];if(m){m=C;var K=0}else m=0,K=C;B.push(new mxPoint(O.x-m,O.y-... | 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;u.onerror=n;for(var v=0;v<t.length;v++)u.objectStore(t[v]).delete(d[v])}),n)};EditorUi.prototype.getDatabaseItem=function(d,g,n,t){this.openDatabase(mxUtils.bind(this,function(u){try{t=t||"objects";var v=u.transaction([t],"readonly").objectStore(t).get(d);v.onsuccess=function(){g(v.result)};v.onerror=n}catch(A){null!... | Base | 1 |
typeof window.mxUtilsBinaryToArray){Z=mxUtilsBinaryToArray(Z.request.responseBody).toArray();ca=Array(Z.length);for(var da=0;da<Z.length;da++)ca[da]=String.fromCharCode(Z[da]);ca=ca.join("")}W=null!=W?W:"data:image/png;base64,";ca=W+Editor.base64Encode(ca)}B(ca)}}else null!=K&&(0==Z.getStatus()?K({message:mxResources.g... | Base | 1 |
e.w,e.h,e,e.aspect,e.title);mxEvent.addListener(d,"dragleave",function(S){g.style.cursor="";for(var p=mxEvent.getSource(S);null!=p;){if(p==d||p==g){S.stopPropagation();S.preventDefault();break}p=p.parentNode}});var L=function(S){return function(p,q,C,J,G,P,O,N,T){null!=T&&(/(\.v(dx|sdx?))($|\?)/i.test(T.name)||/(\.vs(x... | 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 |
arguments))};var t=mxSvgCanvas2D.prototype.updateTextNodes;mxSvgCanvas2D.prototype.updateTextNodes=function(m,B,K,R,U,W,Q,V,X,Y,Z){t.apply(this,arguments);Graph.processFontAttributes(Z)};var u=mxText.prototype.redraw;mxText.prototype.redraw=function(){u.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&... | Base | 1 |
parseFloat(B[3])+6,m.setAttribute("viewBox",B[0]+" "+B[1]+" "+w+" "+h))))));return W};Graph.prototype.setShadowVisible=function(m,B){mxClient.IS_SVG&&!mxClient.IS_SF&&(B=null!=B?B:!0,(this.shadowVisible=m)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("... | 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 |
function(d,g,n){var t=0;if(null!=d&&"object"===typeof d&&"number"===typeof d.nodeType&&"string"===typeof d.nodeName&&"function"===typeof d.getAttribute){null!=d.nodeName&&(t^=this.hashValue(d.nodeName,g,n));if(null!=d.attributes){null!=n&&(n.attrCount+=d.attributes.length);for(var u=0;u<d.attributes.length;u++){var v=d... | 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 |
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(q){v=null!=v?v:"pdf"==g?"application/pdf":"image/"+g;if(null!=t)try{this.exportFile(t,F,v,!0,S,q)}catch(C){this.handleError(C)}else this.spinner.spin(document.body,mxResources.get("saving"))&&p.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=p.getStatus()&&299>=p.getStatus())try{this.exportFile(p... | 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 |
Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(m){if(null!=m){Editor.prototype.fontCss=m;var B=document.getElementsByTagName("script")[0];if(null!=B&&null!=B.parentNode){var K=document.createElement("style");K.s... | Base | 1 |
B[K].url)}catch(U){console.log("ExtFonts format error: "+U.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var e=Editor.prototype.getG... | Base | 1 |
d.nodeName&&(A=d.hasAttribute("max-scale")?parseFloat(d.getAttribute("max-scale")):1);d=d.nextSibling}}finally{v.endUpdate()}null!=A&&this.chromelessResize&&this.chromelessResize(!0,A)}return n};EditorUi.prototype.getCopyFilename=function(d,g){var n=null!=d&&null!=d.getTitle()?d.getTitle():this.defaultFilename;d="";var... | Base | 1 |
null!=N.lastCursor.pageId&&N.lastCursor.pageId!=m)N.cursor.style.display="none";else{m=function(){var Q=Math.max(z.container.scrollLeft,Math.min(z.container.scrollLeft+z.container.clientWidth-N.cursor.clientWidth,R)),V=Math.max(z.container.scrollTop-22,Math.min(z.container.scrollTop+z.container.clientHeight-N.cursor.cl... | Base | 1 |
null==T.getTerminal(m[B],!0)){T.setTerminal(m[B],G,!0);var K=g.getCellGeometry(m[B]);K.points=null;null!=K.getTerminalPoint(!0)&&K.setTerminalPoint(null,!0)}}finally{T.endUpdate()}return m}}var L={67:d.actions.get("selectChildren"),88:d.actions.get("selectDescendants"),80:d.actions.get("selectParent"),83:d.actions.get(... | Base | 1 |
"none",d.style.display="none");var t=document.createElement("option"),u=!1,v=!1,A=function(G,P){u||null!=G&&v||(M.checked?null!=P&&P(t.selected?null:d.value):""==I.value||b.isOffline()?(L.value="",F.value="",null!=P&&P("")):(I.value=mxUtils.trim(I.value),b.loadImage(I.value,function(O){L.value=O.width;F.value=O.height;... | 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 |
function(K){for(var U=z.apply(this,arguments),L=new mxDictionary,O=[],X=0;X<U.length;X++){var W=this.graph.isTableCell(K)&&this.graph.isTableCell(U[X])&&this.graph.isCellSelected(U[X])?this.graph.model.getParent(U[X]):this.graph.isTableRow(K)&&this.graph.isTableRow(U[X])&&this.graph.isCellSelected(U[X])?U[X]:this.graph... | Base | 1 |
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 |
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 |
"hidden";ma.style.bottom="0px";ma.style.height="42px";ma.style.right="10px";ma.style.left="10px";Q.isEnabled()&&(ma.appendChild(Z),ma.appendChild(ca),X.appendChild(ma));return{div:X,refresh:da}};Graph.prototype.getCustomFonts=function(){var m=this.extFonts;m=null!=m?m.slice():[];for(var B in Graph.customFontElements){v... | 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 |
function(){return this.openLink("mailto:"+mxUtils.htmlEntities(L.ownerEmail))}));this.showError(g,A,F,n,S,null,null,v,q,null,null,null,t?n:null)}else null!=n&&n()};EditorUi.prototype.alert=function(d,g,n){d=new ErrorDialog(this,null,d,mxResources.get("ok"),g);this.showDialog(d.container,n||340,100,!0,!1);d.init()};Edit... | Base | 1 |
T.map(N):[]})};z.getSelectionModel().addListener(mxEvent.CHANGE,this.selectionChangeListener);this.cursorHandler=mxUtils.bind(this,function(){for(var N in g)l(g[N])});mxEvent.addListener(z.container,"scroll",this.cursorHandler);z.getView().addListener(mxEvent.SCALE,this.cursorHandler);z.getView().addListener(mxEvent.TR... | 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 |
P?(P=g.getOutgoingTreeEdges(G),null!=P&&0<P.length&&g.setSelectionCell(g.model.getTerminal(P[0],!1))):(O=g.getIncomingTreeEdges(G),null!=O&&0<O.length&&(N=M(g.model.getTerminal(O[0],!0),N,G),G=g.view.getState(G),null!=G&&(G=mxUtils.indexOf(N,G),0<=G&&(G+=P==mxConstants.DIRECTION_NORTH||P==mxConstants.DIRECTION_WEST?-1:... | 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 |
this.createImageDataUri(C,J,"png");L(C)}),null,null,null,mxUtils.bind(this,function(C){H({message:mxResources.get("unknownError")})}),null,!0,n?2:1,null,g,null,null,Editor.defaultBorder);else if(g=this.getFileData(!0),F.width*F.height<=MAX_AREA&&g.length<=MAX_REQUEST_SIZE){var p="";n&&(p="&w="+Math.round(2*F.width)+"&h... | Base | 1 |
ha[la]=na),na.push(pa))}ja=ja.nextSibling}p(Ea,Qa,Ga)}})}function C(ja){x&&(Ca.scrollTop=0,ea.innerText="",Ka.spin(ea),m=!1,T=!0,za.innerText=mxResources.get("recentDiag"),Z=null,x(Va,function(){n(mxResources.get("cannotLoad"));Va([])},ja?null:l))}function J(ja){if(""==ja)null!=K&&(K.click(),K=null);else{if(null==Templ... | Base | 1 |
EditorUi.prototype.isFormatPanelVisible=function(){var d=this.formatWindow;return null!=d?d.window.isVisible():E.apply(this,arguments)};var D=EditorUi.prototype.refresh;EditorUi.prototype.refresh=function(d){if(null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode){d=null!=d?d:!0;if("1"!=urlParams.embedIn... | Base | 1 |
function(K,U,L){return this.graph.isCellSelected(K)?!1:da.apply(this,arguments)};var ja=this.updateMouseEvent;this.updateMouseEvent=function(K){K=ja.apply(this,arguments);null!=K.state&&this.isCellLocked(this.getLayerForCell(K.getCell()))&&(K.state=null);return K};var ia=this.isCellSelectable;this.isCellSelectable=func... | Base | 1 |
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 |
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 |
mxEvent.consume(W)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(W){mxEvent.isTouchEvent(W)||F(30)}));var Y=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(W,J){this.startX=J.getGraphX();this.startY=J.getGraphY();this.scrollLeft=... | Base | 1 |
function(d,g,n,t,u){this.openDatabase(mxUtils.bind(this,function(v){try{u=u||"objects";Array.isArray(u)||(u=[u],d=[d],g=[g]);var A=v.transaction(u,"readwrite");A.oncomplete=n;A.onerror=t;for(v=0;v<u.length;v++)A.objectStore(u[v]).put(null!=d&&null!=d[v]?{key:d[v],data:g[v]}:g[v])}catch(H){null!=t&&t(H)}}),t)};EditorUi.... | Base | 1 |
mxUtils.bind(this,function(){this.window.fit()}));this.window.addListener("hide",mxUtils.bind(this,function(){x.freehand.isDrawing()&&x.freehand.stopDrawing()}));b.installResizeHandler(this,!1)},TagsWindow=function(b,e,f,c,k){var l=b.editor.graph,x=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return thi... | 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 |
"ready";A.postMessage(v,"*");if("json"==urlParams.proto){var H=this.editor.graph.openLink;this.editor.graph.openLink=function(L,F,S){H.apply(this,arguments);A.postMessage(JSON.stringify({event:"openLink",href:L,target:F,allowOpener:S}),"*")}}};EditorUi.prototype.createEmbedButton=function(d,g,n,t){var u="simple"==Edito... | Base | 1 |
function(){Trello.get("search",{query:""==mxUtils.trim(c)?"is:open":c,cards_limit:100,cards_page:g-1},mxUtils.bind(this,function(u){this.ui.spinner.stop();u=null!=u?u.cards:null;if(null==u||0==u.length)mxUtils.write(y,mxResources.get("noFiles"));else{1==g&&(y.appendChild(E(mxResources.get("filterCards")+"...",mxUtils.b... | Base | 1 |
this.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.sidebarWindow.window.fit()}));this.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90);this.sidebarWindow.window.setVisible(!1)}};EditorUi.prototype.setSketchMode=function(d){this.spinner.spin(document.body,mxResources.get("wor... | Base | 1 |
{fill:"#ffcc99",stroke:"#36393d"},{fill:"#cce5ff",stroke:"#36393d"},{fill:"#ffff88",stroke:"#36393d"},{fill:"#cdeb8b",stroke:"#36393d"},{fill:"#ffcccc",stroke:"#36393d"}]];StyleFormatPanel.prototype.customColorSchemes=null;StyleFormatPanel.prototype.findCommonProperties=function(m,B,K){if(null!=B){var R=function(W){if(... | 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 |
[J]);return J};var G=new mxRubberband(this);this.getRubberband=function(){return G};var D=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var K=this.currentState;N.apply(this,arguments);K!=this.currentState?(D=(new Date).getTime(),F=0):F=(new Date).getTime()-D};va... | Base | 1 |
[J]);return J};var G=new mxRubberband(this);this.getRubberband=function(){return G};var D=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var K=this.currentState;N.apply(this,arguments);K!=this.currentState?(D=(new Date).getTime(),F=0):F=(new Date).getTime()-D};va... | Base | 1 |
arguments)};var l=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var d=this,g=this.editor.graph;Graph.touchStyle&&(g.panningHandler.isPanningTrigger=function(O){var N=O.getEvent();return null==O.getState()&&!mxEvent.isMouseEvent(N... | Base | 1 |
function(K){for(var U=z.apply(this,arguments),L=new mxDictionary,O=[],X=0;X<U.length;X++){var W=this.graph.isTableCell(K)&&this.graph.isTableCell(U[X])&&this.graph.isCellSelected(U[X])?this.graph.model.getParent(U[X]):this.graph.isTableRow(K)&&this.graph.isTableRow(U[X])&&this.graph.isCellSelected(U[X])?U[X]:this.graph... | Base | 1 |
m.baseUrl||K.crossOriginImages&&K.isCorsEnabledForUrl(R)?"chrome-extension://"==R.substring(0,19)||mxClient.IS_CHROMEAPP||(R=B.apply(this,arguments)):R=PROXY_URL+"?url="+encodeURIComponent(R)}return R};return m};Editor.createSvgDataUri=function(m){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(m)))... | Base | 1 |
function(K,U,L){return this.graph.isCellSelected(K)?!1:da.apply(this,arguments)};var ja=this.updateMouseEvent;this.updateMouseEvent=function(K){K=ja.apply(this,arguments);null!=K.state&&this.isCellLocked(this.getLayerForCell(K.getCell()))&&(K.state=null);return K};var ia=this.isCellSelectable;this.isCellSelectable=func... | Base | 1 |
typeof window.mxUtilsBinaryToArray){Z=mxUtilsBinaryToArray(Z.request.responseBody).toArray();ca=Array(Z.length);for(var da=0;da<Z.length;da++)ca[da]=String.fromCharCode(Z[da]);ca=ca.join("")}W=null!=W?W:"data:image/png;base64,";ca=W+Editor.base64Encode(ca)}B(ca)}}else null!=K&&(0==Z.getStatus()?K({message:mxResources.g... | 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 |
q.value;q.parentNode.removeChild(q);C.parentNode.removeChild(C)}catch(J){b.handleError(J)}v.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";g=b.canReplyToReplies();b.commentsSupported()?b.getCo... | Base | 1 |
n)}}catch(t){}};EditorUi.prototype.updatePageLinksForCell=function(d,g){var n=document.createElement("div"),t=this.editor.graph,u=t.getLinkForCell(g);null!=u&&t.setLinkForCell(g,this.updatePageLink(d,u));if(t.isHtmlLabel(g)){n.innerHTML=Graph.sanitizeHtml(t.getLabel(g));for(var v=n.getElementsByTagName("a"),A=!1,H=0;H<... | Base | 1 |
d.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.charCodeAt(3)&&161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCodeAt(2)&&4==d.charCodeAt(3)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCo... | Base | 1 |
parseFloat(W.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;Q.marginLeft=W.marginLeft||0;Q.marginRight=W.marginRight||0;Q.marginTop=W.marginTop||0;Q.marginBottom=W.marginBottom||0;Q.allowGaps=W.allowGaps||0;Q.horizontal="1"==mxUtils.getValue(W,"horizontalRack","0");Q.resizeParent=!1;Q.fi... | Base | 1 |
mxUtils.bind(this,function(da){this.cachedFonts[X]=da;R--;U()}),mxUtils.bind(this,function(da){R--;U()}),!0,null,"data:"+Z+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(K[m].substring(0,W)),Q)}U()}else B(m)};Editor.prototype.loadFonts=function(m){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(thi... | Base | 1 |
(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="21.2.7";EditorUi.compactUi="atlas"!=Editor.currentTheme;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDark... | Base | 1 |
this.editor.setStatus(""),d?g.reloadFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(n){g.handleFileError(n,!0)})):g.synchronizeFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(n){g.handleFileError(... | Base | 1 |
m?m.getElementsByTagName("parsererror"):null;null!=m&&0<m.length&&(K=B||mxResources.get("invalidChars"),B=m[0].getElementsByTagName("div"),0<B.length&&(K=mxUtils.getTextContent(B[0])));return null!=K?mxUtils.trim(K):K};Editor.addRetryToError=function(m,B){null!=m&&(m=null!=m.error?m.error:m,null==m.retry&&(m.retry=B))}... | Base | 1 |
za.push(ea[Ba]);Q.setSelectionCells(za)}function U(ea){Q.setHiddenTags(ea?[]:V.slice());R();Q.refresh()}function W(ea,za){Y.innerText="";if(0<ea.length){var Ba=document.createElement("table");Ba.setAttribute("cellpadding","2");Ba.style.boxSizing="border-box";Ba.style.tableLayout="fixed";Ba.style.width="100%";var Ca=doc... | Base | 1 |
mxResources.get("mermaid")+"...","mermaid");I.showDialog(n.container,620,420,!0,!1);n.init()}));var d="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),g=function(n,t,u,v){n.addItem(u,null,mxUtils.bind(this,function(){var A=new CreateGraphDialog(I,u,v);I.showDialog(A.con... | 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 |
"#ffffff");this.convertImages(ca.getSvg(null,null,da,ma,null,Q,null,null,null,Y,null,za,Ba,Ca),mxUtils.bind(this,function(fa){try{var qa=new Image;qa.onload=mxUtils.bind(this,function(){try{var ya=function(){mxClient.IS_SF?window.setTimeout(function(){oa.drawImage(qa,0,0);m(xa,fa)},0):(oa.drawImage(qa,0,0),m(xa,fa))},x... | Base | 1 |
0,260,200);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.setVisible(!0);this.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!0)},ConfirmDialog=function(b,e,f,c,k,l,x,y,E,D,z... | 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 |
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 |
(ka?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");N.querySelector("."+aa).src="/images/"+la+"-sel.svg";N.querySelector("."+pa).src="/images/"+ha+".svg";return!0}function v(ja,aa,la,na){function pa(wa,Ma){null==ka?(wa=/^https?:\/\//.test(wa)&&!b.editor.isCorsEnabledForUrl(wa)?PROXY_URL+"?url="+encodeURIComponent(wa... | Base | 1 |
this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var N=document.createElement("canvas"),T=new Image;T.onload... | Base | 1 |
t.isRemoteFileFormat(F,d.name)?t.isOffline()?t.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,n):t.parseFileData(F,mxUtils.bind(this,function(S){4==S.readyState&&(200<=S.status&&299>=S.status?g(S.responseText):n())}),d.name):n()}):L||n()}},function(v){n(v)}):n()});"undefined"!==typeof JSZip||th... | Base | 1 |
X||(ca.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",ca.style.backgroundPosition="right 6px center",ca.style.backgroundRepeat="no-repeat",ca.style.paddingRight="22px");return ca}function d(V,X,Y,Z,ca,da){var ma=document.createElement("a");ma.className="geMenuItem";ma.style.display="inline-block";ma... | Base | 1 |
(H=new mxCodec(mxUtils.createXmlDocument()),H=H.encode(new mxGraphModel(v.root)),this.editor.graph.saveViewState(v.viewState,H,null,t),A=A.cloneNode(!1),mxUtils.setTextContent(A,Graph.compressNode(H))));d(A)}return u};EditorUi.prototype.anonymizeString=function(d,g){for(var n=[],t=0;t<d.length;t++){var u=d.charAt(t);0<... | Base | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.