Skip to content

Latest commit

 

History

History
120 lines (85 loc) · 2.7 KB

layer-group.schema.md

File metadata and controls

120 lines (85 loc) · 2.7 KB

Layer Group Schema

https://ns.adobe.com/xdm/assets/layer-group

Layer group help in preserving the hierarchy of layers in a document. Users can apply a common style to the group instead of working at individual layers. A Layer Group can contain layers or other layer groups.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Experimental No Forbidden Permitted assets/layer-group.schema.json

Layer Group Example

{
  "xdm:name": "Example Layer Group",
  "xdm:layers": [
    {
      "xdm:name": "Example Layer",
      "xdm:width": 768,
      "xdm:height": 768,
      "xdm:originY": 0,
      "xdm:originX": 256,
      "xdm:unit": "pixels",
      "xdm:visible": true
    },
    {
      "xdm:name": "Nested Layer Group",
      "xdm:layers": [
        {
          "xdm:name": "Example Layer in Nested Layer Group",
          "xdm:width": 768,
          "xdm:height": 768,
          "xdm:originY": 0,
          "xdm:originX": 256,
          "xdm:unit": "pixels",
          "xdm:visible": false
        }
      ]
    }
  ]
}

Layer Group Properties

Property Type Required Defined by
xdm:layers array Optional Layer Group (this schema)
xdm:name string Optional Layer Group (this schema)
* any Additional this schema allows additional properties

xdm:layers

The layers or layer groups contained in this layer group.

xdm:layers

  • is optional

  • type: array

  • defined in this schema

xdm:layers Type

Array type: array

All items must be of the type: Unknown type ``.

{
  "name": "Layers",
  "description": "The layers or layer groups contained in this layer group.",
  "type": "array",
  "items": {
    "anyOf": [
      {
        "$ref": "#/definitions/layer-group"
      },
      {
        "$ref": "https://ns.adobe.com/xdm/assets/layer#/definitions/layer"
      }
    ],
    "simpletype": "complex"
  },
  "simpletype": "`array`"
}

xdm:name

Name

Name of the Layer Group. This will be visible to the user and users can specify names that can help them to identify different Layer Groups

xdm:name

  • is optional
  • type: string
  • defined in this schema

xdm:name Type

string