API reference
debugOverlay
pixi-reels / debug / debugOverlay
function debugOverlay(reelSet: ReelSet, options?: DebugOverlayOptions): DebugOverlayHandle;
Defined in: debug/debugOverlay.ts:271
A layered visual debug overlay for a ReelSet, drawn with
pixi-silk: mask, cell, buffer, axis, symbol-bounds, big-symbol-block and
pin geometry, a per-reel hud, and a metrics plaque and phase timeline for
the current round. It lives in a Container added to the reel set itself.
because ReelSet extends Container, that renders the overlay above the
viewport, including the spotlight container.
The geometry stays on the mask. The hud sits above it and the metrics
and timeline panels under it, so they add to the reel set’s bounds: fit
your camera after enabling them, or leave them out.
Dev-only. It reads engine internals through the public accessors, is not semver-protected, and must not reach a production bundle.
import { debugOverlay } from 'pixi-reels/debug';
const overlay = debugOverlay(reelSet, { layers: ['cells', 'timeline'], live: true, ticker: app.ticker });
overlay.setLayers(['cells', 'pins']);
overlay.redraw();
overlay.destroy();
Parameters#
| Parameter | Type |
|---|---|
reelSet | ReelSet |
options | DebugOverlayOptions |