resolve

fun OffsetType.resolve(fullSize: Int): Int

Resolves an OffsetType to a concrete pixel offset given the axis' fullSize — a slide transition's initialOffset/targetOffset is one of these, since Compose's own slideInHorizontally/slideInVertically only learn the real container size at draw time.

Return

the resolved offset in px — fullSize for OffsetType.Full, its negation for OffsetType.NegativeFull, a literal value for OffsetType.Fixed, or a fraction of fullSize for OffsetType.Fraction.

Parameters

fullSize

the axis size (width or height, in px) this offset is relative to.