Mask

Represents a mask applied to a layer.

Mask interface

Represents a mask applied to a layer.

Signature:

interface Mask

Properties

Property

Modifiers

Type

Description

mode

MaskMode

Whether the mask adds or subtracts from visibility

opacity

readonly

Animatable<number>

The opacity of the mask effect (0 to 100)

pathData

readonly

Animatable<PathData>

The path data defining the mask shape

Methods

Method

Description

remove()

Removes this mask from the layer it is applied to

Last updated: August 5, 2026 at 11:47 AMEdit this page