ScaleDown

data class ScaleDown(val alignment: Alignment = Alignment.Center) : Fit

Preserve aspect ratio and behave like Fit.Contain when the artboard is larger than the containing view. Otherwise, use the artboard's original dimensions.

Parameters

alignment

The alignment of the artboard within the containing view. Defaults to Alignment.Center.

ℹ️ When scaled down, see the note in Fit.Contain about the "free" axis.

Constructors

Link copied to clipboard
constructor(alignment: Alignment = Alignment.Center)

Properties

Link copied to clipboard
open override val alignment: Alignment
Link copied to clipboard
open val scaleFactor: Float = 1.0f

Default scale factor. Only relevant with Fit.Layout, but still passed when drawing or on pointer events.