Type alias Rect

Rect: {
    h: number;
    w: number;
    x: number;
    y: number;
}

A rectangle type with postion, width and height.

Type declaration

  • h: number
  • w: number
  • x: number
  • y: number