StackCycleState

Snapshot history and coordination of the two-phase context transition for a given cycle

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
val stack: StackHistory<itemType: ItemType, Key>

Functions

Link copied to clipboard
fun progress()

Resolves the prepared state into its settled state without changing the stack snapshot. This is needed after startCycle has prepared a newly entered item as PreEntered: the subsequent progress pass must target its actual stack position.

Link copied to clipboard
fun push(newStack: List<ItemType>, treatNewEnteringAsPreparing: Boolean, recalculateEnteringToMoving: Boolean)
Link copied to clipboard

Lazily evaluates and caches the final settled contexts for the current cycle. Used by AffectedItemsPolicy to determine which items need spring animations.