code
stringlengths
31
2.05k
label_name
stringclasses
5 values
label
int64
0
4
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
EditorUi.prototype.getPngFileProperties=function(c){var e=1,g=0;if(null!=c){if(c.hasAttribute("scale")){var q=parseFloat(c.getAttribute("scale"));!isNaN(q)&&0<q&&(e=q)}c.hasAttribute("border")&&(q=parseInt(c.getAttribute("border")),!isNaN(q)&&0<q&&(g=q))}return{scale:e,border:g}};EditorUi.prototype.getEmbeddedPng=funct...
Base
1
null!=this.currentState&&K.getState()==this.currentState&&2E3<F||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&R.apply(this,arguments)};var S=this.isToggleEvent;this.isToggleEvent=function(K){return S.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(K)}...
Base
1
[1])),e.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,e.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=g)for(p=0;p<g.length;p++)e.model.execute(new ChangeP...
Base
1
k);mxEvent.addListener(this.container,"mousemove",k);mxEvent.addListener(this.container,"mouseleave",function(Q){y=null});this.isMouseInsertPoint=function(){return null!=y};var G=this.getInsertPoint;this.getInsertPoint=function(){return null!=y?this.getPointForEvent(y):G.apply(this,arguments)};var P=this.layoutManager....
Base
1
function(g,q,p){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(p.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(t){q.fireEvent(new mxEventObject("pointerdown","event",t,"state",g))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(p.node,"touchst...
Base
1
p,t,x){J.apply(this,arguments);R()};v.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);R()};v.connectionHandler.addListener(mxEvent.CONNECT,function(){R()})}var c=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){null!=u.parentNode&&(v.destroy(...
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
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
"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
k[1].geometry.width)/2:(Q.x+Q.width)/T-U.x+-y.x+10,k[1].geometry.y-=k[1].geometry.height+y.y+40):(k[1].geometry.x=V==mxConstants.DIRECTION_WEST?k[1].geometry.x-(k[1].geometry.width+y.x+40):k[1].geometry.x+(k[1].geometry.width-y.x+40),k[1].geometry.y=null==Q?D.geometry.y+(D.geometry.height-k[1].geometry.height)/2:(Q.y+Q...
Base
1
[J]);return J};var G=new mxRubberband(this);this.getRubberband=function(){return G};var D=(new Date).getTime(),F=0,N=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove=function(){var K=this.currentState;N.apply(this,arguments);K!=this.currentState?(D=(new Date).getTime(),F=0):F=(new Date).getTime()-D};va...
Base
1
p=mxUtils.getXml(g.encodeCells(q));mxUtils.setTextContent(c,encodeURIComponent(p));e?(g.removeCells(q,!1),g.lastPasteXml=null):(g.lastPasteXml=p,g.pasteCounter=0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeCipboard){var e=this.editor.grap...
Base
1
mxUtils.bind(this,function(){this.hideDialog()}),mxResources.get("saveAs"),mxResources.get("download"),!1,!1,x,null,1<B,I,q,t,p);B=this.isServices(B)?4<B?390:280:160;this.showDialog(c.container,420,B,!0,!0);c.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){re...
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
e.appendChild(this.sidebar.createVertexTemplateFromCells(p,q.w,q.h,q.title||"",!0,null,!0)))}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};EditorUi.prototype.footerHeight=0;"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.i...
Base
1
db=cb[bb].url;Graph.isCssFontUrl(db)?Za.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(db)+'" charset="UTF-8" type="text/css">'):(Za.writeln('<style type="text/css">'),Za.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(eb)+'";\nsrc: url("'+mxUtils.htmlEntities(db)+'");\n}'),Za.writeln("</style...
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
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
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
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
za,this.stylesheet=ea,this.refresh());return Ba};var I=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(k){I.apply(this,arguments);null!=k.secondLabel&&(k.secondLabel.destroy(),k.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(k){return[k.shape,k.text,k.secondLabel,k.con...
Base
1
EditorUi.prototype.updateDiagram=function(c){function e(V){var k=new mxCellOverlay(V.image||p.warningImage,V.tooltip,V.align,V.valign,V.offset);k.addListener(mxEvent.CLICK,function(y,G){q.alert(V.tooltip)});return k}var g=null,q=this;if(null!=c&&0<c.length&&(g=mxUtils.parseXml(c),c=null!=g?g.documentElement:null,null!=...
Base
1
mxEvent.getClientX(K),mxEvent.getClientY(K)),G.start(K.x,K.y)):null!=qa?this.addSelectionCells(qa):1<this.getSelectionCount()&&this.isCellSelected(L)&&this.removeSelectionCell(L);qa=null;U.consume()}}));this.connectionHandler.selectCells=function(K,U){this.graph.setSelectionCell(U||K)};this.connectionHandler.constraint...
Base
1
arguments);null!=this.tabContainer&&(this.tabContainer.style.right="62px",this.diagramContainer.style.bottom=this.tabContainerHeight+"px")};var v=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){v.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||...
Base
1
H.createVertexHandler=function(){var Q=S.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=m)try{if("inset"==m.substring(0,5)){var l=c.geometry,n=L.width,z=L.height,C=(300-n)/2,D=(300-z)/2,M=m.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),K=parseFloat(M[0]),O=parseFloat(M[1]),V=parseFloat(M[2]),k=parseFloat(M[3]);isFi...
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
"pHYs","dpi",q));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,e,g,q,p){var t="jpeg"==g?"jpg":g;q=this.getBaseFilename(q)+(null!=e?".drawio":"")+"."+t;c=this.createImageDataUri(c,e,g,p);this.saveData(q,t,c.substring(c.lastIndexOf(",")+1),"image/"+g,!0)};EditorUi....
Base
1
function(P){mxEvent.isConsumed(P)||((mxEvent.isControlDown(P)||mxClient.IS_MAC&&mxEvent.isMetaDown(P))&&13==P.keyCode?(G.click(),mxEvent.consume(P)):27==P.keyCode&&(y.click(),mxEvent.consume(P)))}));G.focus();G.className="geCommentEditBtn gePrimaryBtn";k.appendChild(G);z.insertBefore(k,K);O.style.display="none";K.style...
Base
1
0>Y&&(Y=Q.strokeWidth/2);k.setStrokeAlpha(k.state.fillAlpha);k.setStrokeColor(Q.fill||"");k.setStrokeWidth(Y);k.setDashed(!1);this._drawToContext(G,P,Q);k.setDashed(X);k.setStrokeWidth(T);k.setStrokeColor(U);k.setStrokeAlpha(W)};y._drawToContext=function(G,P,Q){G.begin();for(var U=0;U<P.ops.length;U++){var T=P.ops[U],W...
Base
1
46;EditorUi.prototype.footerHeight=0;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.styleElt=document.createElement("style");Editor.styleElt.type="text/css";Editor.styleElt.innerHTML=Editor.createMinimalCss();document.getElementsByTagName("head")[0].appendChild(Editor.styleElt);Editor.pro...
Base
1
0;U<T.length;U++)T[U].parentNode.removeChild(T[U]);R(k);k.style.opacity="0.5"}else{T=O(n).replies;for(U=0;U<T.length;U++)t.removeChild(T[U]);for(U=0;U<z.length;U++)if(z[U]==n){z.splice(U,1);break}x.style.display=0==t.getElementsByTagName("div").length?"block":"none"}},function(U){H(k);b.handleError(U,null,null,null,mxU...
Base
1
null!=this.currentState&&K.getState()==this.currentState&&2E3<F||(null==this.currentState||"0"!=mxUtils.getValue(this.currentState.style,"outlineConnect","1"))&&R.apply(this,arguments)};var S=this.isToggleEvent;this.isToggleEvent=function(K){return S.apply(this,arguments)||!mxClient.IS_CHROMEOS&&mxEvent.isShiftDown(K)}...
Base
1
X+O.x)*W,((J.y+ha)*L+O.y)*W,X*W,L*W));K=U.concat(K)}return K};mxDragSource.prototype.dragElementZIndex=mxPopupMenu.prototype.zIndex;mxGuide.prototype.getGuideColor=function(K,U){return null==K.cell?"#ffa500":mxConstants.GUIDE_COLOR};this.graphHandler.createPreviewShape=function(K){this.previewColor="#000000"==this.grap...
Base
1
mxUtils.bind(this,function(U){window.clearTimeout(P);G&&y(Editor.createSvgDataUri(U.getText()))}),function(){window.clearTimeout(P);G&&y(Editor.svgBrokenImage.src)});else{var Q=new Image;this.crossOriginImages&&(Q.crossOrigin="anonymous");Q.onload=function(){window.clearTimeout(P);if(G)try{var U=document.createElement(...
Base
1
"/txt/":"png"==e?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(B){r="";for(i=0;i<B.length;i+=3)r=i+2==B.length?r+p(B.charCodeAt(i),B.charCodeAt(i+1),0):i+1==B.length?r+p(B.charCodeAt(i),0,0):r+p(B.charCodeAt(i),B.charCodeAt(i+1),B.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),!0);"txt"!=e&&(...
Base
1
q;for(q in urlParams)0>mxUtils.indexOf(g,q)&&(c=0==e?c+"?":c+"&",null!=urlParams[q]&&(c+=q+"="+urlParams[q],e++))}return c};EditorUi.prototype.showLinkDialog=function(c,e,g,q,p){c=new LinkDialog(this,c,e,g,!0,q,p);this.showDialog(c.container,560,130,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var e=...
Base
1
p?4E3:3E4);A=!0}return A};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=funct...
Base
1
this.timeout),B=mxUtils.bind(this,function(){window.clearTimeout(x);t&&q.apply(this,arguments)}),I=mxUtils.bind(this,function(){window.clearTimeout(x);t&&p.apply(this,arguments)});g=g||{};g.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:B,error:I});c=JSON.stringify({event:"remote...
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
function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,e,g){return this.editor.graph.openLink(c,e,g)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,e){e(loc...
Base
1
this.diagramContainer.scrollLeft+=c.x-e.x;this.diagramContainer.scrollTop+=c.x-e.x};EditorUi.prototype.setDarkMode=function(c){this.doSetDarkMode(c,mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("darkModeChanged"))}),mxUtils.bind(this,function(e){null!=window.console&&console.error(e);this.editor.setStat...
Base
1
else if("svg"==g)c.hideDialog(),c.saveData(e,"svg",mxUtils.getXml(I.getSvg(q,p,t)),"image/svg+xml");else{var A=c.getFileData(!0,null,null,null,null,!0),S=I.getGraphBounds(),l=Math.floor(S.width*p/I.view.scale),n=Math.floor(S.height*p/I.view.scale);if(A.length<=MAX_REQUEST_SIZE&&l*n<MAX_AREA)if(c.hideDialog(),"png"!=g&&...
Base
1
k+'";\nsrc: url("'+y+'");\n}'),k=document.createElement("style"),mxUtils.write(k,G));return k};Graph.addFont=function(k,y,G){if(null!=k&&0<k.length&&null!=y&&0<y.length){var P=k.toLowerCase();if("helvetica"!=P&&"arial"!=k&&"sans-serif"!=P){var Q=Graph.customFontElements[P];null!=Q&&Q.url!=y&&(Q.elt.parentNode.removeChi...
Base
1
"transform 0.3s ease-in-out");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform-origin","top left");window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",null);mxUtils.setPrefi...
Base
1
EditorUi.prototype.isResampleImageSize=function(c,e){e=null!=e?e:this.resampleThreshold;return c>e};EditorUi.prototype.resizeImage=function(c,e,g,q,p,t,x){p=null!=p?p:this.maxImageSize;var B=Math.max(1,c.width),I=Math.max(1,c.height);if(q&&this.isResampleImageSize(null!=x?x:e.length,t))try{var A=Math.max(B/p,I/p);if(1<...
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
preview:aa.getAttribute("preview"),clibs:fa,tags:aa.getAttribute("tags")};ja.push(fa);null!=ma&&(ja=va[oa],null==ja&&(ja={},va[oa]=ja),oa=ja[ma],null==oa&&(oa=[],ja[ma]=oa),oa.push(fa))}aa=aa.nextSibling}O.stop();l()}})};z.appendChild(qa);z.appendChild(wa);z.appendChild(da);var Ua=!1,ia=H;/^https?:\/\//.test(ia)&&!b.ed...
Base
1
function(ha){"true"!=W.getAttribute("contentEditable")&&mxEvent.consume(ha)});U=function(ha){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||9<document.documentMode)){var na=new FilenameDialog(b,X.title||"",mxResources.get("ok"),function(ea){null!=ea&&(X.title=ea,V())},mxResources.get("enterValue"));...
Base
1
b.editor.graph.rendering=!1;H.getModel().beginUpdate();try{for(var y=0,G={};L(!1,!0,!0)&&100>y;){var P=J.cell,Q=H.getLabel(P),U=G[P.id];if(U&&U.replAllMrk==p&&U.replAllPos>=q)break;G[P.id]={replAllMrk:p,replAllPos:q};H.isCellEditable(P)&&(H.model.setValue(P,D(Q,g,I.value,q-g.length,H.getCurrentCellStyle(P))),y++)}V!=b....
Base
1
Graph.prototype.createViewState=function(b){var f=b.getAttribute("page"),m=parseFloat(b.getAttribute("pageScale")),d=parseFloat(b.getAttribute("pageWidth")),u=parseFloat(b.getAttribute("pageHeight")),v=b.getAttribute("background"),E=this.parseBackgroundImage(b.getAttribute("backgroundImage")),F=b.getAttribute("extFonts...
Base
1
function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(C){d.handleError(C)}})}]];if(!d.isOfflineApp()&&isLocalStorage&&d.mode!=App.MODE_ATLAS){var z=d.actions.get("plugins");null==z||"sk...
Base
1
"cells",[C])),b.fireEvent(new mxEventObject("freehandInserted","cell",C))}finally{b.model.endUpdate()}q&&b.setSelectionCells([C])}}for(C=0;C<u.length;C++)u[C].parentNode.removeChild(u[C]);d=null;u=[];E=[]}x(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(z,C){z=C.getProperty("eventName");C=C.getP...
Base
1
c;this.editor.updateGraphComponents();this.editor.graph.refresh();this.editor.graph.defaultMathEnabled=c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP|...
Base
1
function(){var c=document.createElement("div");c.className="geButtonContainer";c.style.overflow="1"==urlParams.embed?"hidden":"";return c};EditorUi.prototype.openLink=function(c,e,g){return this.editor.graph.openLink(c,e,g)};EditorUi.prototype.showSplash=function(c){};EditorUi.prototype.getLocalData=function(c,e){e(loc...
Base
1
"geBtn gePrimaryBtn";var k=document.createElement("img");k.setAttribute("src",Sidebar.prototype.searchImage);k.setAttribute("title",mxResources.get("preview"));k.className="geActiveButton";k.style.position="absolute";k.style.cursor="default";k.style.padding="8px";k.style.right="0px";k.style.top="0px";var y=!1,G=null,P=...
Base
1
"center";m=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});m.className="geBtn";b.editor.cancelFirst&&F.appendChild(m);ImageDialog.filePicked=function(x){x.action==google.picker.Action.PICKED&&null!=x.docs[0].thumbnails&&(x=x.docs[0].thumbnails[x.docs[0].thumbnails.length-1],null!=x...
Base
1
mxUtils.bind(this,function(ha){this.cachedFonts[X]=ha;P--;Q()}),mxUtils.bind(this,function(ha){P--;Q()}),!0,null,"data:"+Z+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(G[k].substring(0,U)),T)}Q()}else y(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(thi...
Base
1
parseInt(ca.value))))}function P(Ta){function Ia(ya,Ja,Ma,ra){var Fa=ya.useCssTransforms,Ka=ya.currentTranslate,Xa=ya.currentScale,Pa=ya.view.translate,Ra=ya.view.scale;ya.useCssTransforms&&(ya.useCssTransforms=!1,ya.currentTranslate=new mxPoint(0,0),ya.currentScale=1,ya.view.translate=new mxPoint(0,0),ya.view.scale=1)...
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
!0),aa,1),J=a.getDefaultTranslate(W);this.x0=W.x;this.y0=W.y;a.setScrollbarPositions(e.currentPage.viewState,J.x,J.y);if(J.x!=this.translate.x||J.y!=this.translate.y){this.setTranslate(J.x,J.y);return}}W=a.getPagePadding();J=a.getPageSize();this.translate.x=W.x-(this.x0||0)*J.width;this.translate.y=W.y-(this.y0||0)*J.h...
Base
1
"-rev_"+this.ui.hashValue(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
null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(B){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(B){}}catch(B){this.fileLoadedError=B;if(null!=c)try{c.close()}catch(I){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logE...
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
"sketchStyle","rough")?this.createComicCanvas(U):this.createRoughCanvas(U)};var G=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(U,T,W,X,Y){null!=U.handJiggle&&U.handJiggle.passThrough||G.apply(this,arguments)};var P=mxShape.prototype.paint;mxShape.prototype.paint=function(U){v...
Base
1
f.getCell(e),null!=c&&c!=J&&(J=null));null!=J&&(f.getChildAt(m,F)!=J&&f.add(m,J,F),this.patchCellRecursive(b,f,J,d,u),F++);return e});for(N=[null];0<N.length;)if(H=N.shift(),H=L(null!=H?H.child:null,null!=H?H.insert:!1),R=v[H],null!=R&&(delete v[H],N.push({child:f.getCell(R)})),R=E[H],null!=R&&(delete E[H],N.push({chil...
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
this.update)};var H=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?H.apply(this,arguments):this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(k){return"simple"==Editor.currentTheme||"sketch"==E...
Base
1
null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(B){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(B){}}catch(B){this.fileLoadedError=B;if(null!=c)try{c.close()}catch(I){}if(EditorUi.enableLogging&&!this.isOffline())try{EditorUi.logE...
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
parseFloat(U.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;T.marginLeft=U.marginLeft||0;T.marginRight=U.marginRight||0;T.marginTop=U.marginTop||0;T.marginBottom=U.marginBottom||0;T.allowGaps=U.allowGaps||0;T.horizontal="1"==mxUtils.getValue(U,"horizontalRack","0");T.resizeParent=!1;T.fi...
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
""),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
P(!1)}),ea.className="geBtn",y.appendChild(ea));ea=mxUtils.button(mxResources.get(PrintDialog.previewEnabled?"print":"ok"),function(){k.hideDialog();P(!0)});ea.className="geBtn gePrimaryBtn";y.appendChild(ea);k.editor.cancelFirst||y.appendChild(T);U.appendChild(y);this.container=U};var K=ChangePageSetup.prototype.execu...
Base
1
d.container.scrollTop=0,this.chromelessResize()));f||d.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",u))}}catch(E){this.handleError(E)}};EditorUi.prototype.selectNextPage=function(b){var f=this.currentPage;null!=f&&null!=this.pages&&(f=mxUtils.indexOf(this.pages,f),b?this.selectPage(this.pages[mxUtils.mod(f+1,t...
Base
1
App.prototype.fileCreated=function(b,f,m,d,u,v){var E=window.location.pathname;null!=f&&0<f.length&&(E+="?libs="+f);null!=u&&0<u.length&&(E+="?clibs="+u);E=this.getUrl(E);b.getMode()!=App.MODE_DEVICE&&(E+="#"+b.getHash());if(this.spinner.spin(document.body,mxResources.get("inserting"))){var F=b.getData();F=0<F.length?t...
Base
1
this.state.y+this.state.height+(40>this.state.height?10:0)+2+"px")};var z=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(D){z.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=D?"":"none")};var C=mxVertexHandler.prototype.destroy;mxVertexHandle...
Base
1
document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,e){c=new TextareaDialog(this,c,e,null,null,mxResources.get("close"));this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};E...
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
T[X[Z]]&&Y++;Y=Y==U}Y&&(1!=P||this.isCellVisible(y[W]))&&Q.push(y[W])}}return Q};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(k){for(var y=null,G=[],P=0;P<k.length;P++){var Q=this.getTagsForCell(k[P]);G...
Base
1
null,G),0<P.length&&(k=mxUtils.parseXml(P),k=k.documentElement))))}if(null!=k&&"svg"==k.nodeName)if(P=k.getAttribute("content"),null!=P&&"<"!=P.charAt(0)&&"%"!=P.charAt(0)&&(P=unescape(window.atob?atob(P):Base64.decode(cont,P))),null!=P&&"%"==P.charAt(0)&&(P=decodeURIComponent(P)),null!=P&&0<P.length)k=mxUtils.parseXml...
Base
1
null;x=mxUtils.button("",mxUtils.bind(this,function(B){this.pickColor(t||"none",function(I){t=I;g()});mxEvent.consume(B)}));g();x.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";x.style.marginLeft="4px";x.style.height="22px";x.style.width="22px";x.style.position="relative";x.style.top=mxClient.IS_IE||mxClient.IS_I...
Base
1
(this.file.stats.cacheFail++,this.reload(f,m,d))}catch(t){null!=m&&m(t)}}else null!=m&&m()}),m)}else null!=m&&m()});window.setTimeout(N,this.cacheReadyDelay)}}else null!=m&&m()}};DrawioFileSync.prototype.reload=function(b,f,m,d){this.file.updateFile(mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifi...
Base
1
340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}...
Base
1
na=la;ca=ma;ha=ja;ea=aa;za=oa;Ca=sa;Ba=fa;ea.style.backgroundColor=F;ea.style.border=L}function S(aa,la,ma,oa,fa,ja,sa,ta,La,Ga,ya){function Ja(Na,Ya){null==Fa?(Ka=Na,Ka=/^https?:\/\//.test(Ka)&&!b.editor.isCorsEnabledForUrl(Ka)?PROXY_URL+"?url="+encodeURIComponent(Ka):TEMPLATE_PATH+"/"+Ka,mxUtils.get(Ka,mxUtils.bind(t...
Base
1
"hidden";na.style.bottom="0px";na.style.height="42px";na.style.right="10px";na.style.left="10px";T.isEnabled()&&(na.appendChild(Z),na.appendChild(ca),X.appendChild(na));return{div:X,refresh:ha}};Graph.prototype.getCustomFonts=function(){var k=this.extFonts;k=null!=k?k.slice():[];for(var y in Graph.customFontElements){v...
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
!0;Editor.enableRealtime=!0;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.config=null;Editor.configVersion=null;Editor.defaultBorder=5;Editor.commonProperties=[{name:"enumerate",dispName:"Enume...
Base
1
if(null!=y&&0<y.length){var U=document.createElement("script");U.setAttribute("type","text/javascript");U.setAttribute("src",k);y[0].parentNode.appendChild(U)}}};Editor.prototype.csvToArray=function(k){if(0<k.length){var y="",G=[""],P=0,Q=!0,U;k=$jscomp.makeIterator(k);for(U=k.next();!U.done;U=k.next())U=U.value,'"'===...
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
EditorUi.prototype.createUrlParameters=function(c,e,g,q,p,t,x){x=null!=x?x:[];q&&("https://viewer.diagrams.net"==EditorUi.lightboxHost&&"1"!=urlParams.dev||x.push("lightbox=1"),"auto"!=c&&x.push("target="+c),null!=e&&e!=mxConstants.NONE&&x.push("highlight="+("#"==e.charAt(0)?e.substring(1):e)),null!=p&&0<p.length&&x.pu...
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
mxUtils.bind(this,function(){g(Error(mxResources.get("timeout")+" "+p.getAttribute("href")))}))}};EditorUi.prototype.setPagesVisible=function(c){Editor.pagesVisible!=c&&(Editor.pagesVisible=c,mxSettings.settings.pagesVisible=c,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototy...
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
urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){mxscript("js/orgchart/bridge.min.js",function(){mxscript("js/orgchart/bridge.collections.min.js",function(){mxscript("js/orgchart/OrgChart.Layout.min.js",function(){mxscript("js/orgchart/mxOrgChartLayout.js",x,null,null,null,t)},null,null,null,t)},null,null...
Base
1
H.setAttribute("type","range");H.setAttribute("min","2");H.setAttribute("max","30");H.setAttribute("value",E.freehand.getBrushSize());H.style.width="90%";H.style.visibility="hidden";F.appendChild(H);mxUtils.br(F);N=function(){E.freehand.setPerfectFreehandMode(L.checked);H.style.visibility=L.checked?"visible":"hidden"};...
Base
1
mxUtils.setTextContent(g,JSON.stringify(c,null,2));e.appendChild(g);return mxUtils.getXml(e,"\n")};EditorUi.prototype.closeLibrary=function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),".scratchpad"==c.title&&(this.scratchpad=null))};Editor...
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
Na=k.getCurrentFile();null!=Na&&(Ja.title=Na.getTitle());var hb=Ja.writeHead;Ja.writeHead=function(Za){hb.apply(this,arguments);mxClient.IS_GC&&(Za.writeln('<style type="text/css">'),Za.writeln("@media print {"),Za.writeln(".MathJax svg { shape-rendering: crispEdges; }"),Za.writeln("}"),Za.writeln("</style>"));null!=k....
Base
1
mxResources.get("mermaid")+"...","mermaid");J.showDialog(g.container,620,420,!0,!1);g.init()}));var c="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),e=function(g,q,p,t){g.addItem(p,null,mxUtils.bind(this,function(){var x=new CreateGraphDialog(J,p,t);J.showDialog(x.con...
Base
1