Skip to main content

layout_to_svg_group

Function layout_to_svg_group 

Source
pub fn layout_to_svg_group(
    layout: &Layout,
    container_id: u64,
    options: SvgDrawOptions,
    title: &str,
) -> (Group, Rect)
Expand description

Render only the item definitions used by this layout.

container_id is the caller’s external bin or sheet ID, as in export_layout_snapshot. It names the container_{id} group and prefixes item definition IDs, so several layouts can share one document.