pub struct AnchorStyle {Show 18 fields
pub dot_size: f64,
pub dot_border_width: f64,
pub dot_color: String,
pub dot_connected_color: String,
pub dot_compatible_color: String,
pub dot_compatible_glow: String,
pub label_font_size: String,
pub label_color: String,
pub label_compatible_color: String,
pub row_height: f64,
pub first_port_y: f64,
pub dot_inset: f64,
pub row_padding: String,
pub row_gap: String,
pub incompatible_opacity: f64,
pub tooltip_background: String,
pub tooltip_border: String,
pub tooltip_color: String,
}Expand description
Style configuration for anchor (port) rendering. The library renders the full anchor row: dot + label/children.
Fields§
§dot_size: f64Dot size in pixels.
dot_border_width: f64Dot border width.
dot_color: StringDot default border color (unconnected, no draft).
dot_connected_color: StringDot color when connected.
dot_compatible_color: StringDot color when compatible with draft.
dot_compatible_glow: StringDot glow when compatible, as a CSS filter value. A filter (not a
box-shadow) so the glow follows the socket’s SHAPE — a box-shadow would
halo a square around a triangle or hexagon socket.
label_font_size: StringLabel font size.
label_color: StringLabel default color.
label_compatible_color: StringLabel color when compatible.
row_height: f64Fixed row height in pixels. Children cannot exceed this.
first_port_y: f64Y offset from node top to the center of the first port. Typically header_height + padding + row_height/2.
dot_inset: f64X inset from node edge for the dot center (input ports from left, output from right).
row_padding: StringRow padding (CSS).
row_gap: StringRow gap between dot and label.
incompatible_opacity: f64Opacity when incompatible during draft.
tooltip_background: StringTooltip background.
tooltip_border: StringTooltip border.
tooltip_color: StringTooltip text color.
Trait Implementations§
Source§impl Clone for AnchorStyle
impl Clone for AnchorStyle
Source§impl Debug for AnchorStyle
impl Debug for AnchorStyle
Auto Trait Implementations§
impl Freeze for AnchorStyle
impl RefUnwindSafe for AnchorStyle
impl Send for AnchorStyle
impl Sync for AnchorStyle
impl Unpin for AnchorStyle
impl UnsafeUnpin for AnchorStyle
impl UnwindSafe for AnchorStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more