If this aspect ratio has a width ratio less than 1 or a height ratio less than 1, then width and height will both return 0.
The calculated canvas height.
The calculated canvas width.
Static
buildCreates an AspectRatio object with the given width ratio, height ratio, and name.
If this value is less than 1, this method will return undefined
.
If this value is less than 1, this method will return undefined
.
Optional
name: stringIf this value is not specified, the name of the AspectRatio object will be derived from the widthRatio and heightRatio parameters.
Static
buildOptional
name: string
An AspectRatioHandler provides the proper width and height of a canvas given an AspectRatio and resolution.