Create an aspect ratio using the given target width and height.
{number} - The target width of the canvas or graphic. Minimum value is Context.MIN_RESOLUTION.
{number} - The target height of the canvas or graphic. Minimum value is Context.MIN_RESOLUTION.
Optionalname: string{string} - Optional name to use.
Create an aspect ratio using the given AspectRatioConfig.
{AspectRatioConfig} - The AspectRatioConfig to use.
Defines the width-to-height ratio of a canvas or graphic.
Since
2.0.0