https://ns.adobe.com/xdm/assets/layer
Layers are like stacked sheets. Users can add transparency/opacity to see through transparent areas of a layer. They are used for compositing multiple images, adding text to an image, or adding vector graphic shapes. Users can also apply a layer style to add a special effect such as a drop shadow or a glow.
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
---|---|---|---|---|---|---|
Can be instantiated | Yes | Experimental | No | Forbidden | Permitted | assets/layer.schema.json |
- Layer
https://ns.adobe.com/xdm/assets/layer
- Rectangular Object (measured in variable unit)
https://ns.adobe.com/xdm/assets/variable-unit-rectangular
- Rectangular Object (measured in variable unit)
{
"xdm:name": "Example Layer",
"xdm:width": 768,
"xdm:height": 768,
"xdm:originY": 0,
"xdm:originX": 256,
"xdm:unit": "pixels",
"xdm:visible": true
}
Property | Type | Required | Defined by |
---|---|---|---|
xdm:height | integer |
Optional | Rectangular Object (measured in variable unit) |
xdm:name | string |
Optional | Layer (this schema) |
xdm:originX | integer |
Optional | Rectangular Object (measured in variable unit) |
xdm:originY | integer |
Optional | Rectangular Object (measured in variable unit) |
xdm:style | string |
Optional | Layer (this schema) |
xdm:unit | string |
Optional | Rectangular Object (measured in variable unit) |
xdm:visible | boolean |
Optional | Layer (this schema) |
xdm:width | integer |
Optional | Rectangular Object (measured in variable unit) |
* |
any | Additional | this schema allows additional properties |
Height of the artboard
xdm:height
- is optional
- type:
integer
- defined in Rectangular Object (measured in variable unit)
integer
Name of the Layer. This will be visible to the user and users can specify names that can help them to identify different Layers
xdm:name
- is optional
- type:
string
- defined in this schema
string
Origin X position - Base system is cartesian, relative to master page and origin in top, left (X increasing to right, Y increasing downwards)
xdm:originX
- is optional
- type:
integer
- defined in Rectangular Object (measured in variable unit)
integer
Origin Y position - Base system is cartesian, relative to master page and origin in top, left (X increasing to right, Y increasing downwards)
xdm:originY
- is optional
- type:
integer
- defined in Rectangular Object (measured in variable unit)
integer
A layer style is one or more effects applied to a layer or layer group. You can apply one of the preset styles provided with Photoshop or create a custom style. Photoshop provides a variety of effects—such as shadows, glows, and bevels—that change the appearance of a layer’s contents in a non-distructive way. Layer effects are linked to the layer contents. When you move or edit the contents of the layer, the same effects are applied to the modified contents. For example, if you apply a drop shadow to a text layer and then add new text, the shadow is added automatically to the new text.
xdm:style
- is optional
- type:
string
- defined in this schema
string
Unit used for artboard coordinates (originX
, originY
, width
and height
). For example: inch
, mm
, pixel
, pica
, point
(default is pixel
)
xdm:unit
- is optional
- type:
string
- defined in Rectangular Object (measured in variable unit)
string
Indicates if a layer is visible in the document. visible = true
- Layer is visible and false
- Layer is hidden. Visibility is not to be confused with opacity, which is a layer effect.
xdm:visible
- is optional
- type:
boolean
- defined in this schema
boolean
Width of the artboard
xdm:width
- is optional
- type:
integer
- defined in Rectangular Object (measured in variable unit)
integer