Skip to content

rectMask

const rectMask: MaskDefinition<RectMaskOptions>

Defined in: renderer/src/masks/rectMask.ts:22

Build a static rectangular mask. The renderer owns the underlying Graphics node and destroys it on remove().

For a mask that needs to update with the target’s dimensions (e.g. a layout-driven panel), use graphicsMask so you can call handle.redraw() after each layout pass.