Skip to main content

Rect

Typeobject
Backlinks16

A rectangle.

PropertyTypeRequired
classstringRequired
constrainProportionsbooleanRequired
heightnumberRequired
widthnumberRequired
xnumberRequired
ynumberRequired

class​

Required

Type

string

Value

constant: the value of this property must be equal to:

"rect"

constrainProportions​

Required

Description

Whether to keep the height and width ratio constant while scaling.

Type

boolean

height​

Required

Description

no description

Type

number

width​

Required

Description

no description

Type

number

x​

Required

Description

The X coordinate of the top-left corner point. The X-axis increases to the right.

Type

number

y​

Required

Description

The Y coordinate of the top-left corner point. The Y-axis increases to the up.

Type

number