Type Alias Bounds

Bounds: {
    x: number;
    y: number;
    width: number;
    height: number;
}

Bounds represents the boundaries of a rectangular area, defined by the coordinates of the top-left corner and the dimensions of the rectangle.

Type declaration

  • x: number

    Top-left x position of the rectangular area defined

  • y: number

    Top-left y position of the rectangular area defined

  • width: number

    Width of the represented area

  • height: number

    Height of the represented area

const bounds = { x: 50, y: 50, width: 200, height: 100 };
console.log(bounds);