Skip to content

restoreMask

restoreMask(target, snapshot): MaskHandle | null

Defined in: renderer/src/masks/attachMask.ts:104

Internal

Re-attach a mask to a target from a saved snapshot. Looks up the registered MaskDefinition by name, calls it with the saved options, applies inverse state. Returns the new handle, or null if the definition is no longer registered (with a one-shot warning).

— called by visual components during afterRestore and by the renderer snapshot contributor for layer/scene-scope masks.

Container

MaskSnapshot

MaskHandle | null