pub struct LineNode {Show 18 fields
pub id: String,
pub name: Option<String>,
pub role: Option<String>,
pub x1: Option<Dimension>,
pub y1: Option<Dimension>,
pub x2: Option<Dimension>,
pub y2: Option<Dimension>,
pub style: Option<String>,
pub stroke: Option<PropertyValue>,
pub stroke_width: Option<PropertyValue>,
pub stroke_dash: Option<PropertyValue>,
pub stroke_gap: Option<PropertyValue>,
pub stroke_linecap: Option<String>,
pub opacity: Option<f64>,
pub visible: Option<bool>,
pub locked: Option<bool>,
pub source_span: Option<Span>,
pub unknown_props: BTreeMap<String, UnknownProperty>,
}Expand description
A line node (stroke-only; defined by two endpoints x1/y1/x2/y2).
Unlike rect and ellipse there is no bounding box, no fill, no radius,
no rotate, and no stroke-alignment — a line is a 1-D geometry whose only
visual property is its centered stroke.
Fields§
§id: String§name: Option<String>§role: Option<String>§x1: Option<Dimension>§y1: Option<Dimension>§x2: Option<Dimension>§y2: Option<Dimension>§style: Option<String>§stroke: Option<PropertyValue>§stroke_width: Option<PropertyValue>§stroke_dash: Option<PropertyValue>Dash segment length in pixels; None = solid stroke.
stroke_gap: Option<PropertyValue>Gap length in pixels between dashes; defaults to stroke_dash when absent.
stroke_linecap: Option<String>Dash end-cap style: "butt" (default), "round", or "square".
opacity: Option<f64>§visible: Option<bool>§locked: Option<bool>§source_span: Option<Span>Source declaration span, when available.
unknown_props: BTreeMap<String, UnknownProperty>Unknown properties preserved for forward-compat.
Trait Implementations§
impl StructuralPartialEq for LineNode
Auto Trait Implementations§
impl Freeze for LineNode
impl RefUnwindSafe for LineNode
impl Send for LineNode
impl Sync for LineNode
impl Unpin for LineNode
impl UnsafeUnpin for LineNode
impl UnwindSafe for LineNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more