| 3 | /// A vertical line at a fixed x-coordinate. |
| 4 | #[derive(Debug, Clone)] |
| 5 | pub struct VLine { |
| 6 | /// Unique identifier for the line. |
| 7 | pub id: ShapeId, |
| 8 | /// The x-coordinate where the vertical line is drawn. |
| 9 | pub x: f64, |
| 10 | /// How to interpret or convert the x value before drawing. |
| 11 | pub transform: Option<Transform>, |
| 12 | /// Optional label for the line (appears in legend if provided). |
| 13 | pub label: Option<String>, |
| 14 | /// Color of the line. |
| 15 | pub color: Color, |
| 16 | /// Line styling options, including width and pattern (solid, dashed, dotted). |
| 17 | pub line_style: LineStyle, |
| 18 | } |
| 19 | |
| 20 | impl VLine { |
| 21 | /// Create a new vertical line at the given x-coordinate. |
no outgoing calls
no test coverage detected