pub struct RenderConfig {Show 16 fields
pub layout: LayoutConfig,
pub layout_engine: Option<EngineAlgorithmId>,
pub cluster_ranksep: Option<f64>,
pub padding: Option<usize>,
pub text_color_mode: TextColorMode,
pub svg_scale: Option<f64>,
pub edge_preset: Option<EdgePreset>,
pub routing_style: Option<RoutingStyle>,
pub curve: Option<Curve>,
pub edge_radius: Option<f64>,
pub svg_diagram_padding: Option<f64>,
pub svg_node_padding_x: Option<f64>,
pub svg_node_padding_y: Option<f64>,
pub show_ids: bool,
pub geometry_level: GeometryLevel,
pub path_simplification: PathSimplification,
}Expand description
Configuration for rendering.
Fields§
§layout: LayoutConfigLayout configuration.
layout_engine: Option<EngineAlgorithmId>Layout engine+algorithm selection.
cluster_ranksep: Option<f64>Cluster (subgraph) rank separation override.
padding: Option<usize>Padding around content.
text_color_mode: TextColorModeResolved text color mode for text/ascii output.
svg_scale: Option<f64>SVG-specific: scale factor.
edge_preset: Option<EdgePreset>SVG edge style preset. Expands to routing + curve defaults.
routing_style: Option<RoutingStyle>SVG routing style override.
curve: Option<Curve>SVG curve override.
edge_radius: Option<f64>SVG-specific: corner arc radius (px).
svg_diagram_padding: Option<f64>SVG-specific: diagram padding (px).
svg_node_padding_x: Option<f64>SVG-specific: node padding on x-axis (px).
svg_node_padding_y: Option<f64>SVG-specific: node padding on y-axis (px).
show_ids: boolShow node IDs alongside labels.
geometry_level: GeometryLevelMMDS geometry level for JSON output.
path_simplification: PathSimplificationPath simplification level for edge waypoints.
Implementations§
Source§impl RenderConfig
impl RenderConfig
Sourcepub fn text_render_options(&self, format: OutputFormat) -> TextRenderOptions
pub fn text_render_options(&self, format: OutputFormat) -> TextRenderOptions
Build text render options from this config.
Sourcepub fn svg_render_options(&self) -> SvgRenderOptions
pub fn svg_render_options(&self) -> SvgRenderOptions
Build SVG render options from this config.
Resolves engine-specific defaults for routing style and curve.
Trait Implementations§
Source§impl Clone for RenderConfig
impl Clone for RenderConfig
Source§fn clone(&self) -> RenderConfig
fn clone(&self) -> RenderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderConfig
impl Debug for RenderConfig
Source§impl Default for RenderConfig
impl Default for RenderConfig
Source§fn default() -> RenderConfig
fn default() -> RenderConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RenderConfig
impl RefUnwindSafe for RenderConfig
impl Send for RenderConfig
impl Sync for RenderConfig
impl Unpin for RenderConfig
impl UnsafeUnpin for RenderConfig
impl UnwindSafe for RenderConfig
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