Skip to main content

RectangleXY

Defines a rectangle in 2d space - its x/y location, width and height, and optionally the computed center, but that can of course be calculated from the other values. Internally there are times when the code has this to hand so we include it here.

Extends

Extended by

Properties

center?

optional center: PointXY

Center of the box. In some cases the code has this information to hand and populates it, but if it is absent you can figure it out from the other values.


height

height: number

element height

Inherited from

Size.height


width

width: number

Element width

Inherited from

Size.width


x

x: number

X location

Inherited from

PointXY.x


y

y: number

Y location

Inherited from

PointXY.y