pixi-reels

API reference

DebugOverlayLayer

pixi-reels


pixi-reels / debug / DebugOverlayLayer

type DebugOverlayLayer = 
  | "mask"
  | "cells"
  | "buffers"
  | "axis"
  | "feed"
  | "thresholds"
  | "bounds"
  | "blocks"
  | "pins"
  | "hud"
  | "metrics"
  | "timeline";

Defined in: debug/debugOverlay.ts:43

A single visual debug layer.

  • mask Mask bounding box + per-reel rects.
  • cells Every visible cell from getCellBounds, with reel,cell labels.
  • buffers The off-window strip cells (bufferStart / bufferEnd), dimmer.
  • axis One arrow per reel along the travel axis, pointing the way it goes. The whole point of the v2 refactor is invisible in a canvas otherwise: reverse polarity and horizontal orientation become obvious instead of inferred.
  • feed A marker on the strip edge new symbols enter from. Confirms feedEdge derives from polarity rather than being set twice.
  • thresholds The wrap lines. a symbol crossing one wraps to the other end of the array (contract law L7 / L9, watchable).
  • bounds Actual view.getBounds() per visible symbol (spine overrun).
  • blocks getBlockBounds outline for big symbols.
  • pins Pin cells and pin-overlay positions.
  • hud A plaque above the mask: one row per reel with its orientation, direction, feed edge, speed, phase and cells, a phase-colored swatch and a speed meter.
  • metrics A plaque under the mask: the current round’s length, time to the first stop, landing order, tease and skip windows, symbols swapped into cells, events, fps.
  • timeline A panel under the mask: every reel’s phases for the current round on one time axis, with its speed trace, the moment it was asked to stop, the moment it landed and every skip press.