@zklogic/draw.io
Version:
Draw.IO - Graph Editor integration in Angular-cli
1 lines • 9.63 kB
JavaScript
Sidebar.prototype.addNetworkPalette=function(){var e="fontColor=#0066CC;verticalAlign=top;verticalLabelPosition=bottom;labelPosition=center;align=center;",t="html=1;outlineConnect=0;fillColor=#CCCCCC;strokeColor=#6881B3;gradientColor=none;gradientDirection=north;strokeWidth=2;shape=mxgraph.networks.",r="mxgraph.networks",l="computer network ";this.setCurrentSearchEntryLibrary("network"),this.addPaletteFunctions("network","Network",!1,[this.addDataEntry(l+"ring bus",100,100,"Ring Bus","7VfJboMwEP0arpWBkNJjgTanSpF66NmKJ2DVYDQ429/XYIclKi2Nkp5AQrLfrLzHsDh+nB9XSMvsTTIQjv/i+DFKqcwqP8YghOMRzhw/cTyP6NPxXkesbmMlJUUo1JQAzwTsqdiBQQxQqZOwQKZy3VbiOn605ULEUkhsLH7cHBqvFMpP6FmWYehGfm3JaFnn0VV5WelVVALyHBRgh647KEqRMq6bPycrZAE9OOEIG8Vl0ZhQZXVXsnPXtbfN0Xb1wVntlXgasRcLqOA4SlgDWbZWIHVjeNIuNsALTMRpuD3YKnoXGMZJBjzN1BCjldmnbd5OG72w8nwvlf+7VOM6AEvh3TpaSlHuCgZ1clI7FOwZUR46O6NV1pp7N8EYrXWJAamKYgpqcJ9N4BlBUMX3w1Tf8WZD15LrjK0+l0xXcocbsE4XZLdVJ/G/mPmfwH8YPAwnxF2cgdtLEsySTJDEJWSgyP1GZDnrcc2IdMDtJXmcJfnDW+P8zCJ3G5Fw1mPKI2vxjyPyNEvykyR3f2u4ZBbgmpm44ZeV3nb/nMa9/0v6BQ=="),this.addDataEntry(l+"bus backbone",260,140,"Bus","7ZdNj4IwEIZ/DVcD1HXd4wK7njYx8bDnKiM0FmqGori/fltaBb8Ws5EbJCb0nel0fF4yBIeEWTVDuk2/RAzcIR8OCVEIae6yKgTOHd9lsUMix/dd9XP8zztRr466W4qQy0c2+GbDjvISjGKEQh64FVKZqbYizyHBmnEeCi6wjpCwvpReSBQbaEUm06kXEBVJkMZM9XKM5SKHlhwxhJVkIq9DKNNTsW8W61XkayWlW91MViUa1CgHuRe4KUbLsvjfGWvRpKt21/Wl9C0gy0CC1pd0tVmqUvNGC47agv3ohhRcEliCgBKquy7UkrVgBkLVw4NKOZjoxJjk7u2f1sYctRRYktoq1kyXFmadnCo1Fqsb6/Jtx0m34/fthDiBhU20mFGUeQy6uIYBefyOKPZNvPX4XDtrjtZVz8hJignIsyf0AZgInEq2Oy91C5XdOhdMVfRd69r4Am4hSlyBTbrgezr1IeTjAflt5J7bG/OXgfkd5pPemE8G5reZXw3u5zF/HZj/Pc7tK9brb7xPBws6xnv/HrwNHnSM+/498NzBhI75/3QT1LL5WDTp7W/JXw=="),this.createVertexTemplateEntry(t+"bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;",200,20,"","Bus",null,null,this.getTagsForStencil(r,"bus backbone",l).join(" ")),this.createEdgeTemplateEntry(t+"comm_link_edge;html=1;",100,100,"","Comm Link",null,this.getTagsForStencil(r,"comm_link_edge",l).join(" ")),this.createVertexTemplateEntry(e+t+"biometric_reader;",60,100,"","Biometric Reader",null,null,this.getTagsForStencil(r,"biometric_reader",l).join(" ")),this.createVertexTemplateEntry(e+t+"business_center;",90,100,"","Business Center",null,null,this.getTagsForStencil(r,"business_center",l).join(" ")),this.createVertexTemplateEntry(t+"cloud;fontColor=#ffffff;",90,50,"","Cloud",null,null,this.getTagsForStencil(r,"cloud",l).join(" ")),this.createVertexTemplateEntry(e+t+"community;",95,100,"","Community",null,null,this.getTagsForStencil(r,"community",l).join(" ")),this.createVertexTemplateEntry(e+t+"comm_link;",30,100,"","Comm Link (Icon)",null,null,this.getTagsForStencil(r,"comm_link",l).join(" ")),this.createVertexTemplateEntry(e+t+"copier;",100,100,"","Copier",null,null,this.getTagsForStencil(r,"copier",l).join(" ")),this.createVertexTemplateEntry(e+t+"pc;",100,70,"","PC",null,null,this.getTagsForStencil(r,"pc",l).join(" ")),this.createVertexTemplateEntry(e+t+"desktop_pc;",30,60,"","Desktop PC",null,null,this.getTagsForStencil(r,"desktop_pc",l+"").join(" ")),this.createVertexTemplateEntry(e+t+"external_storage;",90,100,"","External Storage",null,null,this.getTagsForStencil(r,"external_storage",l).join(" ")),this.createVertexTemplateEntry(e+t+"firewall;",100,100,"","Firewall",null,null,this.getTagsForStencil(r,"firewall",l).join(" ")),this.createVertexTemplateEntry(e+t+"gamepad;",100,70,"","Gamepad",null,null,this.getTagsForStencil(r,"gamepad",l).join(" ")),this.createVertexTemplateEntry(e+t+"hub;",100,30,"","Hub",null,null,this.getTagsForStencil(r,"hub",l).join(" ")),this.createVertexTemplateEntry(e+t+"laptop;",100,55,"","Laptop",null,null,this.getTagsForStencil(r,"laptop",l).join(" ")),this.createVertexTemplateEntry(e+t+"load_balancer;",100,30,"","Load Balancer",null,null,this.getTagsForStencil(r,"load_balancer",l).join(" ")),this.createVertexTemplateEntry(e+t+"mail_server;",105,105,"","Mail Server",null,null,this.getTagsForStencil(r,"mail_server",l).join(" ")),this.createVertexTemplateEntry(e+t+"mainframe;",80,100,"","Mainframe",null,null,this.getTagsForStencil(r,"mainframe",l).join(" ")),this.createVertexTemplateEntry(e+t+"mobile;",50,100,"","Mobile",null,null,this.getTagsForStencil(r,"mobile",l).join(" ")),this.createVertexTemplateEntry(e+t+"modem;",100,30,"","Modem",null,null,this.getTagsForStencil(r,"modem",l).join(" ")),this.createVertexTemplateEntry(e+t+"monitor;",80,65,"","Monitor",null,null,this.getTagsForStencil(r,"monitor",l).join(" ")),this.createVertexTemplateEntry(e+t+"nas_filer;",100,35,"","NAS Filer",null,null,this.getTagsForStencil(r,"NAS Filer",l).join(" ")),this.createVertexTemplateEntry(e+t+"patch_panel;",100,35,"","Patch Panel",null,null,this.getTagsForStencil(r,"patch_panel",l).join(" ")),this.createVertexTemplateEntry(e+t+"pc;",100,70,"","PC",null,null,this.getTagsForStencil(r,"pc",l).join(" ")),this.createVertexTemplateEntry(e+t+"phone_1;",100,70,"","Phone",null,null,this.getTagsForStencil(r,"phone_1",l).join(" ")),this.createVertexTemplateEntry(e+t+"phone_2;",100,90,"","Phone",null,null,this.getTagsForStencil(r,"phone_2",l).join(" ")),this.createVertexTemplateEntry(e+t+"printer;",100,100,"","Printer",null,null,this.getTagsForStencil(r,"printer",l).join(" ")),this.createVertexTemplateEntry(e+t+"proxy_server;",105,105,"","Proxy Server",null,null,this.getTagsForStencil(r,"proxy_server",l).join(" ")),this.createVertexTemplateEntry(e+t+"rack;",50,100,"","Rack",null,null,this.getTagsForStencil(r,"rack",l).join(" ")),this.createVertexTemplateEntry(e+t+"radio_tower;",55,100,"","Radio Tower",null,null,this.getTagsForStencil(r,"radio_tower",l).join(" ")),this.createVertexTemplateEntry(e+t+"router;",100,30,"","Router",null,null,this.getTagsForStencil(r,"router",l).join(" ")),this.createVertexTemplateEntry(e+t+"satellite;",100,100,"","Satellite",null,null,this.getTagsForStencil(r,"satellite",l).join(" ")),this.createVertexTemplateEntry(e+t+"satellite_dish;",90,100,"","Satellite Dish",null,null,this.getTagsForStencil(r,"satellite_dish",l).join(" ")),this.createVertexTemplateEntry(e+t+"scanner;",100,75,"","Scanner",null,null,this.getTagsForStencil(r,"scanner",l).join(" ")),this.createVertexTemplateEntry(e+t+"secured;",80,100,"","Secured",null,null,this.getTagsForStencil(r,"secured",l).join(" ")),this.createVertexTemplateEntry(e+t+"security_camera;",100,75,"","Security Camera",null,null,this.getTagsForStencil(r,"security_camera",l).join(" ")),this.createVertexTemplateEntry(e+t+"server;",90,100,"","Server",null,null,this.getTagsForStencil(r,"server",l).join(" ")),this.createVertexTemplateEntry(e+t+"server_storage;",105,105,"","Server Storage",null,null,this.getTagsForStencil(r,"server_storage",l).join(" ")),this.createVertexTemplateEntry(e+t+"storage;",100,100,"","Storage",null,null,this.getTagsForStencil(r,"storage",l).join(" ")),this.createVertexTemplateEntry(e+t+"supercomputer;",100,100,"","Supercomputer",null,null,this.getTagsForStencil(r,"supercomputer",l).join(" ")),this.createVertexTemplateEntry(e+t+"switch;",100,30,"","Switch",null,null,this.getTagsForStencil(r,"switch",l).join(" ")),this.createVertexTemplateEntry(e+t+"tablet;",100,70,"","Tablet",null,null,this.getTagsForStencil(r,"tablet",l).join(" ")),this.createVertexTemplateEntry(e+t+"tape_storage;",105,105,"","Tape Storage",null,null,this.getTagsForStencil(r,"tape_storage",l).join(" ")),this.createVertexTemplateEntry(e+t+"terminal;",80,65,"","Terminal",null,null,this.getTagsForStencil(r,"terminal",l).join(" ")),this.createVertexTemplateEntry(e+t+"unsecure;",80,100,"","Unsecure",null,null,this.getTagsForStencil(r,"unsecure",l).join(" ")),this.createVertexTemplateEntry(e+t+"ups_enterprise;",100,100,"","UPS Enterprise",null,null,this.getTagsForStencil(r,"ups_enterprise",l).join(" ")),this.createVertexTemplateEntry(e+t+"ups_small;",70,100,"","UPS Small",null,null,this.getTagsForStencil(r,"ups_small",l).join(" ")),this.createVertexTemplateEntry(e+t+"usb_stick;",45,100,"","USB Stick",null,null,this.getTagsForStencil(r,"usb_stick",l).join(" ")),this.createVertexTemplateEntry(e+t+"users;",90,100,"","Users",null,null,this.getTagsForStencil(r,"users",l).join(" ")),this.createVertexTemplateEntry(e+t+"user_female;",40,100,"","User Female",null,null,this.getTagsForStencil(r,"user_female",l).join(" ")),this.createVertexTemplateEntry(e+t+"user_male;",40,100,"","User Male",null,null,this.getTagsForStencil(r,"user_male",l).join(" ")),this.createVertexTemplateEntry(e+t+"video_projector;",100,35,"","Video Projector",null,null,this.getTagsForStencil(r,"video_projector",l).join(" ")),this.createVertexTemplateEntry(e+t+"video_projector_screen;",80,100,"","Video Projector Screen",null,null,this.getTagsForStencil(r,"video_projector_screen",l).join(" ")),this.createVertexTemplateEntry(e+t+"virtual_pc;",115,85,"","Virtual PC",null,null,this.getTagsForStencil(r,"virtual_pc",l).join(" ")),this.createVertexTemplateEntry(e+t+"virtual_server;",110,120,"","Virtual Server",null,null,this.getTagsForStencil(r,"virtual_server",l).join(" ")),this.createVertexTemplateEntry(e+t+"virus;",100,90,"","Virus",null,null,this.getTagsForStencil(r,"virus",l).join(" ")),this.createVertexTemplateEntry(e+t+"web_server;",105,105,"","Web Server",null,null,this.getTagsForStencil(r,"web_server",l).join(" ")),this.createVertexTemplateEntry(e+t+"wireless_hub;",100,85,"","Wireless Hub",null,null,this.getTagsForStencil(r,"wireless_hub",l).join(" ")),this.createVertexTemplateEntry(e+t+"wireless_modem;",100,85,"","Wireless Modem",null,null,this.getTagsForStencil(r,"wireless_modem",l).join(" "))]),this.setCurrentSearchEntryLibrary()};