Interface Rectangle

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

Properties

Properties

height: number

Height of the shape.

width: number

Width of the shape.

x: number

X-coordinate of the top-left corner.

y: number

Y-coordinate of the top-left corner.