Static ReadonlyAUTO_An auto sizing constant.
Can be used to automatically calculate the width or height based on the original aspect ratio.
The aspect ratio.
The effective height, calculated based on the preferred size, pixel ratio and resolution scale.
The pixelRatio multiplied by the scale.
The effective width, calculated based on the preferred size, pixel ratio and resolution scale.
Copies the base size of a given resolution.
A resolution.
Copies the preferred size of a given resolution.
A resolution.
Checks if this resolution equals the given resolution.
True if the resolutions are the same.
Resets the preferred size to AUTO_SIZE.
Sets the offset and the preferred size in logical pixels.
If the width and height are omitted, x and y will be used for the size instead.
The X-offset.
The Y-offset.
Optionalwidth: numberThe width.
Optionalheight: numberThe height.
Sets the base size in logical pixels.
The width.
The height.
Dispatches a change event.
Sets the offset in logical pixels.
The X-offset.
The Y-offset.
Sets the preferred size in logical pixels.
The width.
The height.
A viewport.