LayoutTransition

Represents a transition between two layout states, enabling animation by interpolating node positions at a given progress fraction.

Nodes present only in from are treated as exiting (animate to their last known position). Nodes present only in to are treated as entering (animate from their target position).

Parameters

from

The starting layout state.

to

The ending layout state.

Type Parameters

T

The node type of the external tree.

Constructors

Link copied to clipboard
constructor(from: TreeLayoutResult<T>, to: TreeLayoutResult<T>)

Properties

Link copied to clipboard
val allNodes: Set<T>

All nodes involved in either the start or end state.

Link copied to clipboard

Nodes only in to (added in the new layout).

Link copied to clipboard

Nodes only in from (removed in the new layout).

Link copied to clipboard

Nodes present in both states.

Functions

Link copied to clipboard

Returns an interpolated layout at the given progress (0.0 = from, 1.0 = to).