code stringlengths 31 2.05k | label_name stringclasses 5
values | label int64 0 4 |
|---|---|---|
d[S].apply(this,arguments);null!=p&&F.push(p)}b.sidebar.showEntries(0<F.length?F.join(";"):"",t.checked);b.hideDialog()});E.className="geBtn gePrimaryBtn";f=document.createElement("div");f.style.marginTop="26px";f.style.textAlign="right"}b.editor.cancelFirst?(f.appendChild(l),f.appendChild(E)):(f.appendChild(E),f.appen... | Base | 1 |
arguments);D.style.backgroundColor=""};z.dblClick=function(){};var R=z.getSelectionModel().changeSelection;z.getSelectionModel().changeSelection=function(){R.call(this,[d],[d])}};E.onerror=function(){E.onload=null;E.src=Editor.errorImage};E.setAttribute("src",e);E.style.maxWidth="300px";E.style.maxHeight="300px";y.appe... | Base | 1 |
Y&&Math.abs(this.scrollTop-a.container.scrollTop)<Y&&Math.abs(this.startX-J.getGraphX())<Y&&Math.abs(this.startY-J.getGraphY())<Y&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?D():F(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var V=a.view.validate,aa=new mxPoi... | 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 |
(G.setAttribute("disabled","disabled"),C.setAttribute("disabled","disabled"));C.checked&&p.checked?q.getEditSelect().removeAttribute("disabled"):q.getEditSelect().setAttribute("disabled","disabled")});g=new CustomDialog(this,v,mxUtils.bind(this,function(){d(L.checked,F.checked,S.checked,p.checked,q.getLink(),G.checked)... | 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 |
v=[];u.onsuccess=function(A){null==A.target.result?d(v):(v.push(A.target.result.value),A.target.result.continue())};u.onerror=g}catch(A){null!=g&&g(A)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(t){try{n=n||"objects";var u=t.transaction([n],"readonly").obje... | 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 |
d&&null!=d.shape&&null!=d.shape.stencil)};var I=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);I.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.s... | Base | 1 |
1));try{g=JSON.parse(d)}catch(t){}}}return g};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&""!=this.currentFile.getHash()&&null!=this.currentPage&&0<this.getSelectedPageIndex()){var d=this.getHashObject();d.pageId=this.currentPage.getId();this.setHashObject(d)}else this.setHashObject(null)}... | Base | 1 |
null!=f&&f();b.openLink(e,null,!0)});y.className="geBtn gePrimaryBtn";y.style.width=x.style.width;l.appendChild(y);mxUtils.br(l);mxUtils.br(l);mxUtils.write(l,mxResources.get("allowPopups"));this.container=l},ImageDialog=function(b,e,f,c,k,l,x,y){function E(){0<M.value.length?v.removeAttribute("disabled"):v.setAttribut... | 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 |
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 |
EditorUi.prototype.createMenu=function(d,g,n,t){n=null!=n?n:"geToolbarButton";var u=this.menus.get(d);t=this.menubar.addMenu(mxResources.get(d),u.funct,null,t);t.className=n;t.style.display="inline-block";t.style.cursor="pointer";t.style.height="24px";t.setAttribute("title",mxResources.get(d));this.menus.menuCreated(u,... | Base | 1 |
arguments);null!=N&&null!=N.src&&Graph.isPageLink(N.src)&&(N={originalSrc:N.src});return N};var u=g.setBackgroundImage;g.setBackgroundImage=function(O){null!=O&&null!=O.originalSrc&&(O=d.createImageForPageLink(O.originalSrc,d.currentPage,this));u.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind... | Base | 1 |
null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Y)}function ca(){y(ma,ea,function(za){Z()},!0)}var da=N().pdiv,ma=b.newComment(W,b.getCurrentUser());ma.pCommentId=q.id;null==q.replies&&(q.replies=[]);var ea=I(ma,q.replies,da,G+1);Q?ca():Z()}if(P||!q.isResolved){A.style.display="none";var m=do... | 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 |
"6px"):mxClient.IS_FF&&(A.style.paddingTop="0px",A.style.marginTop="-2px");if(null!=n)for(M=0;M<n.length;M++)mxUtils.br(A),mxUtils.write(A,n[M]);if(null!=g&&null==b[g]){H.style.visibility="hidden";mxUtils.setOpacity(A,10);var L=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:Editor.isDarkMode()?"#c0c0c... | Base | 1 |
(t<<5)-t+this.hashValue(d.childNodes[u],g,n)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);g=0;null!=n&&(n.byteCount+=d.length);for(u=0;u<d.length;u++)g=(g<<5)-g+d.charCodeAt(u)<<0;t^=g}return t};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototy... | Base | 1 |
"geCommentActionLnk";mxUtils.write(Y,W);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){Q(Z,q);Z.preventDefault();mxEvent.consume(Z)});U.appendChild(X);V&&(X.style.display="none")}function N(){function W(X){Q.push(V);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)V=V.nextSibling,W(X.replies[Y])}var Q=... | 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 |
"geCommentActionLnk";mxUtils.write(Y,W);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){Q(Z,q);Z.preventDefault();mxEvent.consume(Z)});U.appendChild(X);V&&(X.style.display="none")}function N(){function W(X){Q.push(V);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)V=V.nextSibling,W(X.replies[Y])}var Q=... | Base | 1 |
urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:d)};var k=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDef... | Base | 1 |
"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")}),mxResources.get("cancel"),f,480,null,!1)};GitHubClient.prototype.executeRequest=function(e,f,c,k,l){var x=mxUtils.bind(this,function(E){var D=!0,z=window.setTimeout(mxUtils.bind(this,function(){D=!1;c({code:App.ERROR_TIMEOUT,retry:... | Base | 1 |
y=document.createElement("div");y.style.height="300px";y.style.width="300px";y.style.display="inline-flex";y.style.justifyContent="center";y.style.alignItems="center";y.style.position="absolute";var E=document.createElement("img");E.onload=function(){function F(){z.model.setStyle(d,g+k())}z=new Graph(D);z.autoExtend=!1... | 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 |
Z+"')";break;default:null==V?N=[{driveId:Q}]:N.push({name:Y,driveId:Q,folderId:V}),qa=(Q?"/drives/"+Q:"/me/drive")+(V?"/items/"+V:"/root")+"/children"}ea||(qa+=(0<qa.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.gra... | Base | 1 |
function(d){var g=e.apply(this,arguments);if(null==g)try{var n=d.indexOf("<mxfile ");if(0<=n){var t=d.lastIndexOf("</mxfile>");t>n&&(g=d.substring(n,t+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var u=mxUtils.parseXml(d),v=this.editor.extractGraphModel(u.docum... | Base | 1 |
function(){null!=v&&(v(),v=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(S,p,q){H=!1;if(null!=S){if("data:image/"==S.substring(0,11)){var C=S.indexOf(",");0<C&&(S=S.substring(0,C)+";base64,"+S.substring(C+1))}y(S,null,0,0,p,q);d.scrollTop=d.scrollHeight}})});e.setAttribute("id","btnAddImageUrl");e.... | 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 |
g.parentNode&&g.parentNode.removeChild(g)}))};var z=!1;EditorUi.prototype.initFormatWindow=function(){if(!z&&null!=this.formatWindow){z=!0;var I=this.formatWindow.window.toggleMinimized,d=240;this.formatWindow.window.toggleMinimized=function(){I.apply(this,arguments);this.minimized?(d=parseInt(this.div.style.width),thi... | Base | 1 |
function(K){if(!this.isEnabled()||this.isCellLocked(K)){if(null!=this.getClickableLinkForCell(K))return"pointer";if(this.isCellLocked(K))return"default"}return ba.apply(this,arguments)};this.selectRegion=function(K,U){var L=mxEvent.isAltDown(U)?K:null;K=this.getCells(K.x,K.y,K.width,K.height,null,null,L,null,!0);if(thi... | Base | 1 |
ea&&1==Va.length){L.view.validate();var wa=new mxHierarchicalLayout(L,"horizontalflow"==ea?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);wa.intraCellSpacing=Q;wa.parallelEdgeSpacing=W;wa.interRankCellSpacing=V;wa.disableEdgeStyle=!1;this.executeLayout(function(){wa.execute(L.getDefaultParent(),Ua);L.moveCells... | Base | 1 |
[];this.traverse(k,!0,mxUtils.bind(this,function(y,E){var D=null!=E&&this.isTreeEdge(E);D&&l.push(E);y==k||null!=E&&!D||l.push(y);return(null==E||D)&&(y==k||!this.model.isCollapsed(y))}));this.model.setCollapsed(k,c);for(var x=0;x<l.length;x++)this.model.setVisible(l[x],!c)}finally{this.model.endUpdate()}};Graph.protot... | 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 |
A);ImageDialog.filePicked=function(G){G.action==google.picker.Action.PICKED&&null!=G.docs[0].thumbnails&&(G=G.docs[0].thumbnails[G.docs[0].thumbnails.length-1],null!=G&&(I.value=G.url,A()));I.focus()};y.appendChild(M);y.appendChild(d);mxUtils.br(y);mxUtils.br(y);D?(M.setAttribute("checked","checked"),M.checked=!0):(z.s... | Base | 1 |
f&&f();this.ui.fileLoaded(I)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}),!1,M,E)}))});null!=x?y(x):this.peer.showCommitDialog(this.meta.name,null==this.getDescriptorEtag(this.meta)||this.meta.isNew,mxUtils.bind(this,function(E){y(E)}),c)}else null!=f&&f()};GitHubLibrary=function(b,e,f){GitHubFile.c... | 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 |
"data:action/json,"+JSON.stringify(t)}}catch(H){}return g};EditorUi.prototype.isRemoteVisioFormat=function(d){return/(\.v(sd|dx))($|\?)/i.test(d)||/(\.vs(s|x))($|\?)/i.test(d)};EditorUi.prototype.importVisio=function(d,g,n,t,u){var v=mxUtils.bind(this,function(A){this.loadingExtensions=!1;null!=n?n(A):this.handleError(... | Base | 1 |
e.prev.getId():"";null!=e.page.getName()&&b[E].getName()!=e.page.getName()&&(M.name=e.page.getName());mxUtils.isEmptyObject(M)||(x[D]=M)}delete l[b[E].getId()];y=b[E]}for(D in l)e=l[D],f.push({data:mxUtils.getXml(e.page.node),previous:null!=e.prev?e.prev.getId():""});mxUtils.isEmptyObject(x)||(k[EditorUi.DIFF_UPDATE]=x... | Base | 1 |
arguments);if(null!=this.div)for(var K=this.div.getElementsByTagName("a"),U=0;U<K.length;U++)null!=K[U].getAttribute("href")&&null==K[U].getAttribute("target")&&K[U].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(K){return K.sourceState};this.getCursorForMouseEvent=function(K){var U=null... | Base | 1 |
GitHubFile.prototype.saveFile=function(b,e,f,c,k,l,x){if(this.isEditable())if(this.savingFile)null!=c&&c({code:App.ERROR_BUSY});else{var y=mxUtils.bind(this,function(E){if(this.getTitle()==b)try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var D=this.getCurrentEtag(),z=this.data;this.peer.... | Base | 1 |
this.ui.showDialog(A.container,300,80,!0,!1);A.init()}))),mxUtils.br(y));for(var v=0;v<u.length;v++)mxUtils.bind(this,function(A){y.appendChild(E(A.name,mxUtils.bind(this,function(){b?(f=A.id,z()):(this.ui.hideDialog(),e(A.id))})))})(u[v]);100==u.length&&(y.appendChild(M),I=function(){y.scrollTop>=y.scrollHeight-y.offs... | 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 |
mxEvent.getClientX(G),mxEvent.getClientY(G),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(G);this.graph.isMouseDown=!0;d.hoverIcons.reset();mxEvent.consume(G)})))};var q=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.r... | Base | 1 |
Ea.style.background=sa&&"none"!=sa?sa:"url('"+Dialog.prototype.noColorImage+"')";btn=mxUtils.button("",mxUtils.bind(Z,function(Da){this.editorUi.pickColor(sa,function(Qa){Ea.style.background="none"==Qa?"url('"+Dialog.prototype.noColorImage+"')":Qa;R(oa,Qa,va)});mxEvent.consume(Da)}));btn.style.height="12px";btn.style.w... | Base | 1 |
u?4E3:3E4);F=!0}return F};EditorUi.prototype.setCurrentFile=function(d){null!=d&&(d.opened=new Date);this.currentFile=d};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=funct... | Base | 1 |
arguments);k()};k();var I=document.createElement("canvas");I.width=M.offsetWidth;I.height=M.offsetHeight;M.style.overflow="hidden";I.style.position="relative";M.appendChild(I);var d=I.getContext("2d");this.ui=b;var g=b.editor.graph;this.graph=g;this.container=M;this.canvas=I;var n=function(A,H,L,F,S){A=Math.round(A);H=... | 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 |
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 |
function q(G){null!=G&&(G=p(Editor.parseDiagramNode(G)));return G}mxEvent.addListener(S,"change",function(G){H=parseInt(S.value);q(L[H]);mxEvent.consume(G)});if("mxfile"==A.nodeName){var C=A.getElementsByTagName("diagram");L=[];for(var J=0;J<C.length;J++)L.push(C[J]);0<L.length&&q(L[H]);S.innerText="";if(1<L.length)for... | Base | 1 |
mxUtils.getTextContent(Z[Y]);W=b.stringToCells(Graph.decompress(B));var ca=b.editor.graph.getBoundingBoxFromGeometry(W);y(null,null,0,0,0,0,{xml:B,w:ca.width,h:ca.height})}J=!0}}catch(da){null!=window.console&&console.log("Error in library dialog: "+da)}J||(b.spinner.stop(),b.handleError({message:mxResources.get("error... | 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 |
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?d:"",extras:JSON.stringify(u),scale:A,border:H,w:p&&isFinite(p)?p:null,h:q&&isFinite(q)?q:null}};EditorUi.prototype.setMode=function(d,g){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!=d&&1<d.length){var g=d.indexOf("#");0<=g&&(d=d.s... | Base | 1 |
this.div.style.left=Math.max(0,parseInt(this.div.style.left)-d+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(g){mxEvent.getSource(g)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var M=EditorUi.prototype.init;EditorUi.p... | Base | 1 |
function(K){if(!this.isEnabled()||this.isCellLocked(K)){if(null!=this.getClickableLinkForCell(K))return"pointer";if(this.isCellLocked(K))return"default"}return ba.apply(this,arguments)};this.selectRegion=function(K,U){var L=mxEvent.isAltDown(U)?K:null;K=this.getCells(K.x,K.y,K.width,K.height,null,null,L,null,!0);if(thi... | Base | 1 |
y.getGlobalVariable=function(V){return"page"==V&&null!=D&&null!=D[z]?D[z].getAttribute("name"):"pagenumber"==V?z+1:"pagecount"==V?null!=D?D.length:1:M.apply(this,arguments)};y.getLinkForCell=function(){return null};Editor.MathJaxRender&&y.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(V,X){b.editor.graph.m... | Base | 1 |
this.sketchWrapperElt.appendChild(this.sketchPickerMenuElt));mxClient.IS_POINTER&&(this.sketchPickerMenuElt.style.touchAction="none")}};EditorUi.prototype.getNetworkStatus=function(){var d=null;if(this.isOffline(!0))d=mxResources.get("offline");else{var g=this.getCurrentFile();null!=g&&(g.invalidChecksum?d=mxResources.... | 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 |
"#000000")),ta=mxUtils.setStyle(ta,mxConstants.STYLE_GRADIENTCOLOR,mxUtils.getValue(oa,mxConstants.STYLE_GRADIENTCOLOR,null)),R.getModel().isVertex(ya[xa])&&(ta=mxUtils.setStyle(ta,mxConstants.STYLE_FONTCOLOR,mxUtils.getValue(oa,mxConstants.STYLE_FONTCOLOR,null))));R.getModel().setStyle(ya[xa],ta)}}finally{R.getModel()... | Base | 1 |
App.prototype.loadTemplate=function(b,e,f,c,k){var l=!1,x=b,y=null!=c?c:b,E=/(\.v(dx|sdx?))($|\?)/i.test(y)||/(\.vs(x|sx?))($|\?)/i.test(y);c=/\.png$/i.test(y)||/\.pdf$/i.test(y);this.editor.isCorsEnabledForUrl(x)||(l=c||E,x="t="+(new Date).getTime(),x=PROXY_URL+"?url="+encodeURIComponent(b)+"&"+x+(l?"&base64=1":""));t... | Base | 1 |
e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}catch(B){P=B,e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}};this.destroy=function(){if(!q){EditorUi.debug("P2PCollab: destroyed");q=!0;for(sessionId in g)D(sessionId);null!=this.mous... | Base | 1 |
"geCommentActionLnk";mxUtils.write(Y,W);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){Q(Z,q);Z.preventDefault();mxEvent.consume(Z)});U.appendChild(X);V&&(X.style.display="none")}function N(){function W(X){Q.push(V);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)V=V.nextSibling,W(X.replies[Y])}var Q=... | Base | 1 |
function(){var A=D.origGuideDestroy.apply(this,arguments);if(null!=D.guidePart)try{d.putImageData(D.guidePart.imgData1,D.guidePart.x1,D.guidePart.y1),d.putImageData(D.guidePart.imgData2,D.guidePart.x2,D.guidePart.y2),d.putImageData(D.guidePart.imgData3,D.guidePart.x3,D.guidePart.y3),D.guidePart=null}catch(H){}return A}... | Base | 1 |
"/pid/misc.xml"];mxStencilRegistry.libraries.pid2valves=[SHAPES_PATH+"/pid2/mxPidValves.js"];mxStencilRegistry.libraries.pidFlowSensors=[STENCIL_PATH+"/pid/flow_sensors.xml"];mxMarker.getPackageForType=function(m){var B=null;null!=m&&0<m.length&&("ER"==m.substring(0,2)?B="mxgraph.er":"sysML"==m.substring(0,5)&&(B="mxgr... | Base | 1 |
(t<<5)-t+this.hashValue(d.childNodes[u],g,n)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);g=0;null!=n&&(n.byteCount+=d.length);for(u=0;u<d.length;u++)g=(g<<5)-g+d.charCodeAt(u)<<0;t^=g}return t};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototy... | Base | 1 |
function(){function W(){y(q,m,function(){D(m);q.editComment(q.content,function(){M(m)},function(Q){z(m);W();b.handleError(Q,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}W()},q.isResolved),O(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){D(m);q.dele... | Base | 1 |
parentChildSpacing:parseInt(K.value),siblingSpacing:parseInt(R.value)}}];c.hideDialog();c.showCustomLayoutDialog(JSON.stringify(U,null,2))});N.className="geBtn";O=new CustomDialog(c,O,function(){null==C&&(C=2);c.loadOrgChartLayouts(P)},null,null,null,N);c.showDialog(O.container,355,140,!0,!0)},q,null,l());p.addSeparato... | Base | 1 |
function(){try{null!=this.resolvedFontCss&&this.addFontCss(fa,this.resolvedFontCss),qa.src=Editor.createSvgDataUri(mxUtils.getXml(fa))}catch(ya){null!=U&&U(ya)}});this.embedExtFonts(mxUtils.bind(this,function(ya){try{null!=ya&&this.addFontCss(fa,ya),this.loadFonts(ia)}catch(xa){null!=U&&U(xa)}}))}catch(ya){null!=U&&U(y... | Base | 1 |
parentRow:Qa,isDeletable:!0,flipBkg:Fa}));btn=mxUtils.button("+",mxUtils.bind(Z,function(Ra){for(var Ga=Qa,Va=0;null!=Ga.nextSibling;)if(Ga.nextSibling.getAttribute("data-pName")==oa)Ga=Ga.nextSibling,Va++;else break;var Ua={type:va,parentRow:Qa,index:Va,isDeletable:!0,defVal:Ea,countProperty:Da};Va=Y(oa,"",Ua,0==Va%2,... | Base | 1 |
this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(O,N){0<this.editor.graph.getSelectionCount()?(O=this.editor.graph.getSelectionCell(),O=this.editor.graph.getModel().getStyle(O),this.styleInput.value=O||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibi... | Base | 1 |
g)};EditorUi.prototype.embedExtFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,g,n,t,u,v,A,H,L,F,S,p,q,C,J,G){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,g,n,t,u... | Base | 1 |
m[1].geometry.width)/2:(U.x+U.width)/Q-W.x+-B.x+10,m[1].geometry.y-=m[1].geometry.height+B.y+40):(m[1].geometry.x=T==mxConstants.DIRECTION_WEST?m[1].geometry.x-(m[1].geometry.width+B.x+40):m[1].geometry.x+(m[1].geometry.width-B.x+40),m[1].geometry.y=null==U?G.geometry.y+(G.geometry.height-m[1].geometry.height)/2:(U.y+U... | 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 |
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 |
(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var A=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl... | Base | 1 |
F&&"function"===typeof F.substring&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(F,"")?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(F,mxUtils.bind(this,function(ba){4==ba.readyState&&(200<=ba.status&&299>=ba.status&&"<mxGraphModel"==ba.responseText... | Base | 1 |
var q=new Spinner({left:"50%",lines:12,length:8,width:3,radius:5,rotate:0,color:"#000",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9}),C=new Editor,J=null,G=null,P=null,O=!1,N=[],T=null,m=null;this.getSelectedItem=function(){null!=G&&l(G);return G};if(null==g("#mxODPickerCss")){var B=document.hea... | Base | 1 |
for(var Na=0;Na<v.length;Na++){var ra=L.getCellGeometry(v[Na]);ra.x=Math.round(L.snap(ra.x));ra.y=Math.round(L.snap(ra.y));"auto"==m&&(ra.width=Math.round(L.snap(ra.width)));"auto"==B&&(ra.height=Math.round(L.snap(ra.height)))}};if("["==ea.charAt(0)){var pa=Y;L.view.validate();this.executeLayouts(L.createLayouts(JSON.p... | Base | 1 |
this.addListener("darkModeChanged",J);this.addListener("sketchModeChanged",J);this.addListener("currentThemeChanged",mxUtils.bind(this,function(){null!=this.sidebar&&this.sidebar.updateEntries();this.updateButtonContainer();this.updateDocumentTitle();this.refresh()}));g.addListener("enabledChanged",mxUtils.bind(this,fu... | Base | 1 |
f?z=new mxHierarchicalLayout(l,mxConstants.DIRECTION_WEST):"circle"==f?z=new mxCircleLayout(l):(z=new mxFastOrganicLayout(l,!1),z.forceConstant=80);if(null!=z){var M=function(n,t){l.getModel().beginUpdate();try{null!=n&&n(),z.execute(l.getDefaultParent(),D)}catch(u){throw u;}finally{n=new mxMorphing(l),n.addListener(mx... | Base | 1 |
"checked"):(I=parseInt(P[5]),A.value=I,t.setAttribute("checked","checked"),v.style.visibility="visible"):n.setAttribute("checked","checked")):f=null}else f=null}catch(U){}d.style=g+(f?f:k());d.vertex=!0;z.addCell(d,null,null,null,null);z.selectAll();z.addListener(mxEvent.CELLS_MOVED,F);z.addListener(mxEvent.CELLS_RESIZ... | 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 |
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 |
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 |
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 |
v=[];u.onsuccess=function(A){null==A.target.result?d(v):(v.push(A.target.result.value),A.target.result.continue())};u.onerror=g}catch(A){null!=g&&g(A)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(t){try{n=n||"objects";var u=t.transaction([n],"readonly").obje... | Base | 1 |
v=[];u.onsuccess=function(A){null==A.target.result?d(v):(v.push(A.target.result.value),A.target.result.continue())};u.onerror=g}catch(A){null!=g&&g(A)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(t){try{n=n||"objects";var u=t.transaction([n],"readonly").obje... | 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 |
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 |
""),mxUtils.bind(this,function(g){window.clearTimeout(d);I&&(200<=g.getStatus()&&299>=g.getStatus()?null!=f&&f():c({message:mxResources.get("realtimeCollaboration")+(0!=g.getStatus()?": "+g.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"diff",D,M.length,"bytes","from",y,"to",E,"etag",this.file.... | Base | 1 |
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 |
function(G){if(g.isEnabled()&&1==g.getSelectionCount()){var P=g.getSelectionCell(),O=mxEvent.isControlDown(G)?null:g.getIncomingTreeEdges(P);G=[];if(null!=O&&0<O.length&&(O=g.getOutgoingTreeEdges(g.model.getTerminal(O[0],!0)),null!=O))for(var N=0;N<O.length;N++)G.push(g.model.getTerminal(O[N],!1));0==G.length&&(G=g.mod... | 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 |
mxUtils.bind(this,function(O,N){O=null!=g.backgroundImage?g.backgroundImage.originalSrc:null;if(null!=O){var T=O.indexOf(",");if(0<T)for(O=O.substring(T+1),N=N.getProperty("patches"),T=0;T<N.length;T++)if(null!=N[T][EditorUi.DIFF_UPDATE]&&null!=N[T][EditorUi.DIFF_UPDATE][O]||null!=N[T][EditorUi.DIFF_REMOVE]&&0<=mxUtils... | 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 |
(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.cellEditor.textarea.getElementsByTagName("font");B=Graph.getFontUrl(m,B);for(var R=0;R<K.length;R++)K[R].getAttribute("face")==m&&K[R].getAttribute("data-font-src")!=B&&K[R].setAttribute("data-font-src",B)}};var v=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return v.apply(this,ar... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.