code stringlengths 31 2.05k | label_name stringclasses 5
values | label int64 0 4 |
|---|---|---|
this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,U,T,W,X),this.lastX=W,this.lastY=X)};k.prototype.curveTo=function(U,T,W,X,Y,Z){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,U,T,W,X,Y,Z),this.lastX=Y,this.lastY=Z)};k.prototype.arcTo=function(U,T,W,X,... | Base | 1 |
for(var e=[],g=2;g<c.length;g++){var q=mxUtils.trim(c[g]);"["!=q&&"]"!=q&&"%%"!=q.substring(0,2)&&"##"!=q.substring(0,2)&&(q=c[g].replace(/[-|>]/g," "),""!=mxUtils.trim(q)&&" "==q.charAt(0)&&e.push(q))}return"mindmap\nroot(("+mxUtils.trim(c[1])+"))\n"+e.join("\n")};EditorUi.prototype.extractMermaidDeclaration=function(... | Base | 1 |
l);this.handleError(c,e,g,q,p)}),S,mxResources.get("changeUser"),mxUtils.bind(this,function(){function z(){K.innerText="";for(var O=0;O<C.length;O++){var V=document.createElement("option");mxUtils.write(V,C[O].displayName);V.value=O;K.appendChild(V);V=document.createElement("option");V.innerHTML=" ";mx... | Base | 1 |
function(D){if(e.isEnabled()&&1==e.getSelectionCount()){var M=e.getSelectionCell(),K=mxEvent.isControlDown(D)?null:e.getIncomingTreeEdges(M);D=[];if(null!=K&&0<K.length&&(K=e.getOutgoingTreeEdges(e.model.getTerminal(K[0],!0)),null!=K))for(var O=0;O<K.length;O++)D.push(e.model.getTerminal(K[O],!1));0==D.length&&(D=e.mod... | Base | 1 |
c=x)}this.spinner.stop();this.openLocalFile(c,e,q,p,null!=p?g:null)}}};EditorUi.prototype.openFiles=function(c,e){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var g=0;g<c.length;g++)mxUtils.bind(this,function(q){var p=new FileReader;p.onload=mxUtils.bind(this,function(t){try{this.openFileHandle(t.... | Base | 1 |
function(N){return this.isTreeEdge(N)}))};Graph.prototype.getIncomingTreeEdges=function(d,u){return this.getTreeEdges(d,u,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,u){return this.getTreeEdges(d,u,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.ed... | Base | 1 |
Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(k){return k.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(k){return Graph.isGoogleFontUrl(k)};Graph.createFontElement=function(k,y){var G=Graph.fontMapping[y];null==G&&Graph.isCssFontUrl(y)?... | Base | 1 |
arguments);N.style.backgroundColor=""};H.dblClick=function(){};var P=H.getSelectionModel().changeSelection;H.getSelectionModel().changeSelection=function(){P.call(this,[c],[c])}};L.onerror=function(){L.onload=null;L.src=Editor.errorImage};L.setAttribute("src",f);L.style.maxWidth="300px";L.style.maxHeight="300px";F.appe... | Base | 1 |
t=[];p.onsuccess=function(x){null==x.target.result?c(t):(t.push(x.target.result.value),x.target.result.continue())};p.onerror=e}catch(x){null!=e&&e(x)}}),e)};EditorUi.prototype.getDatabaseItemKeys=function(c,e,g){this.openDatabase(mxUtils.bind(this,function(q){try{g=g||"objects";var p=q.transaction([g],"readonly").obje... | Base | 1 |
mxGraphView.prototype.stateValidated=function(k){null!=k.shape&&this.redrawEnumerationState(k);return S.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(k){k=decodeURIComponent(mxUtils.getValue(k.style,"enumerateValue",""));""==k&&(k=++this.enumerationState);return'<div style="padding:2px;bo... | Base | 1 |
StorageFile.insertFile=function(b,f,m,d,u){var v=mxUtils.bind(this,function(E){var F=function(){var L=new StorageFile(b,m,f);L.saveFile(f,!1,function(){d(L)},u)};E?b.confirm(mxResources.get("replaceIt",[f]),F,u):F()});StorageFile.getFileContent(b,f,function(E){v(null!=E)},function(){v(!1)})};StorageFile.getFileContent=... | Base | 1 |
StorageFile.listFiles=function(b,f,m,d){b.getDatabaseItems(function(u){var v=[];if(null!=u)for(var E=0;E<u.length;E++)"."==u[E].title.charAt(0)||null!=f&&u[E].type!=f||v.push(u[E]);m(v)},function(){null==b.database?m(StorageFile.listLocalStorageFiles(f)):null!=d&&d()},"filesInfo")};StorageFile.deleteFile=function(b,f,m... | Base | 1 |
delete F[R];return E};EditorUi.prototype.patchViewState=function(b,f){if(null!=b.viewState&&null!=f){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var m in f)try{this.patchViewStateProperty(b,f,m)}catch(d){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototyp... | Base | 1 |
function(z){H=z};this.setAutoScroll=function(z){R=z};this.setOpenFill=function(z){J=z};this.setStopClickEnabled=function(z){g=z};this.setSelectInserted=function(z){q=z};this.setSmoothing=function(z){m=z};this.setPerfectFreehandMode=function(z){t=z};this.isPerfectFreehandMode=function(){return t};this.setBrushSize=funct... | Base | 1 |
var StorageDialog=function(b,f,m){function d(R,J,c,e,g,q){function p(){mxEvent.addListener(t,"click",null!=q?q:function(){c==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(c,!0);f()})):c==App.MODE_ONEDRIVE&&b.spinn... | Base | 1 |
"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var e=c.msgMarkers,g=this.remoteInvokeCallbacks[e.callbackId];if(null==g)throw Error("No callback for "+(null!=e?e.callbackId:"null"));c.error?g.error&&g.error(c.error.errResp):g.callback&&g.callback.apply(this,c.resp);this.remote... | Base | 1 |
fa=document.createElement("img");fa.setAttribute("src",ja);fa.setAttribute("alt",oa);fa.style.maxWidth=Qa+"px";fa.style.maxHeight=pa+"px";G=fa;var Xa=ja.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");ra.appendChild(fa);fa.onerror=function(){this.src!=Xa?this.src=Xa:(this.src=Editor.errorImage,this.o... | Base | 1 |
mxUtils.getTextContent(Z[Y]);U=b.stringToCells(Graph.decompress(y));var ca=b.editor.graph.getBoundingBoxFromGeometry(U);F(null,null,0,0,0,0,{xml:y,w:ca.width,h:ca.height})}C=!0}}catch(ha){null!=window.console&&console.log("Error in library dialog: "+ha)}C||(b.spinner.stop(),b.handleError({message:mxResources.get("error... | Base | 1 |
mxUtils.bind(this,function(K){Editor.isAutoDarkMode()&&this.setDarkMode(K.matches)}))}catch(K){this.actions.get("autoMode").setEnabled(!1)}else Editor.isSettingsEnabled()&&!0===mxSettings.settings.darkMode&&(C=!0);this.installSettings();screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetch... | Base | 1 |
"ready";x.postMessage(t,"*");if("json"==urlParams.proto){var B=this.editor.graph.openLink;this.editor.graph.openLink=function(I,A,S){B.apply(this,arguments);x.postMessage(JSON.stringify({event:"openLink",href:I,target:A,allowOpener:S}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,e,g,q){var p="simple"==Edito... | Base | 1 |
v.x,v.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",n))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(n);b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());t.destroy();q.parentNode.removeChild(q)}}}function u(){return"list"==F.value?"Person\n-n... | Base | 1 |
P--;Q()}),mxUtils.bind(this,function(X){P--;G.push("@import url("+W+");\n");Q()}))):G.push(this.cachedGoogleFonts[W]+"\n"):G.push('@font-face {font-family: "'+T+'";src: url("'+W+'")}\n')})(y[U].name,y[U].url);Q()}else k()};Editor.prototype.addMathCss=function(k){k=k.getElementsByTagName("defs");if(null!=k&&0<k.length)f... | 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 x=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl... | Base | 1 |
v)for(E=0;E<v.length;E++)v[E].node.style.visibility=d?"visible":"hidden"};var m=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){m.call(this);var d=this.guidesArrVer,u=this.guidesArrHor;if(null!=d){for(var v=0;v<d.length;v++)d[v].destroy();this.guidesArrVer=null}if(null!=u){for(v=0;v<u.length;v++)u[v].des... | Base | 1 |
M.substring(0,11)?d.loadImage(M,mxUtils.bind(this,function(P){var Q=!0,U=mxUtils.bind(this,function(){d.resizeImage(P,M,mxUtils.bind(this,function(T,W,X){T=Q?Math.min(1,Math.min(d.maxImageSize/W,d.maxImageSize/X)):1;d.importFile(M,K,y,G,Math.round(W*T),Math.round(X*T),O,function(Y){d.spinner.stop();u.setSelectionCells(... | Base | 1 |
"ellipsis";D.setAttribute("title",C.title+" ("+C.id+")");var M=document.createElement("input");M.setAttribute("type","checkbox");M.checked=b.sidebar.isEntryVisible(C.id);M.defaultChecked=M.checked;D.appendChild(M);mxUtils.write(D," "+C.title);H.appendChild(D);var K=function(O){if(null==O||"INPUT"!=mxEvent.getSource(O).... | Base | 1 |
function(k,y){if("undefined"===typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var G=function(){P=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};k=null!=k?k:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var P=null;Editor.doMathJaxRen... | Base | 1 |
(q<<5)-q+this.hashValue(c.childNodes[p],e,g)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);e=0;null!=g&&(g.byteCount+=c.length);for(p=0;p<c.length;p++)e=(e<<5)-e+c.charCodeAt(p)<<0;q^=e}return q};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototy... | Base | 1 |
c.style.textAlign="right";e=document.createElement("div");e.className="geToolbarContainer";e.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function l(D){if(null!=D){var M=D.getAttribute("background");if(null==M||""==M||... | Base | 1 |
this.isRemoteFileFormat(V,U)&&null!=W?this.isExternalDataComms()?this.parseFile(W,mxUtils.bind(this,function(Z){4==Z.readyState&&(this.spinner.stop(),200<=Z.status&&299>=Z.status?Y(Z.responseText,"text/xml"):this.handleError({message:mxResources.get(413==Z.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.g... | Base | 1 |
"0"!=urlParams.pv;Graph.prototype.shadowId="dropShadow";Graph.prototype.svgShadowColor="#3D4574";Graph.prototype.svgShadowOpacity="0.4";Graph.prototype.svgShadowBlur="1.7";Graph.prototype.svgShadowSize="3";Graph.prototype.hiddenTags=[];Graph.prototype.defaultMathEnabled=!1;var e=Graph.prototype.init;Graph.prototype.ini... | Base | 1 |
for(var Q=P.getElementsByTagName("a"),U=!1,T=0;T<Q.length;T++)G=Q[T].getAttribute("href"),null!=G&&"data:action/json,"==G.substring(0,17)&&(Q[T].setAttribute("href",this.updateCustomLink(k,G)),U=!0);U&&this.labelChanged(y,P.innerHTML)}};Graph.prototype.updateCustomLink=function(k,y){if("data:action/json,"==y.substring(... | Base | 1 |
this.customFonts)))}finally{G.getModel().endUpdate()}}}));this.editorUi.showDialog(Q.container,380,Editor.enableWebFonts?250:180,!0,!0);Q.init()}),n,null,!0)})))}})();function DiagramPage(b,f){this.node=b;null!=f?this.node.setAttribute("id",f):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.p... | Base | 1 |
"1");this.sketchWrapperElt.appendChild(this.sketchMainMenuElt)}};EditorUi.prototype.isPageMenuVisible=function(){return null!=this.pages&&("0"!=urlParams.pages||1<this.pages.length||Editor.pagesVisible)};EditorUi.prototype.createFooterMenuForTheme=function(c){if(("simple"==c||"sketch"==c)&&null==this.sketchFooterMenuEl... | Base | 1 |
null,x,mxResources.get("cancel"),mxResources.get("discardChanges")):x()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var e=0;e<this.pages.length;e++)this.updatePageRoot(this.pages[e]),this.addBasenamesForCell(this.pages[e].root,c)... | Base | 1 |
EditorUi.prototype.showPageLinkDialog=function(b){var f=this.editor.graph;this.showPublishLinkDialog(mxResources.get("url"),!0,null,null,mxUtils.bind(this,function(m,d,u,v,E,F){m=this.createUrlParameters(m,d,u,v,E,F);u||m.push("hide-pages=1");f.isSelectionEmpty()||(u=f.getBoundingBox(f.getSelectionCells()),d=f.view.tra... | 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 |
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,ca=U.setStrokeColor;U.setStrokeColor=function(){};var ha=U.setFillColor;U.setFillColor=function(){};W||null==X||(this.configurePointerEvents=function(){});U.handJiggle.passThrough=!0;P.apply(this,arguments);U.handJiggle.passThrou... | Base | 1 |
!0;E.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(E,arguments);b.resetCurrentMenu();E.destroy()});var F=mxEvent.getClientX(v),L=mxEvent.getClientY(v);E.popup(F,L,null,v);b.setCurrentMenu(E,d)}mxEvent.consume(v)}}))});f(this.hRuler.container);f(this.vRuler.container);this.vRuler.drawRuler()... | Base | 1 |
va,Ha=Ia+(Ta.x-Ia)/va-ha,Va=Sa+(Ta.y-Sa)/va-ha,Ua=new Image;Ua.onload=function(){try{for(var ia=-Math.round(Da-mxUtils.mod((Ia-Ha)*W,Da)),aa=-Math.round(Da-mxUtils.mod((Sa-Va)*W,Da));ia<wa;ia+=Da)for(var la=aa;la<Qa;la+=Da)pa.drawImage(Ua,ia/W,la/W);Aa()}catch(ma){null!=Q&&Q(ma)}};Ua.onerror=function(ia){null!=Q&&Q(ia)... | Base | 1 |
c;else if("mxfile"==c.nodeName){var q=c.getElementsByTagName("diagram");if(0<q.length){g=q[0];var p=e.getGlobalVariable;e.getGlobalVariable=function(t){return"page"==t?g.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==t?1:p.apply(this,arguments)}}}null!=g&&(c=Editor.parseDiagramNode(g))}q=this... | Base | 1 |
function(){var k=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=k.style.shape&&!k.containsLabel&&0<k.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));J.apply(this,arguments);if(Editor.enableCustomProperties){for(var y={},G=k.vert... | Base | 1 |
mxUtils.bind(this,function(K,O){K=null!=e.backgroundImage?e.backgroundImage.originalSrc:null;if(null!=K){var V=K.indexOf(",");if(0<V)for(K=K.substring(V+1),O=O.getProperty("patches"),V=0;V<O.length;V++)if(null!=O[V][EditorUi.DIFF_UPDATE]&&null!=O[V][EditorUi.DIFF_UPDATE][K]||null!=O[V][EditorUi.DIFF_REMOVE]&&0<=mxUtils... | Base | 1 |
A=new mxAsyncCanvas(this.thumbImageCache);I.images=this.thumbImageCache.images;var S=new mxImageExport;S.drawShape=function(l,n){l.shape instanceof mxShape&&l.shape.checkBounds()&&(n.save(),n.translate(.5,.5),l.shape.paint(n),n.translate(-.5,-.5),n.restore())};S.drawText=function(l,n){};S.drawState(E.getView().getState... | Base | 1 |
O=document.createElement("div");O.style.marginTop="6px";O.style.display="inline-block";O.style.width="140px";mxUtils.write(O,mxResources.get("siblingSpacing")+": ");K.appendChild(O);var P=document.createElement("input");P.type="number";P.value=D;P.style.width="200px";P.style.boxSizing="border-box";K.appendChild(P);mxEv... | Base | 1 |
k.prototype.lineTo=function(U,T){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,U,T),this.lastX=U,this.lastY=T)};k.prototype.moveTo=function(U,T){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,U,T),this.lastX=U,this.lastY=T,this.first... | Base | 1 |
function(T){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(T):Editor.mathJaxQueue.push(T)};Editor.onMathJaxDone=function(){};var Q=Editor.prototype.init;Editor.prototype.init=function(){Q.apply(this,arguments);var T=mxUtils.bind(this,function(W,X){null!=this.graph.container&&th... | Base | 1 |
function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.newComment=function(c,e){var g=this.getCurrentFile();return null!=g?g.newComment(c,e):new DrawioComment(this,null,c,Da... | Base | 1 |
this.menus.defaultFonts=Menus.prototype.defaultFonts;c.currentVertexStyle=mxUtils.clone(c.defaultVertexStyle);c.currentEdgeStyle=mxUtils.clone(c.defaultEdgeStyle);this.clearDefaultStyle()};EditorUi.prototype.getLinkTitle=function(c){var e=Graph.prototype.getLinkTitle.apply(this,arguments);if(Graph.isPageLink(c)){var g=... | Base | 1 |
dispName:"West"}]},{name:"jettySize",dispName:"Jetty Size",type:"int",min:0,defVal:"auto",allowAuto:!0,isVisible:function(k){return"orthogonalEdgeStyle"==mxUtils.getValue(k.style,mxConstants.STYLE_EDGE,null)}},{name:"fillOpacity",dispName:"Fill Opacity",type:"int",min:0,max:100,defVal:100},{name:"strokeOpacity",dispNam... | Base | 1 |
return S}),A=!0);return A};var x=p.stop;p.stop=function(){x.call(this);this.active=!1;null!=p.status&&null!=p.status.parentNode&&p.status.parentNode.removeChild(p.status);p.status=null};p.pause=function(){return function(){}};return p};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),g=th... | Base | 1 |
(EditorUi.prototype.maxImageBytes=k.maxImageBytes);null!=k.maxImageSize&&(EditorUi.prototype.maxImageSize=k.maxImageSize);null!=k.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=k.shareCursorPosition);null!=k.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=k.showRemoteCursors);null!=k.restrictExpo... | Base | 1 |
D):l.y+l.height>D+z&&(l.height=D+z-l.y,l.y=Math.min(l.y,D+z));var M=(l.x-C)/n*100;n=100-(l.x+l.width-C)/n*100;C=(l.y-D)/z*100;l=100-(l.y+l.height-D)/z*100;return"inset("+mxUtils.format(C)+"% "+mxUtils.format(n)+"% "+mxUtils.format(l)+"% "+mxUtils.format(M)+"%"+(A?" round "+J+"%":S?" round 50%":"")+")"}function v(A){nul... | Base | 1 |
DrawioFile.prototype.sendErrorReport=function(b,f,m,d){try{var u=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),v=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),E=this.getCurrentUser(),F=null!=E?this.ui.hashValue(E.id):"unknown",L=null!=this.sync?"-client_... | Base | 1 |
V)this.editPlantUmlData(K,O,V);else if(V=this.graph.getAttributeForCell(K,"mermaidData"),null!=V)this.editMermaidData(K,O,V);else{var k=e.getCellStyle(K);"1"==mxUtils.getValue(k,"metaEdit","0")?c.showDataDialog(K):g.apply(this,arguments)}}catch(y){c.handleError(y)}};e.getLinkTitle=function(K){return c.getLinkTitle(K)};... | Base | 1 |
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,ca=U.setStrokeColor;U.setStrokeColor=function(){};var ha=U.setFillColor;U.setFillColor=function(){};W||null==X||(this.configurePointerEvents=function(){});U.handJiggle.passThrough=!0;P.apply(this,arguments);U.handJiggle.passThrou... | Base | 1 |
1));try{e=JSON.parse(c)}catch(q){}}}return e};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&""!=this.currentFile.getHash()&&null!=this.currentPage&&0<this.getSelectedPageIndex()){var c=this.getHashObject();c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)}... | Base | 1 |
EditorUi.prototype.installStatusMinimizer=function(c){c=null!=c?c:this.statusContainer.parentNode;var e=!1;mxEvent.addListener(c,"mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&""!=this.editor.getStatus()&&(this.statusContainer.style.display="inline-flex")}));mxEvent.addListener(c,"mouseleave",... | Base | 1 |
function(c){"simple"==c||"sketch"==c?null==this.sketchStyleElt&&(this.sketchStyleElt=document.createElement("style"),this.sketchStyleElt.setAttribute("type","text/css"),this.sketchStyleElt.innerHTML=Editor.createMinimalCss(),document.getElementsByTagName("head")[0].appendChild(this.sketchStyleElt)):null!=this.sketchSty... | Base | 1 |
N.appendChild(v);R.appendChild(N);L?(N.style.marginTop="10px",J=document.createElement("p"),J.style.marginTop="20px",J.style.marginBottom="0px",J.appendChild(c),u=document.createElement("span"),mxUtils.write(u," "+mxResources.get("rememberThisSetting")),J.appendChild(u),R.appendChild(J),mxEvent.addListener(u,"click",fu... | Base | 1 |
if(null!=k.excludeCells){for(var G=[],P=0;P<y.length;P++)0>k.excludeCells.indexOf(y[P].id)&&G.push(y[P]);y=G}return y};Graph.prototype.getCellsById=function(k){var y=[];if(null!=k)for(var G=0;G<k.length;G++)if("*"==k[G]){var P=this.model.getRoot();y=y.concat(this.model.filterDescendants(function(U){return U!=P},P))}els... | Base | 1 |
sa.innerText=ja;fa.appendChild(sa);qa.appendChild(fa);mxEvent.addListener(fa,"click",function(){function La(){var ya=Ga.querySelector(".geTemplateDrawioCatLink");null!=ya?ya.click():setTimeout(La,200)}ha=!0;var Ga=O.querySelector(".geTemplatesList");Ga.style.display="block";Ba.style.width="";xa.style.display="";xa.valu... | Base | 1 |
parseFloat(y[3])+6,k.setAttribute("viewBox",y[0]+" "+y[1]+" "+w+" "+h))))));return U};Graph.prototype.setShadowVisible=function(k,y){mxClient.IS_SVG&&!mxClient.IS_SF&&(y=null!=y?y:!0,(this.shadowVisible=k)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("... | Base | 1 |
EditorUi.prototype.diffCellRecursive=function(b,f,m,d,u){d=null!=d?d:{};var v=m[b.getId()];delete m[b.getId()];if(null==v)u.push(b.getId());else{var E=this.diffCell(b,v.cell);if(null!=E.parent||(null!=v.prev?null==f:null!=f)||null!=f&&null!=v.prev&&f.getId()!=v.prev.getId())E.previous=null!=v.prev?v.prev.getId():"";mxU... | Base | 1 |
[C],"{1} ago"));z.setAttribute("title",n.toLocaleDateString()+" "+n.toLocaleTimeString())}function N(n){var z=document.createElement("img");z.className="geCommentBusyImg";z.src=IMAGE_PATH+"/spin.gif";n.appendChild(z);n.busyImg=z}function H(n){n.style.border="1px solid red";n.removeChild(n.busyImg)}function R(n){n.style... | Base | 1 |
DrawioFile.prototype.fileSaved=function(b,f,m,d,u){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;var v=this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(v),null!=this.sync&&(this.sync.lastModified=this.getLastModi... | Base | 1 |
0,0,80,30,"ellipse");L(N)}finally{v.getModel().endUpdate()}if("horizontalTree"==m){var H=new mxCompactTreeLayout(v);H.edgeRouting=!1;H.levelDistance=30;E="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==m?(H=new mxCompactTreeLayout(v,!1),H.edgeRouting=!1,H.levelDistance=30,E="edgeStyle=elbowEdgeStyle;el... | Base | 1 |
W.fillStyle=T;return W};k.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};k.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};k.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.lengt... | Base | 1 |
EditorUi.initMinimalTheme=function(){function b(J,c){if(EditorUi.windowed){var e=J.editor.graph;e.popupMenuHandler.hideMenu();null==J.formatWindow?(c=Math.max(10,J.diagramContainer.clientWidth-248),e=Math.min(566,e.container.clientHeight-10),J.formatWindow=new WrapperWindow(J,mxResources.get("format"),c,60,240,e,functi... | Base | 1 |
"4px");null!=Z&&na.setAttribute("title",Z);null!=ca&&(W=function(){ca.isEnabled()?(na.removeAttribute("disabled"),na.style.cursor="pointer"):(na.setAttribute("disabled","disabled"),na.style.cursor="default")},ca.addListener("stateChanged",W),x.addListener("enabledChanged",W),W());return na}function e(W,X,Y){Y=document.... | Base | 1 |
StorageFile.insertFile=function(b,f,m,d,u){var v=mxUtils.bind(this,function(E){var F=function(){var L=new StorageFile(b,m,f);L.saveFile(f,!1,function(){d(L)},u)};E?b.confirm(mxResources.get("replaceIt",[f]),F,u):F()});StorageFile.getFileContent(b,f,function(E){v(null!=E)},function(){v(!1)})};StorageFile.getFileContent=... | Base | 1 |
e)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,e,g,q,p,t,x,B,I,A,S,l,n,z,C,D){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,e,g,q,p... | Base | 1 |
null!=K&&e.isCellLocked(K.cell))e.customLinkClicked(k),e.getRubberband().reset();mxEvent.consume(V)}};this.editor.getOrCreateFilename=function(){var K=c.defaultFilename,O=c.getCurrentFile();null!=O&&(K=null!=O.getTitle()?O.getTitle():K);return K};var C=this.actions.get("print");C.setEnabled(!mxClient.IS_IOS||!navigator... | Base | 1 |
e=u.getCell(H.id),null!=e&&(u.setTerminal(e,u.getCell(H.source),!0),u.setTerminal(e,u.getCell(H.target),!1));u.updateEdgeParent=E;if(d&&0<L.length)for(c=0;c<L.length;c++)u.contains(L[c])&&u.updateEdgeParent(L[c])}finally{u.endUpdate()}}; | Base | 1 |
return null!=this.corsRegExp&&this.corsRegExp.test(k)||"https://raw.githubusercontent.com/"===k.substring(0,34)||"https://fonts.googleapis.com/"===k.substring(0,29)||"https://fonts.gstatic.com/"===k.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var k=new mxUrlConverter;k.updateBaseUrl();var y=k.c... | Base | 1 |
!1,!0)}finally{I.model.endUpdate()}}}catch(V){if(p)throw V;this.handleError(V)}return B};EditorUi.prototype.updatePageLinks=function(c,e){for(var g=0;g<e.length;g++)this.updatePageLinksForCell(c,e[g].root),null!=e[g].viewState&&this.updateBackgroundPageLink(c,e[g].viewState.backgroundImage)};EditorUi.prototype.updateBa... | Base | 1 |
parentChildSpacing:parseInt(G.value),siblingSpacing:parseInt(P.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(Q,null,2))});O.className="geBtn";K=new CustomDialog(d,K,function(){null==z&&(z=2);d.loadOrgChartLayouts(M)},null,null,null,O);d.showDialog(K.container,355,140,!0,!0)},n,null,v());l.addSeparato... | Base | 1 |
Editor.createRoughCanvas=function(k){var y=rough.canvas({getContext:function(){return k}});y.draw=function(G){var P=G.sets||[];G=G.options||this.getDefaultOptions();for(var Q=0;Q<P.length;Q++){var U=P[Q];switch(U.type){case "path":null!=G.stroke&&this._drawToContext(k,U,G);break;case "fillPath":this._drawToContext(k,U,... | Base | 1 |
y,G,P){for(var Q=0;Q<P;Q++)k=Editor.crcTable[(k^y.charCodeAt(G+Q))&255]^k>>>8;return k};Editor.crc32=function(k){for(var y=-1,G=0;G<k.length;G++)y=y>>>8^Editor.crcTable[(y^k.charCodeAt(G))&255];return(y^-1)>>>0};Editor.writeGraphModelToPng=function(k,y,G,P,Q){function U(Z,ca){var ha=X;X+=ca;return Z.substring(ha,X)}fun... | Base | 1 |
return y};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var k=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(k.ownerDocument)).decode(k)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var B=Graph.prototype.getSvg;Graph.pr... | Base | 1 |
Na.dx||null!=Na.dy)Ya.geometry.offset=new mxPoint(null!=Na.dx?Na.dx:0,null!=Na.dy?Na.dy:0);Ra.insert(Ya)}Ua.push(Ra);mxUtils.remove(Fa.invert?Ma:Pa,Va)}}}});aa(pa,pa,ia);if(null!=x[pa.id])for(Ea=0;Ea<x[pa.id].length;Ea++)aa(pa,x[pa.id][Ea],ia)}}if(null!=Ba)for(ka=0;ka<q.length;ka++)for(pa=q[ka],Ea=0;Ea<Ba.length;Ea++)I... | 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(k,y,G){if(null!=y){var P=function(U){if(... | Base | 1 |
"-rev_"+this.ui.hashValue(F):"")+(null!=p?"-latest_"+p:"")+(null!=g?"-latestRev_"+this.ui.hashValue(g.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+J,action:u,label:"user_"+R+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+f.length+"-size_"+this.g... | Base | 1 |
mxUtils.bind(this,function(Na){P=b.sidebar.currentElt==ra}),null,null),mxEvent.addListener(fa,"click",mxUtils.bind(this,function(Na){P||Ma(Na,null!=ma?ma:oa);mxEvent.consume(Na)})));da.appendChild(ra);return ra}function l(){function aa(ra,Fa){ra=mxResources.get(ra,null,ra.substring(0,1).toUpperCase()+ra.substring(1));1... | Base | 1 |
"FONT"==k[y].nodeName?k[y].getAttribute("face"):k[y].style.fontFamily;null!=P&&Graph.addFont(P,G)}}};Graph.processFontStyle=function(k){if(null!=k){var y=mxUtils.getValue(k,"fontSource",null);if(null!=y){var G=mxUtils.getValue(k,mxConstants.STYLE_FONTFAMILY,null);null!=G&&Graph.addFont(G,decodeURIComponent(y))}}return ... | Base | 1 |
c,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.saveScrollState=function(){var c=this.editor.graph.view.translate,e=mxUtils.getOffset(this.diagramContainer),g=this.diagramContainer.scrollLeft-e.x;e=this.diagramContainer.scrollTop-e.y;null!=this.embedViewport&&(Editor.... | Base | 1 |
if(null==ma&&(fa=oa.indexOf("/"),ma=oa.substring(0,fa),null==la)){var ja=oa.indexOf("/",fa+1);-1<ja&&(la=oa.substring(fa+1,ja))}fa=Ea[ma];null==fa&&(Sa++,fa=[],Ea[ma]=fa);oa=ia.getAttribute("clibs");null!=aa[oa]&&(oa=aa[oa]);oa={url:ia.getAttribute("url"),libs:ia.getAttribute("libs"),title:ia.getAttribute("title")||ia.... | Base | 1 |
function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}c.actions.get("print").funct=function(){c.showDialog((new PrintDialog(c)).container,360,null!=c.pages&&1<c.pages.length?470:390,!0,!0)};this.defaultFilenam... | 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 |
d,J,v,E),N&&!H?J.y=g.y:H&&!N&&(J.x=g.x),g.y!=J.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),g.x!=J.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),J;S(!0,!0);return b.apply(this,arguments)};var f=mxGuide.prototype.setVisible;mxGuid... | Base | 1 |
P));var Q=document.createElement("link");Q.setAttribute("rel","preload");Q.setAttribute("href",P);Q.setAttribute("as","font");Q.setAttribute("crossorigin","");y.parentNode.insertBefore(Q,y)}}}};Editor.trimCssUrl=function(k){return k.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGL... | Base | 1 |
!this.isCorsEnabledForUrl(k)){var y=/(\.v(dx|sdx?))($|\?)/i.test(k)||/(\.vs(x|sx?))($|\?)/i.test(k);y=/\.png$/i.test(k)||/\.pdf$/i.test(k)||y;var G="t="+(new Date).getTime();k=PROXY_URL+"?url="+encodeURIComponent(k)+"&"+G+(y?"&base64=1":"")}return k};Editor.prototype.isCorsEnabledForUrl=function(k){if(mxClient.IS_CHROM... | Base | 1 |
X.toString());G()})})["catch"](function(X){console.log("Error in MathJax.retry: "+X.toString());G()})):null!=window.console&&console.log("Error in MathJax.typeset: "+W.toString())}};window.MathJax=null!=y?y:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/sv... | Base | 1 |
var V=this.click;this.click=function(K){var U=null==K.state&&null!=K.sourceState&&this.isCellLocked(this.getLayerForCell(K.sourceState.cell));if(this.isEnabled()&&!U||K.isConsumed())return V.apply(this,arguments);U=U?K.sourceState.cell:K.getCell();null!=U&&(U=this.getClickableLinkForCell(U),null!=U&&(this.isCustomLink(... | Base | 1 |
(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",c,"\nresponse:",S,"\nresult:",l),this.spinner.stop(),e(l,n,z,C))}),B)}),B,mxUtils.bind(this,function(n){3>q++?t.clear()&&(this.spinner.stop(),p()):B(n)}))}),B);else{var A={message:mxResources.get("error")+" "+I.getStatus()};try{A=JSON.parse(I.getText()... | Base | 1 |
z[K]&&(z[K]=(z[K]||0)+1,n++),C.push(M))}u.setCellStyles(mxConstants.STYLE_IMAGE,null,C);console.log("Removed",n,"image(s) from",C.length,"cell(s): ",[C,z])}finally{u.model.endUpdate()}}));d.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(d,u.getModel())}));d.actions.addAction("testXmlImageExpor... | Base | 1 |
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,ca=U.setStrokeColor;U.setStrokeColor=function(){};var ha=U.setFillColor;U.setFillColor=function(){};W||null==X||(this.configurePointerEvents=function(){});U.handJiggle.passThrough=!0;P.apply(this,arguments);U.handJiggle.passThrou... | Base | 1 |
(c.innerHTML="Error loading page. <a>Please try refreshing.</a>",c.getElementsByTagName("a")[0].onclick=function(){mxLanguage="en";d(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,mxLanguage))})})};if(!App.isMainCalled)if(App.isMainCalled=!0,window.onerror=function(J,... | Base | 1 |
this.editor.graph.setBackgroundImage;var H=this.pages[0];this.currentPage==H?E.setBackgroundImage(F):null!=H.viewState&&null!=H.viewState&&(F=H.viewState.backgroundImage,E.setBackgroundImage(F));E.getGlobalVariable=function(l){return"page"==l?H.getName():"pagenumber"==l?1:N.apply(this,arguments)};E.getGlobalVariable=N;... | Base | 1 |
type:"bool",getDefaultValue:function(k,y){k=y.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,"resizeLastRow","0")},isVisible:function(k,y){y=y.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&y.isTable(k.vertices[0])}},{n... | Base | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.