code
stringlengths
31
2.05k
label_name
stringclasses
5 values
label
int64
0
4
" "+Z.getStatus()})},X,this.timeout,function(){U&&null!=K&&K({code:App.ERROR_TIMEOUT,retry:Y})},V)});Y()}catch(Z){null!=K&&K(Z)}};Editor.prototype.absoluteCssFonts=function(m){var B=null;if(null!=m){var K=m.split("url(");if(0<K.length){B=[K[0]];m=window.location.pathname;var R=null!=m?m.lastIndexOf("/"):-1;0<=R&&(m=m.s...
Base
1
c,I,l,x),D&&!z?I.y=n.y:z&&!D&&(I.x=n.x),n.y!=I.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),n.x!=I.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),I;S(!0,!0);return b.apply(this,arguments)};var e=mxGuide.prototype.setVisible;mxGuid...
Base
1
"120px",z.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",z.style.backgroundPosition="center 65%",z.style.backgroundRepeat="no-repeat",x=document.createElement("div"),x.style.position="absolute",x.style.width="420px",x.style.top="58%",x.style.textAlign="center",x.style.fontSize="18px",x.style.color="#a0c3f...
Base
1
S;var R=g(".odPreview"),U=g("#odFiles");b=function(Q,V){V=V||document;return V.querySelectorAll(Q)}(".odCatListTitle");for(S=0;S<b.length;S++)b[S].addEventListener("click",function(){G=m=null;if(!O)switch(L(this),this.id){case "odFiles":H();break;case "odRecent":H("recent");break;case "odShared":H("shared");break;case ...
Base
1
(m[B]=Graph.fontMapping[B]);return m};Editor.prototype.embedExtFonts=function(m){var B=this.graph.getCustomFonts();if(0<B.length){var K=[],R=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var U=mxUtils.bind(this,function(){0==R&&this.embedCssFonts(K.join(""),m)}),W=0;W<B.lengt...
Base
1
ha=document.createElement("img");ha.setAttribute("src",ka);ha.setAttribute("alt",pa);ha.style.maxWidth=Ka+"px";ha.style.maxHeight=oa+"px";K=ha;var Xa=ka.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");ra.appendChild(ha);ha.onerror=function(){this.src!=Xa?this.src=Xa:(this.src=Editor.errorImage,this.o...
Base
1
var CreateDialog=function(b,e,f,c,k,l,x,y,E,D,z,M,I,d,g,n,t){function u(q,C,J,G){function P(){mxEvent.addListener(O,"click",function(){var K=J;if(x){var R=H.value,U=R.lastIndexOf(".");if(0>e.lastIndexOf(".")&&0>U){K=null!=K?K:p.value;var W="";K==App.MODE_GOOGLE?W=b.drive.extension:K==App.MODE_GITHUB?W=b.gitHub.extensio...
Base
1
"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(d){var g=d.msgMarkers,n=this.remoteInvokeCallbacks[g.callbackId];if(null==n)throw Error("No callback for "+(null!=g?g.callbackId:"null"));d.error?n.error&&n.error(d.error.errResp):n.callback&&n.callback.apply(this,d.resp);this.remote...
Base
1
EditorUi.prototype.showLocalStorageDialog=function(d,g,n,t,u,v){var A=localStorage.getItem(g);d=new TextareaDialog(this,d,null!=A?JSON.stringify(JSON.parse(A),null,2):"",mxUtils.bind(this,function(H){if(null!=H)try{if(null!=v&&v(H),H==A)this.hideDialog();else{if(0<H.length){var L=JSON.parse(H);localStorage.setItem(g,JS...
Base
1
this.customFonts)))}finally{K.getModel().endUpdate()}}}));this.editorUi.showDialog(U.container,380,Editor.enableWebFonts?250:180,!0,!0);U.init()}),q,null,!0)})))}})();function DiagramPage(b,e){this.node=b;null!=e?this.node.setAttribute("id",e):null==this.getId()&&this.node.setAttribute("id",Editor.guid())}DiagramPage.p...
Base
1
z.code=null);D(z)})))};GitHubClient.prototype.checkExists=function(e,f,c){var k=e.split("/"),l=k[0],x=k[1],y=k[2];e=k.slice(3,k.length).join("/");this.getSha(l,x,e,y,mxUtils.bind(this,function(E){if(f){var D=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[e]),function(){D();c(!0,E)},function(){D();...
Base
1
mxConstants.GUIDE_STROKEWIDTH);O.dialect=mxConstants.DIALECT_SVG;O.pointerEvents=!1;O.init(M.graph.getView().getOverlayPane());return O};S=function(O,N){if(O&&null!=M.guidesArrHor)for(O=0;O<M.guidesArrHor.length;O++)M.guidesArrHor[O].node.style.visibility="hidden";if(N&&null!=M.guidesArrVer)for(O=0;O<M.guidesArrVer.len...
Base
1
161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||60==d.charCodeAt(0)&&63==d.charCodeAt(1)&&120==d.charCodeAt(2)&&109==d.charCodeAt(3)&&108==d.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(d){var g=b.apply(this,arguments);if(!...
Base
1
Z+"')";break;default:null==V?N=[{driveId:Q}]:N.push({name:Y,driveId:Q,folderId:V}),qa=(Q?"/drives/"+Q:"/me/drive")+(V?"/items/"+V:"/root")+"/children"}ea||(qa+=(0<qa.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.gra...
Base
1
function(){b.spinner.stop();if(null==b.linkPicker){var A=b.drive.createLinkPicker();b.linkPicker=A.setCallback(function(H){LinkDialog.filePicked(H)}).build()}b.linkPicker.setVisible(!0)}))});"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&y(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),func...
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
!0,D=window.setTimeout(mxUtils.bind(this,function(){E=!1;c({code:App.ERROR_TIMEOUT})}),this.ui.timeout),z=this.client.filesGetMetadata({path:"/"+e.path.substring(1),include_deleted:!1});z.then(mxUtils.bind(this,function(M){}));z["catch"](function(M){window.clearTimeout(D);E&&null!=M&&409==M.status&&(E=!1,c({message:mxR...
Base
1
38==G.keyCode?(I(P,mxConstants.DIRECTION_NORTH),mxEvent.consume(G)):39==G.keyCode?(I(P,mxConstants.DIRECTION_EAST),mxEvent.consume(G)):40==G.keyCode&&(I(P,mxConstants.DIRECTION_SOUTH),mxEvent.consume(G)))}}catch(N){d.handleError(N)}mxEvent.isConsumed(G)||F.apply(this,arguments)};var S=g.connectVertex;g.connectVertex=fu...
Base
1
this.cellEditor.textarea.getElementsByTagName("font");B=Graph.getFontUrl(m,B);for(var R=0;R<K.length;R++)K[R].getAttribute("face")==m&&K[R].getAttribute("data-font-src")!=B&&K[R].setAttribute("data-font-src",B)}};var v=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return v.apply(this,ar...
Base
1
y=document.createElement("div");y.style.height="300px";y.style.width="300px";y.style.display="inline-flex";y.style.justifyContent="center";y.style.alignItems="center";y.style.position="absolute";var E=document.createElement("img");E.onload=function(){function F(){z.model.setStyle(d,g+k())}z=new Graph(D);z.autoExtend=!1...
Base
1
d=G;this.confirmImageResize(function(T){J=T;N()},L)}else N()};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(d,g){g=null!=g?g:!1;var n=null!=...
Base
1
document.body.clientHeight,(1200>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||708>d)&&this.formatWindow.window.toggleMinimized()):this.formatWindow.window.setVisible(!1)}};var y=EditorUi.prototype.toggleFormatPanel;EditorUi.prototype.toggleFormatPanel=function(d){var g=this.form...
Base
1
var CommentsWindow=function(b,e,f,c,k,l){function x(){for(var q=v.getElementsByTagName("div"),C=0,J=0;J<q.length;J++)"none"!=q[J].style.display&&q[J].parentNode==v&&C++;A.style.display=0==C?"block":"none"}function y(q,C,J,G){function P(){C.removeChild(T);C.removeChild(m);N.style.display="block";O.style.display="block"}...
Base
1
EditorUi.prototype.chromelessWindowResize=function(){};var D=Menus.prototype.init;Menus.prototype.init=function(){D.apply(this,arguments);var I=this.editorUi;EditorUi.enablePlantUml&&!I.isOffline()&&I.actions.put("plantUml",new Action(mxResources.get("plantUml")+"...",function(){var n=new ParseDialog(I,mxResources.get(...
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",n,null,null,null,t)},null,null,null,t)},null,null,null,t)},null,null,null,t):mxscript(DRAW...
Base
1
P&&(G=this.getDeletableCells(this.addAllEdges(G)));for(var O=[],N=0;N<G.length;N++){var T=G[N];n.isEdge(T)&&l(T)&&(O.push(T),T=n.getTerminal(T,!1));if(c(T)){var m=[];g.traverse(T,!0,function(B,K){var R=null!=K&&g.isTreeEdge(K);R&&m.push(K);(null==K||R)&&m.push(B);return null==K||R});0<m.length&&(O=O.concat(m),T=g.getIn...
Base
1
[J],"{1} ago"));C.setAttribute("title",q.toLocaleDateString()+" "+q.toLocaleTimeString())}function D(q){var C=document.createElement("img");C.className="geCommentBusyImg";C.src=IMAGE_PATH+"/spin.gif";q.appendChild(C);q.busyImg=C}function z(q){q.style.border="1px solid red";q.removeChild(q.busyImg)}function M(q){q.style...
Base
1
l)for(x=0;x<l.length;x++)l[x].node.style.visibility=c?"visible":"hidden"};var f=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){f.call(this);var c=this.guidesArrVer,k=this.guidesArrHor;if(null!=c){for(var l=0;l<c.length;l++)c[l].destroy();this.guidesArrVer=null}if(null!=k){for(l=0;l<k.length;l++)k[l].des...
Base
1
if(null!=v.hoverIcons){var C=v.hoverIcons.update;v.hoverIcons.update=function(){A.freehand.isDrawing()||C.apply(this,arguments)}}if(null!=A.freehand){var J=A.freehand.createStyle;A.freehand.createStyle=function(V){return J.apply(this,arguments)+"sketch=0;"}}v.editor.addListener("statusChanged",mxUtils.bind(this,functio...
Base
1
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,A,null,1<H,L,t,v,u);H=this.isServices(H)?4<H?390:280:160;this.showDialog(d.container,420,H,!0,!0);d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){re...
Base
1
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
function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var d=!1;this.installMessageHandler(mxUtils.bind(this,function(g,n,t,u){d||(d=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null...
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
f=mxUtils.button(f,c);f.insertBefore(y,f.firstChild);f.style.marginTop="6px";f.className="geBigButton";f.style.fontSize="18px";f.style.padding="14px";k.appendChild(l);k.appendChild(b);k.appendChild(f);this.container=k},FontDialog=function(b,e,f,c,k){function l(A){this.style.border="";13==A.keyCode&&v.click()}var x=docu...
Base
1
f.style.verticalAlign="middle";f.className="geBtn";v.appendChild(f);b.isOffline()&&!mxClient.IS_CHROMEAPP&&(f.style.display="none");f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});f.style.verticalAlign="middle";f.className="geBtn";b.editor.cancelFirst&&v.appendChild(f);LinkDialog.selectedDocs=nul...
Base
1
this.graph.currentStyle);var R=this.graph.getBackgroundImageObject(this.graph.backgroundImage,B);null!=R&&K.setAttribute("backgroundImage",JSON.stringify(R));K.setAttribute("math",this.graph.mathEnabled?"1":"0");K.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&0<this.graph.extFonts.l...
Base
1
function(d,g,n,t,u,v,A,H){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(d,g,n,t,u,v,A,H)};EditorUi.prototype.loadFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(d)};EditorUi.prototype.createSvgDataUri=function(d){EditorUi.logEvent("SHOU...
Base
1
R.length&&(U=R[Math.max(0,Math.min(R.length-1,urlParams.page||0))])),null!=U&&(m=Editor.parseDiagramNode(U,K)));null==m||"mxGraphModel"==m.nodeName||B&&"mxfile"==m.nodeName||(m=null);return m};Editor.parseDiagramNode=function(m,B){var K=mxUtils.trim(mxUtils.getTextContent(m)),R=null;0<K.length?(m=Graph.decompress(K,nul...
Base
1
arguments);D.style.backgroundColor=""};z.dblClick=function(){};var R=z.getSelectionModel().changeSelection;z.getSelectionModel().changeSelection=function(){R.call(this,[d],[d])}};E.onerror=function(){E.onload=null;E.src=Editor.errorImage};E.setAttribute("src",e);E.style.maxWidth="300px";E.style.maxHeight="300px";y.appe...
Base
1
this.loadImage(Y.target.result,mxUtils.bind(this,function(fa){this.resizeImage(fa,Y.target.result,mxUtils.bind(this,function(qa,ia,ya){U(Q,mxUtils.bind(this,function(){if(null!=qa&&qa.length<F){var xa=J&&this.isResampleImageSize(V.size,S)?Math.min(1,Math.min(t/ia,t/ya)):1;return u(qa,V.type,g+Q*m,n+Q*m,Math.round(ia*xa...
Base
1
(ka?"geTempDlgRadioBtnLarge":"geTempDlgRadioBtnSmall");N.querySelector("."+aa).src="/images/"+la+"-sel.svg";N.querySelector("."+pa).src="/images/"+ha+".svg";return!0}function v(ja,aa,la,na){function pa(wa,Ma){null==ka?(wa=/^https?:\/\//.test(wa)&&!b.editor.isCorsEnabledForUrl(wa)?PROXY_URL+"?url="+encodeURIComponent(wa...
Base
1
function(R){mxEvent.isConsumed(R)||((mxEvent.isControlDown(R)||mxClient.IS_MAC&&mxEvent.isMetaDown(R))&&13==R.keyCode?(K.click(),mxEvent.consume(R)):27==R.keyCode&&(B.click(),mxEvent.consume(R)))}));K.focus();K.className="geCommentEditBtn gePrimaryBtn";m.appendChild(K);C.insertBefore(m,O);N.style.display="none";O.style...
Base
1
"")+"/log?severity="+v+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(d)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(n)+(null!=t?":colno:"+encodeURIComponent(t):"")+(""!=u.stack?"&stack="+encodeURIComponent(u.stack):""))}catch(H){}try{A||null==window.c...
Base
1
p);this.handleError(d,g,n,t,u)}),S,mxResources.get("changeUser"),mxUtils.bind(this,function(){function C(){O.innerText="";for(var N=0;N<J.length;N++){var T=document.createElement("option");mxUtils.write(T,J[N].displayName);T.value=N;O.appendChild(T);T=document.createElement("option");T.innerHTML="&nbsp;&nbsp;&nbsp;";mx...
Base
1
I.vertex=!0;M.addCell(I);M.dblClick=function(J,G){if(null!=G&&G!=I)M.setSelectionCell(G);else{G=mxUtils.convertPoint(M.container,mxEvent.getClientX(J),mxEvent.getClientY(J));mxEvent.consume(J);J=M.view.scale;var P=M.view.translate;M.setSelectionCell(l((G.x-3*J)/J-P.x,(G.y-3*J)/J-P.y))}};k=new mxKeyHandler(M);k.bindKey(...
Base
1
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,A,null,1<H,L,t,v,u);H=this.isServices(H)?4<H?390:280:160;this.showDialog(d.container,420,H,!0,!0);d.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){re...
Base
1
try{this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified()),0==this.ui.pages.length&&this.ui.pages.push(this.ui.createPage()),0>mxUtils.indexOf(this.ui.pages,this.ui.currentPage)&&this.ui.selectPage(this.ui.pages[0],!0)}finally{y.container.style.visibility="";y.model.endUpdate();y.cellRenderer.redraw...
Base
1
ma=la;ca=na;da=ka;ea=aa;za=pa;Ba=ua;Ca=ha;ea.style.backgroundColor=y;ea.style.border=E}function S(aa,la,na,pa,ha,ka,ua,wa,Ma,Ia,Aa){function Ja(Oa,Ya){null==Ha?(La=Oa,La=/^https?:\/\//.test(La)&&!b.editor.isCorsEnabledForUrl(La)?PROXY_URL+"?url="+encodeURIComponent(La):TEMPLATE_PATH+"/"+La,mxUtils.get(La,mxUtils.bind(t...
Base
1
function(p,q){var C=c.getCurrentFile();null==C||C.getMode()!=App.MODE_GOOGLE&&C.getMode()!=App.MODE_GITHUB||!/(\.png)$/i.test(C.getTitle())||this.addMenuItems(p,["liveImage","-"],q);this.addMenuItems(p,["embedImage","embedSvg","-","embedHtml"],q);navigator.standalone||c.isOffline()||this.addMenuItems(p,["embedIframe"],...
Base
1
return S};EditorUi.prototype.getXmlFileData=function(d,g,n,t){d=null!=d?d:!0;g=null!=g?g:!1;n=null!=n?n:!Editor.defaultCompressed;var u=this.editor.getGraphXml(d,t);if(d&&null!=this.fileNode&&null!=this.currentPage)if(d=function(L){var F=L.getElementsByTagName("mxGraphModel");F=0<F.length?F[0]:null;null==F&&n?(F=mxUtil...
Base
1
d?d:"",extras:JSON.stringify(u),scale:A,border:H,w:p&&isFinite(p)?p:null,h:q&&isFinite(q)?q:null}};EditorUi.prototype.setMode=function(d,g){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!=d&&1<d.length){var g=d.indexOf("#");0<=g&&(d=d.s...
Base
1
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
c.appendChild(D);mxUtils.br(c);this.init=function(){D.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?D.select():document.execCommand("selectAll",!1,null)};mxUtils.write(c,mxResources.get("top")+":");var z=document.createElement("input");z.setAttribute("type","text");z.setAttribute("size","4");z.style....
Base
1
(t<<5)-t+this.hashValue(d.childNodes[u],g,n)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);g=0;null!=n&&(n.byteCount+=d.length);for(u=0;u<d.length;u++)g=(g<<5)-g+d.charCodeAt(u)<<0;t^=g}return t};EditorUi.prototype.descriptorChanged=function(){};EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototy...
Base
1
da));U--;0==U&&B(m)})):Y.setAttribute(V,ca)}else null!=Z&&Y.setAttribute(V,Z)}}catch(da){}})(Q[X])});K("image","xlink:href");K("img","src");0==U&&B(m)};Editor.base64Encode=function(m){for(var B="",K=0,R=m.length,U,W,Q;K<R;){U=m.charCodeAt(K++)&255;if(K==R){B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456...
Base
1
EditorUi.prototype.importZipFile=function(d,g,n){var t=this,u=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(d).then(function(v){if(mxUtils.isEmptyObject(v.files))n();else{var A=0,H,L=!1;v.forEach(function(F,S){F=S.name.toLowerCase();"diagram/diagram.xml"==F?(L=!0,S.as...
Base
1
ColorDialog.resetRecentColors=function(){E.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=function(m,B){var K=null;null!=m.editor.graph.getModel().getParent(B)?K=B.getId():null!=m.currentPage&&...
Base
1
Aa?ka.getName():"pagenumber"==Aa?ha+1:"pagecount"==Aa?null!=m.pages?m.pages.length:1:Ia.apply(this,arguments)};document.body.appendChild(ja.container);m.updatePageRoot(ka);ja.model.setRoot(ka.root)}na=Fa(ja,na,ha!=la,ka.getId());ja!=U&&ja.container.parentNode.removeChild(ja.container)}}else na=Fa(U);null==na?m.handleEr...
Base
1
b.container.style.cursor=C?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){A(!0)};this.isDrawing=function(){return g};var H=mxUtils.bind(this,function(C){if(c){var J=y.length,G=n&&0<x.length&&null!=y&&2>y.length;G||x.push.apply(x,y);y=[];x.push(null);k.push(c);c=null;...
Base
1
null,null,null,!0,null,null,u,n,t);this.showDialog(d.container,620,460,!0,!1);d.init()};EditorUi.prototype.showBackgroundImageDialog=function(d,g,n,t){d=null!=d?d:mxUtils.bind(this,function(u,v,A,H){v||(u=new ChangePageSetup(this,t?A:null,u),u.ignoreColor=!t,null!=H&&t&&(u.shadowVisible=H),this.editor.graph.model.execu...
Base
1
urlParams.thumb||null!=L.mimeType&&"application/vnd.jgraph.mxfile"!=L.mimeType.substring(0,29)||!this.ui.getThumbnail(this.thumbnailWidth,mxUtils.bind(this,function(S){try{var p=null;try{null!=S&&(p=S.toDataURL("image/png")),null!=p&&(p=p.length>this.maxThumbnailSize?null:p.substring(p.indexOf(",")+1).replace(/\+/g,"-"...
Base
1
function(D){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.ed...
Base
1
mxEvent.consume(W)}));mxEvent.addListener(this.chromelessToolbar,"mouseleave",mxUtils.bind(this,function(W){mxEvent.isTouchEvent(W)||F(30)}));var Y=a.getTolerance();a.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(W,J){this.startX=J.getGraphX();this.startY=J.getGraphY();this.scrollLeft=...
Base
1
G){return new mxXmlRequest(EXPORT_URL,"format="+n+"&base64="+(G||"0")+(null!=J?"&filename="+encodeURIComponent(J):"")+"&extras="+encodeURIComponent(JSON.stringify(C))+(0<A?"&dpi="+A:"")+"&bg="+(null!=t?t:"none")+"&w="+p+"&h="+q+"&border="+v+"&xml="+encodeURIComponent(F))})}else"png"==n?d.exportImage(u,null==t||"none"==...
Base
1
f?z=new mxHierarchicalLayout(l,mxConstants.DIRECTION_WEST):"circle"==f?z=new mxCircleLayout(l):(z=new mxFastOrganicLayout(l,!1),z.forceConstant=80);if(null!=z){var M=function(n,t){l.getModel().beginUpdate();try{null!=n&&n(),z.execute(l.getDefaultParent(),D)}catch(u){throw u;}finally{n=new mxMorphing(l),n.addListener(mx...
Base
1
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
function(){return"simple"!=Editor.currentTheme};this.menus.isShowArrangeItems=this.menus.isShowStyleItems;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}d.actions.get("print").funct=function(){d.showDialog((new PrintDialog(d)).container,360,null!=d.pages&&1<d.pages.length?470:390,!0,!0)};this.defaultFilenam...
Base
1
n=document.createElement("div");n.style.whiteSpace="nowrap";n.style.height="30px";C.appendChild(n);q=mxUtils.button(mxResources.get("Templates",null,"Templates"),function(){ta.style.display="";qa.style.display="";fa.style.left="160px";X(0);fa.scrollTop=0;fa.innerText="";O=0;W!=Ga&&(Ga=W,sa=Q,Da=V,ta.innerText="",p(),W=...
Base
1
this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,W,Q,V,X),this.lastX=V,this.lastY=X)};m.prototype.curveTo=function(W,Q,V,X,Y,Z){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,W,Q,V,X,Y,Z),this.lastX=Y,this.lastY=Z)};m.prototype.arcTo=function(W,Q,V,X,...
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
var CreateDialog=function(b,e,f,c,k,l,x,y,E,D,z,M,I,d,g,n,t){function u(q,C,J,G){function P(){mxEvent.addListener(O,"click",function(){var K=J;if(x){var R=H.value,U=R.lastIndexOf(".");if(0>e.lastIndexOf(".")&&0>U){K=null!=K?K:p.value;var W="";K==App.MODE_GOOGLE?W=b.drive.extension:K==App.MODE_GITHUB?W=b.gitHub.extensio...
Base
1
u,v,A){I.apply(this,arguments);M()};l.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);M()};l.connectionHandler.addListener(mxEvent.CONNECT,function(){M()})}var d=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=k.parentNode&&(l.destroy(...
Base
1
null!=d.getMode())try{this.addRecent({id:d.getHash(),title:d.getTitle(),mode:d.getMode()})}catch(H){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(H){}}catch(H){this.fileLoadedError=H;if(null!=d)try{d.close()}catch(L){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logE...
Base
1
function(){return this.openLink("mailto:"+mxUtils.htmlEntities(L.ownerEmail))}));this.showError(g,A,F,n,S,null,null,v,q,null,null,null,t?n:null)}else null!=n&&n()};EditorUi.prototype.alert=function(d,g,n){d=new ErrorDialog(this,null,d,mxResources.get("ok"),g);this.showDialog(d.container,n||340,100,!0,!1);d.init()};Edit...
Base
1
g)};EditorUi.prototype.embedExtFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,g,n,t,u,v,A,H,L,F,S,p,q,C,J,G){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,g,n,t,u...
Base
1
"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 g=Graph.prototype.init;Graph.prototype.ini...
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 g=Graph.prototype.init;Graph.prototype.ini...
Base
1
v.defaultLibraryName=mxResources.get("untitledLibrary");var H=document.createElement("div");H.className="geMenubarContainer";var L=null,F=new Menubar(v,H);v.statusContainer=v.createStatusContainer();v.statusContainer.style.position="relative";v.statusContainer.style.maxWidth="";v.statusContainer.style.color="gray";v.st...
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
function(m){"data:action/json,"==m.substring(0,17)&&(m=JSON.parse(m.substring(17)),null!=m.actions&&this.executeCustomActions(m.actions))};Graph.prototype.executeCustomActions=function(m,B){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThr...
Base
1
v=[];u.onsuccess=function(A){null==A.target.result?d(v):(v.push(A.target.result.value),A.target.result.continue())};u.onerror=g}catch(A){null!=g&&g(A)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,n){this.openDatabase(mxUtils.bind(this,function(t){try{n=n||"objects";var u=t.transaction([n],"readonly").obje...
Base
1
null!=d)f||b.hideDialog(),d(za,Ca,P.value);else if(c)f||b.hideDialog(),c(ma,P.value,Ba,ca);else{var aa=P.value;null!=aa&&0<aa.length&&b.pickFolder(b.mode,function(la){b.createFile(aa,ma,null!=ca&&0<ca.length?ca:null,null,function(){b.hideDialog()},null,la,null,null!=da&&0<da.length?da:null)},b.mode!=App.MODE_GOOGLE||nu...
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
var BtnDialog=function(b,e,f,c){var k=document.createElement("div");k.style.textAlign="center";var l=document.createElement("p");l.style.fontSize="16pt";l.style.padding="0px";l.style.margin="0px";l.style.color="gray";mxUtils.write(l,mxResources.get("done"));var x="Unknown",y=document.createElement("img");y.setAttribute...
Base
1
Toolbar.prototype.selectedBackground="rgb(242, 242, 242)"),Editor.prototype.initialTopSpacing=3,EditorUi.prototype.menubarHeight=41,EditorUi.prototype.toolbarHeight=38);"sketch"==Editor.currentTheme&&(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.pro...
Base
1
function(D){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.ed...
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.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
d?d:"",extras:JSON.stringify(u),scale:A,border:H,w:p&&isFinite(p)?p:null,h:q&&isFinite(q)?q:null}};EditorUi.prototype.setMode=function(d,g){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!=d&&1<d.length){var g=d.indexOf("#");0<=g&&(d=d.s...
Base
1
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
this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var C=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(G){C.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=G?"":"none")};var J=mxVertexHandler.prototype.destroy;mxVertexHandle...
Base
1
function(D){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.ed...
Base
1
function(d){f(I.result,M)});k?I.readAsDataURL(M.fileBlob):I.readAsText(M.fileBlob)}catch(d){c(d)}}}));z["catch"](mxUtils.bind(this,function(M){window.clearTimeout(D);E&&(E=!1,null==M||500!=M.status&&400!=M.status&&401!=M.status?c({message:mxResources.get("error")+" "+M.status}):(this.client.setAccessToken(null),this.se...
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
function(D){return this.isTreeEdge(D)}))};Graph.prototype.getIncomingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,k){return this.getTreeEdges(c,k,!1,!0,!1)};var e=EditorUi.prototype.init;EditorUi.prototype.init=function(){e.apply(this,arguments);this.ed...
Base
1
function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,v,A,null,1<u,L,d,n,t);v=this.isServices(u)?u>L?390:280:160;this.showDialog(g.container,420,v,!0,!0);g.init()};EditorUi.prototype.openInNewWindow=function(d,g,n){var t=window.open("about:blank");null==t||null==t.document?mxUtils.popu...
Base
1
return B};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var m=this.themes["default-style2"];this.defaultStylesheet=(new mxCodec(m.ownerDocument)).decode(m)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var H=Graph.prototype.getSvg;Graph.pr...
Base
1
this.loadImage(Y.target.result,mxUtils.bind(this,function(fa){this.resizeImage(fa,Y.target.result,mxUtils.bind(this,function(qa,ia,ya){U(Q,mxUtils.bind(this,function(){if(null!=qa&&qa.length<F){var xa=J&&this.isResampleImageSize(V.size,S)?Math.min(1,Math.min(t/ia,t/ya)):1;return u(qa,V.type,g+Q*m,n+Q*m,Math.round(ia*xa...
Base
1
mxUtils.setOpacity(T,100),N.style.visibility="",m.stop(),P())}))}else P();F.appendChild(O);++S==M&&(mxUtils.br(F),S=0)}function v(q){var C=H.value;if(null==q||null!=C&&0<C.length)t&&b.hideDialog(),f(C,q,H)}z="1"==urlParams.noDevice?!1:z;x=null!=x?x:!0;y=null!=y?y:!0;M=null!=M?M:4;t=null!=t?t:!0;l=document.createElement...
Base
1
function(K,U,L){return this.graph.isCellSelected(K)?!1:da.apply(this,arguments)};var ja=this.updateMouseEvent;this.updateMouseEvent=function(K){K=ja.apply(this,arguments);null!=K.state&&this.isCellLocked(this.getLayerForCell(K.getCell()))&&(K.state=null);return K};var ia=this.isCellSelectable;this.isCellSelectable=func...
Base
1