Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Rect

Index

Constructors

constructor

  • new Rect(): Rect
  • new Rect(x: number, y: number, width: number, height: number): Rect
  • Returns Rect

  • Parameters

    • x: number
    • y: number
    • width: number
    • height: number

    Returns Rect

Properties

Readonly height

height: number

Readonly width

width: number

Readonly x

x: number

Readonly y

y: number

Methods

and

or

pad

  • Parameters

    • factor: number

    Returns Rect

  • Parameters

    Returns Rect

padAsync

  • padAsync(factor: number): Promise<Rect>
  • padAsync(size: Size): Promise<Rect>
  • Parameters

    • factor: number

    Returns Promise<Rect>

  • Parameters

    Returns Promise<Rect>

rescale

  • rescale(factor: number): Rect
  • Parameters

    • factor: number

    Returns Rect

rescaleAsync

  • rescaleAsync(factor: number): Promise<Rect>
  • Parameters

    • factor: number

    Returns Promise<Rect>

toSquare

toSquareAsync

  • toSquareAsync(): Promise<Rect>
  • Returns Promise<Rect>