Skip to main content

build_group_node

Function build_group_node 

Source
fn build_group_node(
    group: &Group,
    parent_abs: Transform,
) -> Transformed<Node<VItem>, DAffine3>
Expand description

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

The node’s transform is the group’s transform relative to its parent (parent_abs^-1 * group_abs), so path data is never rewritten and re-posing any level of the tree is a local operation.