Skip to main content

Interface: AspectRatioFitterDefaultedOptions

Defined in: ui/components/aspect-ratio-fitter-component.ts:23

Fields of AspectRatioFitterEcsComponent with a sensible default; callers may omit these.

Properties​

aspectMode​

aspectMode: UiAspectRatioFitMode

Defined in: ui/components/aspect-ratio-fitter-component.ts:25

How the aspect ratio is enforced.


aspectRatio​

aspectRatio: number

Defined in: ui/components/aspect-ratio-fitter-component.ts:28

The width-to-height ratio to maintain, e.g. 16 / 9.