LayerMixin

Mixin providing the properties and methods of layers that have a transform.

LayerMixin interface

Mixin providing the properties and methods of layers that have a transform.

Signature:

interface LayerMixin extends BaseLayerMixin, TransformMixin

Extends: BaseLayerMixin, TransformMixin

Remarks

Adds transform, opacity, blend mode, matte and mask members to BaseLayerMixin.

Properties

Property

Modifiers

Type

Description

blendMode

BlendMode

The blend mode of this layer

focused

boolean

Whether the layer is focused

isMatte

boolean

Whether this layer acts as a matte for another layer

masks

readonly

ReadonlyArray<Mask>

An array of masks applied to this layer

matte?

Matte | undefined

(Optional) The matte applied onto this layer, if any

opacity

readonly

Animatable<number>

Opacity of this layer (0 to 100)

transformParent?

TransformableLayer | undefined

(Optional) If this layer has a transformParent, it inherits the transform of that parent layer.

visible

boolean

Whether the layer is visible

Methods

Method

Description

align(type)

Aligns this layer within its parent

createMask(opts)

Adds a mask to this layer

flip(type)

Flips this layer horizontally or vertically

Last updated: October 8, 2026 at 10:45 AMEdit this page