code
stringlengths
31
2.05k
label_name
stringclasses
5 values
label
int64
0
4
if(null!=t.hoverIcons){var z=t.hoverIcons.update;t.hoverIcons.update=function(){x.freehand.isDrawing()||z.apply(this,arguments)}}if(null!=x.freehand){var C=x.freehand.createStyle;x.freehand.createStyle=function(W){return C.apply(this,arguments)+"sketch=0;"}}t.editor.addListener("statusChanged",mxUtils.bind(this,functio...
Base
1
m.style.verticalAlign="middle";m.className="geBtn";t.appendChild(m);b.isOffline()&&!mxClient.IS_CHROMEAPP&&(m.style.display="none");m=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});m.style.verticalAlign="middle";m.className="geBtn";b.editor.cancelFirst&&t.appendChild(m);LinkDialog.selectedDocs=nul...
Base
1
StorageFile.listFiles=function(b,f,m,d){b.getDatabaseItems(function(u){var v=[];if(null!=u)for(var E=0;E<u.length;E++)"."==u[E].title.charAt(0)||null!=f&&u[E].type!=f||v.push(u[E]);m(v)},function(){null==b.database?m(StorageFile.listLocalStorageFiles(f)):null!=d&&d()},"filesInfo")};StorageFile.deleteFile=function(b,f,m...
Base
1
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
this.canvas.begin=this.originalBegin;this.canvas.end=this.originalEnd;this.canvas.rect=this.originalRect;this.canvas.ellipse=this.originalEllipse;this.canvas.roundrect=this.originalRoundrect};mxShape.prototype.createRoughCanvas=function(U){return new k(U,Editor.createRoughCanvas(U),this)};var y=mxShape.prototype.create...
Base
1
0;g<c.childNodes.length;g++)this.anonymizeAttributes(c.childNodes[g],e)};EditorUi.prototype.anonymizeNode=function(c,e){e=c.getElementsByTagName("mxCell");for(var g=0;g<e.length;g++)null!=e[g].getAttribute("value")&&e[g].setAttribute("value","["+e[g].getAttribute("value").length+"]"),null!=e[g].getAttribute("xmlValue")...
Base
1
var BtnDialog=function(b,f,m,d){var u=document.createElement("div");u.style.textAlign="center";var v=document.createElement("p");v.style.fontSize="16pt";v.style.padding="0px";v.style.margin="0px";v.style.color="gray";mxUtils.write(v,mxResources.get("done"));var E="Unknown",F=document.createElement("img");F.setAttribute...
Base
1
c||mxUtils.isEmptyObject(c)||(e=e+"#"+encodeURIComponent(JSON.stringify(c)))}catch(q){}window.location.hash=e}};EditorUi.prototype.loadDescriptor=function(c,e,g){var q=window.location.hash,p=mxUtils.bind(this,function(x){var B=null!=c.data?c.data:"";null!=x&&0<x.length&&(0<B.length&&(B+="\n"),B+=x);x=new LocalFile(this...
Base
1
Graph.prototype.setHiddenTags=function(k){this.hiddenTags=k;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(k){var y=mxUtils.indexOf(this.hiddenTags,k);0>y?this.hiddenTags.push(k):0<=y&&this.hiddenTags.splice(y,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};G...
Base
1
L;this.okButton=u;this.container=J},TemplatesDialog=function(b,f,m,d,u,v,E,F,L,N,H,R,J,c,e){function g(ia){wa.innerText=ia;wa.style.display="block";setTimeout(function(){wa.style.display="none"},4E3)}function q(){null!=y&&(y.style.fontWeight="normal",y.style.textDecoration="none",G=y,y=null)}function p(ia,aa,la,ma,oa,f...
Base
1
Y&&Math.abs(this.scrollTop-a.container.scrollTop)<Y&&Math.abs(this.startX-J.getGraphX())<Y&&Math.abs(this.startY-J.getGraphY())<Y&&(0<parseFloat(e.chromelessToolbar.style.opacity||0)?D():F(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var V=a.view.validate,aa=new mxPoi...
Base
1
mxUtils.indexOf(this.hiddenTags,k[y]))return!1;return!0};Graph.prototype.getCellsForTags=function(k,y,G,P){var Q=[];if(null!=k){y=null!=y?y:this.model.getDescendants(this.model.getRoot());for(var U=0,T={},W=0;W<k.length;W++)0<k[W].length&&(T[k[W]]=!0,U++);for(W=0;W<y.length;W++)if(G&&this.model.getParent(y[W])==this.mo...
Base
1
delete p.cells[t]}}),e(EditorUi.DIFF_INSERT),e(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(p.cells)&&delete p.cells);mxUtils.isEmptyObject(p)&&delete c[EditorUi.DIFF_UPDATE][q]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,e){i...
Base
1
!0,!0,null,null,null,null,!0);z.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?z.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,e,g,q,p){var t=document.createElement("div");t.style.whiteSpace="nowrap";var x=this.editor.graph;if(null!=e){var B=doc...
Base
1
n.value;n.parentNode.removeChild(n);z.parentNode.removeChild(z)}catch(C){b.handleError(C)}t.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";e=b.canReplyToReplies();b.commentsSupported()?b.getCo...
Base
1
(null==this.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(p):window.openWindow((mxClient.IS_CHROMEAPP?EditorUi.drawHost+"/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(p)))))}else this.openLocalFile(p,null,!0)}q.stopPropagation();q.preventDefault()}))};EditorUi.prototype...
Base
1
x.parentNode.removeChild(x)}catch(I){}}else this.createEchoRequest(c,e,g,q,p).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,e,g,q,p,t){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,c+(null!=g?"&mime="+g:"")+(null!=p?"&format="+p:"")+(null!=t?"&base64="+t:"")+(null!=e?"&...
Base
1
c&&null!=c.shape&&null!=c.shape.stencil)};var J=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);J.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.s...
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(){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
X||(ca.style.backgroundImage="url("+mxWindow.prototype.normalizeImage+")",ca.style.backgroundPosition="right 6px center",ca.style.backgroundRepeat="no-repeat",ca.style.paddingRight="22px");return ca}function c(W,X,Y,Z,ca,ha){var na=document.createElement("a");na.className="geMenuItem";na.style.display="inline-block";na...
Base
1
l.setBackgroundImage(C.viewState.backgroundImage);l.getGlobalVariable=function(D){return"page"==D&&null!=C?C.getName():"pagenumber"==D?1:z.apply(this,arguments)};document.body.appendChild(l.container);null!=C&&l.model.setRoot(C.root)}}x=null!=x?x:this.getXmlFileData(p,t,A,S);I=null!=I?I:this.getCurrentFile();c=this.cre...
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
x.push("page-id="+this.currentPage.getId());return x};EditorUi.prototype.createLink=function(c,e,g,q,p,t,x,B,I,A){I=this.createUrlParameters(c,e,g,q,p,t,I);c=this.getCurrentFile();e=!0;null!=x?g="#U"+encodeURIComponent(x):(c=this.getCurrentFile(),B||null==c||c.constructor!=window.DriveFile?g="#R"+encodeURIComponent(g?t...
Base
1
localStorage.key(e),q=localStorage.getItem(g);if(0<g.length&&(".scratchpad"==g||"."!=g.charAt(0))&&0<q.length){var p="<mxfile "===q.substring(0,8)||"<?xml"===q.substring(0,5)||"\x3c!--[if IE]>"===q.substring(0,12);q="<mxlibrary>"===q.substring(0,11);(p||q)&&c.push(g)}}return c};EditorUi.prototype.getLocalStorageFile=fu...
Base
1
m?H=new mxHierarchicalLayout(v,mxConstants.DIRECTION_WEST):"circle"==m?H=new mxCircleLayout(v):(H=new mxFastOrganicLayout(v,!1),H.forceConstant=80);if(null!=H){var R=function(g,q){v.getModel().beginUpdate();try{null!=g&&g(),H.execute(v.getDefaultParent(),N)}catch(p){throw p;}finally{g=new mxMorphing(v),g.addListener(mx...
Base
1
!d.isOfflineApp()&&isLocalStorage&&this.addMenuItem(l,"plugins",n),this.addMenuItems(l,["-","editDiagram"],n),this.addSubmenu("diagramLanguage",l,n),l.addSeparator(n),"1"!=urlParams.embed&&(isLocalStorage||mxClient.IS_CHROMEAPP)&&this.addMenuItems(l,["showStartScreen"],n),this.addMenuItems(l,["configuration"],n),l.addS...
Base
1
0>mxUtils.indexOf(t,Ma)};this.executeLayout(function(){La.execute(I.getDefaultParent());ma()},!0,Y);Y=null}else if("organic"==ea||"auto"==ea&&Ua.length>t.length){I.view.validate();var ya=new mxFastOrganicLayout(I);ya.forceConstant=3*T;ya.disableEdgeStyle=!1;ya.resetEdges=!1;var Ja=ya.isVertexIgnored;ya.isVertexIgnored=...
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
mxConstants.GUIDE_STROKEWIDTH);K.dialect=mxConstants.DIALECT_SVG;K.pointerEvents=!1;K.init(R.graph.getView().getOverlayPane());return K};S=function(K,O){if(K&&null!=R.guidesArrHor)for(K=0;K<R.guidesArrHor.length;K++)R.guidesArrHor[K].node.style.visibility="hidden";if(O&&null!=R.guidesArrVer)for(K=0;K<R.guidesArrVer.len...
Base
1
function(){b.hideDialog()})});L.className="geBtn";b.editor.cancelFirst&&f.appendChild(L);N=mxUtils.button(mxResources.get("insert"),function(c){try{b.hideDialog(),d(E.value,F.value,c)}catch(e){b.handleError(e)}});N.className="geBtn gePrimaryBtn";f.appendChild(N);b.editor.cancelFirst||f.appendChild(L);this.container=f},...
Base
1
null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},X,Y)}function ca(){F(na,ea,function(za){Z()},!0)}var ha=O().pdiv,na=b.newComment(U,b.getCurrentUser());na.pCommentId=n.id;null==n.replies&&(n.replies=[]);var ea=J(na,n.replies,ha,D+1);T?ca():Z()}if(M||!n.isResolved){x.style.display="none";var k=do...
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
"6px"):mxClient.IS_FF&&(x.style.paddingTop="0px",x.style.marginTop="-2px");if(null!=g)for(R=0;R<g.length;R++)mxUtils.br(x),mxUtils.write(x,g[R]);if(null!=e&&null==b[e]){B.style.visibility="hidden";mxUtils.setOpacity(x,10);var I=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:Editor.isDarkMode()?"#c0c0c...
Base
1
AspectDialog.prototype.createViewer=function(b,f,m,d){mxEvent.disableContextMenu(b);b.style.userSelect="none";var u=new Graph(b);u.setTooltips(!1);u.setEnabled(!1);u.setPanning(!1);u.minFitScale=null;u.maxFitScale=null;u.centerZoom=!0;f="mxGraphModel"==f.nodeName?f:Editor.parseDiagramNode(f);if(null!=f){var v=f.getAttr...
Base
1
function(c,e,g,q,p,t,x,B){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,e,g,q,p,t,x,B)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOU...
Base
1
"geCommentActionLnk";mxUtils.write(Y,U);X.appendChild(Y);mxEvent.addListener(Y,"click",function(Z){T(Z,n);Z.preventDefault();mxEvent.consume(Z)});Q.appendChild(X);W&&(X.style.display="none")}function O(){function U(X){T.push(W);if(null!=X.replies)for(var Y=0;Y<X.replies.length;Y++)W=W.nextSibling,U(X.replies[Y])}var T=...
Base
1
c.shortcut):E.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=function(J){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=J?J:!this.formatWindow.window.isVisible()):b(this)};EditorUi.prototype.isFormatPanelVisible=function(){return null!=this.formatWindow&&this.formatWindow.window.isVisibl...
Base
1
(this.graph.isCellSelected(K)?X=!0:K=this.graph.model.getParent(K));X||this.graph.isTableRow(K)&&this.graph.isCellSelected(K)||(K=this.graph.getCompositeParent(K));C.apply(this,arguments)};this.connectionHandler.createTargetVertex=function(K,U){U=this.graph.getCompositeParent(U);return mxConnectionHandler.prototype.cre...
Base
1
urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var u=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDef...
Base
1
e.parentNode&&e.parentNode.removeChild(e)}))};var H=!1;EditorUi.prototype.initFormatWindow=function(){if(!H&&null!=this.formatWindow){H=!0;var J=this.formatWindow.window.toggleMinimized,c=240;this.formatWindow.window.toggleMinimized=function(){J.apply(this,arguments);this.minimized?(c=parseInt(this.div.style.width),thi...
Base
1
StorageFile.insertFile=function(b,f,m,d,u){var v=mxUtils.bind(this,function(E){var F=function(){var L=new StorageFile(b,m,f);L.saveFile(f,!1,function(){d(L)},u)};E?b.confirm(mxResources.get("replaceIt",[f]),F,u):F()});StorageFile.getFileContent(b,f,function(E){v(null!=E)},function(){v(!1)})};StorageFile.getFileContent=...
Base
1
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
return S}),A=!0);return A};var x=p.stop;p.stop=function(){x.call(this);this.active=!1;null!=p.status&&null!=p.status.parentNode&&p.status.parentNode.removeChild(p.status);p.status=null};p.pause=function(){return function(){}};return p};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),g=th...
Base
1
function(K){if(!this.isEnabled()||this.isCellLocked(K)){if(null!=this.getClickableLinkForCell(K))return"pointer";if(this.isCellLocked(K))return"default"}return ba.apply(this,arguments)};this.selectRegion=function(K,U){var L=mxEvent.isAltDown(U)?K:null;K=this.getCells(K.x,K.y,K.width,K.height,null,null,L,null,!0);if(thi...
Base
1
"...",c[p])})))};EditorUi.prototype.installFormatToolbar=function(J){var c=this.editor.graph,e=document.createElement("div");e.style.cssText="position:absolute;top:10px;z-index:1;border-radius:4px;box-shadow:0px 0px 3px 1px #d1d1d1;padding:6px;white-space:nowrap;background-color:#fff;transform:translate(-50%, 0);left:5...
Base
1
c.appendChild(m));N.appendChild(c);N.appendChild(e);this.container=N},FindWindow=function(b,f,m,d,u,v){function E(V,k,y,G){if("object"===typeof k.value&&null!=k.value.attributes){k=k.value.attributes;for(var P=0;P<k.length;P++)if("label"!=k[P].nodeName){var Q=mxUtils.trim(k[P].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s...
Base
1
DrawioFile.prototype.autosave=function(b,f,m,d){null==this.lastAutosave&&(this.lastAutosave=Date.now());b=Date.now()-this.lastAutosave<f?b:0;this.clearAutosave();var u=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==u&&(this.autosaveThread=null),EditorUi.debug("DrawioFi...
Base
1
mxEvent.getClientX(D),mxEvent.getClientY(D),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=mxEvent.isMouseEvent(D);this.graph.isMouseDown=!0;c.hoverIcons.reset();mxEvent.consume(D)})))};var n=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.r...
Base
1
arguments);if(null!=this.div)for(var K=this.div.getElementsByTagName("a"),U=0;U<K.length;U++)null!=K[U].getAttribute("href")&&null==K[U].getAttribute("target")&&K[U].setAttribute("target","_blank")};this.tooltipHandler.getStateForEvent=function(K){return K.sourceState};this.getCursorForMouseEvent=function(K){var U=null...
Base
1
0));mxEvent.addListener(la,"change",oa);mxEvent.addListener(la,"keydown",oa);mxEvent.addListener(la,"cut",oa);mxEvent.addListener(la,"paste",oa);mxEvent.addListener(la,"keydown",function(Ga){13==Ga.keyCode&&La.click()});oa=document.createElement("div");oa.style.height="40px";oa.style.marginTop="4px";oa.style.marginBott...
Base
1
f},ConnectionPointsDialog=function(b,f){function m(){null!=u&&u.destroy()}var d=document.createElement("div");d.style.userSelect="none";var u=null;this.init=function(){function v(C,D,M){C=new mxCell("",new mxGeometry(C,D,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0...
Base
1
fa()},fa=function(){Q=ja;ka.className="geTempDlgCreateBtn";aa&&(Aa.className="geTempDlgOpenBtn")},ja=Q;Q=null;"boolean"!==typeof aa&&(aa=ja.isExternal&&R);1==ia?N(ja.url,ja):aa?(Aa.className="geTempDlgOpenBtn geTempDlgBtnDisabled geTempDlgBtnBusy",la()):(ka.className="geTempDlgCreateBtn geTempDlgBtnDisabled geTempDlgBt...
Base
1
function n(D){null!=D&&(D=l(Editor.parseDiagramNode(D)));return D}mxEvent.addListener(S,"change",function(D){B=parseInt(S.value);n(I[B]);mxEvent.consume(D)});if("mxfile"==x.nodeName){var z=x.getElementsByTagName("diagram");I=[];for(var C=0;C<z.length;C++)I.push(z[C]);0<I.length&&n(I[B]);S.innerText="";if(1<I.length)for...
Base
1
fa[la]=ma),ma.push(oa))}ia=ia.nextSibling}l(Ea,Ta,Ha)}})}function z(ia){E&&(Ba.scrollTop=0,ea.innerText="",Qa.spin(ea),k=!1,V=!0,za.innerText=mxResources.get("recentDiag"),Z=null,E(Va,function(){g(mxResources.get("cannotLoad"));Va([])},ia?null:v))}function C(ia){if(""==ia)null!=G&&(G.click(),G=null);else{if(null==Templ...
Base
1
P));var Q=document.createElement("link");Q.setAttribute("rel","preload");Q.setAttribute("href",P);Q.setAttribute("as","font");Q.setAttribute("crossorigin","");y.parentNode.insertBefore(Q,y)}}}};Editor.trimCssUrl=function(k){return k.replace(RegExp("^[\\s\"']+","g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGL...
Base
1
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
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
parseFloat(y[3])+6,k.setAttribute("viewBox",y[0]+" "+y[1]+" "+w+" "+h))))));return U};Graph.prototype.setShadowVisible=function(k,y){mxClient.IS_SVG&&!mxClient.IS_SF&&(y=null!=y?y:!0,(this.shadowVisible=k)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("...
Base
1
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
delete F[R];return E};EditorUi.prototype.patchViewState=function(b,f){if(null!=b.viewState&&null!=f){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var m in f)try{this.patchViewStateProperty(b,f,m)}catch(d){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototyp...
Base
1
e.addListener(mxEvent.SIZE,f);e.container.addEventListener("scroll",d);e.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(x){H=x;R.style.bac...
Base
1
m.setCellStyles(mxConstants.STYLE_ROTATION,Number(p.value),[f[x]])}}finally{m.getModel().endUpdate()}});t.className="geBtn gePrimaryBtn";mxEvent.addListener(u,"keypress",function(x){13==x.keyCode&&t.click()});v=document.createElement("div");v.style.marginTop="20px";v.style.textAlign="right";b.editor.cancelFirst?(v.appe...
Base
1
G&&y(Editor.svgBrokenImage.src)};Q.src=k}}catch(U){y(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(k,y,G,P){null==P&&(P=this.createImageUrlConverter());var Q=0,U=G||{};G=mxUtils.bind(this,function(T,W){T=k.getElementsByTagName(T);for(var X=0;X<T.length;X++)mxUtils.bind(this,function(Y){try{if(nul...
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
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
520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(c){this.loadOrgChartLayouts(mxUtils.bind(this,function(){var e=new TextareaDialog(this,mxResources.get("layout"),c,mxUtils.bind(this,function(g){if(0<g.length)try{var q=JSON.parse(g);this.executeLayouts(thi...
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
function(K){if(!this.isEnabled()||this.isCellLocked(K)){if(null!=this.getClickableLinkForCell(K))return"pointer";if(this.isCellLocked(K))return"default"}return ba.apply(this,arguments)};this.selectRegion=function(K,U){var L=mxEvent.isAltDown(U)?K:null;K=this.getCells(K.x,K.y,K.width,K.height,null,null,L,null,!0);if(thi...
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
this.sketchWrapperElt.appendChild(this.sketchPickerMenuElt));mxClient.IS_POINTER&&(this.sketchPickerMenuElt.style.touchAction="none")}};EditorUi.prototype.getNetworkStatus=function(){var c=null;if(this.isOffline(!0))c=mxResources.get("offline");else{var e=this.getCurrentFile();null!=e&&(e.invalidChecksum?c=mxResources....
Base
1
I.style.paddingRight=18*A.childNodes.length+"px"}};EditorUi.prototype.addLibraryEntries=function(c,e){for(var g=0;g<c.length;g++){var q=c[g],p=q.data;if(null!=p){p=this.convertDataUri(p);var t="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";"fixed"==q.aspect&&(t+="aspect=fixed;");e.appendChi...
Base
1
libs:ia.getAttribute("libs"),clibs:ia.getAttribute("clibs"),title:ia.getAttribute("title")}),ia=ia.nextSibling;S(Ia)}});var Va=function(ia,aa,la){Ca.style.display="";Qa.stop();V=!1;if(k)k=!1;else if(aa)ea.innerText=aa;else{la=la||{};aa=0;for(var ma in la)aa+=la[ma].length;0==ia.length&&0==aa?ea.innerText=mxResources.ge...
Base
1
"#000000")),wa=mxUtils.setStyle(wa,mxConstants.STYLE_GRADIENTCOLOR,mxUtils.getValue(pa,mxConstants.STYLE_GRADIENTCOLOR,null)),P.getModel().isVertex(Aa[xa])&&(wa=mxUtils.setStyle(wa,mxConstants.STYLE_FONTCOLOR,mxUtils.getValue(pa,mxConstants.STYLE_FONTCOLOR,null))));P.getModel().setStyle(Aa[xa],wa)}}finally{P.getModel()...
Base
1
EditorUi.prototype.convertImages=function(c,e,g,q){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,e,g,q)};EditorUi.prototype.convertImageToDataUri=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,e)};Ed...
Base
1
M&&(D=this.getDeletableCells(this.addAllEdges(D)));for(var K=[],O=0;O<D.length;O++){var V=D[O];g.isEdge(V)&&v(V)&&(K.push(V),V=g.getTerminal(V,!1));if(d(V)){var k=[];e.traverse(V,!0,function(y,G){var P=null!=G&&e.isTreeEdge(G);P&&k.push(G);(null==G||P)&&k.push(y);return null==G||P});0<k.length&&(K=K.concat(k),V=e.getIn...
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
"4px");null!=Z&&na.setAttribute("title",Z);null!=ca&&(W=function(){ca.isEnabled()?(na.removeAttribute("disabled"),na.style.cursor="pointer"):(na.setAttribute("disabled","disabled"),na.style.cursor="default")},ca.addListener("stateChanged",W),x.addListener("enabledChanged",W),W());return na}function e(W,X,Y){Y=document....
Base
1
function(){var x=N.origGuideDestroy.apply(this,arguments);if(null!=N.guidePart)try{c.putImageData(N.guidePart.imgData1,N.guidePart.x1,N.guidePart.y1),c.putImageData(N.guidePart.imgData2,N.guidePart.x2,N.guidePart.y2),c.putImageData(N.guidePart.imgData3,N.guidePart.x3,N.guidePart.y3),N.guidePart=null}catch(B){}return x}...
Base
1
Y&&Y()}}catch(Ma){this.handleError(Ma)}};EditorUi.prototype.getSearch=function(c){var e="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var g="?",q;for(q in urlParams)0>mxUtils.indexOf(c,q)&&null!=urlParams[q]&&(e+=g+q+"="+urlParams[q],g="&")}else e=window.location.search;re...
Base
1
ea&&1==Va.length){I.view.validate();var ta=new mxHierarchicalLayout(I,"horizontalflow"==ea?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);ta.intraCellSpacing=T;ta.parallelEdgeSpacing=U;ta.interRankCellSpacing=W;ta.disableEdgeStyle=!1;this.executeLayout(function(){ta.execute(I.getDefaultParent(),Ua);I.moveCells...
Base
1
Math.round(25*Math.random()))):/\s/.test(p)?g.push(" "):g.push("?"):g.push(e?"0":Math.round(9*Math.random()))}return g.join("")};EditorUi.prototype.anonymizePatch=function(c){if(null!=c[EditorUi.DIFF_INSERT])for(var e=0;e<c[EditorUi.DIFF_INSERT].length;e++)try{var g=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][e].data).doc...
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
T};var Q=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(U,T,W,X,Y,Z){null!=U.handJiggle&&U.handJiggle.constructor==k?(U.handJiggle.passThrough=!0,Q.apply(this,arguments),U.handJiggle.passThrough=!1):Q.apply(this,arguments)}})();Editor.fastCompress=function(k){return null==k||0==k.length|...
Base
1
this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()})}};EditorUi.prototype.copyImage=function...
Base
1
this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,U,T,W,X),this.lastX=W,this.lastY=X)};k.prototype.curveTo=function(U,T,W,X,Y,Z){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,U,T,W,X,Y,Z),this.lastX=Y,this.lastY=Z)};k.prototype.arcTo=function(U,T,W,X,...
Base
1
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
ma[Xa],0<ia.length&&(oa=document.createElement("div"),oa.className="geTempDlgImportCat",oa.innerText=mxResources.get(Xa,null,Xa),ea.appendChild(oa),A(ia,aa,la,null,!0))}function S(ia,aa){qa.innerText="";x();var la=Math.floor(qa.offsetWidth/150)-1;aa=!aa&&ia.length>la?la:ia.length;for(var ma=0;ma<aa;ma++){var oa=ia[ma];...
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
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
l();this.refreshComments=l;B=mxUtils.bind(this,function(){function n(K){var O=C[K.id];if(null!=O)for(L(K,O),O=0;null!=K.replies&&O<K.replies.length;O++)n(K.replies[O])}if(this.window.isVisible()){for(var z=t.querySelectorAll(".geCommentDate"),C={},D=0;D<z.length;D++){var M=z[D];C[M.getAttribute("data-commentId")]=M}for...
Base
1
"min"!=Editor.currentTheme||this.addMenuItems(l,["publishLink"],n);d.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||(l.addSeparator(n),d.menus.addSubmenu("embed",l,n))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(l...
Base
1
else throw Error(mxResources.get("readOnly"));}catch(E){if(null!=m)m(E);else throw E;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var f=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=f&&(f.viewState...
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
Fa.substring(Fa.indexOf(",")+1);Pa.style.cursor="pointer";Pa.style.width="100%";Pa.style.height="100%";ma.appendChild(Pa);ra=b.createMermaidXml("%% Input: "+Ma+"\n"+ra,EditorUi.defaultMermaidConfig,Fa,Ka,Xa);var Ra="<mxfile><diagram>"+Graph.compress(ra)+"</diagram></mxfile>";if(Ga||"undefined"===typeof mxMermaidToDrawi...
Base
1
f.w,f.h,f,f.aspect,f.title);mxEvent.addListener(c,"dragleave",function(S){e.style.cursor="";for(var l=mxEvent.getSource(S);null!=l;){if(l==c||l==e){S.stopPropagation();S.preventDefault();break}l=l.parentNode}});var I=function(S){return function(l,n,z,C,D,M,K,O,V){null!=V&&(/(\.v(dx|sdx?))($|\?)/i.test(V.name)||/(\.vs(x...
Base
1
T};var Q=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(U,T,W,X,Y,Z){null!=U.handJiggle&&U.handJiggle.constructor==k?(U.handJiggle.passThrough=!0,Q.apply(this,arguments),U.handJiggle.passThrough=!1):Q.apply(this,arguments)}})();Editor.fastCompress=function(k){return null==k||0==k.length|...
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
function(k){"data:action/json,"==k.substring(0,17)&&(k=JSON.parse(k.substring(17)),null!=k.actions&&this.executeCustomActions(k.actions))};Graph.prototype.executeCustomActions=function(k,y){if(this.executingCustomActions)this.stoppingCustomActions=!0,null!=this.pendingWaitThread&&window.clearTimeout(this.pendingWaitThr...
Base
1
function(T){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(T):Editor.mathJaxQueue.push(T)};Editor.onMathJaxDone=function(){};var Q=Editor.prototype.init;Editor.prototype.init=function(){Q.apply(this,arguments);var T=mxUtils.bind(this,function(W,X){null!=this.graph.container&&th...
Base
1