LayerMixin.align

Aligns this layer within its parent

LayerMixin.align() method

Aligns this layer within its parent

Signature:

align(type: AlignDirection): void;

Parameters

Parameter

Type

Description

type

AlignDirection

The alignment direction

Returns:

void

Example

// Align layer to the left of its parent
layer.align("left");
Last updated: September 11, 2026 at 12:08 PMEdit this page