Skip to main content

get_node_position_with_origin

Function get_node_position_with_origin 

Source
pub fn get_node_position_with_origin(
    lookups: &NodeGraphLookups,
    node: NodeId,
    node_origin: (f32, f32),
    fallback_size: Option<CanvasSize>,
) -> Option<CanvasPoint>
Expand description

Returns the top-left position for a node, taking node origin into account.

This mirrors XyFlow’s getNodePositionWithOrigin utility.