object

Rect

Defines an abstract rectangle.

Properties
PropertyTypeRequired
classconstRequired
constrainProportionsbooleanRequired
heightnumberRequired
widthnumberRequired
xnumberRequired
ynumberRequired

class

Required

Description

no description

Type

const

Value

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

json
"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

Top left X coordinate. The X value in the top left corner is 0. The X-axis increases to the right.

Type

number

y

Required

Description

Top left Y coordinate. The Y value in the top left corner is 0. The Y-axis increases to the up.

Type

number

Daruma Feedback