BaseLayerMixin
Mixin providing the properties and methods every layer has.
BaseLayerMixin interface
Mixin providing the properties and methods every layer has.
Signature:
interface BaseLayerMixin extends BaseNodeMixinExtends: BaseNodeMixin
Remarks
Layers are timeline-based objects that exist within a specific frame range defined by startFrame and endFrame. Unlike shapes, layers have their own timeline that can be offset independently from their parent scene
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
number | The frame number at which the layer stops being visible | ||
boolean | Whether the layer is locked (prevents the user from editing it) | ||
| (Optional) The parent of this layer. | ||
number | The frame number at which the layer starts being visible | ||
number | The offset for the layer's timeline in frames |
Methods
Method | Description |
|---|---|
Moves this layer to the top of the render stack (i.e. make it the foreground layer). | |
Moves this layer immediately after (i.e. visually below) the given sibling in render order. | |
Moves this layer immediately before (i.e. visually above) the given sibling in render order. | |
Moves this layer to the bottom of the render stack (i.e. make it the background layer). | |
Shifts this layer to a specific frame in the timeline. |