@zklogic/draw.io
Version:
Draw.IO - Graph Editor integration in Angular-cli
1 lines • 10.1 kB
JavaScript
Sidebar.prototype.addBasicPalette=function(){var e=100,t=100,l="whiteSpace=wrap;html=1;shape=mxgraph.basic.",n=mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;html=1;shape=mxgraph.basic.",r=(mxConstants.STYLE_VERTICAL_LABEL_POSITION,mxConstants.STYLE_VERTICAL_ALIGN,"mxgraph.basic"),a="";this.setCurrentSearchEntryLibrary("basic"),this.addPaletteFunctions("basic",mxResources.get("basic"),!1,[this.createVertexTemplateEntry(n+"rect;fillColor2=none;strokeWidth=1;size=20;indent=5;",120,60,"","Partial Rectangle"),this.createVertexTemplateEntry("shape=partialRectangle;whiteSpace=wrap;html=1;top=0;bottom=0;fillColor=none;",120,60,"","Partial Rectangle"),this.createVertexTemplateEntry("shape=partialRectangle;whiteSpace=wrap;html=1;right=0;top=0;bottom=0;fillColor=none;routingCenterX=-0.5;",120,60,"","Partial Rectangle"),this.createVertexTemplateEntry("shape=partialRectangle;whiteSpace=wrap;html=1;bottom=0;right=0;fillColor=none;",120,60,"","Partial Rectangle"),this.createVertexTemplateEntry("shape=partialRectangle;whiteSpace=wrap;html=1;top=0;left=0;fillColor=none;",120,60,"","Partial Rectangle"),this.createVertexTemplateEntry(n+"polygon;polyCoords=[[0.25,0],[0.75,0],[1,0.25],[1,0.75],[0.75,1],[0.25,1],[0,0.75],[0,0.25]];polyline=0;",e,t,"","Polygon",null,null,this.getTagsForStencil(r,"polygon",a).join(" ")),this.createVertexTemplateEntry(n+"polygon;polyCoords=[[0.25,0],[0.75,0],[1,0.25],[1,0.75],[0.75,1],[0.25,1],[0,0.75],[0,0.25]];polyline=1;fillColor=none;",e,t,"","Polyline",null,null,this.getTagsForStencil(r,"polyline",a).join(" ")),this.createVertexTemplateEntry(n+"patternFillRect;fillStyle=diag;step=5;fillStrokeWidth=0.2;fillStrokeColor=#dddddd;",120,60,"","Rectangle with diagonal fill"),this.createVertexTemplateEntry(n+"patternFillRect;fillStyle=diagRev;step=5;fillStrokeWidth=0.2;fillStrokeColor=#dddddd;",120,60,"","Rectangle with reverse diagonal fill"),this.createVertexTemplateEntry(n+"patternFillRect;fillStyle=vert;step=5;fillStrokeWidth=0.2;fillStrokeColor=#dddddd;",120,60,"","Rectangle with vertical fill"),this.createVertexTemplateEntry(n+"patternFillRect;fillStyle=hor;step=5;fillStrokeWidth=0.2;fillStrokeColor=#dddddd;",120,60,"","Rectangle with horizontal fill"),this.createVertexTemplateEntry(n+"patternFillRect;fillStyle=grid;step=5;fillStrokeWidth=0.2;fillStrokeColor=#dddddd;",120,60,"","Rectangle with grid fill"),this.createVertexTemplateEntry(n+"patternFillRect;fillStyle=diagGrid;step=5;fillStrokeWidth=0.2;fillStrokeColor=#dddddd;",120,60,"","Rectangle with diagonal grid fill"),this.createVertexTemplateEntry(n+"4_point_star_2;dx=0.8;",e,t,"","4 Point Star",null,null,this.getTagsForStencil(r,"4_point_star",a).join(" ")),this.createVertexTemplateEntry(n+"6_point_star",e,90,"","6 Point Star",null,null,this.getTagsForStencil(r,"6_point_star",a).join(" ")),this.createVertexTemplateEntry(n+"8_point_star",e,t,"","8 Point Star",null,null,this.getTagsForStencil(r,"8_point_star",a).join(" ")),this.createVertexTemplateEntry(n+"banner",e,50,"","Banner",null,null,this.getTagsForStencil(r,"banner",a).join(" ")),this.createVertexTemplateEntry(l+"cloud_callout",90,60,"","Cloud Callout",null,null,this.getTagsForStencil(r,"cloud_callout",a).join(" ")),this.createVertexTemplateEntry(l+"cloud_rect",120,90,"","Cloud Rectangle",null,null,this.getTagsForStencil(r,"cloud_rect"," rectangle").join(" ")),this.createVertexTemplateEntry(n+"cone",e,t,"","Cone",null,null,this.getTagsForStencil(r,"cone",a).join(" ")),this.createVertexTemplateEntry(n+"cone2;dx=0.5;dy=0.9;",e,t,"","Cone (adjustable)",null,null,this.getTagsForStencil(r,"cone",a).join(" ")),this.createVertexTemplateEntry(l+"document",e,t,"","Document",null,null,this.getTagsForStencil(r,"document",a).join(" ")),this.createVertexTemplateEntry(n+"donut;dx=25;",e,t,"","Donut",null,null,this.getTagsForStencil(r,"donut",a).join(" ")),this.createVertexTemplateEntry(n+"drop",70,t,"","Drop",null,null,this.getTagsForStencil(r,"drop",a).join(" ")),this.createVertexTemplateEntry(n+"flash",60,t,"","Flash",null,null,this.getTagsForStencil(r,"flash",a).join(" ")),this.createVertexTemplateEntry(n+"half_circle",e,50,"","Half Circle",null,null,this.getTagsForStencil(r,"half_circle"," semicircle").join(" ")),this.createVertexTemplateEntry(n+"heart",e,t,"","Heart",null,null,this.getTagsForStencil(r,"heart",a).join(" ")),this.createVertexTemplateEntry(l+"isocube;isoAngle=15;",e,t,"","Isometric Cube",null,null,this.getTagsForStencil(r,"isometric cube",a).join(" ")),this.createVertexTemplateEntry(l+"loud_callout",e,60,"","Loud Callout",null,null,this.getTagsForStencil(r,"loud_callout",a).join(" ")),this.createVertexTemplateEntry(n+"moon",75,t,"","Moon",null,null,this.getTagsForStencil(r,"moon",a).join(" ")),this.createVertexTemplateEntry(n+"no_symbol",e,t,"","No Symbol",null,null,this.getTagsForStencil(r,"no_symbol",a).join(" ")),this.createVertexTemplateEntry(l+"octagon2;align=center;verticalAlign=middle;dx=15;",e,t,"","Octagon",null,null,this.getTagsForStencil(r,"octagon",a).join(" ")),this.createVertexTemplateEntry(n+"orthogonal_triangle",e,70,"","Orthogonal Triangle",null,null,this.getTagsForStencil(r,"orthogonal_triangle",a).join(" ")),this.createVertexTemplateEntry(n+"acute_triangle;dx=0.5;",e,70,"","Acute Triangle",null,null,this.getTagsForStencil(r,"acute_triangle",a).join(" ")),this.createVertexTemplateEntry(n+"obtuse_triangle;dx=0.25;",e,70,"","Obtuse Triangle",null,null,this.getTagsForStencil(r,"obtuse_triangle",a).join(" ")),this.createVertexTemplateEntry(l+"oval_callout",e,60,"","Oval Callout",null,null,this.getTagsForStencil(r,"oval_callout",a).join(" ")),this.createVertexTemplateEntry(l+"pentagon",e,90,"","Pentagon",null,null,this.getTagsForStencil(r,"pentagon",a).join(" ")),this.createVertexTemplateEntry(l+"pointed_oval",50,t,"","Pointed Oval",null,null,this.getTagsForStencil(r,"pointed oval",a).join(" ")),this.createVertexTemplateEntry(n+"pyramid;dx1=0.4;dx2=0.6;dy1=0.9;dy2=0.8;",e,t,"","Pyramid",null,null,this.getTagsForStencil(r,"pyramid",a).join(" ")),this.createVertexTemplateEntry(n+"diag_snip_rect;dx=6;",e,60,"","Diagonal Snip Rectangle",null,null,this.getTagsForStencil(r,"diag_snip_rect",a).join(" ")),this.createVertexTemplateEntry(n+"diag_round_rect;dx=6;",e,60,"","Diagonal Rounded Rectangle",null,null,this.getTagsForStencil(r,"diag_round_rect",a).join(" ")),this.createVertexTemplateEntry(n+"corner_round_rect;dx=6;",e,60,"","Corner Rounded Rectangle",null,null,this.getTagsForStencil(r,"corner_round_rect",a).join(" ")),this.createVertexTemplateEntry(n+"three_corner_round_rect;dx=6;",e,60,"","Rounded Rectangle (three corners)",null,null,this.getTagsForStencil(r,"three_corner_round_rect",a).join(" ")),this.createVertexTemplateEntry(n+"plaque;dx=6;",e,60,"","Plaque",null,null,this.getTagsForStencil(r,"plaque",a).join(" ")),this.createVertexTemplateEntry(n+"frame;dx=10;",e,60,"","Frame",null,null,this.getTagsForStencil(r,"frame",a).join(" ")),this.createVertexTemplateEntry(n+"rounded_frame;dx=10;",e,60,"","Rounded Frame",null,null,this.getTagsForStencil(r,"rounded_frame",a).join(" ")),this.createVertexTemplateEntry(n+"plaque_frame;dx=10;",e,60,"","Plaque Frame",null,null,this.getTagsForStencil(r,"plaque_frame",a).join(" ")),this.createVertexTemplateEntry(n+"frame_corner;dx=10;",e,60,"","Frame Corner",null,null,this.getTagsForStencil(r,"frame_corner",a).join(" ")),this.createVertexTemplateEntry(n+"diag_stripe;dx=10;",e,60,"","Diagonal Stripe",null,null,this.getTagsForStencil(r,"diag_stripe",a).join(" ")),this.createVertexTemplateEntry(l+"rectCallout;dx=30;dy=15;boundedLbl=1;",e,60,"","Rectangular Callout",null,null,this.getTagsForStencil(r,"rectangular_callout",a).join(" ")),this.createVertexTemplateEntry(l+"roundRectCallout;dx=30;dy=15;size=5;boundedLbl=1;",e,60,"","Rounded Rectangular Callout",null,null,this.getTagsForStencil(r,"rectangular_callout",a).join(" ")),this.createVertexTemplateEntry(n+"layered_rect;dx=10;outlineConnect=0;",e,60,"","Layered Rectangle",null,null,this.getTagsForStencil(r,"layered_rect",a).join(" ")),this.createVertexTemplateEntry(n+"smiley",e,t,"","Smiley",null,null,this.getTagsForStencil(r,"smiley",a).join(" ")),this.createVertexTemplateEntry(n+"star",e,95,"","Star",null,null,this.getTagsForStencil(r,"star",a).join(" ")),this.createVertexTemplateEntry(n+"sun",e,t,"","Sun",null,null,this.getTagsForStencil(r,"sun",a).join(" ")),this.createVertexTemplateEntry(n+"tick",85,t,"","Tick",null,null,this.getTagsForStencil(r,"tick",a).join(" ")),this.createVertexTemplateEntry(n+"wave2;dy=0.3;",e,60,"","Wave",null,null,this.getTagsForStencil(r,"wave",a).join(" ")),this.createVertexTemplateEntry("labelPosition=center;verticalLabelPosition=middle;align=center;html=1;shape=mxgraph.basic.button;dx=10;",e,60,"Button","Button",null,null,this.getTagsForStencil(r,"button",a).join(" ")),this.createVertexTemplateEntry("labelPosition=center;verticalLabelPosition=middle;align=center;html=1;shape=mxgraph.basic.shaded_button;dx=10;fillColor=#E6E6E6;strokeColor=none;",e,60,"Button","Button (shaded)",null,null,this.getTagsForStencil(r,"button",a).join(" ")),this.createVertexTemplateEntry(n+"x",e,t,"","X",null,null,this.getTagsForStencil(r,"x",a).join(" ")),this.createVertexTemplateEntry(n+"pie;startAngle=0.2;endAngle=0.9;",e,t,"","Pie",null,null,this.getTagsForStencil(r,"pie",a).join(" ")),this.createVertexTemplateEntry(n+"arc;startAngle=0.3;endAngle=0.1;",e,t,"","Arc",null,null,this.getTagsForStencil(r,"arc",a).join(" ")),this.createVertexTemplateEntry(n+"partConcEllipse;startAngle=0.25;endAngle=0.1;arcWidth=0.5;",e,t,"","Partial Concentric Ellipse",null,null,this.getTagsForStencil(r,"partConcEllipse",a).join(" ")),this.createVertexTemplateEntry("shape=message;html=1;whiteSpace=wrap;html=1;outlineConnect=0;",60,40,"","Message",null,null,"message mail"),this.createVertexTemplateEntry("shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=15;lid=0;",60,80,"","Cylinder Stack",null,null,"cylinder data database stack tube")]),this.setCurrentSearchEntryLibrary()};