@zklogic/draw.io
Version:
Draw.IO - Graph Editor integration in Angular-cli
1 lines • 9.03 kB
JavaScript
Sidebar.prototype.addCumulusPalette=function(){var e="cumulus",t=this,r="aspect=fixed;perimeter=ellipsePerimeter;html=1;align=center;fontSize=12;verticalAlign=top;fontColor=#364149;shadow=0;dashed=0;image;image=img/lib/cumulus/";this.setCurrentSearchEntryLibrary("cumulus");var l=" ",o=[this.createVertexTemplateEntry(r+"switch_bare_metal_empty.svg;",96,24,"","Switch - Bare Metal (empty)",!1,null,this.getTagsForStencil(l,"switch bare metal empty",e).join(" ")),this.createVertexTemplateEntry(r+"switch_cumulus_linux.svg;",96,24,"","Switch - Cumulus Linux",!1,null,this.getTagsForStencil(l,"switch cumulus linux",e).join(" ")),this.createVertexTemplateEntry(r+"switch_out_of_band.svg;",96,24,"","Switch - Out of Band",!1,null,this.getTagsForStencil(l,"switch_out_of_band",e).join(" ")),this.createVertexTemplateEntry(r+"switch_voyager.svg;",96,24,"","Switch Voyager",!1,null,this.getTagsForStencil(l,"switch voyager",e).join(" ")),this.createVertexTemplateEntry(r+"cumulus_linux_icon.svg;",96,96,"","Linux Icon",!1,null,this.getTagsForStencil(l,"cumulus linux icon",e).join(" ")),this.createVertexTemplateEntry(r+"cumulus_netq_icon.svg;",96,96,"","NetQ Icon",!1,null,this.getTagsForStencil(l,"",e).join(" ")),this.createVertexTemplateEntry(r+"rack_bare_metal.svg;",96,114,"","Rack Bare Metal",!1,null,this.getTagsForStencil(l,"rack bare metal",e).join(" ")),this.createVertexTemplateEntry(r+"rack_cumulus_linux.svg;",96,114,"","Rack Cumulus Linux",!1,null,this.getTagsForStencil(l,"rack linux",e).join(" ")),this.createVertexTemplateEntry(r+"rack_out_of_band.svg;",96,114,"","Rack Out of Band",!1,null,this.getTagsForStencil(l,"rack out of band",e).join(" ")),this.createVertexTemplateEntry(r+"rack_voyager.svg;",96,114,"","Rack Voyager",!1,null,this.getTagsForStencil(l,"rack voyager",e).join(" ")),this.createVertexTemplateEntry(r+"server_bare_metal.svg;",96,20,"","Server - Bare Metal",!1,null,this.getTagsForStencil(l,"server bare metal",e).join(" ")),this.createVertexTemplateEntry(r+"chassis_bare_metal_empty.svg;",106,72,"","Chassis - Bare Metal Empty",!1,null,this.getTagsForStencil(l,"chassis bare metal empty",e).join(" ")),this.createVertexTemplateEntry(r+"chassis_cumulus_linux.svg;",106,72,"","Chassis - Cumulus Linux",!1,null,this.getTagsForStencil(l,"chassis linux",e).join(" ")),this.createVertexTemplateEntry(r+"netq_chassis.svg;",106,72,"","NetQ Chassis",!1,null,this.getTagsForStencil(l,"netq chassis",e).join(" ")),this.createEdgeTemplateEntry("endArrow=block;html=1;startArrow=block;startFill=1;endFill=1;",100,100,"","Unspecified",null,e+"unspecified"),this.createEdgeTemplateEntry("endArrow=block;html=1;startArrow=block;startFill=1;endFill=1;strokeColor=#EB4770;",100,100,"","1G",null,e+"1g"),this.createEdgeTemplateEntry("endArrow=block;html=1;startArrow=block;startFill=1;endFill=1;strokeColor=#FB9F41;",100,100,"","10G",null,e+"10g"),this.createEdgeTemplateEntry("endArrow=block;html=1;startArrow=block;startFill=1;endFill=1;strokeColor=#FCC548;",100,100,"","25G",null,e+"25g"),this.createEdgeTemplateEntry("endArrow=block;html=1;startArrow=block;startFill=1;endFill=1;strokeColor=#83CA73;",100,100,"","40G",null,e+"40g"),this.createEdgeTemplateEntry("endArrow=block;html=1;startArrow=block;startFill=1;endFill=1;strokeColor=#2EAB6D;",100,100,"","100G",null,e+"100g"),this.createEdgeTemplateEntry("endArrow=block;html=1;startArrow=block;startFill=1;endFill=1;strokeColor=#4EFDC0;",100,100,"","OOB / RMP",null,e+"oob rmp"),this.createEdgeTemplateEntry("endArrow=block;html=1;startArrow=block;startFill=1;endFill=1;strokeColor=#EB4770;dashed=1;dashPattern=5 5;",100,100,"","Virtual",null,e+"virtual"),this.createEdgeTemplateEntry("endArrow=block;html=1;startArrow=block;startFill=1;endFill=1;strokeColor=#FB9F41;dashed=1;dashPattern=5 5;",100,100,"","Virtual",null,e+"virtual"),this.createEdgeTemplateEntry("endArrow=block;html=1;startArrow=block;startFill=1;endFill=1;strokeColor=#FCC548;dashed=1;dashPattern=5 5;",100,100,"","Virtual",null,e+"virtual"),this.createEdgeTemplateEntry("endArrow=block;html=1;startArrow=block;startFill=1;endFill=1;strokeColor=#83CA73;dashed=1;dashPattern=5 5;",100,100,"","Virtual",null,e+"virtual"),this.createEdgeTemplateEntry("endArrow=block;html=1;startArrow=block;startFill=1;endFill=1;strokeColor=#2EAB6D;dashed=1;dashPattern=5 5;",100,100,"","Virtual",null,e+"virtual"),this.createEdgeTemplateEntry("endArrow=block;html=1;startArrow=block;startFill=1;endFill=1;strokeColor=#4EFDC0;dashed=1;dashPattern=5 5;",100,100,"","Virtual",null,e+"virtual"),this.createVertexTemplateEntry(r+"netq_agent.svg;",18,18,"","NetQ Agent",!1,null,this.getTagsForStencil(l,"netq agent",e).join(" ")),this.createVertexTemplateEntry(r+"netq_telemetry_server.svg;",96,24,"","NetQ Telemetry Server",!1,null,this.getTagsForStencil(l,"netq telemetry server",e).join(" ")),this.createVertexTemplateEntry(r+"netq_server.svg;",96,20,"","NetQ Server",!1,null,this.getTagsForStencil(l,"netq server",e).join(" ")),this.createVertexTemplateEntry("aspect=fixed;perimeter=ellipsePerimeter;html=1;align=center;shadow=0;dashed=0;image;image=img/lib/cumulus/internet.svg;labelPosition=center;verticalLabelPosition=middle;verticalAlign=middle;fontSize=14;fontColor=#36424A;",274,98,"Internet","Internet",!0,null,this.getTagsForStencil(l,"internet",e).join(" ")),this.createVertexTemplateEntry(r+"container.svg;",90,80,"","Container",!0,null,this.getTagsForStencil(l,"container",e).join(" ")),this.addEntry(e+"pbr switch",(function(){var e=new mxCell("swp51",new mxGeometry(0,0,60,24),"rounded=0;whiteSpace=wrap;html=1;fillColor=#FB9F41;strokeColor=none;fontColor=#FFFFFF;");e.vertex=!0;var r=new mxCell("PBR",new mxGeometry(60,0,60,24),"text;verticalAlign=middle;align=center;fontColor=#FB9F41;fontStyle=1");return r.vertex=!0,t.createVertexTemplateFromCells([e,r],120,24,"Package Diagram")})),this.createVertexTemplateEntry(r+"ddos_server.svg;",96,20,"192.168.0.32","DDos Server",!0,null,this.getTagsForStencil(l,"ddos server",e).join(" ")),this.createVertexTemplateEntry(r+"switch.svg;",96,20,"","Switch",!0,null,this.getTagsForStencil(l,"switch",e).join(" ")),this.createVertexTemplateEntry(r+"limed_spruce.svg;",300,68,"","Limed Spruce",!1,null,this.getTagsForStencil(l,"limed spruce",e).join(" ")),this.createVertexTemplateEntry("fillColor=#36424A;strokeColor=none;",50,50,"","Limited Spruce",!0,null,this.getTagsForStencil(l,"color limited spruce",e).join(" ")),this.createVertexTemplateEntry("fillColor=#515D68;strokeColor=none;",50,50,"","Nevada",!0,null,this.getTagsForStencil(l,"color nevada",e).join(" ")),this.createVertexTemplateEntry("fillColor=#6E7B86;strokeColor=none;",50,50,"","Rolling Stone",!0,null,this.getTagsForStencil(l,"color rolling stone",e).join(" ")),this.createVertexTemplateEntry("fillColor=#8C9AA6;strokeColor=none;",50,50,"","Gray Chateau",!0,null,this.getTagsForStencil(l,"color gray chateau",e).join(" ")),this.createVertexTemplateEntry("fillColor=#AEB8C3;strokeColor=none;",50,50,"","Cadet Blue",!0,null,this.getTagsForStencil(l,"color cadet blue",e).join(" ")),this.createVertexTemplateEntry("fillColor=#D2D6DF;strokeColor=none;",50,50,"","Heather",!0,null,this.getTagsForStencil(l,"color heather",e).join(" ")),this.createVertexTemplateEntry("fillColor=#EAEDF2;strokeColor=none;",50,50,"","Athens Gray",!0,null,this.getTagsForStencil(l,"color athens gray",e).join(" ")),this.createVertexTemplateEntry("fillColor=#7CCC6C;strokeColor=none;",50,50,"","Mantis",!0,null,this.getTagsForStencil(l,"color mantis",e).join(" ")),this.createVertexTemplateEntry("fillColor=#4BC05B;strokeColor=none;",50,50,"","Fern",!0,null,this.getTagsForStencil(l,"color fern",e).join(" ")),this.createVertexTemplateEntry("fillColor=#00AD69;strokeColor=none;",50,50,"","Jade",!0,null,this.getTagsForStencil(l,"color jade",e).join(" ")),this.createVertexTemplateEntry("fillColor=#009271;strokeColor=none;",50,50,"","Observatory",!0,null,this.getTagsForStencil(l,"color observatory",e).join(" ")),this.createVertexTemplateEntry("fillColor=#FFC82E;strokeColor=none;",50,50,"","Energy Jellow",!0,null,this.getTagsForStencil(l,"color energy jellow",e).join(" ")),this.createVertexTemplateEntry("fillColor=#FFA12D;strokeColor=none;",50,50,"","Neon Carrot",!0,null,this.getTagsForStencil(l,"color neon carrot",e).join(" ")),this.createVertexTemplateEntry("fillColor=#F1446F;strokeColor=none;",50,50,"","Radical Red",!0,null,this.getTagsForStencil(l,"color radical red",e).join(" ")),this.createVertexTemplateEntry("fillColor=#83389B;strokeColor=none;",50,50,"","Rarity",!0,null,this.getTagsForStencil(l,"color rarity",e).join(" ")),this.createVertexTemplateEntry("fillColor=#1EB5BD;strokeColor=none;",50,50,"","Seagull",!0,null,this.getTagsForStencil(l,"color seagull",e).join(" ")),this.createVertexTemplateEntry("fillColor=#78CDD1;strokeColor=none;",50,50,"","Half Baked",!0,null,this.getTagsForStencil(l,"color half baked",e).join(" "))];this.addPalette("cumulus","Cumulus",!1,mxUtils.bind(this,(function(e){for(var t=0;t<o.length;t++)e.appendChild(o[t](e))}))),this.setCurrentSearchEntryLibrary()};