represents a 2d rectangle. compatible with DOMRect, without its inherited annoying readonly fields.

interface Rect {
    x: number;
    y: number;
    width: number;
    height: number;
}

Hierarchy (View Summary)

Properties

Properties

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