| 93 | /// A horizontal line at a fixed y-coordinate. |
| 94 | #[derive(Debug, Clone)] |
| 95 | pub struct HLine { |
| 96 | /// Unique identifier for the line. |
| 97 | pub id: ShapeId, |
| 98 | /// The y-coordinate where the horizontal line is drawn. |
| 99 | pub y: f64, |
| 100 | /// How to interpret or convert the y value before drawing. |
| 101 | pub transform: Option<Transform>, |
| 102 | /// Optional label for the line (appears in legend if provided). |
| 103 | pub label: Option<String>, |
| 104 | /// Color of the line. |
| 105 | pub color: Color, |
| 106 | /// Line styling options, including width and pattern (solid, dashed, dotted). |
| 107 | pub line_style: LineStyle, |
| 108 | } |
| 109 | |
| 110 | impl HLine { |
| 111 | /// Create a new horizontal line at the given y-coordinate. |
no outgoing calls
no test coverage detected