Aspect ratio is the ratio of the width to the height of an image or screen.

Constructors

Properties

Methods

Constructors

Properties

height: number

Height component of the aspect ratio.

Default is 1.0

width: number

Width component of the aspect ratio.

Default is 1.0

Methods

  • Parameters

    Returns {
        height?: number;
        width?: number;
        serialize?(config?): { readonly width?: number | undefined; readonly height?: number | undefined; serialize?: ((config?: ToJsonConfiguration | undefined) => ...) | undefined; };
    }

    • Optional Readonly height?: number

      Height component of the aspect ratio.

      Default is 1.0

    • Optional Readonly width?: number

      Width component of the aspect ratio.

      Default is 1.0

    • serialize?:function
      • Parameters

        Returns { readonly width?: number | undefined; readonly height?: number | undefined; serialize?: ((config?: ToJsonConfiguration | undefined) => ...) | undefined; }