code stringlengths 31 2.05k | label_name stringclasses 5
values | label int64 0 4 |
|---|---|---|
Editor.extractGraphModelFromXref(U));null!=G&&(G=decodeURIComponent(G.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return G};Editor.extractGraphModelFromXref=function(k){var y=k.trailer,G=null;null!=y&&(y=/.* \/Info (\d+) (\d+) R/g.exec(y.join("\n")),null!=y&&0<y.length&&(y=k[y[1]],null!=y&&(y=/.* \/Subject (\d+) (\d+) ... | Base | 1 |
App.prototype.loadTemplate=function(b,f,m,d,u){var v=!1,E=b,F=null!=d?d:b,L=/(\.v(dx|sdx?))($|\?)/i.test(F)||/(\.vs(x|sx?))($|\?)/i.test(F);d=/\.png$/i.test(F)||/\.pdf$/i.test(F);this.editor.isCorsEnabledForUrl(E)||(v=d||L,E="t="+(new Date).getTime(),E=PROXY_URL+"?url="+encodeURIComponent(b)+"&"+E+(v?"&base64=1":""));t... | Base | 1 |
e;p.onerror=g;for(var t=0;t<q.length;t++)p.objectStore(q[t]).delete(c[t])}),g)};EditorUi.prototype.getDatabaseItem=function(c,e,g,q){this.openDatabase(mxUtils.bind(this,function(p){try{q=q||"objects";var t=p.transaction([q],"readonly").objectStore(q).get(c);t.onsuccess=function(){e(t.result)};t.onerror=g}catch(x){null!... | Base | 1 |
6)this.curveTo(ha[na],ha[na+1],ha[na+2],ha[na+3],ha[na+4],ha[na+5]);this.lastX=Z;this.lastY=ca}};k.prototype.rect=function(U,T,W,X){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(U,T,W,X,this.getStyle(!0,!0)))};k.prototype.ellipse=function(U,T,W,... | Base | 1 |
try{p.labelChanged(x,c),Graph.isLink(c)&&p.setLinkForCell(x,c)}finally{p.model.endUpdate()}}p.setSelectionCell(x)}else t=p.getInsertPoint(),p.isMouseInsertPoint()&&(x=0,p.lastPasteXml==c&&0<p.pasteCounter&&p.pasteCounter--),t=this.insertTextAt(c,t.x+x,t.y+x,!0),p.setSelectionCells(t);p.isSelectionEmpty()||(p.scrollCell... | Base | 1 |
function(c){var e=this.editor.graph;return{event:c,pageVisible:e.pageVisible,translate:e.view.translate,bounds:e.getGraphBounds(),currentPage:this.getSelectedPageIndex(),scale:e.view.scale,page:e.view.getBackgroundPageBounds()}};EditorUi.prototype.sendEmbeddedSvgExport=function(c){try{var e=this.editor.graph;e.isEditin... | Base | 1 |
!0,"1"==urlParams.dev?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",g,null,null,null,q)},null,null,null,q)},null,null,null,q)},null,null,null,q):mxscript(DRAW... | Base | 1 |
[];this.traverse(u,!0,mxUtils.bind(this,function(F,L){var N=null!=L&&this.isTreeEdge(L);N&&v.push(L);F==u||null!=L&&!N||v.push(F);return(null==L||N)&&(F==u||!this.model.isCollapsed(F))}));this.model.setCollapsed(u,d);for(var E=0;E<v.length;E++)this.model.setVisible(v[E],!d)}finally{this.model.endUpdate()}};Graph.protot... | Base | 1 |
c:null)}catch(q){this.handleError(q)}};EditorUi.prototype.writeImageToClipboard=function(c,e,g,q){var p=this.base64ToBlob(c.substring(c.indexOf(",")+1),"image/png");c=new ClipboardItem({"image/png":p,"text/html":new Blob(['<img src="'+c+'" width="'+e+'" height="'+g+'">'],{type:"text/html"})});navigator.clipboard.write(... | Base | 1 |
x,null,null,null,t)):mxscript("js/extensions.min.js",x,null,null,null,t))};EditorUi.prototype.generatePlantUmlImage=function(c,e,g,q){function p(B,I,A){c1=B>>2;c2=(B&3)<<4|I>>4;c3=(I&15)<<2|A>>6;c4=A&63;r="";r+=t(c1&63);r+=t(c2&63);r+=t(c3&63);return r+=t(c4&63)}function t(B){if(10>B)return String.fromCharCode(48+B);B-... | Base | 1 |
q.model.getChildAt(e,B))};EditorUi.prototype.updatePageLink=function(c,e){if(Graph.isPageLink(e)){var g=c[e.substring(e.indexOf(",")+1)];e=null!=g?"data:page/id,"+g:null}else if("data:action/json,"==e.substring(0,17))try{var q=JSON.parse(e.substring(17));if(null!=q.actions){for(var p=0;p<q.actions.length;p++){var t=q.a... | Base | 1 |
c=D;this.confirmImageResize(function(V){C=V;O()},I)}else O()};EditorUi.prototype.isBlankFile=function(){return null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&this.currentPage.getName()==mxResources.get("pageWithNumber",[1])};EditorUi.prototype.confirmImageResize=function(c,e){e=null!=e?e:!1;var g=null!=... | 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 |
U[T];U.stroke!=mxConstants.NONE&&null!=U.stroke||delete this.nextShape.options.stroke;U.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};k.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.get... | Base | 1 |
!l){var K=function(){G.value=Math.max(1,Math.min(D,Math.max(parseInt(G.value),parseInt(k.value))));k.value=Math.max(1,Math.min(D,Math.min(parseInt(G.value),parseInt(k.value))))},O=d.addRadiobox(n,"pages",mxResources.get("allPages"),!0),V=d.addRadiobox(n,"pages",mxResources.get("pages")+":",!1,null,!0),k=document.create... | Base | 1 |
function(t){return mxEvent.getSource(t)==g?!0:p.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,e){mxSettings.setUi(c);(e=this.doSetCurrentTheme(c)||e)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(c){return""==c||"dark"==c||"default"==c||"ken... | Base | 1 |
App.prototype.filterDrafts=function(b,f,m){function d(){m(u)}var u=[];try{this.getDatabaseItems(mxUtils.bind(this,function(v){EditorUi.debug("App.filterDrafts",[this],"items",v);for(var E=0;E<v.length;E++)try{var F=v[E].key;if(null!=F&&".draft_"==F.substring(0,7)){var L=JSON.parse(v[E].data);null!=L&&"draft"==L.type&&L... | Base | 1 |
this.mathEnabled=!this.mathEnabled),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var O=document.createElement("canvas"),V=new Image;V.onload... | Base | 1 |
!this.editor.editable&&(g.getHash=function(){return"G"+e},window.location.hash="#"+g.getHash());null!=d&&d()}));return!0}return!1});!c()&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.addListener("clientLoaded",c);return!0});this.loadTemplate(H,mxUtils.bind(this,function(c){this.spinner.stop();if(nu... | Base | 1 |
x.appendChild(z);var C=document.createElement("div");C.style.marginTop="10px";if(v){var D=function(V,k,y,G,P){if(null==P||"1"!=P.html)return G=V.toLowerCase().indexOf(k,G),0>G?V:V.substr(0,G)+y+V.substr(G+k.length);var Q=V;k=mxUtils.htmlEntities(k);P=[];var U=-1;for(V=V.replace(/<br>/ig,"\n");-1<(U=V.indexOf("<",U+1));... | Base | 1 |
f.appendChild(v);this.pagesContainer=m;this.layersContainer=v;this.ui=b;m=document.createElement("div");m.style.marginTop="16px";m.style.textAlign="center";v=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=u&&u()});v.className="geBtn";b.editor.cancelFirst&&m.appendChild(v);var E=mxUtils.button(... | Base | 1 |
function(c,e,g,q,p,t,x){if(null!=c){p=null!=p?p:Error(c);p.stack=null!=p.stack?p.stack:"";t=null!=t?t:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0... | Base | 1 |
ColorDialog.resetRecentColors=function(){L.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(k,y){var G=null;null!=k.editor.graph.getModel().getParent(y)?G=y.getId():null!=k.currentPage&&... | Base | 1 |
Graph.recentCustomFonts[P]=Q,y=document.getElementsByTagName("head")[0],null!=G&&("link"==Q.elt.nodeName.toLowerCase()?(Q.elt.onload=G,Q.elt.onerror=G):G()),null!=y&&y.appendChild(Q.elt)):null!=G&&G()}else null!=G&&G()}else null!=G&&G();return k};Graph.getFontUrl=function(k,y){k=Graph.customFontElements[k.toLowerCase()... | Base | 1 |
C.translate(Math.floor((1-n.x)/z),Math.floor((1-n.y)/z));C.scale(1/z);var M=0,K=C.save;C.save=function(){M++;K.apply(this,arguments)};var O=C.restore;C.restore=function(){M--;O.apply(this,arguments)};var V=l.drawShape;l.drawShape=function(k){mxLog.debug("entering shape",k,M);V.apply(this,arguments);mxLog.debug("leaving... | Base | 1 |
c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,e){var... | Base | 1 |
ma.join(" ")}null!=ia?(P=ia,P.className+=" "+aa,Q=la,ka.className="geTempDlgCreateBtn"):(Q=P=null,ka.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function B(ia,aa){if(null!=Q){var la=function(sa){ja.isExternal?L(ja,function(ta){ma(ta,sa)},oa):ja.url?mxUtils.get(TEMPLATE_PATH+"/"+ja.url,mxUtils.bind(this,functio... | Base | 1 |
arguments);null!=O&&null!=O.src&&Graph.isPageLink(O.src)&&(O={originalSrc:O.src});return O};var p=e.setBackgroundImage;e.setBackgroundImage=function(K){null!=K&&null!=K.originalSrc&&(K=c.createImageForPageLink(K.originalSrc,c.currentPage,this));p.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind... | Base | 1 |
DrawioFile.prototype.patch=function(b,f,m,d){if(null!=b){var u=this.ui.editor.undoManager,v=u.history.slice(),E=u.indexOfNextAdd,F=this.ui.editor.graph;F.container.style.visibility="hidden";var L=this.changeListenerEnabled;this.changeListenerEnabled=m;var N=F.foldingEnabled,H=F.mathEnabled,R=F.cellRenderer.redraw;F.cel... | Base | 1 |
EditorUi.prototype.getWindows=function(){var c=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(c=c.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(c=c.concat([this.menus.tagsWindow,this.menus.findWindow,this.menus.findReplaceWindow,this.menus.commentsWi... | Base | 1 |
t(B)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(B){this.spinner.stop();t(B)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,e))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):thi... | 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 |
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 |
return P==M||0==G.length?H(D,M):Q==U?N(D):L(D,M!=mxConstants.DIRECTION_NORTH&&M!=mxConstants.DIRECTION_WEST)}return S.apply(this,arguments)};e.getSubtree=function(D){var M=[D];!u(D)&&!d(D)||E(D)||e.traverse(D,!0,function(K,O){var V=null!=O&&e.isTreeEdge(O);V&&0>mxUtils.indexOf(M,O)&&M.push(O);(null==O||V)&&0>mxUtils.in... | Base | 1 |
O.y||0<O.height)&&mxUtils.intersects(K,new mxRectangle(U.x,U.y+(O.y-O.height-1)*W+(0==O.y?U.height:0),U.width,1))&&(X="row-resize")),U=this.view.getState(this.model.getParent(U.cell))}null!=X&&L.setCursor(X)}}}),mouseUp:mxUtils.bind(this,function(K,U){m=h=n=t=null})})}this.cellRenderer.minSvgStrokeWidth=.1;this.cellRen... | Base | 1 |
(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 |
k?k.getElementsByTagName("parsererror"):null;null!=k&&0<k.length&&(G=y||mxResources.get("invalidChars"),y=k[0].getElementsByTagName("div"),0<y.length&&(G=mxUtils.getTextContent(y[0])));return null!=G?mxUtils.trim(G):G};Editor.addRetryToError=function(k,y){null!=k&&(k=null!=k.error?k.error:k,null==k.retry&&(k.retry=y))}... | Base | 1 |
return Editor.updateCRC(c,e,g,q)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,e,g,q,p){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,e,g,q,p)};Edito... | Base | 1 |
1024*t,B=Math.min(x+1024,g),I=Array(B-x),A=0;x<B;++A,++x)I[A]=c[x].charCodeAt(0);p[t]=new Uint8Array(I)}return new Blob(p,{type:e})};EditorUi.prototype.saveLocalFile=function(c,e,g,q,p,t,x,B){t=null!=t?t:!1;x=null!=x?x:"vsdx"!=p&&(!mxClient.IS_IOS||!navigator.standalone);p=this.getServiceCount(t);isLocalStorage&&p++;va... | 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 |
EditorUi.prototype.diffCell=function(b,f){function m(E){return null!=E&&"object"===typeof E&&"number"===typeof E.nodeType&&"string"===typeof E.nodeName&&"function"===typeof E.getAttribute}var d={};b.vertex!=f.vertex&&(d.vertex=f.vertex?1:0);b.edge!=f.edge&&(d.edge=f.edge?1:0);b.connectable!=f.connectable&&(d.connectabl... | Base | 1 |
function(U,T,W,X,Y,Z){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(U+Y,T),this.lineTo(U+W-Y,T),this.quadTo(U+W,T,U+W,T+Z),this.lineTo(U+W,T+X-Z),this.quadTo(U+W,T+X,U+W-Y,T+X),this.lineTo(U+Y,T+X),this.quadTo(U,T+X,U,T+X-Z),this.lineTo(U,T+Z),this.quadTo(U,T,U+Y,T))};k.... | Base | 1 |
(ja?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");O.querySelector("."+aa).src="/images/"+la+"-sel.svg";O.querySelector("."+oa).src="/images/"+fa+".svg";return!0}function t(ia,aa,la,ma){function oa(ta,La){null==ja?(ta=/^https?:\/\//.test(ta)&&!b.editor.isCorsEnabledForUrl(ta)?PROXY_URL+"?url="+encodeURIComponent(ta... | Base | 1 |
return P};Editor.getDiagramNodeXml=function(k){var y=mxUtils.getTextContent(k),G=null;0<y.length?G=Graph.decompress(y):null!=k.firstChild&&(G=mxUtils.getXml(k.firstChild));return G};Editor.extractGraphModelFromPdf=function(k){k=k.substring(k.indexOf(",")+1);k=window.atob&&!mxClient.IS_SF?atob(k):Base64.decode(k,!0);if(... | Base | 1 |
"keys",Da,"values",Ta,"cells",ca.getSelectionCells()))}finally{ca.getModel().endUpdate()}}function Q(pa,ua,va){var Ea=mxUtils.getOffset(k,!0),Da=mxUtils.getOffset(pa,!0);ua.style.position="absolute";ua.style.left=Da.x-Ea.x+"px";ua.style.top=Da.y-Ea.y+"px";ua.style.width=pa.offsetWidth+"px";ua.style.height=pa.offsetHeig... | Base | 1 |
M?(M=e.getOutgoingTreeEdges(D),null!=M&&0<M.length&&e.setSelectionCell(e.model.getTerminal(M[0],!1))):(K=e.getIncomingTreeEdges(D),null!=K&&0<K.length&&(O=R(e.model.getTerminal(K[0],!0),O,D),D=e.view.getState(D),null!=D&&(D=mxUtils.indexOf(O,D),0<=D&&(D+=M==mxConstants.DIRECTION_NORTH||M==mxConstants.DIRECTION_WEST?-1:... | Base | 1 |
function mxDualRuler(b,f){var m=new mxPoint(mxRuler.prototype.RULER_THICKNESS,mxRuler.prototype.RULER_THICKNESS);this.editorUiGetDiagContOffset=b.getDiagramContainerOffset;b.getDiagramContainerOffset=function(){return m};this.editorUiRefresh=b.refresh;this.ui=b;this.origGuideMove=mxGuide.prototype.move;this.origGuideDe... | Base | 1 |
function(c){var e=this.editor.graph.view.scale,g=this.editor.graph.view.translate,q=mxUtils.getOffset(this.diagramContainer);this.diagramContainer.scrollLeft=c.x+q.x+(g.x-c.tx)*e;this.diagramContainer.scrollTop=c.y+q.y+(g.y-c.ty)*e};EditorUi.prototype.setInlineFullscreen=function(c){Editor.inlineFullscreen!=c&&(this.di... | Base | 1 |
!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,e,g){var q=null==c||null==e;g=null!=g?g:24;var p=new Spinner({lines:12,length:g,w... | Base | 1 |
if(null!=y&&(null!=y&&"<"!=y.charAt(0)&&"%"!=y.charAt(0)&&(y=unescape(window.atob?atob(y):Base64.decode(cont,y))),null!=y&&"%"==y.charAt(0)&&(y=decodeURIComponent(y)),null!=y&&0<y.length)){var G=mxUtils.parseXml(y).documentElement;return"mxfile"==G.nodeName||"mxGraphModel"==G.nodeName}}catch(P){}return!1};Editor.protot... | 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 |
parentRow:Ta,isDeletable:!0,flipBkg:Ia}));btn=mxUtils.button("+",mxUtils.bind(Z,function(Sa){for(var Ha=Ta,Va=0;null!=Ha.nextSibling;)if(Ha.nextSibling.getAttribute("data-pName")==pa)Ha=Ha.nextSibling,Va++;else break;var Ua={type:va,parentRow:Ta,index:Va,isDeletable:!0,defVal:Ea,countProperty:Da};Va=Y(pa,"",Ua,0==Va%2,... | Base | 1 |
function(){return this.openLink("mailto:"+mxUtils.htmlEntities(I.ownerEmail))}));this.showError(e,x,A,g,S,null,null,t,n,null,null,null,q?g:null)}else null!=g&&g()};EditorUi.prototype.alert=function(c,e,g){c=new ErrorDialog(this,null,c,mxResources.get("ok"),e);this.showDialog(c.container,g||340,100,!0,!1);c.init()};Edit... | Base | 1 |
mxUtils.bind(this,function(){this.window.fit()}));this.window.addListener("hide",mxUtils.bind(this,function(){E.freehand.isDrawing()&&E.freehand.stopDrawing()}));b.installResizeHandler(this,!1)},TagsWindow=function(b,f,m,d,u){var v=b.editor.graph,E=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return thi... | 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 |
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 |
this.editor.addFontCss(c,this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(g){try{null!=g&&this.editor.addFontCss(c,g),e(c)}catch(q){e(c)}}))}catch(g){e(c)}}))};EditorUi.prototype.exportImage=function(c,e,g,q,p,t,x,B,I,A,S,l,n){I=null!=I?I:"png";if(this.spinner.spin(document.body,mxResou... | Base | 1 |
EditorUi.prototype.diffPage=function(b,f){var m=[],d=[],u={};this.updatePageRoot(b);this.updatePageRoot(f);f=this.createCellLookup(f.root);var v=this.diffCellRecursive(b.root,null,f,v,d),E;for(E in f)b=f[E],m.push(this.getJsonForCell(b.cell,b.prev));mxUtils.isEmptyObject(v)||(u[EditorUi.DIFF_UPDATE]=v);0<d.length&&(u[E... | Base | 1 |
mxUtils.bind(this,function(){function l(K){return null==K||null==K.boundingBox||!isNaN(K.boundingBox.x)&&!isNaN(K.boundingBox.y)&&!isNaN(K.boundingBox.width)&&!isNaN(K.boundingBox.height)}var n=u.getGraphBounds(),z=u.view.translate,C=u.view.scale;u.insertVertex(u.getDefaultParent(),null,"",n.x/C-z.x,n.y/C-z.y,n.width/C... | 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 |
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 |
"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var A=mxUtils.parseXml(I).getElementsByTagName("svg");if(0<A.length&&"error"!=A[0].getAttribute("aria-roledescription")){var S=parseFloat(A[0].getAttribute("width")),l=parseFloat(A[0].getAttribute("height"));if(isNaN(S)||isNaN(l))try{var n=A[0].getA... | Base | 1 |
!1,!1),d.pdfPageExport||mxEvent.addListener(P,"change",C);C=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&"draw.io"==d.getServiceName();var T=null,W=null;if(EditorUi.isElectronApp||C)W=d.addCheckbox(n,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram),z+=30;C&&(T=d.addCheckbox(n,mxResources.get(... | Base | 1 |
EditorUi.prototype.getWindows=function(){var c=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(c=c.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(c=c.concat([this.menus.tagsWindow,this.menus.findWindow,this.menus.findReplaceWindow,this.menus.commentsWi... | Base | 1 |
this.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(e){mxEvent.getSource(e)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var R=EditorUi.prototype.init;EditorUi.p... | Base | 1 |
function(c,e,g,q,p){this.openDatabase(mxUtils.bind(this,function(t){try{p=p||"objects";Array.isArray(p)||(p=[p],c=[c],e=[e]);var x=t.transaction(p,"readwrite");x.oncomplete=g;x.onerror=q;for(t=0;t<p.length;t++)x.objectStore(p[t]).put(null!=c&&null!=c[t]?{key:c[t],data:e[t]}:e[t])}catch(B){null!=q&&q(B)}}),q)};EditorUi.... | 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 |
function(c,e){var g=this.getCurrentFile();null!=g&&g.getRevisions?g.getRevisions(c,e):e({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototyp... | Base | 1 |
function(U,T,W,X,Y,Z){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(U+Y,T),this.lineTo(U+W-Y,T),this.quadTo(U+W,T,U+W,T+Z),this.lineTo(U+W,T+X-Z),this.quadTo(U+W,T+X,U+W-Y,T+X),this.lineTo(U+Y,T+X),this.quadTo(U,T+X,U,T+X-Z),this.lineTo(U,T+Z),this.quadTo(U,T,U+Y,T))};k.... | Base | 1 |
App.prototype.start=function(){try{var b=this;null!=this.bg&&null!=this.bg.parentNode&&this.bg.parentNode.removeChild(this.bg);this.restoreLibraries();this.spinner.stop();window.onerror=function(v,E,F,L,N){"ResizeObserver loop limit exceeded"!=v&&(EditorUi.logError("Uncaught: "+(null!=v?v:""),E,F,L,N,null,!0),b.handleE... | Base | 1 |
mxscript("https://apis.google.com/js/api.js?onload=DrawGapiClientCallback",null,null,null,mxClient.IS_SVG):"undefined"===typeof window.gapi&&(window.DriveClient=null)}"0"!=urlParams.math&&Editor.initMath();if("1"==urlParams.configure){var N=window.opener||window.parent,H=function(J){if(J.source==N)try{var c=JSON.parse(... | Base | 1 |
0;ja<ta.length;ja++)oa=ta[ja],0==fa==(null==la[oa.url])&&(Ga[oa.url]=!0,La.push(oa));la=Ga;fa++}0==La.length?za.innerText=mxResources.get("noResultsFor",[ia]):A(La,!0)}}function D(ia){if(Z!=ia||T!=ca)q(),Ba.scrollTop=0,ea.innerText="",za.innerText=mxResources.get("searchResults")+' "'+ia+'"',Ua=null,ha?C(ia):F&&(ia?(Qa... | Base | 1 |
function(t){return mxEvent.getSource(t)==g?!0:p.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,e){mxSettings.setUi(c);(e=this.doSetCurrentTheme(c)||e)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(c){return""==c||"dark"==c||"default"==c||"ken... | Base | 1 |
!1;v.connectionHandler.createEdgeState=function(g){g=v.createEdge(null,null,null,null,null,E);return new mxCellState(this.graph.view,g,this.graph.getCellStyle(g))};var F=v.getDefaultParent(),L=mxUtils.bind(this,function(g){var q=new mxCellOverlay(this.connectImage,"Add outgoing");q.cursor="hand";q.addListener(mxEvent.C... | Base | 1 |
function(){b.spinner.stop();if(null==b.linkPicker){var x=b.drive.createLinkPicker();b.linkPicker=x.setCallback(function(B){LinkDialog.filePicked(B)}).build()}b.linkPicker.setVisible(!0)}))});"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&F(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),func... | Base | 1 |
F=document.createElement("div");F.style.height="300px";F.style.width="300px";F.style.display="inline-flex";F.style.justifyContent="center";F.style.alignItems="center";F.style.position="absolute";var L=document.createElement("img");L.onload=function(){function A(){H.model.setStyle(c,e+u())}H=new Graph(N);H.autoExtend=!1... | Base | 1 |
window.location.hash=null!=e?e.getHash():""}))});b=decodeURIComponent(b.substring(1));StorageFile.getFileContent(this,b,mxUtils.bind(this,function(c){null!=c?(this.fileLoaded(new StorageFile(this,c,b)),null!=d&&d()):L({message:mxResources.get("fileNotFound")})}),L)}else this.handleError({message:mxResources.get("servic... | Base | 1 |
"120px",H.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",H.style.backgroundPosition="center 65%",H.style.backgroundRepeat="no-repeat",E=document.createElement("div"),E.style.position="absolute",E.style.width="420px",E.style.top="58%",E.style.textAlign="center",E.style.fontSize="18px",E.style.color="#a0c3f... | Base | 1 |
this.cellEditor.textarea.getElementsByTagName("font");y=Graph.getFontUrl(k,y);for(var P=0;P<G.length;P++)G[P].getAttribute("face")==k&&G[P].getAttribute("data-font-src")!=y&&G[P].setAttribute("data-font-src",y)}};var t=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return t.apply(this,ar... | Base | 1 |
c+";"))}}),mxUtils.bind(this,function(){var n=null;I.getModel().beginUpdate();try{n=I.insertVertex(I.getDefaultParent(),null,c,I.snap(e),I.snap(g),1,1,"text;"+(q?"html=1;":"")),I.updateCellSize(n),I.fireEvent(new mxEventObject("textInserted","cells",[n]))}finally{I.getModel().endUpdate()}I.setSelectionCell(n)}))}else{c... | Base | 1 |
function(){return this.openLink("mailto:"+mxUtils.htmlEntities(I.ownerEmail))}));this.showError(e,x,A,g,S,null,null,t,n,null,null,null,q?g:null)}else null!=g&&g()};EditorUi.prototype.alert=function(c,e,g){c=new ErrorDialog(this,null,c,mxResources.get("ok"),e);this.showDialog(c.container,g||340,100,!0,!1);c.init()};Edit... | Base | 1 |
EditorUi.prototype.chromelessWindowResize=function(){};var N=Menus.prototype.init;Menus.prototype.init=function(){N.apply(this,arguments);var J=this.editorUi;EditorUi.enablePlantUml&&!J.isOffline()&&J.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var g=new ParseDialog(J,mxResources.get(... | Base | 1 |
var CommentsWindow=function(b,f,m,d,u,v){function E(){for(var n=t.getElementsByTagName("div"),z=0,C=0;C<n.length;C++)"none"!=n[C].style.display&&n[C].parentNode==t&&z++;x.style.display=0==z?"block":"none"}function F(n,z,C,D){function M(){z.removeChild(V);z.removeChild(k);O.style.display="block";K.style.display="block"}... | Base | 1 |
function(c){var e=f.apply(this,arguments);if(null==e)try{var g=c.indexOf("<mxfile ");if(0<=g){var q=c.lastIndexOf("</mxfile>");q>g&&(e=c.substring(g,q+15).replace(/>/g,">").replace(/</g,"<").replace(/\\"/g,'"').replace(/\n/g,""))}else{var p=mxUtils.parseXml(c),t=this.editor.extractGraphModel(p.docum... | Base | 1 |
function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=!1;this.installMessageHandler(mxUtils.bind(this,function(e,g,q,p){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null... | Base | 1 |
(D.setAttribute("disabled","disabled"),z.setAttribute("disabled","disabled"));z.checked&&l.checked?n.getEditSelect().removeAttribute("disabled"):n.getEditSelect().setAttribute("disabled","disabled")});e=new CustomDialog(this,t,mxUtils.bind(this,function(){c(I.checked,A.checked,S.checked,l.checked,n.getLink(),D.checked)... | Base | 1 |
this.editor.graph.mathEnabled&&this.editor.addMathCss(M);var V=mxUtils.bind(this,function(k){t?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(k,O,this.thumbImageCache)):O(k)});n?this.embedFonts(M,V):(this.editor.addFontCss(M),V(M))}catch(k){this.handleError(k)}};EditorUi.prototype.addR... | Base | 1 |
"simple"==Editor.currentTheme&&this.addMenuItems(K,["zoomIn","zoomOut","-"],null,V);I.apply(this,arguments);e.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(K,["-","addToScratchpad"],null,V);e.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(K,["-","exitGroup","home"],null,V... | Base | 1 |
x);ImageDialog.filePicked=function(D){D.action==google.picker.Action.PICKED&&null!=D.docs[0].thumbnails&&(D=D.docs[0].thumbnails[D.docs[0].thumbnails.length-1],null!=D&&(J.value=D.url,x()));J.focus()};F.appendChild(R);F.appendChild(c);mxUtils.br(F);mxUtils.br(F);N?(R.setAttribute("checked","checked"),R.checked=!0):(H.s... | Base | 1 |
k.ownerSVGElement))}};var n=Graph.prototype.refresh;Graph.prototype.refresh=function(){n.apply(this,arguments);this.refreshBackgroundImage()};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.val... | Base | 1 |
c?c:"",extras:JSON.stringify(p),scale:x,border:B,w:l&&isFinite(l)?l:null,h:n&&isFinite(n)?n:null}};EditorUi.prototype.setMode=function(c,e){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));if(null!=c&&1<c.length){var e=c.indexOf("#");0<=e&&(c=c.s... | Base | 1 |
this.loadImage(Y.target.result,mxUtils.bind(this,function(da){this.resizeImage(da,Y.target.result,mxUtils.bind(this,function(qa,ka,Aa){Q(T,mxUtils.bind(this,function(){if(null!=qa&&qa.length<A){var xa=C&&this.isResampleImageSize(W.size,S)?Math.min(1,Math.min(q/ka,q/Aa)):1;return p(qa,W.type,e+T*k,g+T*k,Math.round(ka*xa... | Base | 1 |
function(y,G){if(null==G){var P=mxEvent.getSource(y);"a"==P.nodeName.toLowerCase()&&(G=P.getAttribute("href"))}null!=G&&e.isCustomLink(G)&&(mxEvent.isTouchEvent(y)||!mxEvent.isPopupTrigger(y))&&e.customLinkClicked(G)&&mxEvent.consume(y);null!=k&&k(y,G)};B.call(this,K,O,V)};v.apply(this,arguments);mxClient.IS_SVG&&this.... | Base | 1 |
document.createElement("canvas");C.width=S;C.height=l;var D=C.toDataURL();z!==D&&(e=z,B=S,I=l)}}}catch(M){}g(e,B,I)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,e,g){try{var q=new Image;q.onload=function(){q.width=0<q.width?q... | Base | 1 |
this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(K,O){0<this.editor.graph.getSelectionCount()?(K=this.editor.graph.getSelectionCell(),K=this.editor.graph.getModel().getStyle(K),this.styleInput.value=K||"",this.styleInput.style.visibility="visible"):this.styleInput.style.visibi... | Base | 1 |
za.className="gePropHeaderCell";var Ca=document.createElement("img");Ca.src=Sidebar.prototype.expandedImage;Ca.style.verticalAlign="middle";za.appendChild(Ca);mxUtils.write(za,mxResources.get("property"));ea.style.cursor="pointer";var Ba=function(){var pa=na.querySelectorAll(".gePropNonHeaderRow");if(Z.editorUi.propert... | Base | 1 |
function(k,y){for(var G=0;G<y.length;G++){var P=y[G],Q;for(Q in P)this.updateCustomLinkAction(k,P[Q],"cells"),this.updateCustomLinkAction(k,P[Q],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(k,y,G){if(null!=y&&null!=y[G]){for(var P=[],Q=0;Q<y[G].length;Q++)if("*"==y[G][Q])P.push(y[G][Q]);else{var U=... | Base | 1 |
mxStencilRegistry.getStencil(Z)}return D.apply(this,arguments)};var M=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,y,G,P,Q,U){"1"==mxUtils.getValue(y.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(y.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return M.apply(this,arguments)};Pri... | Base | 1 |
t.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return g.checked?"blank"===t.value?"_blank":p:null},getEditInput:function(){return g},getEditSelect:function(){return t}}};EditorUi.prototype.addLinkSection=function(c,e){function g(){var B=document.createElement("div");B.style.width="100%... | Base | 1 |
""),mxUtils.bind(this,function(e){window.clearTimeout(c);J&&(200<=e.getStatus()&&299>=e.getStatus()?null!=m&&m():d({message:mxResources.get("realtimeCollaboration")+(0!=e.getStatus()?": "+e.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"diff",N,R.length,"bytes","from",F,"to",L,"etag",this.file.... | Base | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.