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.
Parameters
Section titled “Parameters”target
Section titled “target”Container
snapshot
Section titled “snapshot”Returns
Section titled “Returns”MaskHandle | null