コード例 #1
0
            /// <inheritdoc />
            public void Render(SvgDrawing drawing)
            {
                var go = new GraphicOptions(GetType().Name.ToLower())
                {
                    Id = Name
                };

                go.Classes.Add("blackbox");
                drawing.StartGroup(go);
                drawing.Polygon(new[]
                {
                    Location, new Vector2(EndLocation.X, Location.Y),
                    EndLocation, new Vector2(Location.X, EndLocation.Y)
                });

                // Draw the port names
                _pins.Render(drawing);
                drawing.EndGroup();
            }