Skip to content

Latest commit

 

History

History
206 lines (109 loc) · 5.04 KB

layer.schema.md

File metadata and controls

206 lines (109 loc) · 5.04 KB

Layer Schema

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

Schema Hierarchy

Layer Example

{
  "xdm:name": "Example Layer",
  "xdm:width": 768,
  "xdm:height": 768,
  "xdm:originY": 0,
  "xdm:originX": 256,
  "xdm:unit": "pixels",
  "xdm:visible": true
}

Layer Properties

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

xdm:height

Height

Height of the artboard

xdm:height

  • is optional
  • type: integer
  • defined in Rectangular Object (measured in variable unit)

xdm:height Type

integer

xdm:name

Name

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

xdm:name Type

string

xdm:originX

Origin X

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)

xdm:originX Type

integer

xdm:originY

Origin Y

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)

xdm:originY Type

integer

xdm:style

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

xdm:style Type

string

xdm:unit

Unit

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)

xdm:unit Type

string

xdm:visible

Visible

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

xdm:visible Type

boolean

xdm:width

Width

Width of the artboard

xdm:width

  • is optional
  • type: integer
  • defined in Rectangular Object (measured in variable unit)

xdm:width Type

integer