pixi-reels

API reference

DebugOverlayOptions

pixi-reels


pixi-reels / debug / DebugOverlayOptions

Defined in: debug/debugOverlay.ts:123

Properties#

PropertyTypeDescriptionDefined in
host?Container<ContainerChild>The container the overlay draws into. Defaults to the reel set. Pass one outside whatever clips the set (a camera window or frame mask a game puts around it, which would cut off the panels drawn under the reels): the overlay copies the set’s transform onto itself before every render, so it still lines up with the reels but is no longer clipped with them.debug/debugOverlay.ts:158
layers?"all" | DebugOverlayLayer[]Which layers to draw. An explicit list, or 'all' for every layer. Defaults to 'all'.debug/debugOverlay.ts:128
live?booleanWhen true, the live layers (bounds / blocks / pins / hud / metrics / timeline) redraw every tick. When false (default) the overlay draws once, redraws the geometry on redraw() / setLayers() and reshape events, and the info panels on the set’s spin events.debug/debugOverlay.ts:135
metrics?SpinMetricsThe recorder the metrics and timeline layers read. Pass one that has been running since the reel set was built and the panels show the rounds before the overlay existed; the caller keeps ownership of it. Without one the overlay records its own from now on, sampling speed on the live ticker, and destroys it with itself.debug/debugOverlay.ts:150
ticker?TickerTicker driving the live redraw when live: true. Defaults to Ticker.shared. Pass the reel set’s own ticker (e.g. app.ticker, or a FakeTicker in tests) to keep the overlay in lock-step with it. Ignored when live is falsy.debug/debugOverlay.ts:142