Skip to main content

Function: matchesLayerMask()

matchesLayerMask(layer, mask): boolean

Defined in: utilities/matches-layer-mask.ts:6

Checks if a given layer matches a specified layer mask.

Parameters

layer

number

The layer to check.

mask

number

The layer mask to compare against.

Returns

boolean

True if the layer matches the mask, false otherwise.