Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Size

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Size(width: number, height: number, widthUnit?: string, heightUnit?: string): Size
  • Parameters

    • width: number
    • height: number
    • Optional widthUnit: string
    • Optional heightUnit: string

    Returns Size

Properties

height

height: number

The height along the y-axis, in pixels.

width

width: number

The width along the x-axis, in pixels.

Methods

equals

  • equals(other: null | Size): boolean
  • Compares two Sizes.

    Parameters

    Returns boolean

toString

  • toString(): string
  • Returns a string representation of this Size.

    Returns string

Generated using TypeDoc