Layers are collections of items, such as shapes, lines, or groups. Layers cannot contain other layers. They are similar to Groups but are more versatile. Layers are used to organize and manage the visual hierarchy of elements within a diagram. You can assign shapes, lines, and groups to different layers and then manipulate the visibility and order of those layers.

Layer Format

PropertyDescription
idID
Identifier for a given layer (must be unique).
Required
titleString
Title of the layer.
Required
itemsArray[ID]
An array of IDs of all Shapes, Lines, and Groups in the layer.
Optional
noteText
Text to add as a note to the layer.
Optional
customDataArray [Custom Data ]
An array of custom data in the layer. See Custom Data for a description of its purpose.
Optional
linkedDataArray [Linked Data ]
An array of linked data in the layer. See Linked Data for a description of its purpose.
Optional
{
  "id": "layer1",
  "title": "New Layer",
  "items": [ ... ],
  "note": "Test Note",
  "customData": [ ... ],
  "linkedData": [ ... ]
}