pixi-reels

Z\_INDEX\_BUDGET

pixi-reels


pixi-reels / index / Z_INDEX_BUDGET

Variable: Z_INDEX_BUDGET

const Z_INDEX_BUDGET: {
  pinOverlay: 10000;
  symbolLayer: 100;
};

Defined in: config/types.ts:751

The z-index values the engine reserves, so a SymbolZIndexResolver can be bounds-checked against the library instead of a copied literal.

LayerzIndex
1x1 symbol, default (symbolData.zIndex 1)1 * symbolLayer + arrayIndex
Big-symbol anchor, recipe convention (zIndex: 5)5 * symbolLayer + arrayIndex
Pin overlay (sticky / expanding wild during spin)pinOverlay

A symbol that must draw above pin overlays is re-parented to viewport.spotlightContainer instead - that is its own layer above them.

Type Declaration#

NameTypeDefault valueDescriptionDefined in
pinOverlay1000010000Pin overlays. Keep every symbol z-index below this.config/types.ts:755
symbolLayer100100Multiplier on symbolData.zIndex; leaves room for per-cell stacking inside one layer.config/types.ts:753