code stringlengths 31 2.05k | label_name stringclasses 5 values | label int64 0 4 |
|---|---|---|
this.globalVars?mxUtils.clone(this.globalVars):{};var m=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=m)for(var B in m)this.globalVars[B]=m[B]}catch(K){null!=window.console&&console.log("Error in vars URL parameter: "+K)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var A=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(m){var B=A.apply(this,arguments);null==B&&null!=this.globalVars&&(B=this.globalVars[m]);
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.prototype.getSvg=function(m,B,K,R,U,W,Q,V,X,Y,Z,ca,da,ma){var ea=null,za=null,Ba=null;ca||null==this.themes||"darkTheme"!=this.defaultThemeName||(ea=this.stylesheet,za=this.shapeForegroundColor, | Base | 1 |
B=mxUtils.bind(this,function(R){f.saveLevel=9;if(R||null==T)m(R);else{var U=!0,W=null;try{W=window.setTimeout(mxUtils.bind(this,function(){U=!1;I({code:App.ERROR_TIMEOUT})}),3*this.ui.timeout)}catch(Q){}this.executeRequest({url:"/files/"+f.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,function(Q){window.clearTimeout(W);if(U){f.saveLevel=10;try{null!=Q&&Q.headRevisionId==u?("1"==urlParams.test&&T!=Q.etag&&EditorUi.debug("DriveClient: Preflight Etag Update","from",
T,"to",Q.etag,"rev",f.desc.headRevisionId,"response",[Q],"file",[f]),T=Q.etag,m(R)):I({error:{code:412}},Q)}catch(V){d(V)}}}),mxUtils.bind(this,function(Q){window.clearTimeout(W);U&&(f.saveLevel=11,I(Q))}))}});if(v&&null==S){f.saveLevel=8;var K=new Image;K.onload=mxUtils.bind(this,function(){try{var R=this.thumbnailWidth/K.width,U=document.createElement("canvas");U.width=this.thumbnailWidth;U.height=Math.floor(K.height*R);U.getContext("2d").drawImage(K,0,0,U.width,U.height);var W=U.toDataURL();W= | Base | 1 |
0;ka<wa.length;ka++)pa=wa[ka],0==ha==(null==la[pa.url])&&(Ia[pa.url]=!0,Ma.push(pa));la=Ia;ha++}0==Ma.length?za.innerText=mxResources.get("noResultsFor",[ja]):F(Ma,!0)}}function G(ja){if(Z!=ja||Q!=ca)t(),Ca.scrollTop=0,ea.innerText="",za.innerText=mxResources.get("searchResults")+' "'+ja+'"',Ua=null,da?J(ja):y&&(ja?(Ka.spin(ea),m=!1,T=!0,y(ja,Va,function(){n(mxResources.get("searchFailed"));Va([])},Q?null:l)):C(Q)),Z=ja,ca=Q}function P(ja){null!=Ua&&clearTimeout(Ua);13==ja.keyCode?G(xa.value):Ua=
setTimeout(function(){G(xa.value)},1E3)}var O='<div class="geTempDlgHeader"><img src="/images/draw.io-logo.svg" class="geTempDlgHeaderLogo"><input type="search" class="geTempDlgSearchBox" '+(y?"":'style="display: none"')+' placeholder="'+mxResources.get("search")+'"></div><div class="geTemplatesList" style="display: none"><div class="geTempDlgBack">< '+mxResources.get("back")+'</div><div class="geTempDlgHLine"></div><div class="geTemplatesLbl">'+mxResources.get("templates")+'</div></div><div class="geTempDlgContent" style="width: 100%"><div class="geTempDlgNewDiagramCat"><div class="geTempDlgNewDiagramCatLbl">'+ | Base | 1 |
Ha.substring(Ha.indexOf(",")+1);Sa.style.cursor="pointer";Sa.style.width="100%";Sa.style.height="100%";na.appendChild(Sa);ra=b.createMermaidXml("%% Input: "+Na+"\n"+ra,EditorUi.defaultMermaidConfig,Ha,La,Xa);var Ta="<mxfile><diagram>"+Graph.compress(ra)+"</diagram></mxfile>";if(Ia||"undefined"===typeof mxMermaidToDrawio)ba=ma=ra;ra=m.cloneNode(!0);na.appendChild(ra);Ha=function(Pa){R=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};La=function(Pa){R||A(Ta,mxEvent.getClientX(Pa),mxEvent.getClientY(Pa), | Base | 1 |
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,ca=W.setStrokeColor;W.setStrokeColor=function(){};var da=W.setFillColor;W.setFillColor=function(){};V||null==X||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;R.apply(this,arguments);W.handJiggle.passThrough=!1;W.setFillColor=da;W.setStrokeColor=ca;this.configurePointerEvents=Z;this.stroke=Y;this.fill=X;W.restore();V&&null!=X&&(W.addTolerance=function(){})}R.apply(this,arguments);W.addTolerance= | Base | 1 |
EditorUi.prototype.getPngFileProperties=function(d){var g=1,n=0;if(null!=d){if(d.hasAttribute("scale")){var t=parseFloat(d.getAttribute("scale"));!isNaN(t)&&0<t&&(g=t)}d.hasAttribute("border")&&(t=parseInt(d.getAttribute("border")),!isNaN(t)&&0<t&&(n=t))}return{scale:g,border:n}};EditorUi.prototype.getEmbeddedPng=function(d,g,n,t,u){try{var v=this.editor.graph,A=null!=v.themes&&"darkTheme"==v.defaultThemeName,H=null;if(null!=n&&0<n.length)v=this.createTemporaryGraph(A?v.getDefaultStylesheet():v.getStylesheet()), | 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.setUser(null),b=null,y?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){x(!0)},c)})}):this.authenticate(function(){l(!0)},c)))}))}), | Base | 1 |
Q};var U=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(W,Q,V,X,Y,Z){null!=W.handJiggle&&W.handJiggle.constructor==m?(W.handJiggle.passThrough=!0,U.apply(this,arguments),W.handJiggle.passThrough=!1):U.apply(this,arguments)}})();Editor.fastCompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:Graph.arrayBufferToString(pako.deflateRaw(m))};Editor.fastDecompress=function(m){return null==m||0==m.length||"undefined"===typeof pako?m:pako.inflateRaw(Graph.stringToArrayBuffer(atob(m)), | Base | 1 |
C[O]&&(C[O]=(C[O]||0)+1,q++),J.push(P))}k.setCellStyles(mxConstants.STYLE_IMAGE,null,J);console.log("Removed",q,"image(s) from",J.length,"cell(s): ",[J,C])}finally{k.model.endUpdate()}}));c.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(c,k.getModel())}));c.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var p=new mxImageExport,q=k.getGraphBounds(),C=k.view.scale,J=mxUtils.createXmlDocument(),G=J.createElement("output");J.appendChild(G);J=new mxXmlCanvas2D(G); | Base | 1 |
0,0,80,30,"ellipse");E(D)}finally{l.getModel().endUpdate()}if("horizontalTree"==f){var z=new mxCompactTreeLayout(l);z.edgeRouting=!1;z.levelDistance=30;x="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==f?(z=new mxCompactTreeLayout(l,!1),z.edgeRouting=!1,z.levelDistance=30,x="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==f?(z=new mxRadialTreeLayout(l,!1),z.edgeRouting=!1,z.levelDistance=80):"verticalFlow"==f?z=new mxHierarchicalLayout(l,mxConstants.DIRECTION_NORTH):"horizontalFlow"==
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(mxEvent.DONE,mxUtils.bind(this,function(){l.getModel().endUpdate();null!=t&&t()})),n.startAnimation()}},I=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(n,t,
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(),k.parentNode.removeChild(k));b.hideDialog()})});d.className="geBtn";b.editor.cancelFirst&&c.appendChild(d);var g=mxUtils.button(mxResources.get("insert"),function(n){l.clearCellOverlays(); | 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.appendChild(E);x.appendChild(y);var D=document.createElement("div");D.style.width="300px";D.style.height="300px";D.style.overflow="hidden";D.style.backgroundColor="#fff9";x.appendChild(D); | Base | 1 |
Graph.customFontElements={};Graph.recentCustomFonts={};Graph.isGoogleFontUrl=function(m){return m.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS};Graph.isCssFontUrl=function(m){return Graph.isGoogleFontUrl(m)};Graph.createFontElement=function(m,B){var K=Graph.fontMapping[B];null==K&&Graph.isCssFontUrl(B)?(m=document.createElement("link"),m.setAttribute("rel","stylesheet"),m.setAttribute("type","text/css"),m.setAttribute("charset","UTF-8"),m.setAttribute("href",B)):(null==K&&(K='@font-face {\nfont-family: "'+ | Base | 1 |
this.timeout),H=mxUtils.bind(this,function(){window.clearTimeout(A);v&&t.apply(this,arguments)}),L=mxUtils.bind(this,function(){window.clearTimeout(A);v&&u.apply(this,arguments)});n=n||{};n.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:H,error:L});d=JSON.stringify({event:"remoteInvoke",funtionName:d,functionArgs:g,msgMarkers:n});null!=this.remoteWin?this.remoteWin.postMessage(d,"*"):this.remoteInvokeQueue.push(d)};EditorUi.prototype.handleRemoteInvoke=function(d,
g){var n=mxUtils.bind(this,function(F,S){var p={event:"remoteInvokeResponse",msgMarkers:d.msgMarkers};null!=S?p.error={errResp:S}:null!=F&&(p.resp=F);this.remoteWin.postMessage(JSON.stringify(p),"*")});try{var t=d.funtionName,u=this.remoteInvokableFns[t];if(null!=u&&"function"===typeof this[t]){if(u.allowedDomains){for(var v=!1,A=0;A<u.allowedDomains.length;A++)if(g=="https://"+u.allowedDomains[A]){v=!0;break}if(!v){n(null,"Invalid Call: "+t+" is not allowed.");return}}var H=d.functionArgs;Array.isArray(H)||
(H=[]);if(u.isAsync)H.push(function(){n(Array.prototype.slice.apply(arguments))}),H.push(function(F){n(null,F||"Unkown Error")}),this[t].apply(this,H);else{var L=this[t].apply(this,H);n([L])}}else n(null,"Invalid Call: "+t+" is not found.")}catch(F){n(null,"Invalid Call: An error occurred, "+F.message)}};EditorUi.prototype.openDatabase=function(d,g){if(null==this.database){var n=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB;if(null!=n)try{var t=n.open("database",2);t.onupgradeneeded= | Base | 1 |
}finally{g.getModel().endUpdate()}v&&(g.setSelectionCell(n),g.scrollCellToVisible(n))}};f=mxUtils.button(mxResources.get("preview"),function(){d(z,M,!1)});f.className="geBtn";E.appendChild(f);f=mxUtils.button(mxResources.get("apply"),function(){d(b.editor.graph,e,!0)});f.className="geBtn gePrimaryBtn";E.appendChild(f);b.editor.cancelFirst||E.appendChild(k);y.appendChild(E);x.appendChild(y);l.appendChild(x);this.container=l},CustomDialog=function(b,e,f,c,k,l,x,y,E,D,z,M){var I=document.createElement("div"); | Base | 1 |
d)}),c,this.ui.getCurrentFile()!=e?e.getData():null,I.scale,I.border)}else z(e.meta.sha,Base64.encode(e.getData()))});k?this.getSha(x,y,D,E,mxUtils.bind(this,function(I){e.meta.sha=I;M()}),c):M()};GitHubClient.prototype.pickLibrary=function(e){this.pickFile(e)};GitHubClient.prototype.pickFolder=function(e){this.showGitHubDialog(!1,e,!0)};GitHubClient.prototype.pickFile=function(e){e=null!=e?e:mxUtils.bind(this,function(f){this.ui.loadFile("H"+encodeURIComponent(f))});this.showGitHubDialog(!0,e)}; | 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.remoteInvokeCallbacks[g.callbackId]=null};EditorUi.prototype.remoteInvoke=function(d,g,n,t,u){var v=!0,A=window.setTimeout(mxUtils.bind(this,function(){v=!1;u({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}), | Base | 1 |
mxEvent.getClientX(C),mxEvent.getClientY(C))},p=function(C){for(d.push(C);d.length>f;)d.shift()},q=function(C){var J=d.length;if(1===J%2||J>=f){var G=0,P=0,O,N=0;for(O=C;O<J;O++)N++,C=d[O],G+=C.x,P+=C.y;return{x:G/N,y:P/N}}return null}}}mxFreehand.prototype.NO_SMOOTHING=1;mxFreehand.prototype.MILD_SMOOTHING=4;mxFreehand.prototype.NORMAL_SMOOTHING=8;mxFreehand.prototype.VERY_SMOOTH_SMOOTHING=12;mxFreehand.prototype.SUPER_SMOOTH_SMOOTHING=16;mxFreehand.prototype.HYPER_SMOOTH_SMOOTHING=20;function P2PCollab(b,e,f){function c(N,T){try{if(!q){var m=e.file.getCurrentUser();if(p&&null!=m&&null!=m.displayName){var B={from:H,id:n,type:N,sessionId:e.clientId,userId:m.id,username:m.displayName,data:T,protocol:DrawioFileSync.PROTOCOL,editor:EditorUi.VERSION};B={bytes:e.objectToString(B),data:"aes"};B=JSON.stringify(B);C&&"cursor"!=N&&EditorUi.debug("P2PCollab: sending to socket server",[B]);n++;m=!C&&("cursor"==N||"selectionChange"==N);S&&!m&&O("message",B);if(m)for(p2pId in F)F[p2pId].send(B)}}}catch(K){null!=
window.console&&console.error(K,N,T)}}function k(N){if(b.shareCursorPosition&&!z.isMouseDown){var T=mxUtils.getOffset(z.container),m=z.view.translate,B=z.view.scale,K=null!=b.currentPage?b.currentPage.getId():null;c("cursor",{pageId:K,x:Math.round((N.getX()-T.x+z.container.scrollLeft)/B-m.x),y:Math.round((N.getY()-T.y+z.container.scrollTop)/B-m.y)})}}function l(N,T){var m=null!=b.currentPage?b.currentPage.getId():null;if(null!=N&&null!=N.cursor&&null!=N.lastCursor)if(null!=N.lastCursor.hide||!b.isShowRemoteCursors()|| | Base | 1 |
Ha.substring(Ha.indexOf(",")+1);Sa.style.cursor="pointer";Sa.style.width="100%";Sa.style.height="100%";na.appendChild(Sa);ra=b.createMermaidXml("%% Input: "+Na+"\n"+ra,EditorUi.defaultMermaidConfig,Ha,La,Xa);var Ta="<mxfile><diagram>"+Graph.compress(ra)+"</diagram></mxfile>";if(Ia||"undefined"===typeof mxMermaidToDrawio)ba=ma=ra;ra=m.cloneNode(!0);na.appendChild(ra);Ha=function(Pa){R=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};La=function(Pa){R||A(Ta,mxEvent.getClientX(Pa),mxEvent.getClientY(Pa),
Sa,Na)};mxEvent.addGestureListeners(Sa,Ha,null,La);mxEvent.addGestureListeners(ra,Ha,null,La)},function(ra){b.handleError(ra)})});Ma.setAttribute("disabled","disabled");Ma.className="geBtn gePrimaryBtn";pa=function(){window.setTimeout(function(){""!=la.value?Ma.removeAttribute("disabled"):Ma.setAttribute("disabled","disabled")},0)};ka=urlParams["smart-template"];null!=ka&&"1"!=ka&&(la.value=decodeURIComponent(ka),pa(),"1"==urlParams["smart-template-generate"]&&window.setTimeout(function(){Ma.click()}, | Base | 1 |
mxUtils.getTextContent(Z[Y]);W=b.stringToCells(Graph.decompress(B));var ca=b.editor.graph.getBoundingBoxFromGeometry(W);y(null,null,0,0,0,0,{xml:B,w:ca.width,h:ca.height})}J=!0}}catch(da){null!=window.console&&console.log("Error in library dialog: "+da)}J||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(da){null!=window.console&&console.log("Error in library dialog: "+da)}return null}function E(S){S.dataTransfer.dropEffect=null!=t?"move":"copy";S.stopPropagation(); | Base | 1 |
mxUtils.bind(this,function(O){Editor.isAutoDarkMode()&&this.setDarkMode(O.matches)}))}catch(O){this.actions.get("autoMode").setEnabled(!1)}else Editor.isSettingsEnabled()&&!0===mxSettings.settings.darkMode&&(J=!0);this.installSettings();screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&d.editor.loadFonts()};var x=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var d=window.innerWidth||document.documentElement.clientWidth||
document.body.clientWidth,g=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=g&&d<g?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<g&&d>=g&&(this.isFormatPanelVisible()||this.toggleFormatPanel(!0));this.lastWindowWidth=d}x.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var d=this.sketchFooterMenuElt,g=this.sketchMainMenuElt,n=this.sketchPickerMenuElt,t=this.editor.graph;n.style.transform= | Base | 1 |
App.prototype.createFile=function(b,e,f,c,k,l,x,y,E,D){c=y?null:null!=c?c:this.mode;if(null!=b&&this.spinner.spin(document.body,mxResources.get("inserting"))){e=null!=e?e:this.emptyDiagramXml;null==e||Editor.defaultCompressed||(e=this.uncompressPages(e));var z=mxUtils.bind(this,function(){this.spinner.stop()}),M=mxUtils.bind(this,function(I){z();null==I&&null==this.getCurrentFile()&&null==this.dialog?this.showSplash():null!=I&&this.handleError(I)});try{c==App.MODE_GOOGLE&&null!=this.drive?(null==
x&&null!=this.stateArg&&null!=this.stateArg.folderId&&(x=this.stateArg.folderId),this.drive.insertFile(b,e,x,mxUtils.bind(this,function(I){z();this.fileCreated(I,f,l,k,E,D)}),M)):c==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.insertFile(b,e,mxUtils.bind(this,function(I){z();this.fileCreated(I,f,l,k,E,D)}),M,!1,x):c==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.insertFile(b,e,mxUtils.bind(this,function(I){z();this.fileCreated(I,f,l,k,E,D)}),M,!1,x):c==App.MODE_TRELLO&&null!=this.trello?this.trello.insertFile(b,
e,mxUtils.bind(this,function(I){z();this.fileCreated(I,f,l,k,E,D)}),M,!1,x):c==App.MODE_DROPBOX&&null!=this.dropbox?this.dropbox.insertFile(b,e,mxUtils.bind(this,function(I){z();this.fileCreated(I,f,l,k,E,D)}),M):c==App.MODE_ONEDRIVE&&null!=this.oneDrive?this.oneDrive.insertFile(b,e,mxUtils.bind(this,function(I){z();this.fileCreated(I,f,l,k,E,D)}),M,!1,x):c==App.MODE_BROWSER?StorageFile.insertFile(this,b,e,mxUtils.bind(this,function(I){z();this.fileCreated(I,f,l,k,E,D)}),M):!y&&c==App.MODE_DEVICE&&
EditorUi.nativeFileSupport?(z(),this.showSaveFilePicker(mxUtils.bind(this,function(I,d){var g=new LocalFile(this,e,d.name,null,I,d);g.saveFile(d.name,!1,mxUtils.bind(this,function(){this.fileCreated(g,f,l,k,E,D)}),M,!0)}),mxUtils.bind(this,function(I){"AbortError"!=I.name&&M(I)}),this.createFileSystemOptions(b))):(z(),this.fileCreated(new LocalFile(this,e,b,null==c),f,l,k,E,D))}catch(I){z(),this.handleError(I)}}}; | Base | 1 |
g.addListener(mxEvent.SIZE,e);g.container.addEventListener("scroll",c);g.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(A){z=A;M.style.background=z.bkgClr;t()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(A,H,L,F){if(f&&4<A.height||!f&&4<A.width){if(null!=D.guidePart)try{d.putImageData(D.guidePart.imgData1,
D.guidePart.x1,D.guidePart.y1),d.putImageData(D.guidePart.imgData2,D.guidePart.x2,D.guidePart.y2),d.putImageData(D.guidePart.imgData3,D.guidePart.x3,D.guidePart.y3)}catch(m){}var S=D.origGuideMove.apply(this,arguments);try{d.lineWidth=.5;d.strokeStyle=z.guideClr;d.setLineDash([2]);if(f){var p=A.y+S.y+E-this.graph.container.scrollTop;var q=0;var C=p+A.height/2;var J=E/2;var G=p+A.height;var P=0;var O=d.getImageData(q,p-1,E,3);n(q,p,E,p);p--;var N=d.getImageData(J,C-1,E,3);n(J,C,E,C);C--;var T=d.getImageData(P,
G-1,E,3);n(P,G,E,G);G--}else p=0,q=A.x+S.x+E-this.graph.container.scrollLeft,C=E/2,J=q+A.width/2,G=0,P=q+A.width,O=d.getImageData(q-1,p,3,E),n(q,p,q,E),q--,N=d.getImageData(J-1,C,3,E),n(J,C,J,E),J--,T=d.getImageData(P-1,G,3,E),n(P,G,P,E),P--;if(null==D.guidePart||D.guidePart.x1!=q||D.guidePart.y1!=p)D.guidePart={imgData1:O,x1:q,y1:p,imgData2:N,x2:J,y2:C,imgData3:T,x3:P,y3:G}}catch(m){}}else S=D.origGuideMove.apply(this,arguments);return S};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy= | Base | 1 |
function(){b.hideDialog()})});E.className="geBtn";b.editor.cancelFirst&&e.appendChild(E);D=mxUtils.button(mxResources.get("insert"),function(d){try{b.hideDialog(),c(x.value,y.value,d)}catch(g){b.handleError(g)}});D.className="geBtn gePrimaryBtn";e.appendChild(D);b.editor.cancelFirst||e.appendChild(E);this.container=e},NewDialog=function(b,e,f,c,k,l,x,y,E,D,z,M,I,d,g,n,t,u){function v(aa){null!=aa&&(Ka=oa=aa?135:140);aa=!0;if(null!=Ga)for(;O<Ga.length&&(aa||0!=mxUtils.mod(O,30));){var la=Ga[O++];la=
S(la.url,la.libs,la.title,la.tooltip?la.tooltip:la.title,la.select,la.imgUrl,la.info,la.onClick,la.preview,la.noImg,la.clibs);aa&&la.click();aa=!1}}function A(aa,la,na,pa,ha,ka){if(null!=aa&&mxUtils.isAncestorNode(document.body,pa)){aa=mxUtils.parseXml(aa);aa=Editor.parseDiagramNode(aa.documentElement);var ua=new mxCodec(aa.ownerDocument),wa=new mxGraphModel;ua.decode(aa,wa);aa=wa.root.getChildAt(0).children;b.sidebar.createTooltip(pa,aa,Math.min((window.innerWidth||document.documentElement.clientWidth|| | Base | 1 |
var StorageDialog=function(b,e,f){function c(M,I,d,g,n,t){function u(){mxEvent.addListener(v,"click",null!=t?t:function(){d==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(d,!0);e()})):d==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(d,!0);e()}),function(S){b.spinner.stop();b.handleError(S)}):
(b.setMode(d,!0),e())})}y++;++x>f&&(mxUtils.br(E),x=1);var v=document.createElement("a");v.style.overflow="hidden";v.style.display="inline-block";v.className="geBaseButton";v.style.boxSizing="border-box";v.style.fontSize="11px";v.style.position="relative";v.style.margin="4px";v.style.marginTop="8px";v.style.marginBottom="0px";v.style.padding="8px 10px 8px 10px";v.style.width="88px";v.style.height="100px";v.style.whiteSpace="nowrap";v.setAttribute("title",I);var A=document.createElement("div");A.style.textOverflow= | Base | 1 |
(EditDataDialog.placeholderHelpLink="https://www.drawio.com/doc/faq/predefined-placeholders");if(/viewer\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname))this.editor.editBlankUrl="https://app.diagrams.net/";var A=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(O){O=null!=O?O:"";"1"==urlParams.dev&&(O+=(0<O.length?"&":"?")+"dev=1");return A.apply(this,arguments)};var H=g.addClickHandler;g.addClickHandler=function(O,N,T){var m=N;N= | Base | 1 |
5)&&"application/pdf"!==t.type||"image/svg"===t.type.substring(0,9)?u.readAsText(t):u.readAsDataURL(t)})(d[n])};EditorUi.prototype.openLocalFile=function(d,g,n,t,u){var v=this.getCurrentFile(),A=mxUtils.bind(this,function(){window.openFile=null;if(null==g&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var H=mxUtils.parseXml(d);null!=H&&(this.editor.setGraphXml(H.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,d,g||this.defaultFilename,n,t,u))});if(null!=
d&&0<d.length)null==v||!v.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=t)?A():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=t)&&null!=v&&v.isModified()?this.confirm(mxResources.get("allChangesLost"),null,A,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(d,g),window.openWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=v&&v.isModified()?this.confirm(mxResources.get("allChangesLost"),
null,A,mxResources.get("cancel"),mxResources.get("discardChanges")):A()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var d={};if(null!=this.pages)for(var g=0;g<this.pages.length;g++)this.updatePageRoot(this.pages[g]),this.addBasenamesForCell(this.pages[g].root,d);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),d);g=[];for(var n in d)g.push(n);return g};EditorUi.prototype.addBasenamesForCell=function(d,g){function n(A){if(null!= | Base | 1 |
P.substring(0,11)?c.loadImage(P,mxUtils.bind(this,function(R){var U=!0,W=mxUtils.bind(this,function(){c.resizeImage(R,P,mxUtils.bind(this,function(Q,V,X){Q=U?Math.min(1,Math.min(c.maxImageSize/V,c.maxImageSize/X)):1;c.importFile(P,O,B,K,Math.round(V*Q),Math.round(X*Q),N,function(Y){c.spinner.stop();k.setSelectionCells(Y);k.scrollCellToVisible(k.getSelectionCell())})}),U)});P.length>c.resampleThreshold?c.confirmImageResize(function(Q){U=Q;W()}):W()}),mxUtils.bind(this,function(){c.handleError({message:mxResources.get("cannotOpenFile")})})): | Base | 1 |
if(null!=B&&0<B.length){var W=document.createElement("script");W.setAttribute("type","text/javascript");W.setAttribute("src",m);B[0].parentNode.appendChild(W)}}};Editor.prototype.csvToArray=function(m){if(0<m.length){var B="",K=[""],R=0,U=!0,W;m=$jscomp.makeIterator(m);for(W=m.next();!W.done;W=m.next())W=W.value,'"'===W?(U&&W===B&&(K[R]+=W),U=!U):","===W&&U?W=K[++R]="":K[R]+=W,B=W;return K}return[]};Editor.prototype.getProxiedUrl=function(m){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&
!this.isCorsEnabledForUrl(m)){var B=/(\.v(dx|sdx?))($|\?)/i.test(m)||/(\.vs(x|sx?))($|\?)/i.test(m);B=/\.png$/i.test(m)||/\.pdf$/i.test(m)||B;var K="t="+(new Date).getTime();m=PROXY_URL+"?url="+encodeURIComponent(m)+"&"+K+(B?"&base64=1":"")}return m};Editor.prototype.isCorsEnabledForUrl=function(m){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||m.substring(0,window.location.origin.length)==window.location.origin)return!0;null!=urlParams.cors&&null==this.corsRegExp&&(this.corsRegExp=new RegExp(decodeURIComponent(urlParams.cors))); | Base | 1 |
"#000000")),ta=mxUtils.setStyle(ta,mxConstants.STYLE_GRADIENTCOLOR,mxUtils.getValue(oa,mxConstants.STYLE_GRADIENTCOLOR,null)),R.getModel().isVertex(ya[xa])&&(ta=mxUtils.setStyle(ta,mxConstants.STYLE_FONTCOLOR,mxUtils.getValue(oa,mxConstants.STYLE_FONTCOLOR,null))));R.getModel().setStyle(ya[xa],ta)}}finally{R.getModel().endUpdate()}}));ba.className="geStyleButton";ba.style.width="36px";ba.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";ba.style.margin="0px 6px 6px 0px";if(null!=Ca){var fa=
Editor.isDarkMode()?"2px solid":"1px solid";null!=Ca.border&&(fa=Ca.border);null!=Ca.gradient?mxClient.IS_IE&&10>document.documentMode?ba.style.filter="progid:DXImageTransform.Microsoft.Gradient(StartColorStr='"+Ca.fill+"', EndColorStr='"+Ca.gradient+"', GradientType=0)":ba.style.backgroundImage="linear-gradient("+Ca.fill+" 0px,"+Ca.gradient+" 100%)":Ca.fill==mxConstants.NONE?ba.style.background="url('"+Dialog.prototype.noColorImage+"')":ba.style.backgroundColor=""==Ca.fill?mxUtils.getValue(R.defaultVertexStyle,
mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff"):Ca.fill||mxUtils.getValue(R.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,Editor.isDarkMode()?Editor.darkColor:"#ffffff");ba.style.border=Ca.stroke==mxConstants.NONE?fa+" transparent":""==Ca.stroke?fa+" "+mxUtils.getValue(R.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?"#ffffff":Editor.darkColor):fa+" "+(Ca.stroke||mxUtils.getValue(R.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,Editor.isDarkMode()?
"#ffffff":Editor.darkColor));null!=Ca.title&&ba.setAttribute("title",Ca.title)}else{fa=mxUtils.getValue(R.defaultVertexStyle,mxConstants.STYLE_FILLCOLOR,"#ffffff");var qa=mxUtils.getValue(R.defaultVertexStyle,mxConstants.STYLE_STROKECOLOR,"#000000");ba.style.backgroundColor=fa;ba.style.border="1px solid "+qa}ba.style.borderRadius="0";U.appendChild(ba)});U.innerText="";for(var Ba=0;Ba<ea.length;Ba++)0<Ba&&0==mxUtils.mod(Ba,4)&&mxUtils.br(U),za(ea[Ba])});null==this.format.currentScheme?Z(Math.min(V.length- | Base | 1 |
F=new mxAsyncCanvas(this.thumbImageCache);L.images=this.thumbImageCache.images;var S=new mxImageExport;S.drawShape=function(p,q){p.shape instanceof mxShape&&p.shape.checkBounds()&&(q.save(),q.translate(.5,.5),p.shape.paint(q),q.translate(-.5,-.5),q.restore())};S.drawText=function(p,q){};S.drawState(x.getView().getState(x.model.root),F);F.finish(mxUtils.bind(this,function(){try{S.drawState(x.getView().getState(x.model.root),L),x!=this.editor.graph&&null!=x.container.parentNode&&x.container.parentNode.removeChild(x.container)}catch(p){M= | Base | 1 |
O.pagecount=null!=d.pages?d.pages.length:1;O.page=null!=d.currentPage?d.currentPage.getName():"";O.pagenumber=null!=d.pages&&null!=d.currentPage?mxUtils.indexOf(d.pages,d.currentPage)+1:1;return O};var p=g.getGlobalVariable;g.getGlobalVariable=function(O){var N=d.getCurrentFile();return"filename"==O&&null!=N?N.getTitle():"page"==O&&null!=d.currentPage?d.currentPage.getName():"pagenumber"==O?null!=d.currentPage&&null!=d.pages?mxUtils.indexOf(d.pages,d.currentPage)+1:1:"pagecount"==O?null!=d.pages?
d.pages.length:1:p.apply(this,arguments)};var q=null;this.addListener("fileDescriptorChanged",function(){var O=this.getCurrentFile();null!=O&&q!=O.getTitle()&&(q=null!=O.getTitle()?O.getTitle():this.defaultFilename,g.invalidateDescendantsWithPlaceholders(g.model.getRoot()),g.view.validate())});var C=g.labelLinkClicked;g.labelLinkClicked=function(O,N,T){var m=N.getAttribute("href");if(null==m||!g.isCustomLink(m)||!mxEvent.isTouchEvent(T)&&mxEvent.isPopupTrigger(T))C.apply(this,arguments);else{if(!g.isEnabled()|| | Base | 1 |
function(m,B){for(var K=0;K<B.length;K++){var R=B[K],U;for(U in R)this.updateCustomLinkAction(m,R[U],"cells"),this.updateCustomLinkAction(m,R[U],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(m,B,K){if(null!=B&&null!=B[K]){for(var R=[],U=0;U<B[K].length;U++)if("*"==B[K][U])R.push(B[K][U]);else{var W=m[B[K][U]];null!=W?""!=W&&R.push(W):R.push(B[K][U])}B[K]=R}};Graph.prototype.getCellsForAction=function(m,B){B=this.getCellsById(m.cells).concat(this.getCellsForTags(m.tags,null,B)); | 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.prototype.saveLibrary=function(d,g,n,t,u,v,A){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&
(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(d){null==d&&(d=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,d,".scratchpad"))})):this.closeLibrary(this.scratchpad))};EditorUi.prototype.createLibraryDataFromImages=function(d){if(!Editor.defaultCompressed)for(var g=0;g<d.length;g++)null!=d[g].xml&&"<"!=d[g].xml.charAt(0)&&(d[g].xml=mxUtils.trim(Graph.decompress(d[g].xml)));g=mxUtils.createXmlDocument();var n=g.createElement("mxlibrary"); | Base | 1 |
this.isRemoteFileFormat(T,W)&&null!=V?this.isExternalDataComms()?this.parseFile(V,mxUtils.bind(this,function(Z){4==Z.readyState&&(this.spinner.stop(),200<=Z.status&&299>=Z.status?Y(Z.responseText,"text/xml"):this.handleError({message:mxResources.get(413==Z.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):Y(T,m)}}));N.stopPropagation();N.preventDefault()})),mxEvent.addListener(H, | Base | 1 |
"ellipsis";G.setAttribute("title",J.title+" ("+J.id+")");var P=document.createElement("input");P.setAttribute("type","checkbox");P.checked=b.sidebar.isEntryVisible(J.id);P.defaultChecked=P.checked;G.appendChild(P);mxUtils.write(G," "+J.title);z.appendChild(G);var O=function(N){if(null==N||"INPUT"!=mxEvent.getSource(N).nodeName){M.style.textAlign="center";M.style.padding="0px";M.style.color="";M.innerText="";if(null!=J.desc){var T=document.createElement("pre");T.style.boxSizing="border-box";T.style.fontFamily=
"inherit";T.style.margin="20px";T.style.right="0px";T.style.textAlign="left";mxUtils.write(T,J.desc);M.appendChild(T)}null!=J.imageCallback?J.imageCallback(M):null!=J.image?M.innerHTML+='<img border="0" style="max-width:100%;" src="'+J.image+'"/>':null==J.desc&&(M.style.padding="20px",M.style.color="rgb(179, 179, 179)",mxUtils.write(M,mxResources.get("noPreview")));null!=I&&(I.style.backgroundColor="");I=G;I.style.backgroundColor=Editor.isDarkMode()?"#000000":"#ebf2f9";null!=N&&mxEvent.consume(N)}}; | Base | 1 |
EditorUi.prototype.addTabListeners=function(b,e){mxEvent.disableContextMenu(e);var f=this.editor.graph;mxEvent.addListener(e,"dblclick",mxUtils.bind(this,function(E){this.renamePage(b);mxEvent.consume(E)}));var c=document.createElement("div");c.className="geTabMenuButton";c.style.backgroundImage="url("+mxWindow.prototype.minimizeImage+")";c.style.backgroundPosition="center center";c.style.backgroundRepeat="no-repeat";c.style.backgroundSize="10px";e.appendChild(c);var k=!1,l=!1,x=mxUtils.bind(this,
function(E){k=null!=this.currentMenu;l=b==this.currentPage;f.isMouseDown||l||this.selectPage(b);this.scrollToPage()}),y=mxUtils.bind(this,function(E){if(f.isEnabled()&&!f.isMouseDown&&(l&&(mxEvent.isTouchEvent(E)||mxEvent.getSource(E)==c)||mxEvent.isPopupTrigger(E))&&(f.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(E)||!k)){var D=new mxPopupMenu(this.createPageMenu(b));D.div.className+=" geMenubarMenu";D.smartSeparators=!0;D.showDisabled=!0;D.autoExpand=!0;D.hideMenu=mxUtils.bind(this,
function(){mxPopupMenu.prototype.hideMenu.apply(D,arguments);this.resetCurrentMenu();D.destroy()});var z=mxEvent.getClientX(E),M=mxEvent.getClientY(E);D.popup(z,M,null,E);this.setCurrentMenu(D,e)}mxEvent.consume(E)});mxEvent.addGestureListeners(c,x,null,y);mxEvent.addGestureListeners(e,x,null,y)}; | Base | 1 |
"1");this.sketchWrapperElt.appendChild(this.sketchMainMenuElt)}};EditorUi.prototype.isPageMenuVisible=function(){return null!=this.pages&&("0"!=urlParams.pages||1<this.pages.length||Editor.pagesVisible)};EditorUi.prototype.createFooterMenuForTheme=function(d){if(("simple"==d||"sketch"==d)&&null==this.sketchFooterMenuElt){this.sketchFooterMenuElt=document.createElement("div");this.sketchFooterMenuElt.className="geToolbarContainer";var g=this.sketchFooterMenuElt;if("simple"!=d){var n=this.createPageMenuTab(!1, | Base | 1 |
"hidden";ma.style.bottom="0px";ma.style.height="42px";ma.style.right="10px";ma.style.left="10px";Q.isEnabled()&&(ma.appendChild(Z),ma.appendChild(ca),X.appendChild(ma));return{div:X,refresh:da}};Graph.prototype.getCustomFonts=function(){var m=this.extFonts;m=null!=m?m.slice():[];for(var B in Graph.customFontElements){var K=Graph.customFontElements[B];m.push({name:K.name,url:K.url})}return m};Graph.prototype.setFont=function(m,B){Graph.addFont(m,B);document.execCommand("fontname",!1,m);if(null!=B){var K=
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,arguments)&&(!this.shadowVisible||!mxClient.IS_SF)};Graph.prototype.updateGlobalUrlVariables=function(){this.globalVars=Editor.globalVars;if(null!=urlParams.vars)try{this.globalVars=null!= | Base | 1 |
520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(d){this.loadOrgChartLayouts(mxUtils.bind(this,function(){var g=new TextareaDialog(this,mxResources.get("layout"),d,mxUtils.bind(this,function(n){if(0<n.length)try{var t=JSON.parse(n);this.executeLayouts(this.editor.graph.createLayouts(t));this.customLayoutConfig=t;this.hideDialog()}catch(u){this.handleError(u)}}),null,null,null,null,mxUtils.bind(this,function(n,t){var u=mxUtils.button(mxResources.get("copy"),
mxUtils.bind(this,function(){try{var v=t.value;t.value=JSON.stringify(JSON.parse(v));t.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?t.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));t.value=v}catch(A){this.handleError(A)}}));u.setAttribute("title","copy");u.className="geBtn";n.appendChild(u)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(g.container,620,460,!0,!0);g.init()}))}; | Base | 1 |
function(v){return mxEvent.getSource(v)==n?!0:u.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(d,g){mxSettings.setUi(d);(g=this.doSetCurrentTheme(d)||g)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=function(d){return""==d||"dark"==d||"default"==d||"kennedy"==d||null==d};EditorUi.prototype.doSetCurrentTheme=function(d,g,n){function t(L){return"simple"==L||0==g&&"sketch"==L}g=null!=g?g:150;var u=Editor.currentTheme,v=t(u)&&this.isDefaultTheme(d)|| | Base | 1 |
EditorUi.prototype.installStatusMinimizer=function(d){d=null!=d?d:this.statusContainer.parentNode;var g=!1;mxEvent.addListener(d,"mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&""!=this.editor.getStatus()&&(this.statusContainer.style.display="inline-flex")}));mxEvent.addListener(d,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||g||(this.statusContainer.style.display="none")}));var n=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var t=
null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:null;g=null!=t&&null!=t.getAttribute("class");if(!g&&null!=t){t=t.getAttribute("title");var u=this.getCurrentFile();u=null!=u?u.savingStatusKey:DrawioFile.prototype.savingStatusKey;t==mxResources.get(u)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(u))+'..."src="'+Editor.tailSpin+'"></div>',g=!0)}this.statusContainer.style.display=
"none";t=32>=d.clientWidth;d.style.visibility=t&&""==this.editor.getStatus()?"hidden":"";if(t||g)this.statusContainer.style.display="inline-flex",g=!0}else"simple"==Editor.currentTheme?(this.statusContainer.style.display="inline-flex",this.statusContainer.style.display=0==this.statusContainer.clientWidth?"none":"inline-flex"):this.statusContainer.style.display="inline-flex"});this.editor.addListener("statusChanged",n);n()};EditorUi.prototype.switchTheme=function(d){this.isDefaultTheme(d)&&null!=this.formatContainer&& | 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.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var e=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=e){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var f=mxFreehand.prototype.NORMAL_SMOOTHING,c=null,k=[],l,x=[],y,E=!1,D=!0,z=!0,M=!0,I=!0,d=[],g=!1,n=!1,t=!1,u={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},v=!0;this.setClosedPath=function(C){E=C};this.setAutoClose=function(C){D=C};this.setAutoInsert= | Base | 1 |
e},ConnectionPointsDialog=function(b,e){function f(){null!=k&&k.destroy()}var c=document.createElement("div");c.style.userSelect="none";var k=null;this.init=function(){function l(J,G,P){J=new mxCell("",new mxGeometry(J,G,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0;connectable=0;editable=0;");J.vertex=!0;J.cp=!0;J.constObj=P;return M.addCell(J)}function x(J){J=M.getSelectionCells();M.deleteCells(J)}function y(){var J=parseInt(S.value)||0;J=0> | Base | 1 |
function(W,Q,V,X,Y,Z){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(W+Y,Q),this.lineTo(W+V-Y,Q),this.quadTo(W+V,Q,W+V,Q+Z),this.lineTo(W+V,Q+X-Z),this.quadTo(W+V,Q+X,W+V-Y,Q+X),this.lineTo(W+Y,Q+X),this.quadTo(W,Q+X,W,Q+X-Z),this.lineTo(W,Q+Z),this.quadTo(W,Q,W+Y,Q))};m.prototype.drawPath=function(W){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),W)}catch(V){}this.passThrough=!1}else if(null!=this.nextShape){for(var Q in W)this.nextShape.options[Q]= | Base | 1 |
"sketchStyle","rough")?this.createComicCanvas(W):this.createRoughCanvas(W)};var K=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(W,Q,V,X,Y){null!=W.handJiggle&&W.handJiggle.passThrough||K.apply(this,arguments)};var R=mxShape.prototype.paint;mxShape.prototype.paint=function(W){var Q=W.addTolerance,V=!0;null!=this.style&&(V="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=W.handJiggle&&W.handJiggle.constructor==m&&!this.outline){W.save(); | Base | 1 |
K&&B(Editor.svgBrokenImage.src)};U.src=m}}catch(W){B(Editor.svgBrokenImage.src)}};Editor.prototype.convertImages=function(m,B,K,R){null==R&&(R=this.createImageUrlConverter());var U=0,W=K||{};K=mxUtils.bind(this,function(Q,V){Q=m.getElementsByTagName(Q);for(var X=0;X<Q.length;X++)mxUtils.bind(this,function(Y){try{if(null!=Y){var Z=R.convert(Y.getAttribute(V));if(null!=Z&&"data:"!=Z.substring(0,5)){var ca=W[Z];null==ca?(U++,this.convertImageToDataUri(Z,function(da){null!=da&&(W[Z]=da,Y.setAttribute(V,
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+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U>>2);B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((U&3)<<4);B+="==";break}W=m.charCodeAt(K++);if(K==R){B+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(U>> | Base | 1 |
va,Ga=Fa+(Qa.x-Fa)/va-da,Va=Ra+(Qa.y-Ra)/va-da,Ua=new Image;Ua.onload=function(){try{for(var ja=-Math.round(Da-mxUtils.mod((Fa-Ga)*V,Da)),aa=-Math.round(Da-mxUtils.mod((Ra-Va)*V,Da));ja<ta;ja+=Da)for(var la=aa;la<Ka;la+=Da)oa.drawImage(Ua,ja/V,la/V);ya()}catch(na){null!=U&&U(na)}};Ua.onerror=function(ja){null!=U&&U(ja)};Ua.src=Ea}else ya()}catch(ja){null!=U&&U(ja)}});qa.onerror=function(ya){null!=U&&U(ya)};Y&&this.graph.addSvgShadow(fa);this.graph.mathEnabled&&this.addMathCss(fa);var ia=mxUtils.bind(this, | Base | 1 |
mxGraphView.prototype.stateValidated=function(m){null!=m.shape&&this.redrawEnumerationState(m);return S.apply(this,arguments)};mxGraphView.prototype.createEnumerationValue=function(m){m=decodeURIComponent(mxUtils.getValue(m.style,"enumerateValue",""));""==m&&(m=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(m)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(m){var B="1"==mxUtils.getValue(m.style, | Base | 1 |
f.getHash(),action:"from_"+A.id+"."+A.headRevisionId+"-to_"+f.desc.id+"."+f.desc.headRevisionId,label:null!=this.user?"user_"+this.user.id:"nouser"+(null!=f.sync?"-client_"+f.sync.clientId:"nosync")})}catch(N){}}}catch(N){d(N)}}),G=mxUtils.bind(this,function(O,N){f.saveLevel=4;try{null!=D&&(L.properties=D);var T=E||f.constructor!=DriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?null:f.getCurrentEtag(),m=mxUtils.bind(this,function(R){f.saveLevel=5;try{var U=f.desc.mimeType!=this.xmlMimeType&& | Base | 1 |
function(){var m=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=m.style.shape&&!m.containsLabel&&0<m.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));I.apply(this,arguments);if(Editor.enableCustomProperties){for(var B={},K=m.vertices,R=m.edges,U=0;U<K.length;U++)this.findCommonProperties(K[U],B,0==U);for(U=0;U<R.length;U++)this.findCommonProperties(R[U],B,0==K.length&&0==U);null!=Object.getOwnPropertyNames&&
0<Object.getOwnPropertyNames(B).length&&this.container.appendChild(this.addProperties(this.createPanel(),B,m))}};var d=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(m){var B=this.editorUi.getSelectionState();1==B.cells.length?this.addActions(m,["copyStyle","pasteStyle"]):1<=B.cells.length&&this.addActions(m,["pasteStyle","pasteData"]);return d.apply(this,arguments)};EditorUi.prototype.propertiesCollapsed=!0;StyleFormatPanel.prototype.addProperties=function(m, | Base | 1 |
na.join(" ")}null!=ja?(R=ja,R.className+=" "+aa,U=la,ia.className="geTempDlgCreateBtn"):(U=R=null,ia.className="geTempDlgCreateBtn geTempDlgBtnDisabled")}function H(ja,aa){if(null!=U){var la=function(ua){ka.isExternal?E(ka,function(wa){na(wa,ua)},pa):ka.url?mxUtils.get(TEMPLATE_PATH+"/"+ka.url,mxUtils.bind(this,function(wa){200<=wa.getStatus()&&299>=wa.getStatus()?na(wa.getText(),ua):pa()})):na(b.emptyDiagramXml,ua)},na=function(ua,wa){g||b.hideDialog(!0);e(ua,wa,ka,aa)},pa=function(){n(mxResources.get("cannotLoad")); | 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.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function c(G){return n.isVertex(G)&&l(G)}function k(G){var P=!1;null!=G&&(P="1"== | Base | 1 |
"260px";g.style.textAlign="center";g.style.fontSize="22px";g.style.color="#a0c3ff";mxUtils.write(g,mxResources.get("dragImagesHere"));f.appendChild(g);var n={},t=null,u=null,v=null;M=function(S){"true"!=mxEvent.getSource(S).getAttribute("contentEditable")&&null!=v&&(v(),v=null,mxEvent.consume(S))};mxEvent.addListener(d,"mousedown",M);mxEvent.addListener(d,"pointerdown",M);mxEvent.addListener(d,"touchstart",M);var A=new mxUrlConverter,H=!1;if(null!=c)for(M=0;M<c.length;M++)e=c[M],y(e.data,null,0,0, | Base | 1 |
function(d){"simple"==d||"sketch"==d?null==this.sketchStyleElt&&(this.sketchStyleElt=document.createElement("style"),this.sketchStyleElt.setAttribute("type","text/css"),this.sketchStyleElt.innerHTML=Editor.createMinimalCss(),document.getElementsByTagName("head")[0].appendChild(this.sketchStyleElt)):null!=this.sketchStyleElt&&(this.sketchStyleElt.parentNode.removeChild(this.sketchStyleElt),this.sketchStyleElt=null)};EditorUi.prototype.createWrapperForTheme=function(d){"simple"==d||"sketch"==d?(null==
this.sketchWrapperElt&&(this.sketchWrapperElt=document.createElement("div"),this.sketchWrapperElt.style.cssText="position:absolute;top:0px;left:0px;right:0px;bottom:0px;overflow:hidden;"),"sketch"==d&&(this.sketchWrapperElt.className="geSketch"),this.diagramContainer.parentNode.appendChild(this.sketchWrapperElt),this.sketchWrapperElt.appendChild(this.diagramContainer)):null!=this.sketchWrapperElt&&null!=this.sketchWrapperElt.parentNode&&(this.tabContainer.parentNode.insertBefore(this.diagramContainer,
this.tabContainer),this.sketchWrapperElt.parentNode.removeChild(this.sketchWrapperElt))};EditorUi.prototype.createMainMenuForTheme=function(d){if(("simple"==d||"sketch"==d)&&null==this.sketchMainMenuElt){this.sketchMainMenuElt=document.createElement("div");this.sketchMainMenuElt.style.cssText="position:absolute;padding:9px 12px;overflow:hidden;white-space:nowrap;user-select:none;box-sizing:border-box;";var g=this.createMenu("simple"==d?"view":"diagram","simple"==d?Editor.thinViewImage:Editor.menuImage); | Base | 1 |
!navigator.onLine||!d&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(d,g,n){var t=null==d||null==g;n=null!=n?n:24;var u=new Spinner({lines:12,length:n,width:Math.round(n/3),radius:Math.round(n/2),rotate:0,color:Editor.isDarkMode()?"#c0c0c0":"#000",speed:1.5,trail:60,shadow:!1,hwaccel:!1,zIndex:2E9}),v=u.spin;u.spin=function(H,L){var F=
!1;this.active||(v.call(this,H),this.active=!0,null!=L&&(t&&(g=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,d=document.body.clientWidth/2-2),F=document.createElement("div"),F.style.position="absolute",F.style.whiteSpace="nowrap",F.style.background="#4B4243",F.style.color="white",F.style.fontFamily=Editor.defaultHtmlFont,F.style.fontSize="9pt",F.style.padding="6px",F.style.paddingLeft="10px",F.style.paddingRight="10px",F.style.zIndex=2E9,F.style.left=Math.max(0,
d)+"px",F.style.top=Math.max(0,g+70)+"px",mxUtils.setPrefixedStyle(F.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(F.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(F.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=L.substring(L.length-3,L.length)&&"!"!=L.charAt(L.length-1)&&(L+="..."),F.innerHTML=L,H.appendChild(F),u.status=F),this.pause=mxUtils.bind(this,function(){var S=function(){};this.active&&(S=mxUtils.bind(this,function(){this.spin(H,L)}));this.stop();
return S}),F=!0);return F};var A=u.stop;u.stop=function(){A.call(this);this.active=!1;null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status);u.status=null};u.pause=function(){return function(){}};return u};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),n=this.editor.extractGraphModel(g.documentElement,!0);return null!=n&&0==n.getElementsByTagName("parsererror").length}catch(t){}return!1};EditorUi.prototype.isVisioData=function(d){return 8< | 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&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,Q);this.graph.addListener(mxEvent.REFRESH,Q)};B=document.getElementsByTagName("script"); | Base | 1 |
parentChildSpacing:parseInt(K.value),siblingSpacing:parseInt(R.value)}}];c.hideDialog();c.showCustomLayoutDialog(JSON.stringify(U,null,2))});N.className="geBtn";O=new CustomDialog(c,O,function(){null==C&&(C=2);c.loadOrgChartLayouts(P)},null,null,null,N);c.showDialog(O.container,355,140,!0,!0)},q,null,l());p.addSeparator(q);p.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){c.tryAndHandle(mxUtils.bind(this,function(){var C=new mxParallelEdgeLayout(k);C.checkOverlap=!0;c.prompt(mxResources.get("spacing"), | 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(W){return new m(W,Editor.createRoughCanvas(W),this)};var B=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(W){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?B.apply(this,arguments):"comic"==mxUtils.getValue(this.style, | Base | 1 |
B[K].url)}catch(U){console.log("ExtFonts format error: "+U.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||"Invalid data",toString:function(){return this.message}};};var e=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(m,B){m=null!=m?m:!0;var K=e.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&K.setAttribute("style",
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.length&&(R=this.graph.extFonts.map(function(U){return U.name+"^"+U.url}),K.setAttribute("extFonts",R.join("|")));return K};Editor.prototype.isDataSvg=function(m){try{var B=mxUtils.parseXml(m).documentElement.getAttribute("content"); | 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.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")}; | Base | 1 |
var X=this.fill,Y=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,ca=W.setStrokeColor;W.setStrokeColor=function(){};var da=W.setFillColor;W.setFillColor=function(){};V||null==X||(this.configurePointerEvents=function(){});W.handJiggle.passThrough=!0;R.apply(this,arguments);W.handJiggle.passThrough=!1;W.setFillColor=da;W.setStrokeColor=ca;this.configurePointerEvents=Z;this.stroke=Y;this.fill=X;W.restore();V&&null!=X&&(W.addTolerance=function(){})}R.apply(this,arguments);W.addTolerance= | 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(mxEvent.DONE,mxUtils.bind(this,function(){l.getModel().endUpdate();null!=t&&t()})),n.startAnimation()}},I=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(n,t, | Base | 1 |
else if("svg"==n)d.hideDialog(),d.saveData(g,"svg",mxUtils.getXml(L.getSvg(t,u,v)),"image/svg+xml");else{var F=d.getFileData(!0,null,null,null,null,!0),S=L.getGraphBounds(),p=Math.floor(S.width*u/L.view.scale),q=Math.floor(S.height*u/L.view.scale);if(F.length<=MAX_REQUEST_SIZE&&p*q<MAX_AREA)if(d.hideDialog(),"png"!=n&&"jpg"!=n&&"jpeg"!=n||!d.isExportToCanvas()){var C={globalVars:L.getExportVariables()};H&&(C.grid={size:L.gridSize,steps:L.view.gridSteps,color:L.view.gridColor});d.saveRequest(g,n,function(J,
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"==t,!0,!1,!1,v,!0,!1,null,H,A):d.exportImage(u,!1,!0,!1,!1,v,!0,!1,"jpeg",H);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1); | Base | 1 |
null!=I.errors&&0<I.errors.length&&(M="too_large"==I.errors[0].code)}catch(d){}c({message:mxResources.get(M?"drawingTooLarge":"forbidden")})}else 404===e.getStatus()?c({message:this.getErrorMessage(e,mxResources.get("fileNotFound"))}):400===e.getStatus()?c({status:400}):c({status:e.getStatus(),message:this.getErrorMessage(e,mxResources.get("error")+" "+e.getStatus())})}),mxUtils.bind(this,function(M){window.clearTimeout(D);E&&c(M)}))}),x=mxUtils.bind(this,function(y){null==this.user?this.updateUser(function(){x(!0)}, | Base | 1 |
D.appendChild(l);M.appendChild(D);E?(D.style.marginTop="10px",I=document.createElement("p"),I.style.marginTop="20px",I.style.marginBottom="0px",I.appendChild(d),k=document.createElement("span"),mxUtils.write(k," "+mxResources.get("rememberThisSetting")),I.appendChild(k),M.appendChild(I),mxEvent.addListener(k,"click",function(n){d.checked=!d.checked;mxEvent.consume(n)})):D.style.marginTop="12px";this.init=function(){g.focus()};this.container=M},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),
document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};HeadlessEditorUi.prototype.addTrees=function(){};HeadlessEditorUi.prototype.onBeforeUnload=function(){};HeadlessEditorUi.prototype.updateActionStates=function(){};EditorUi.DIFF_INSERT="i";EditorUi.DIFF_REMOVE="r";EditorUi.DIFF_UPDATE="u";EditorUi.transientViewStateProperties="defaultParent currentRoot scrollLeft scrollTop scale translate lastPasteXml pasteCounter".split(" ");EditorUi.prototype.viewStateProperties={background:!0,backgroundImage:!0,shadowVisible:!0,foldingEnabled:!0,pageScale:!0,mathEnabled:!0,pageFormat:!0,extFonts:!0}; | Base | 1 |
"data:"+d+";base64,"+L);k.style.position="absolute";k.style.top="70px";k.style.right="100px";k.style.maxWidth="120px";k.style.maxHeight="80px";mxUtils.setPrefixedStyle(k.style,"transform","translate(50%,-50%)");l.appendChild(k);mxClient.IS_FF||"image/png"!=d||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||(n=mxUtils.button(mxResources.get("copy"),function(q){q=b.base64ToBlob(L,"image/png");q=new ClipboardItem({"image/png":q,"text/html":new Blob(['<img src="data:'+d+";base64,"+
L+'">'],{type:"text/html"})});navigator.clipboard.write([q]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(C){b.handleError(C)}))}),n.style.marginTop="6px",n.className="geBtn");E&&Editor.popupsAllowed&&(k.style.cursor="pointer",mxEvent.addGestureListeners(k,null,null,function(q){mxEvent.isPopupTrigger(q)||v("_blank")}))}mxUtils.br(l);var F=document.createElement("div");F.style.textAlign="center";var S=0;F.style.marginTop="6px"; | Base | 1 |
T,m,B,K){l=mxEvent.isAltDown(n)?l:v.getCenterInsertPoint(new mxRectangle(0,0,B,K));var R=null;v.getModel().beginUpdate();try{R="txt"==T?b.insertAsPreText(m,l.x,l.y):v.insertVertex(null,null,null,l.x,l.y,B,K,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(m)+";"),v.setAttributeForCell(R,"plantUmlData",JSON.stringify({data:N,format:T},null,2))}finally{v.getModel().endUpdate()}null!=R&&(v.setSelectionCell(R),v.scrollCellToVisible(R))},v=b.editor.graph,A="plantUmlTxt"== | Base | 1 |
W[Q];W.stroke!=mxConstants.NONE&&null!=W.stroke||delete this.nextShape.options.stroke;W.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};m.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};m.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};m.prototype.fillAndStroke=function(){this.passThrough? | 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.border="";q.removeChild(q.busyImg)}function I(q,C,J,G,P){function O(W,Q,V){var X=document.createElement("li");X.className="geCommentAction";var Y=document.createElement("a");Y.className= | 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.border="";q.removeChild(q.busyImg)}function I(q,C,J,G,P){function O(W,Q,V){var X=document.createElement("li");X.className="geCommentAction";var Y=document.createElement("a");Y.className= | 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,v,A,H,L,F,S,p,q,C,J,G)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()}; | Base | 1 |
null!=O&&g.isCellLocked(O.cell))g.customLinkClicked(m),g.getRubberband().reset();mxEvent.consume(T)}};this.editor.getOrCreateFilename=function(){var O=d.defaultFilename,N=d.getCurrentFile();null!=N&&(O=null!=N.getTitle()?N.getTitle():O);return O};var J=this.actions.get("print");J.setEnabled(!mxClient.IS_IOS||!navigator.standalone);J.visible=J.isEnabled();if(!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(70,!0,"findReplace"),this.keyHandler.bindAction(77,!0,"editGeometry", | 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(mxEvent.DONE,mxUtils.bind(this,function(){l.getModel().endUpdate();null!=t&&t()})),n.startAnimation()}},I=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(n,t, | Base | 1 |
z=window.open(z,"odauth",["width=525,height=525","top="+(window.screenY+Math.max(window.outerHeight-525,0)/2),"left="+(window.screenX+Math.max(window.outerWidth-525,0)/2),"status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes"].join());null!=z&&(window.onOneDriveCallback=mxUtils.bind(this,function(M,I){if(x){window.onOneDriveCallback=null;x=!1;try{null==M?c({message:mxResources.get("accessDenied"),retry:l}):(null!=D&&D(),this.updateAuthInfo(M,E,!0,f,c))}catch(d){c(d)}finally{null!=I&&I.close()}}else null!=
I&&I.close()}),z.focus())}),mxUtils.bind(this,function(){x&&(window.onOneDriveCallback=null,x=!1,c({message:mxResources.get("accessDenied"),retry:l}))}))});l()}else c({code:App.ERROR_BUSY})};OneDriveClient.prototype.getAccountTypeAndEndpoint=function(e,f){this.get(this.baseUrl+"/me/drive/root",mxUtils.bind(this,function(c){try{if(200<=c.getStatus()&&299>=c.getStatus()){var k=JSON.parse(c.getText());0<k.webUrl.indexOf(".sharepoint.com")?this.endpointHint=k.webUrl.replace("/Documents","/_layouts/15/onedrive.aspx"): | 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.prototype.node=null;DiagramPage.prototype.root=null;DiagramPage.prototype.viewState=null;DiagramPage.prototype.getId=function(){return this.node.getAttribute("id")};DiagramPage.prototype.getName=function(){return this.node.getAttribute("name")}; | Base | 1 |
d.appendChild(f));D.appendChild(d);D.appendChild(g);this.container=D},FindWindow=function(b,e,f,c,k,l){function x(T,m,B,K){if("object"===typeof m.value&&null!=m.value.attributes){m=m.value.attributes;for(var R=0;R<m.length;R++)if("label"!=m[R].nodeName){var U=mxUtils.trim(m[R].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();if(null==T&&(K&&0<=U.indexOf(B)||!K&&U.substring(0,B.length)===B)||null!=T&&T.test(U))return!0}}return!1}function y(){d?(P.removeAttribute("disabled"),O.removeAttribute("disabled")): | Base | 1 |
null==T.getTerminal(m[B],!0)){T.setTerminal(m[B],G,!0);var K=g.getCellGeometry(m[B]);K.points=null;null!=K.getTerminalPoint(!0)&&K.setTerminalPoint(null,!0)}}finally{T.endUpdate()}return m}}var L={67:d.actions.get("selectChildren"),88:d.actions.get("selectDescendants"),80:d.actions.get("selectParent"),83:d.actions.get("selectSiblings")},F=d.onKeyDown;d.onKeyDown=function(G){try{var P=g.getSelectionCell();if(g.isEnabled()&&!g.isEditing()&&null!=P){var O=mxEvent.isAltDown(G)&&mxEvent.isShiftDown(G)? | Base | 1 |
z.setAttribute("type","range");z.setAttribute("min","2");z.setAttribute("max","30");z.setAttribute("value",x.freehand.getBrushSize());z.style.width="90%";z.style.visibility="hidden";y.appendChild(z);mxUtils.br(y);D=function(){x.freehand.setPerfectFreehandMode(E.checked);z.style.visibility=E.checked?"visible":"hidden"};mxEvent.addListener(E,"change",D);D();mxEvent.addListener(z,"change",function(){x.freehand.setBrushSize(parseInt(this.value))})}var M=mxUtils.button(mxResources.get("startDrawing"), | Base | 1 |
return null!=this.corsRegExp&&this.corsRegExp.test(m)||"https://raw.githubusercontent.com/"===m.substring(0,34)||"https://fonts.googleapis.com/"===m.substring(0,29)||"https://fonts.gstatic.com/"===m.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var m=new mxUrlConverter;m.updateBaseUrl();var B=m.convert,K=this;m.convert=function(R){if(null!=R){var U="http://"==R.substring(0,7)||"https://"==R.substring(0,8);U&&!navigator.onLine?R=Editor.svgBrokenImage.src:!U||R.substring(0,m.baseUrl.length)==
m.baseUrl||K.crossOriginImages&&K.isCorsEnabledForUrl(R)?"chrome-extension://"==R.substring(0,19)||mxClient.IS_CHROMEAPP||(R=B.apply(this,arguments)):R=PROXY_URL+"?url="+encodeURIComponent(R)}return R};return m};Editor.createSvgDataUri=function(m){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(m)))};Editor.prototype.convertImageToDataUri=function(m,B){try{var K=!0,R=window.setTimeout(mxUtils.bind(this,function(){K=!1;B(Editor.svgBrokenImage.src)}),this.timeout);if(/(\.svg)$/i.test(m))mxUtils.get(m, | 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:"Enumerate",type:"bool",defVal:!1,onChange:function(m){m.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(m,B){return"1"==mxUtils.getValue(m.style, | Base | 1 |
Editor.createRoughCanvas=function(m){var B=rough.canvas({getContext:function(){return m}});B.draw=function(K){var R=K.sets||[];K=K.options||this.getDefaultOptions();for(var U=0;U<R.length;U++){var W=R[U];switch(W.type){case "path":null!=K.stroke&&this._drawToContext(m,W,K);break;case "fillPath":this._drawToContext(m,W,K);break;case "fillSketch":this.fillSketch(m,W,K)}}};B.fillSketch=function(K,R,U){var W=m.state.strokeColor,Q=m.state.strokeWidth,V=m.state.strokeAlpha,X=m.state.dashed,Y=U.fillWeight; | Base | 1 |
V){var ba=U.getGlobalVariable;U=this.createTemporaryGraph(U.getStylesheet());for(var fa,qa=0;qa<this.pages.length;qa++)if(this.pages[qa].getId()==V){fa=this.updatePageRoot(this.pages[qa]);break}null==fa&&(fa=this.currentPage);U.getGlobalVariable=function(ta){return"page"==ta?fa.getName():"pagenumber"==ta?1:ba.apply(this,arguments)};document.body.appendChild(U.container);U.model.setRoot(fa.root)}if(null!=F.layerIds){var ia=U.model,ya=ia.getChildCells(ia.getRoot()),xa={};for(qa=0;qa<F.layerIds.length;qa++)xa[F.layerIds[qa]]= | 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.prototype.getSvg=function(m,B,K,R,U,W,Q,V,X,Y,Z,ca,da,ma){var ea=null,za=null,Ba=null;ca||null==this.themes||"darkTheme"!=this.defaultThemeName||(ea=this.stylesheet,za=this.shapeForegroundColor, | Base | 1 |
type:"bool",getDefaultValue:function(m,B){m=B.editorUi.editor.graph.getCellStyle(1==m.vertices.length&&0==m.edges.length?m.vertices[0]:null);return"1"==mxUtils.getValue(m,"resizeLastRow","0")},isVisible:function(m,B){B=B.editorUi.editor.graph;return 1==m.vertices.length&&0==m.edges.length&&B.isTable(m.vertices[0])}},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",getDefaultValue:function(m,B){m=B.editorUi.editor.graph.getCellStyle(1==m.vertices.length&&0==m.edges.length?m.vertices[0]: | Base | 1 |
EditorUi.debug("P2PCollab:","sendReply error",arguments,m)}});this.sendMessage=c;this.sendDiff=function(N){this.sendMessage("diff",{diff:N})};this.getState=function(){return null!=I?I.readyState:3};this.getLastError=function(){return P};this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(N,T){},mouseMove:function(N,T){var m,B=-1;return function(){clearTimeout(m);var K=this,R=arguments,U=function(){m=null;B=Date.now();N.apply(K,R)};Date.now()-B>T?U():m=setTimeout(U,T)}}(function(N, | Base | 1 |
function(d){"simple"==d||"sketch"==d?null==this.sketchStyleElt&&(this.sketchStyleElt=document.createElement("style"),this.sketchStyleElt.setAttribute("type","text/css"),this.sketchStyleElt.innerHTML=Editor.createMinimalCss(),document.getElementsByTagName("head")[0].appendChild(this.sketchStyleElt)):null!=this.sketchStyleElt&&(this.sketchStyleElt.parentNode.removeChild(this.sketchStyleElt),this.sketchStyleElt=null)};EditorUi.prototype.createWrapperForTheme=function(d){"simple"==d||"sketch"==d?(null== | Base | 1 |
function(d){var g=this.editor.graph;g.defaultEdgeLength=Graph.prototype.defaultEdgeLength;g.defaultGridEnabled=Graph.prototype.defaultGridEnabled;g.defaultPageVisible=Graph.prototype.defaultPageVisible;null!=this.menus&&(this.menus.autoPopup="simple"!=d&&"sketch"!=d);"simple"==d||"sketch"==d?(Editor.fitWindowBorders=new mxRectangle(60,30,30,30),g.defaultEdgeLength=120,null==urlParams.grid&&(g.defaultGridEnabled=!1),null==urlParams.pv&&(g.defaultPageVisible=!1)):Editor.fitWindowBorders=null};EditorUi.prototype.switchCssForTheme= | 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.call(this,b,e,f)};mxUtils.extend(GitHubLibrary,GitHubFile);GitHubLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};GitHubLibrary.prototype.open=function(){};(function(){var b=null;window.GitHubClient=function(e,f){DrawioClient.call(this,e,f||"ghauth")};mxUtils.extend(GitHubClient,DrawioClient);GitHubClient.prototype.clientId="test.draw.io"==window.location.hostname?"Iv1.1218f5567fbc258a":window.DRAWIO_GITHUB_ID;GitHubClient.prototype.extension=".drawio";GitHubClient.prototype.baseUrl=DRAWIO_GITHUB_API_URL;GitHubClient.prototype.baseHostUrl=DRAWIO_GITHUB_URL;GitHubClient.prototype.redirectUri=window.location.protocol+"//"+window.location.host+"/github2"; | Base | 1 |
"-rev_"+this.ui.hashValue(y):"")+(null!=u?"-latest_"+u:"")+(null!=n?"-latestRev_"+this.ui.hashValue(n.getCurrentRevisionId()):""));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+I,action:k,label:"user_"+M+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+d+"-patches_"+e.length+"-size_"+this.getSize()})}catch(v){}}),b)}}catch(n){}}; | 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.defaultFilename=mxResources.get("untitledDiagram");var S=g.getExportVariables;g.getExportVariables=function(){var O=S.apply(this,arguments),N=d.getCurrentFile();null!=N&&(O.filename=N.getTitle()); | Base | 1 |
T){k(T)},300),mouseUp:function(N,T){k(T)}};z.addMouseListener(this.mouseListeners);this.shareCursorPositionListener=function(){b.isShareCursorPosition()||c("cursor",{hide:!0})};b.addListener("shareCursorPositionChanged",this.shareCursorPositionListener);this.selectionChangeListener=function(N,T){N=function(K){return null!=K?K.id:null};var m=null!=b.currentPage?b.currentPage.getId():null,B=T.getProperty("added");T=T.getProperty("removed");c("selectionChange",{pageId:m,removed:B?B.map(N):[],added:T? | Base | 1 |
var V=this.click;this.click=function(K){var U=null==K.state&&null!=K.sourceState&&this.isCellLocked(this.getLayerForCell(K.sourceState.cell));if(this.isEnabled()&&!U||K.isConsumed())return V.apply(this,arguments);U=U?K.sourceState.cell:K.getCell();null!=U&&(U=this.getClickableLinkForCell(U),null!=U&&(this.isCustomLink(U)?this.customLinkClicked(U):this.openLink(U)))};this.tooltipHandler.getStateForEvent=function(K){return K.sourceState};var aa=this.tooltipHandler.show;this.tooltipHandler.show=function(){aa.apply(this, | Base | 1 |
X.toString());K()})})["catch"](function(X){console.log("Error in MathJax.retry: "+X.toString());K()})):null!=window.console&&console.log("Error in MathJax.typeset: "+V.toString())}};window.MathJax=null!=B?B:{options:{skipHtmlTags:{"[+]":["text"]}},loader:{load:["html"==urlParams["math-output"]?"output/chtml":"output/svg","input/tex","input/asciimath","ui/safe"]},startup:{pageReady:function(){for(var Q=0;Q<Editor.mathJaxQueue.length;Q++)Editor.doMathJaxRender(Editor.mathJaxQueue[Q])}}};Editor.MathJaxRender= | Base | 1 |
try{u.labelChanged(A,d),Graph.isLink(d)&&u.setLinkForCell(A,d)}finally{u.model.endUpdate()}}u.setSelectionCell(A)}else v=u.getInsertPoint(),u.isMouseInsertPoint()&&(A=0,u.lastPasteXml==d&&0<u.pasteCounter&&u.pasteCounter--),v=this.insertTextAt(d,v.x+A,v.y+A,!0),u.setSelectionCells(v);u.isSelectionEmpty()||(u.scrollCellToVisible(u.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(u.view.getState(u.getSelectionCell())));return v};EditorUi.prototype.pasteCells=function(d,g,n,t){if(!mxEvent.isConsumed(d)){var u= | Base | 1 |
DrawioFile.prototype.sendErrorReport=function(b,e,f,c){try{var k=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),l=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),x=this.getCurrentUser(),y=null!=x?this.ui.hashValue(x.id):"unknown",E=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",D=this.getTitle(),z=D.lastIndexOf(".");x="xml";0<z&&(x=D.substring(z));var M=null!=f?f.stack:Error().stack;EditorUi.sendReport(b+" "+(new Date).toISOString()+
":\n\nAppVersion="+navigator.appVersion+"\nFile="+this.ui.hashValue(this.getId())+" ("+this.getMode()+")"+(this.isModified()?" modified":"")+"\nSize/Type="+this.getSize()+" ("+x+")\nUser="+y+E+"\nPrefix="+this.ui.editor.graph.model.prefix+"\nSync="+DrawioFile.SYNC+(null!=this.sync?(this.sync.enabled?" enabled":"")+(this.sync.isConnected()?" connected":""):"")+"\nPlugins="+(null!=mxSettings.settings?mxSettings.getPlugins():"null")+"\n\nStats:\n"+JSON.stringify(this.stats,null,2)+(null!=e?"\n\n"+e:
"")+(null!=f?"\n\nError: "+f.message:"")+"\n\nStack:\n"+M+"\n\nShadow:\n"+k+"\n\nData:\n"+l,c)}catch(I){}}; | Base | 1 |
z.createVertexHandler=function(){var U=S.apply(this,arguments);U.livePreview=!1;return U};if(null!=f)try{if("inset"==f.substring(0,5)){var p=d.geometry,q=E.width,C=E.height,J=(300-q)/2,G=(300-C)/2,P=f.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),O=parseFloat(P[0]),N=parseFloat(P[1]),T=parseFloat(P[2]),m=parseFloat(P[3]);isFinite(O)&&isFinite(N)&&isFinite(T)&&isFinite(m)?(p.x=m/100*q+J,p.y=O/100*C+G,p.width=(100-N)/100*q+J-p.x,p.height=(100-T)/100*C+G-p.y,"round"==P[4]?"50%"==P[5]?u.setAttribute("checked", | Base | 1 |
mxUtils.bind(this,function(W){window.clearTimeout(R);K&&B(Editor.createSvgDataUri(W.getText()))}),function(){window.clearTimeout(R);K&&B(Editor.svgBrokenImage.src)});else{var U=new Image;this.crossOriginImages&&(U.crossOrigin="anonymous");U.onload=function(){window.clearTimeout(R);if(K)try{var W=document.createElement("canvas"),Q=W.getContext("2d");W.height=U.height;W.width=U.width;Q.drawImage(U,0,0);B(W.toDataURL())}catch(V){B(Editor.svgBrokenImage.src)}};U.onerror=function(){window.clearTimeout(R); | Base | 1 |
m.prototype.lineTo=function(W,Q){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,W,Q),this.lastX=W,this.lastY=Q)};m.prototype.moveTo=function(W,Q){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,W,Q),this.lastX=W,this.lastY=Q,this.firstX=W,this.firstY=Q)};m.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};m.prototype.quadTo=function(W,Q,V,X){this.passThrough? | Base | 1 |
"#ffffff";u.panningHandler.ignoreCell=!0;u.panningHandler.useLeftButtonForPanning=!0;u.minFitScale=null;u.maxFitScale=null;u.centerZoom=!0;var v=mxUtils.parseXml(f),A=b.editor.extractGraphModel(v.documentElement,!0),H=0,L=null,F=u.getGlobalVariable;u.getGlobalVariable=function(p){return"page"==p&&null!=L&&null!=L[H]?L[H].getAttribute("name"):"pagenumber"==p?H+1:"pagecount"==p?null!=L?L.length:1:F.apply(this,arguments)};u.getLinkForCell=function(){return null};f=b.createToolbarButton(Editor.zoomInImage, | Base | 1 |
sa,va,Ea,Da,Qa,Fa){if(0<Da){var Ra=Array(Da);sa=null!=sa?sa.split(","):[];for(var Ga=0;Ga<Da;Ga++)Ra[Ga]=null!=sa[Ga]?sa[Ga]:null!=Ea?Ea:"";da.push({name:oa,values:Ra,type:va,defVal:Ea,parentRow:Qa,flipBkg:Fa,size:Da})}return document.createElement("div")}function X(oa,sa,va){var Ea=document.createElement("input");Ea.type="checkbox";Ea.checked="1"==sa;mxEvent.addListener(Ea,"change",function(){R(oa,Ea.checked?"1":"0",va)});return Ea}function Y(oa,sa,va,Ea,Da){var Qa=va.dispName,Fa=va.type,Ra=document.createElement("tr"); | Base | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.