pub struct SvgArtifact {
pub source_kind: &'static str,
pub document_id: String,
pub svg: String,
pub occurrence_address: Option<String>,
pub viewport: SvgViewport,
pub visible_bounds: Option<SvgBounds>,
pub warnings: Vec<SvgWarning>,
pub repeated_ids: Vec<String>,
pub metrics: SvgMetrics,
}Expand description
Rendered SVG document together with resolved viewport, bounds, and telemetry.
Fields§
§source_kind: &'static strPlotter-IR family tag (e.g., "board", "footprint", "symbol", "schematic").
document_id: StringStable document identifier propagated from the Plotter-IR source.
svg: StringSerialized UTF-8 SVG document text.
occurrence_address: Option<String>Hierarchical page occurrence address when rendering a schematic sheet instance.
viewport: SvgViewportFinal rendered viewport in nanometres.
visible_bounds: Option<SvgBounds>Tight visible geometry bounding box in nanometres, if any geometry was emitted.
warnings: Vec<SvgWarning>Non-fatal warnings recorded during rendering or bounds estimation.
repeated_ids: Vec<String>Ids the source repeats, one entry per later element, in document
order. Those elements were written as <id>-2, <id>-3, …
(skipping a suffix another id uses) instead of being refused.
metrics: SvgMetricsAccounting counters for processed operations and emitted SVG output.