Skip to main content

Mask API

Masks are objects contained by layers. Masks are telling composition render to cut the layer by applying mask on it.

Mask can be of two element types:

  • Rectangle element
  • Path element

Properties

id Read-Only

  • Type: string

ID of the mask.

domNode Read-Only

  • Type: HTML DOM element

Reference to DOM element representing layer.

element Read-Only

Reference to the element representing the mask. The element can be one of two types: Rectangle element or Path element.