Skip to main content

plan_node_subtree_removal

Function plan_node_subtree_removal 

Source
pub fn plan_node_subtree_removal(
    document: &Document,
    names: &[String],
) -> Result<NodeSubtreeRemovalPlan, AssemblyError>
Expand description

Resolve exact node selectors and their complete descendant closure.

The plan is non-mutating. Call apply_node_subtree_removal after all animation transforms have finished; it revalidates every live reference before committing the projection.

ยงErrors

Returns AssemblyError for an invalid document, missing or ambiguous selector, or a selection that contains the entire skeleton.