Expand description
Ported from Arc (MIT) © 2026 Elia Kuratli
Shared layout (layoutId) & FLIP bounds/corner-radius handoff registry.
Structs§
- Layout
Flip Sample - Interpolated FLIP result for the current paint frame.
- Layout
Registry - Window/App-level registry storing
layoutIdbounds & corner radii for shared-layout handoffs. - Layout
Snapshot - Measured layout snapshot of an element (position, size, corner radii).
- Layout
Target - Active target reported by a
layoutIdparticipant.
Functions§
- flip_
offset - Helper computing the translation delta from a target bounds to the current FLIP bounds.
- layout_
scope_ key - Helper converting an
ElementIdinto a stable layout scope string. - sample_
shared_ layout - Convenience helper for GPUI prepaint/paint phases: updates the global
LayoutRegistryand schedules another animation frame while the FLIP spring is moving.