Skip to main content

Module runtime

Module runtime 

Source
Expand description

Renderer-neutral runtime helpers for deterministic UI motion.

Structs§

MotionRetargetItem
A target item paired with the currently sampled value for the same identity.
MotionRetargetSet
Stable-id retargeting result for a new target set.
MotionSnapshot
A stable-id value captured from a motion sample or target state.
MotionTimeline
A deterministic timeline for one UI motion transition.
MotionTimelineSample
A sampled point on a motion timeline.

Enums§

MotionEdge
Logical edge used by renderer-neutral rect motion helpers.
MotionRunState
Runtime state for sampled motion.

Functions§

lerp_rect
Samples a rect between two rects at unit progress.
motion_source_rect
Returns bounds for the rect just outside the container on the chosen edge.
preferred_motion_edge
Chooses the best edge to move a rect out of a containing rect.
retarget_motion_snapshots
Matches sampled values to a new target set by stable identity.
reveal_rect_from_edge
Samples the visible sub-rect revealed from an edge at unit progress.