Skip to main content

shift_subtree_position

Function shift_subtree_position 

Source
pub fn shift_subtree_position(
    node_idx: usize,
    delta: LogicalPosition,
    tree: &LayoutTree,
    calculated_positions: &mut BTreeMap<usize, LogicalPosition>,
)
Expand description

Helper to recursively shift the absolute position of a node and all its descendants.