Layout

data class Layout(val scaleFactor: Float = 1.0f) : Fit

Invokes the Rive layout engine to apply responsive layout to the artboard. This assumes that the artboard was designed with layouts in mind.

Parameters

scaleFactor

A multiplier to apply to the size of the laid out contents to fine-tune their presentation. Defaults to 1f (no change).

Constructors

Link copied to clipboard
constructor(scaleFactor: Float = 1.0f)

Properties

Link copied to clipboard

Default alignment. Not relevant for all fit modes, but still passed when drawing or on pointer events.

Link copied to clipboard
open override val scaleFactor: Float