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)); } }
private void DrawProgrammable(SvgDrawing drawing) => CommonGraphical.Arrow(drawing, new(-5, 5), new(6, -7));
private static void DrawPolarSigns(SvgDrawing drawing) => CommonGraphical.Signs(drawing, new(-4, 3), new(5, 3), vertical: true);
private void DrawAC(SvgDrawing drawing) => CommonGraphical.AC(drawing, vertical: true);