Skip to main content

build_path_leaf

Function build_path_leaf 

Source
fn build_path_leaf(
    path: &Path,
    parent_abs: Transform,
) -> Option<Transformed<Node<VItem>, DAffine3>>
Expand description

Build a leaf node from a usvg path and the absolute transform of its parent group.

The VItem is built from the raw path segments exactly like the old flat walker did (same segment mapping, fill/stroke parsing, and empty path skipping) — but the path’s placement goes onto the leaf node’s transform instead of being baked into the points.