Skip to main content

scene_to_svg

Function scene_to_svg 

Source
pub fn scene_to_svg(scene: &Scene) -> String
Expand description

Serialize a Scene to inline SVG (no XML declaration).

Each viewport is one g.xpict-mol. Layers (shading, halo, bonds, …) nest inside that group so a mol transform applies to regions and chem together.