Skip to main content

Rectangle

Mandatory properties

The following properties are available in addition to the common label object properties.

PropertyTypeDescription
typestringMust be Rect.
widthnumberWidth of the rectangle.
heightnumberHeight of the rectangle.

Optional properties

The following properties are available in addition to the common label object properties.

PropertyTypeDescription
lineWidthnumberBorder line width.
lineColorstringBorder line color. May contain dynamic text.
fillColorstringFill color. May contain dynamic text.

Example

{
"type": "Rect",
"x": 0,
"y": 0,
"width": 100,
"height": 100
}