-
public final class Fit.FitWidth extends Fit
Preserve aspect ratio and scale the artboard width to match the containing view's width.
If the aspect ratios between the artboard and containing view do not match, this will result in either vertical clipping or space in the vertical axis.
-
-
Field Summary
Fields Modifier and Type Field Description private final Alignmentalignmentprivate final FloatscaleFactor
-
Constructor Summary
Constructors Constructor Description Fit.FitWidth(Alignment alignment)
-
Method Summary
Modifier and Type Method Description AlignmentgetAlignment()FloatgetScaleFactor()Default scale factor. -
-
Constructor Detail
-
Fit.FitWidth
Fit.FitWidth(Alignment alignment)
- Parameters:
alignment- The vertical alignment of the artboard within the containing view.
-
-
Method Detail
-
getAlignment
Alignment getAlignment()
-
getScaleFactor
Float getScaleFactor()
Default scale factor. Only relevant with Fit.Layout, but still passed when drawing or on pointer events.
-
-
-
-