pub struct SvgConfig {
pub node_color: String,
pub node_stroke_color: String,
pub edge_color: String,
pub node_radius: f64,
pub edge_width: f64,
pub font_size: f64,
pub font_color: String,
pub background_color: String,
pub show_labels: bool,
pub show_edge_weights: bool,
pub arrow_size: f64,
}Expand description
Configuration for SVG graph rendering
Fields§
§node_color: StringFill color for nodes (CSS color string)
node_stroke_color: StringStroke color for node outlines
edge_color: StringColor for edges
node_radius: f64Radius of nodes in pixels
edge_width: f64Stroke width for edges in pixels
font_size: f64Font size for node labels in pixels
font_color: StringFont color for labels
background_color: StringBackground color of the SVG canvas
show_labels: boolWhether to show node labels
show_edge_weights: boolWhether to show edge weights
arrow_size: f64Arrow size for directed edges (0 = undirected)
Implementations§
Source§impl SvgConfig
impl SvgConfig
Sourcepub fn dark_theme() -> Self
pub fn dark_theme() -> Self
Create a dark-theme config
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SvgConfig
impl RefUnwindSafe for SvgConfig
impl Send for SvgConfig
impl Sync for SvgConfig
impl Unpin for SvgConfig
impl UnsafeUnpin for SvgConfig
impl UnwindSafe for SvgConfig
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
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>
Converts
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>
Converts
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