@zklogic/draw.io
Version:
Draw.IO - Graph Editor integration in Angular-cli
1 lines • 6.69 kB
JavaScript
Sidebar.prototype.addSitemapPalette=function(){var e="html=1;strokeColor=none;fillColor=#0079D6;labelPosition=center;verticalLabelPosition=middle;verticalAlign=top;align=center;fontSize=12;outlineConnect=0;spacingTop=-6;fontColor=#FFFFFF;sketch=0;shape=mxgraph.sitemap.",t="mxgraph.sitemap",l="",n=120,r=70;this.setCurrentSearchEntryLibrary("sitemap");var i=[this.createVertexTemplateEntry(e+"page;",n,r,"Page","Page",null,null,this.getTagsForStencil(t,"page",l).join(" ")),this.createVertexTemplateEntry(e+"about_us;",n,r,"About us","About us",null,null,this.getTagsForStencil(t,"about",l).join(" ")),this.createVertexTemplateEntry(e+"audio;",n,r,"Audio","Audio",null,null,this.getTagsForStencil(t,"audio",l).join(" ")),this.createVertexTemplateEntry(e+"biography;",n,r,"Biography","Biography",null,null,this.getTagsForStencil(t,"biography",l).join(" ")),this.createVertexTemplateEntry(e+"blog;",n,r,"Blog","Blog",null,null,this.getTagsForStencil(t,"blog",l).join(" ")),this.createVertexTemplateEntry(e+"calendar;",n,r,"Calendar","Calendar",null,null,this.getTagsForStencil(t,"calendar",l).join(" ")),this.createVertexTemplateEntry(e+"chart;",n,r,"Chart","Chart",null,null,this.getTagsForStencil(t,"chart",l).join(" ")),this.createVertexTemplateEntry(e+"chat;",n,r,"Chat","Chat",null,null,this.getTagsForStencil(t,"chat",l).join(" ")),this.createVertexTemplateEntry(e+"cloud;",n,r,"Cloud","Cloud",null,null,this.getTagsForStencil(t,"cloud",l).join(" ")),this.createVertexTemplateEntry(e+"contact;",n,r,"Contact","Contact",null,null,this.getTagsForStencil(t,"contact",l).join(" ")),this.createVertexTemplateEntry(e+"contact_us;",n,r,"Contact us","Contact us",null,null,this.getTagsForStencil(t,"contact",l).join(" ")),this.createVertexTemplateEntry(e+"document;",n,r,"Document","Document",null,null,this.getTagsForStencil(t,"document",l).join(" ")),this.createVertexTemplateEntry(e+"download;",n,r,"Download","Download",null,null,this.getTagsForStencil(t,"download",l).join(" ")),this.createVertexTemplateEntry(e+"error;",n,r,"Error","Error",null,null,this.getTagsForStencil(t,"error",l).join(" ")),this.createVertexTemplateEntry(e+"faq;",n,r,"FAQ","FAQ",null,null,this.getTagsForStencil(t,"faq frequently asked questions",l).join(" ")),this.createVertexTemplateEntry(e+"form;",n,r,"Form","Form",null,null,this.getTagsForStencil(t,"form",l).join(" ")),this.createVertexTemplateEntry(e+"gallery;",n,r,"Gallery","Gallery",null,null,this.getTagsForStencil(t,"gallery",l).join(" ")),this.createVertexTemplateEntry(e+"game;",n,r,"Game","Game",null,null,this.getTagsForStencil(t,"game",l).join(" ")),this.createVertexTemplateEntry(e+"home;",n,r,"Home","Home",null,null,this.getTagsForStencil(t,"home",l).join(" ")),this.createVertexTemplateEntry(e+"info;",n,r,"Info","Info",null,null,this.getTagsForStencil(t,"info",l).join(" ")),this.createVertexTemplateEntry(e+"jobs;",n,r,"Jobs","Jobs",null,null,this.getTagsForStencil(t,"jobs",l).join(" ")),this.createVertexTemplateEntry(e+"log;",n,r,"Log","Log",null,null,this.getTagsForStencil(t,"log",l).join(" ")),this.createVertexTemplateEntry(e+"login;",n,r,"Login","Login",null,null,this.getTagsForStencil(t,"login",l).join(" ")),this.createVertexTemplateEntry(e+"mail;",n,r,"Mail","Mail",null,null,this.getTagsForStencil(t,"mail",l).join(" ")),this.createVertexTemplateEntry(e+"map;",n,r,"Map","Map",null,null,this.getTagsForStencil(t,"map",l).join(" ")),this.createVertexTemplateEntry(e+"news;",n,r,"News","News",null,null,this.getTagsForStencil(t,"news",l).join(" ")),this.createVertexTemplateEntry(e+"payment;",n,r,"Payment","Payment",null,null,this.getTagsForStencil(t,"payment",l).join(" ")),this.createVertexTemplateEntry(e+"photo;",n,r,"Photo","Photo",null,null,this.getTagsForStencil(t,"photo",l).join(" ")),this.createVertexTemplateEntry(e+"portfolio;",n,r,"Portfolio","Portfolio",null,null,this.getTagsForStencil(t,"portfolio",l).join(" ")),this.createVertexTemplateEntry(e+"post;",n,r,"Post","Post",null,null,this.getTagsForStencil(t,"post",l).join(" ")),this.createVertexTemplateEntry(e+"pricing;",n,r,"Pricing","Pricing",null,null,this.getTagsForStencil(t,"pricing",l).join(" ")),this.createVertexTemplateEntry(e+"print;",n,r,"Print","Print",null,null,this.getTagsForStencil(t,"print",l).join(" ")),this.createVertexTemplateEntry(e+"products;",n,r,"Products","Products",null,null,this.getTagsForStencil(t,"products",l).join(" ")),this.createVertexTemplateEntry(e+"profile;",n,r,"Profile","Profile",null,null,this.getTagsForStencil(t,"profile",l).join(" ")),this.createVertexTemplateEntry(e+"references;",n,r,"References","References",null,null,this.getTagsForStencil(t,"references",l).join(" ")),this.createVertexTemplateEntry(e+"script;",n,r,"Script","Script",null,null,this.getTagsForStencil(t,"script",l).join(" ")),this.createVertexTemplateEntry(e+"search;",n,r,"Search","Search",null,null,this.getTagsForStencil(t,"search",l).join(" ")),this.createVertexTemplateEntry(e+"security;",n,r,"Security","Security",null,null,this.getTagsForStencil(t,"security",l).join(" ")),this.createVertexTemplateEntry(e+"services;",n,r,"Services","Services",null,null,this.getTagsForStencil(t,"services",l).join(" ")),this.createVertexTemplateEntry(e+"settings;",n,r,"Settings","Settings",null,null,this.getTagsForStencil(t,"settings",l).join(" ")),this.createVertexTemplateEntry(e+"shopping;",n,r,"Shopping","Shopping",null,null,this.getTagsForStencil(t,"shopping",l).join(" ")),this.createVertexTemplateEntry(e+"sitemap;",n,r,"Sitemap","Sitemap",null,null,this.getTagsForStencil(t,"sitemap",l).join(" ")),this.createVertexTemplateEntry(e+"slideshow;",n,r,"Slideshow","Slideshow",null,null,this.getTagsForStencil(t,"slideshow",l).join(" ")),this.createVertexTemplateEntry(e+"sports;",n,r,"Sports","Sports",null,null,this.getTagsForStencil(t,"sports",l).join(" ")),this.createVertexTemplateEntry(e+"success;",n,r,"Success","Success",null,null,this.getTagsForStencil(t,"success",l).join(" ")),this.createVertexTemplateEntry(e+"text;",n,r,"Text","Text",null,null,this.getTagsForStencil(t,"text",l).join(" ")),this.createVertexTemplateEntry(e+"upload;",n,r,"Upload","Upload",null,null,this.getTagsForStencil(t,"upload",l).join(" ")),this.createVertexTemplateEntry(e+"user;",n,r,"User","User",null,null,this.getTagsForStencil(t,"user",l).join(" ")),this.createVertexTemplateEntry(e+"video;",n,r,"Video","Video",null,null,this.getTagsForStencil(t,"video",l).join(" ")),this.createVertexTemplateEntry(e+"warning;",n,r,"Warning","Warning",null,null,this.getTagsForStencil(t,"warning",l).join(" "))];this.addPalette("sitemap","Sitemap",!1,mxUtils.bind(this,(function(e){for(var t=0;t<i.length;t++)e.appendChild(i[t](e))}))),this.setCurrentSearchEntryLibrary()};