GroupElement
Documentation for the GroupElement schema definition in the Polotno Design JSON Schema.
GroupElement
Type Information
Base Type: object
Properties
Property | Type | Description |
---|---|---|
alwaysOnTop | boolean | Whether group stays on top of others. |
children | Array<Element > | Child elements in this group. |
custom | unknown | Custom data attached to the group. |
id | string | Unique identifier for the group. |
name | string | Display name for the group. |
opacity | number | Opacity level (0-1). |
removable | boolean | Whether group can be removed. |
selectable | boolean | Whether group can be selected. |
showInExport | boolean | Whether group appears in exports. |
type | "group" | Element type identifier. |
visible | boolean | Whether group is visible. |
JSON Schema
{
"additionalProperties": false,
"properties": {
"alwaysOnTop": {
"description": "Whether group stays on top of others.",
"type": "boolean"
},
"children": {
"description": "Child elements in this group.",
"items": {
"$ref": "#/definitions/Element"
},
"type": "array"
},
"custom": {
"description": "Custom data attached to the group."
},
"id": {
"description": "Unique identifier for the group.",
"type": "string"
},
"name": {
"description": "Display name for the group.",
"type": "string"
},
"opacity": {
"description": "Opacity level (0-1).",
"type": "number"
},
"removable": {
"description": "Whether group can be removed.",
"type": "boolean"
},
"selectable": {
"description": "Whether group can be selected.",
"type": "boolean"
},
"showInExport": {
"description": "Whether group appears in exports.",
"type": "boolean"
},
"type": {
"const": "group",
"description": "Element type identifier.",
"type": "string"
},
"visible": {
"description": "Whether group is visible.",
"type": "boolean"
}
},
"required": [
"id",
"type",
"children"
],
"type": "object"
}