Skip to main content

ObjectGroup

An ObjectGroup contains a list of child label objects that are rendered together. It has no position of its own; each child object carries its own coordinates.

Mandatory properties

PropertyTypeDescription
typestringMust be ObjectGroup.

Optional properties

PropertyTypeDescription
childrenarrayArray of label objects. May be empty or omitted.

Example

{
"type": "ObjectGroup",
"children": [
{
"type": "Rect",
"x": 5.0,
"y": 5.0,
"width": 40.0,
"height": 20.0,
"fillColor": "black"
},
{
"type": "Text",
"x": 25.0,
"y": 15.0,
"hAnchor": "CENTER",
"vAnchor": "CENTER",
"text": "Hello",
"color": "white",
"font": {"family": "Arial", "style": "Regular", "height": 8.0}
}
]
}