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, TransformMixinExtends: BaseLayerMixin, TransformMixin
Remarks
Adds transform, opacity, blend mode, matte and mask members to BaseLayerMixin.
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
The blend mode of this layer | |||
boolean | Whether the layer is focused | ||
boolean | Whether this layer acts as a matte for another layer | ||
| ReadonlyArray<Mask> | An array of masks applied to this layer | |
Matte | undefined | (Optional) The matte applied onto this layer, if any | ||
| Animatable<number> | Opacity of this layer (0 to 100) | |
TransformableLayer | undefined | (Optional) If this layer has a | ||
boolean | Whether the layer is visible |
Methods
Method | Description |
|---|---|
Aligns this layer within its parent | |
Adds a mask to this layer | |
Flips this layer horizontally or vertically |