Class Size

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(width: number, height: number, widthUnit?: string, heightUnit?: string): Size

Parameters

  • width: number
  • height: number
  • widthUnit?: string optional
  • heightUnit?: string optional

Returns

Size

Properties

public height: number

public width: number

Methods

public equals(other: Size): boolean

Parameters

Returns

boolean

public toString(): string

Returns

string