コード例 #1
0
            private void DrawImpedance(SvgDrawing drawing)
            {
                // Draw some wire extensions if nothing is connected
                if (Pins[0].Connections == 0)
                {
                    drawing.Line(new(-6, 0), new(-8, 0), new("wire"));
                }
                if (Pins[1].Connections == 0)
                {
                    drawing.Line(new(6, 0), new(8, 0), new("wire"));
                }

                // The rectangle
                CommonGraphical.Rectangle(drawing, 12, 6);

                // The label
                if (!string.IsNullOrWhiteSpace(Label))
                {
                    drawing.Text(Label, new(0, -7), new(0, -1));
                }
            }
コード例 #2
0
 private void DrawProgrammable(SvgDrawing drawing) => CommonGraphical.Arrow(drawing, new(-5, 5), new(6, -7));
コード例 #3
0
 private static void DrawPolarSigns(SvgDrawing drawing)
 => CommonGraphical.Signs(drawing, new(-4, 3), new(5, 3), vertical: true);
コード例 #4
0
 private void DrawAC(SvgDrawing drawing)
 => CommonGraphical.AC(drawing, vertical: true);