Skip to main content

global_position

Function global_position 

Source
pub fn global_position(tree: &NodeTree, id: &NodeId) -> (f64, f64)
Expand description

A node’s global position is its local position plus every ancestor’s, up to the root. Nodes without a position prop contribute nothing. Moving a parent carries children.