API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceAsepriteLayer

@codexo/exojs-aseprite / aseprite / stable

A single layer entry in the Aseprite JSON metadata (`meta.layers`). Only `name` is guaranteed. `opacity` and `blendMode` describe an image layer's compositing and can both be absent (a group layer has neither), and `color`/`data` carry the layer's editor user data when it was set. `group` names the enclosing group layer and is absent at the top level, so the flat array encodes the layer tree by parent name.

6
props
0
methods
0
events
Import
import { AsepriteLayer } from '@codexo/exojs-aseprite'

A single layer entry in the Aseprite JSON metadata (`meta.layers`).

Only `name` is guaranteed. `opacity` and `blendMode` describe an image layer's compositing and can both be absent (a group layer has neither), and `color`/`data` carry the layer's editor user data when it was set. `group` names the enclosing group layer and is absent at the top level, so the flat array encodes the layer tree by parent name.

Properties6
blendMode?: string
color?: string
Layer colour tag from the editor, as #RRGGBBAA.
data?: string
Free-form user data attached to the layer in the editor.
group?: string
Name of the enclosing group layer; absent for a top-level layer.
name: string
opacity?: number
Layer opacity in [0, 255] (Aseprite's own scale, not [0, 1]).
Source