Skip to main content

Module layout

Module layout 

Source
Expand description

Ported from Arc (MIT) © 2026 Elia Kuratli Shared layout (layoutId) & FLIP bounds/corner-radius handoff registry.

Structs§

LayoutFlipSample
Interpolated FLIP result for the current paint frame.
LayoutRegistry
Window/App-level registry storing layoutId bounds & corner radii for shared-layout handoffs.
LayoutSnapshot
Measured layout snapshot of an element (position, size, corner radii).
LayoutTarget
Active target reported by a layoutId participant.

Functions§

flip_offset
Helper computing the translation delta from a target bounds to the current FLIP bounds.
layout_scope_key
Helper converting an ElementId into a stable layout scope string.
sample_shared_layout
Convenience helper for GPUI prepaint/paint phases: updates the global LayoutRegistry and schedules another animation frame while the FLIP spring is moving.