pub fn parent_scroll_offsets(
main: &mut World,
parents: &HashMap<Entity, Entity>,
) -> HashMap<Entity, Vec2>Expand description
Returns each entity’s cumulative ancestor-chain ScrollOffset.
- The entity’s own
ScrollOffsetis excluded; only its descendants translate. - Returns an empty map when no
ScrollOffsetcomponents are present. - Consumed by
extract_rects,extract_text, andextract_shadowsto subtract the offset from rendered origins.