Create an aspect ratio using the given target width and height.
{number} - The target width of the canvas or graphic. Minimum value is Sketch.MIN_RESOLUTION.
{number} - The target height of the canvas or graphic. Minimum value is Sketch.MIN_RESOLUTION.
Optionalname: string{string} - Optional name to use.
Create an aspect ratio using the given AspectRatioConfig.
{AspectRatioConfig} - The AspectRatioConfig to use.
Readonlydiscriminator: DiscriminatorsDiscriminator value for the implementing type.
Readonlydiscriminator: ASPECT_RATIO_CONFIGDiscriminator value for the AspectRatioConfig type.
ReadonlyheightRatio: numberThe height component of the aspect ratio. Must be greater than or equal to 1.
Optional Readonlyname?: stringThe name of the aspect ratio. This property is optional.
ReadonlywidthRatio: numberThe width component of the aspect ratio. Must be greater than or equal to 1.
The height component of the aspect ratio.
The name of the aspect ratio.
The width component of the aspect ratio.
{number} - The target resolution.
OptionalapplyToLongSide: boolean{boolean} - When true, the long side of the canvas or graphic will be equal to the target resolution.
This means that the maximum width or height of the canvas or graphic will be equal to the target resolution.
The height of the canvas or graphic given the target resolution.
{number} - The target resolution.
OptionalapplyToLongSide: boolean{boolean} - When true, the long side of the canvas or graphic will be equal to the target resolution.
This means that the maximum width or height of the canvas or graphic will be equal to the target resolution.
The width of the canvas or graphic given the target resolution.
Defines the width-to-height ratio of a canvas or graphic.