---
url: https://cri-middleware.github.io/SSPlayerForWeb/api/@spritestudio/ssplayer-core/functions/composeMaskInfluence.md
---
# Function: composeMaskInfluence()

> **composeMaskInfluence**(`callerInfluence`, `partFlags`): `boolean`

Defined in: [src/MaskComposition.ts:59](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssplayer-core/src/MaskComposition.ts#L59)

AND-compose a part's `mask_influence` with what its instance part handed
down (`ROOT_MASK_INFLUENCE` at the root). This is both whether the part is a
mask target and, for a writer, which op it writes with (true = invert).

## Parameters

### callerInfluence

`boolean`

### partFlags

`number`

## Returns

`boolean`
