pixi-reels

MASK\_STRATEGY\_VERSION

pixi-reels


pixi-reels / index / MASK_STRATEGY_VERSION

Variable: MASK_STRATEGY_VERSION

const MASK_STRATEGY_VERSION: 2 = 2;

Defined in: core/ReelViewport.ts:76

Version marker every strategy must carry. A v1 strategy has positional (rects, totalWidth, totalHeight) parameters and no axis; handed a MaskContext it would read rects as an object, find no .length, and quietly fall through to a full-bleed rect - clipping nothing, with no error. The marker turns that into a named throw at maskStrategy().