Contain
Preserve aspect ratio and scale the artboard so that its larger dimension matches the corresponding dimension of the containing view.
If aspect ratios are not identical, this will leave space on the larger axis.
Parameters
alignment
The alignment of the artboard within the containing view. Defaults to Alignment.Center.
ℹ️ Only the axis opposite to the larger dimension will be relevant. E.g. when the artboard's width (horizontal axis) is larger, only top, center, or bottom (vertical axis) alignments are relevant.
Properties
Link copied to clipboard
Default scale factor. Only relevant with Fit.Layout, but still passed when drawing or on pointer events.