Skip to main content

resolve_follower_target

Function resolve_follower_target 

Source
pub fn resolve_follower_target(
    leader_transform: Transform,
    leader_size: Size,
    target_anchor: LayerAnchor,
    offset: Offset,
) -> Offset
Expand description

World-space point where a follower’s anchor must land, resolved entirely in leader space. The compositor and the widget tree share this half of the projection; each side then inverts it into its own retained frame (layer world vs. render parent), which is why the callers still differ.