code stringlengths 31 2.05k | label_name stringclasses 5
values | label int64 0 4 |
|---|---|---|
Editor.prototype.addFontCss=function(m,B){B=null!=B?B:this.absoluteCssFonts(this.fontCss);if(null!=B){var K=m.getElementsByTagName("defs"),R=m.ownerDocument;0==K.length?(K=null!=R.createElementNS?R.createElementNS(mxConstants.NS_SVG,"defs"):R.createElement("defs"),null!=m.firstChild?m.insertBefore(K,m.firstChild):m.app... | Base | 1 |
this.globalVars?mxUtils.clone(this.globalVars):{};var m=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=m)for(var B in m)this.globalVars[B]=m[B]}catch(K){null!=window.console&&console.log("Error in vars URL parameter: "+K)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clon... | Base | 1 |
function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var d=this.editor.graph;d.container.addEventListener("paste",mxUtils.bind(this,function(g){if(!mxEvent.isConsumed(g))try{for(var n=g.clipboardData||g.originalEvent.clipboardData,t=!1,u=0;u<n.types.length;u... | Base | 1 |
function(m){this.model.beginUpdate();try{for(var B=0;B<m.length;B++)this.model.setVisible(m[B],!this.model.isVisible(m[B]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(m,B){this.model.beginUpdate();try{for(var K=0;K<m.length;K++)this.model.setVisible(m[K],B)}finally{this.model.endUpdate()}... | Base | 1 |
EditorUi.prototype.patchPages=function(b,e,f,c,k){var l={},x=[],y={},E={},D={},z={};if(null!=c&&null!=c[EditorUi.DIFF_UPDATE])for(var M in c[EditorUi.DIFF_UPDATE])l[M]=c[EditorUi.DIFF_UPDATE][M];if(null!=e[EditorUi.DIFF_REMOVE])for(c=0;c<e[EditorUi.DIFF_REMOVE].length;c++)E[e[EditorUi.DIFF_REMOVE][c]]=!0;if(null!=e[Edi... | 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 |
za.className="gePropHeaderCell";var Ba=document.createElement("img");Ba.src=Sidebar.prototype.expandedImage;Ba.style.verticalAlign="middle";za.appendChild(Ba);mxUtils.write(za,mxResources.get("property"));ea.style.cursor="pointer";var Ca=function(){var oa=ma.querySelectorAll(".gePropNonHeaderRow");if(Z.editorUi.propert... | Base | 1 |
OneDriveFile.prototype.saveFile=function(b,e,f,c,k,l){if(!this.isEditable())null!=f&&f();else if(!this.savingFile)if(this.getTitle()==b){var x=mxUtils.bind(this,function(){try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var y=l||this.constructor!=OneDriveFile||"manual"!=DrawioFile.SYNC&&"... | Base | 1 |
ua.innerText=ka;ha.appendChild(ua);qa.appendChild(ha);mxEvent.addListener(ha,"click",function(){function Ma(){var Aa=Ia.querySelector(".geTemplateDrawioCatLink");null!=Aa?Aa.click():setTimeout(Ma,200)}da=!0;var Ia=N.querySelector(".geTemplatesList");Ia.style.display="block";Ca.style.width="";xa.style.display="";xa.valu... | Base | 1 |
TrelloClient.prototype.getFile=function(b,e,f,c,k){k=null!=k?k:!1;var l=mxUtils.bind(this,function(){var x=b.split(this.SEPARATOR),y=!0,E=window.setTimeout(mxUtils.bind(this,function(){y=!1;f({code:App.ERROR_TIMEOUT,retry:l})}),this.ui.timeout);Trello.cards.get(x[0]+"/attachments/"+x[1],mxUtils.bind(this,function(D){wi... | Base | 1 |
null!=this.currentState&&K.getState()==this.currentState&&2E3<F||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&R.apply(this,arguments)};var S=this.isToggleEvent;this.isToggleEvent=function(K){return S.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(K)}... | 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 |
"min"!=Editor.currentTheme||this.addMenuItems(p,["publishLink"],q);c.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||(p.addSeparator(q),c.menus.addSubmenu("embed",p,q))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(p... | Base | 1 |
Editor.createRoughCanvas=function(m){var B=rough.canvas({getContext:function(){return m}});B.draw=function(K){var R=K.sets||[];K=K.options||this.getDefaultOptions();for(var U=0;U<R.length;U++){var W=R[U];switch(W.type){case "path":null!=K.stroke&&this._drawToContext(m,W,K);break;case "fillPath":this._drawToContext(m,W,... | Base | 1 |
mxUtils.bind(this,function(W){window.clearTimeout(R);K&&B(Editor.createSvgDataUri(W.getText()))}),function(){window.clearTimeout(R);K&&B(Editor.svgBrokenImage.src)});else{var U=new Image;this.crossOriginImages&&(U.crossOrigin="anonymous");U.onload=function(){window.clearTimeout(R);if(K)try{var W=document.createElement(... | 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 |
"/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 |
EditorUi.lightboxHost+"/?client=1"+(null!=g?"&page="+g:"")+(u?"&edit=_blank":"")+(v?"&layers=1":"")+"');}}})(this);"),q+="cursor:pointer;"),d&&(d=parseInt(H.getAttribute("width")),u=parseInt(H.getAttribute("height")),H.setAttribute("viewBox","-0.5 -0.5 "+d+" "+u),q+="max-width:100%;max-height:"+u+"px;",H.removeAttribut... | 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 |
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 |
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 |
R));this.graph.isRelativeUrl(Q)&&(Q=null!=U?U+Q:window.location.protocol+"//"+window.location.hostname+("/"==Q.charAt(0)?"":m)+Q);B.push('url("'+Q+'"'+K[W].substring(R))}else B.push(K[W])}else B=[m]}return null!=B?B.join(""):null};Editor.prototype.mapFontUrl=function(m,B,K){/^https?:\/\//.test(B)&&!this.isCorsEnabledFo... | Base | 1 |
return R};Editor.getDiagramNodeXml=function(m){var B=mxUtils.getTextContent(m),K=null;0<B.length?K=Graph.decompress(B):null!=m.firstChild&&(K=mxUtils.getXml(m.firstChild));return K};Editor.extractGraphModelFromPdf=function(m){m=m.substring(m.indexOf(",")+1);m=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m,!0);if(... | Base | 1 |
mxGraphView.prototype.stateValidated=function(m){null!=m.shape&&this.redrawEnumerationState(m);return S.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(m){m=decodeURIComponent(mxUtils.getValue(m.style,"enumerateValue",""));""==m&&(m=++this.enumerationState);return'<div style="padding:2px;bo... | Base | 1 |
[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 |
0>Y&&(Y=U.strokeWidth/2);m.setStrokeAlpha(m.state.fillAlpha);m.setStrokeColor(U.fill||"");m.setStrokeWidth(Y);m.setDashed(!1);this._drawToContext(K,R,U);m.setDashed(X);m.setStrokeWidth(Q);m.setStrokeColor(W);m.setStrokeAlpha(V)};B._drawToContext=function(K,R,U){K.begin();for(var W=0;W<R.ops.length;W++){var Q=R.ops[W],V... | Base | 1 |
g.appendChild(this.sidebar.createVertexTemplateFromCells(u,t.w,t.h,t.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(d){return null!=d?d[mxLanguage]||d.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.i... | Base | 1 |
mxStencilRegistry.getStencil(Z)}return G.apply(this,arguments)};var P=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(m,B,K,R,U,W){"1"==mxUtils.getValue(B.style,"lineShape",null)&&m.setFillColor(mxUtils.getValue(B.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return P.apply(this,arguments)};Pri... | 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 |
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 |
e},ConnectionPointsDialog=function(b,e){function f(){null!=k&&k.destroy()}var c=document.createElement("div");c.style.userSelect="none";var k=null;this.init=function(){function l(J,G,P){J=new mxCell("",new mxGeometry(J,G,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0... | 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 |
p.setBackgroundImage(J.viewState.backgroundImage);p.getGlobalVariable=function(G){return"page"==G&&null!=J?J.getName():"pagenumber"==G?1:C.apply(this,arguments)};document.body.appendChild(p.container);null!=J&&p.model.setRoot(J.root)}}A=null!=A?A:this.getXmlFileData(u,v,F,S);L=null!=L?L:this.getCurrentFile();d=this.cre... | Base | 1 |
null,A,mxResources.get("cancel"),mxResources.get("discardChanges")):A()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var d={};if(null!=this.pages)for(var g=0;g<this.pages.length;g++)this.updatePageRoot(this.pages[g]),this.addBasenamesForCell(this.pages[g].root,d)... | Base | 1 |
function(){b.spinner.stop();c(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),c(A,null,null,I,d,g)):(A=b.convertDataUri(A),H=null==H?120:H,L=null==L?100:L,b.hideDialog(),c(A,H,L,I,d,g))},t=function(A,H){if(null!=A){var L=k?null:D.getModel().getGeometry... | 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 |
null,E,k)}else k()}))):k({message:this.invalidFilenameRegExs[0].test(e)?mxResources.get("oneDriveCharsNotAllowed"):mxResources.get("oneDriveInvalidDeviceName")})};OneDriveClient.prototype.checkExists=function(e,f,c,k){var l="/me/drive/root";null!=e&&(l=this.getItemURL(e,!0));this.executeRequest(this.baseUrl+l+"/childre... | Base | 1 |
mxEvent.getClientX(K),mxEvent.getClientY(K)),G.start(K.x,K.y)):null!=qa?this.addSelectionCells(qa):1<this.getSelectionCount()&&this.isCellSelected(L)&&this.removeSelectionCell(L);qa=null;U.consume()}}));this.connectionHandler.selectCells=function(K,U){this.graph.setSelectionCell(U||K)};this.connectionHandler.constraint... | Base | 1 |
function(Q){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(Q):Editor.mathJaxQueue.push(Q)};Editor.onMathJaxDone=function(){};var U=Editor.prototype.init;Editor.prototype.init=function(){U.apply(this,arguments);var Q=mxUtils.bind(this,function(V,X){null!=this.graph.container&&th... | 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 |
d;this.editor.updateGraphComponents();this.editor.graph.refresh();this.editor.graph.defaultMathEnabled=d;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(d){return this.editor.graph.mathEnabled};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP|... | 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 |
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 |
return null!=this.corsRegExp&&this.corsRegExp.test(m)||"https://raw.githubusercontent.com/"===m.substring(0,34)||"https://fonts.googleapis.com/"===m.substring(0,29)||"https://fonts.gstatic.com/"===m.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var m=new mxUrlConverter;m.updateBaseUrl();var B=m.c... | Base | 1 |
J.translate(Math.floor((1-q.x)/C),Math.floor((1-q.y)/C));J.scale(1/C);var P=0,O=J.save;J.save=function(){P++;O.apply(this,arguments)};var N=J.restore;J.restore=function(){P--;N.apply(this,arguments)};var T=p.drawShape;p.drawShape=function(m){mxLog.debug("entering shape",m,P);T.apply(this,arguments);mxLog.debug("leaving... | 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 |
mxResources.get("pageWithNumber",[da+1]),mxUtils.write(ma,ea),ma.setAttribute("title",ea+" ("+D[da].getAttribute("id")+")"),ma.setAttribute("value",da),da==z&&ma.setAttribute("selected","selected"),N.appendChild(ma);T=function(){try{var Ca=parseInt(N.value);z=E=Ca;za(D[Ca])}catch(ba){N.value=E,b.handleError(ba)}}}else ... | Base | 1 |
null!=this.currentState&&K.getState()==this.currentState&&2E3<F||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&R.apply(this,arguments)};var S=this.isToggleEvent;this.isToggleEvent=function(K){return S.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(K)}... | Base | 1 |
J.translate(Math.floor((1-q.x)/C),Math.floor((1-q.y)/C));J.scale(1/C);var P=0,O=J.save;J.save=function(){P++;O.apply(this,arguments)};var N=J.restore;J.restore=function(){P--;N.apply(this,arguments)};var T=p.drawShape;p.drawShape=function(m){mxLog.debug("entering shape",m,P);T.apply(this,arguments);mxLog.debug("leaving... | 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 |
mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=t?this.fileLoaded(t)||v():v()});g?d():this.handleError(H,mxResources.get("errorLoadingFile"),d,!0,null,null,!0)}else v();return u};EditorUi.prototype.getHashValueForPages=function(d,g){var n=0,t=new mxGraphModel,u=new mxCodec;null!=g&... | 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 |
d.style.textAlign="right";g=document.createElement("div");g.className="geToolbarContainer";g.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function p(G){if(null!=G){var P=G.getAttribute("background");if(null==P||""==P||... | Base | 1 |
Editor.createRoughCanvas=function(m){var B=rough.canvas({getContext:function(){return m}});B.draw=function(K){var R=K.sets||[];K=K.options||this.getDefaultOptions();for(var U=0;U<R.length;U++){var W=R[U];switch(W.type){case "path":null!=K.stroke&&this._drawToContext(m,W,K);break;case "fillPath":this._drawToContext(m,W,... | Base | 1 |
[1])),g.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(d),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,g.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=n)for(u=0;u<n.length;u++)g.model.execute(new ChangeP... | Base | 1 |
l))}catch(u){k(u)}}),k)}),k)):c(new GitHubFile(this.ui,f,{org:E,repo:D,ref:z,name:e,path:M,sha:d,isNew:!0})):k()}))};GitHubClient.prototype.showCommitDialog=function(e,f,c,k){var l=this.ui.spinner.pause();e=new FilenameDialog(this.ui,mxResources.get(f?"addedFile":"updateFile",[e]),mxResources.get("ok"),mxUtils.bind(thi... | Base | 1 |
if(null!=B&&0<B.length){var W=document.createElement("script");W.setAttribute("type","text/javascript");W.setAttribute("src",m);B[0].parentNode.appendChild(W)}}};Editor.prototype.csvToArray=function(m){if(0<m.length){var B="",K=[""],R=0,U=!0,W;m=$jscomp.makeIterator(m);for(W=m.next();!W.done;W=m.next())W=W.value,'"'===... | Base | 1 |
"transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefi... | Base | 1 |
preview:aa.getAttribute("preview"),clibs:ha,tags:aa.getAttribute("tags")};ka.push(ha);null!=na&&(ka=va[pa],null==ka&&(ka={},va[pa]=ka),pa=ka[na],null==pa&&(pa=[],ka[na]=pa),pa.push(ha))}aa=aa.nextSibling}N.stop();p()}})};C.appendChild(qa);C.appendChild(ta);C.appendChild(fa);var Ua=!1,ja=z;/^https?:\/\//.test(ja)&&!b.ed... | Base | 1 |
J.y,null,null,null,null,mxUtils.bind(this,function(G){return g.getCenterInsertPoint(g.getBoundingBoxFromGeometry(G,!0))}),"simple"==d,!1)}mxEvent.consume(C)}));A.style.backgroundSize="24px";"simple"==d?A.style.flexShrink="0":A.style.marginBottom="4px";var F=!1,S=mxUtils.bind(this,function(C){if(C||document.body.contain... | Base | 1 |
v.setAttribute("disabled","disabled")}));mxUtils.br(d);return{getLink:function(){return n.checked?"blank"===v.value?"_blank":u:null},getEditInput:function(){return n},getEditSelect:function(){return v}}};EditorUi.prototype.addLinkSection=function(d,g){function n(){var H=document.createElement("div");H.style.width="100%... | Base | 1 |
"cells",[J])),b.fireEvent(new mxEventObject("freehandInserted","cell",J))}finally{b.model.endUpdate()}t&&b.setSelectionCells([J])}}for(J=0;J<k.length;J++)k[J].parentNode.removeChild(k[J]);c=null;k=[];x=[]}A(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(C,J){C=J.getProperty("eventName");J=J.getP... | Base | 1 |
"geBtn gePrimaryBtn";var m=document.createElement("img");m.setAttribute("src",Sidebar.prototype.searchImage);m.setAttribute("title",mxResources.get("preview"));m.className="geActiveButton";m.style.position="absolute";m.style.cursor="default";m.style.padding="8px";m.style.right="0px";m.style.top="0px";var B=!1,K=null,R=... | 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 |
N.spin(fa);var la=function(na,pa,ha){O=0;N.stop();Ga=na;ha=ha||{};var ka=0,ua;for(ua in ha)ka+=ha[ua].length;if(pa)fa.innerText=pa;else if(0==na.length&&0==ka)fa.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(fa.innerText="",0<ka){ta.style.display="";fa.style.left="160px";ta.innerText="";Da=0;... | Base | 1 |
1024*v,H=Math.min(A+1024,n),L=Array(H-A),F=0;A<H;++F,++A)L[F]=d[A].charCodeAt(0);u[v]=new Uint8Array(L)}return new Blob(u,{type:g})};EditorUi.prototype.saveLocalFile=function(d,g,n,t,u,v,A,H){v=null!=v?v:!1;A=null!=A?A:"vsdx"!=u&&(!mxClient.IS_IOS||!navigator.standalone);u=this.getServiceCount(v);isLocalStorage&&u++;va... | Base | 1 |
!0),aa,1),J=a.getDefaultTranslate(W);this.x0=W.x;this.y0=W.y;a.setScrollbarPositions(e.currentPage.viewState,J.x,J.y);if(J.x!=this.translate.x||J.y!=this.translate.y){this.setTranslate(J.x,J.y);return}}W=a.getPagePadding();J=a.getPageSize();this.translate.x=W.x-(this.x0||0)*J.width;this.translate.y=W.y-(this.y0||0)*J.h... | Base | 1 |
"-rev_"+this.ui.hashValue(y):"")+(null!=u?"-latest_"+u:"")+(null!=n?"-latestRev_"+this.ui.hashValue(n.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+I,action:k,label:"user_"+M+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+d+"-patches_"+e.length+"-size_"+this.g... | Base | 1 |
var BackgroundImageDialog=function(b,e,f,c,k){function l(){null==C||C==mxConstants.NONE?(q.style.display="none",S.checked=!1):(q.style.backgroundColor=C,q.style.display="",S.checked=!0)}var x=b.editor.graph,y=document.createElement("div");y.style.whiteSpace="nowrap";var E=document.createElement("h2");mxUtils.write(E,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 |
"center";f=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});f.className="geBtn";b.editor.cancelFirst&&y.appendChild(f);ImageDialog.filePicked=function(A){A.action==google.picker.Action.PICKED&&null!=A.docs[0].thumbnails&&(A=A.docs[0].thumbnails[A.docs[0].thumbnails.length-1],null!=A... | 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 |
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 |
function(J){this.spinner.stop();try{this.saveCanvas(J,u?this.getFileData(!0,null,null,null,n,H):null,L,null==this.pages||0==this.pages.length,S)}catch(G){this.handleError(G)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(J){this.spinner.stop();this.handleError(J)}),null,n,d||1,g,t,null,null,v,A,F,p,q)}cat... | Base | 1 |
window.console&&console.error(K,N,T)}}function k(N){if(b.shareCursorPosition&&!z.isMouseDown){var T=mxUtils.getOffset(z.container),m=z.view.translate,B=z.view.scale,K=null!=b.currentPage?b.currentPage.getId():null;c("cursor",{pageId:K,x:Math.round((N.getX()-T.x+z.container.scrollLeft)/B-m.x),y:Math.round((N.getY()-T.y+... | Base | 1 |
"#ffffff";u.panningHandler.ignoreCell=!0;u.panningHandler.useLeftButtonForPanning=!0;u.minFitScale=null;u.maxFitScale=null;u.centerZoom=!0;var v=mxUtils.parseXml(f),A=b.editor.extractGraphModel(v.documentElement,!0),H=0,L=null,F=u.getGlobalVariable;u.getGlobalVariable=function(p){return"page"==p&&null!=L&&null!=L[H]?L[... | 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 |
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 |
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 |
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 |
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 |
null!=I.errors&&0<I.errors.length&&(M="too_large"==I.errors[0].code)}catch(d){}c({message:mxResources.get(M?"drawingTooLarge":"forbidden")})}else 404===e.getStatus()?c({message:this.getErrorMessage(e,mxResources.get("fileNotFound"))}):400===e.getStatus()?c({status:400}):c({status:e.getStatus(),message:this.getErrorMess... | Base | 1 |
R(!1)}),ea.className="geBtn",B.appendChild(ea));ea=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){m.hideDialog();R(!0)});ea.className="geBtn gePrimaryBtn";B.appendChild(ea);m.editor.cancelFirst||B.appendChild(Q);W.appendChild(B);this.container=W};var O=ChangePageSetup.prototype.execu... | 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 |
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 |
Q[X[Z]]&&Y++;Y=Y==W}Y&&(1!=R||this.isCellVisible(B[V]))&&U.push(B[V])}}return U};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(m){for(var B=null,K=[],R=0;R<m.length;R++){var U=this.getTagsForCell(m[R]);K... | Base | 1 |
null,K),0<R.length&&(m=mxUtils.parseXml(R),m=m.documentElement))))}if(null!=m&&"svg"==m.nodeName)if(R=m.getAttribute("content"),null!=R&&"<"!=R.charAt(0)&&"%"!=R.charAt(0)&&(R=unescape(window.atob?atob(R):Base64.decode(cont,R))),null!=R&&"%"==R.charAt(0)&&(R=decodeURIComponent(R)),null!=R&&0<R.length)m=mxUtils.parseXml... | 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 |
"/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 |
function(m){this.model.beginUpdate();try{for(var B=0;B<m.length;B++)this.model.setVisible(m[B],!this.model.isVisible(m[B]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(m,B){this.model.beginUpdate();try{for(var K=0;K<m.length;K++)this.model.setVisible(m[K],B)}finally{this.model.endUpdate()}... | 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 |
v.scrollCellToVisible(v.getSelectionCell())}}}else{J=function(N){var T=P[N];null==T&&(T=new mxCell(N,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),T.vertex=!0,P[N]=T,F.push(T));return T};var P={};F=[];for(H=0;H<t.length;H++)if(";"!=t[H].charAt(0)){var O=t[H].split("->");2<=O.length&&(C=J(O[0]),G=J(O[O.length-1])... | Base | 1 |
!1;l.connectionHandler.createEdgeState=function(n){n=l.createEdge(null,null,null,null,null,x);return new mxCellState(this.graph.view,n,this.graph.getCellStyle(n))};var y=l.getDefaultParent(),E=mxUtils.bind(this,function(n){var t=new mxCellOverlay(this.connectImage,"Add outgoing");t.cursor="hand";t.addListener(mxEvent.C... | Base | 1 |
Editor.isDarkMode()?{outBkgClr:Editor.darkColor,cornerClr:Editor.darkColor,strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#e8e9ed",cornerClr:"#fbfbfb",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};M.style[f?"borderRight":"borderBottom"]="0.5px solid "+z.strokeClr;M.style.borderLeft="0... | Base | 1 |
mxEvent.getClientX(C),mxEvent.getClientY(C))},p=function(C){for(d.push(C);d.length>f;)d.shift()},q=function(C){var J=d.length;if(1===J%2||J>=f){var G=0,P=0,O,N=0;for(O=C;O<J;O++)N++,C=d[O],G+=C.x,P+=C.y;return{x:G/N,y:P/N}}return null}}}mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;mxFreehan... | Base | 1 |
urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",A,null,null,null,v)},null,null,null,v)},null,null... | Base | 1 |
DrawioFile.prototype.patch=function(b,e,f,c){if(null!=b){var k=this.ui.editor.undoManager,l=k.history.slice(),x=k.indexOfNextAdd,y=this.ui.editor.graph;y.container.style.visibility="hidden";var E=this.changeListenerEnabled;this.changeListenerEnabled=f;var D=y.foldingEnabled,z=y.mathEnabled,M=y.cellRenderer.redraw;y.cel... | 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 |
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 |
"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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.