API reference
debug
pixi-reels / debug
Classes#
| Class | Description |
|---|---|
| DebugPlaque | A small readable card: rows of monospace text on a smooth rounded plate, with optional swatches (legends) and meters (a speed, a progress). The building block of every readout in pixi-reels/debug, and the one the recipes on the docs site use for their own labels. |
| SpinMetrics | Records what each spin did, per reel, on a clock: when every phase started and ended, when the reel was asked to stop, landed and settled, the tease window, every skip press, and how many symbols were swapped into cells. |
| WinLines | Win lines drawn over a reel set with pixi-silk: a payline through one cell per reel, or a payway as every winning cell joined to every winning cell on the next reel. |
Interfaces#
| Interface | Description |
|---|---|
| DebugMetricsTotals | Aggregates across every round the recorder still holds. |
| DebugOverlayHandle | Handle returned by debugOverlay. Owns its display objects. |
| DebugOverlayOptions | - |
| DebugOverlayReelInfo | What the axis-family layers drew for one reel, as plain numbers. |
| DebugOverlaySnapshot | Serializable summary of the overlay. the text half of a visual debugger. |
| DebugPhaseSpan | One phase a reel ran, in ms since its round opened. |
| DebugPlaqueOptions | - |
| DebugPlaqueRow | One line of a DebugPlaque. |
| DebugReelRound | One reel’s share of a round. Every time is ms since the round opened. |
| DebugRound | A round: everything from one spin:start to the next. A cascade refill() emits spin:start too, so each refill is its own round, the same way the engine’s own events count it. A nudge at rest before any spin opens a round of its own (spin: false). |
| DebugSkipMark | A skip press, as the round saw it. |
| SpinMetricsOptions | - |
| SpinMetricsSnapshot | Plain-JSON view of a SpinMetrics. Safe to JSON.stringify. |
| WinLinesOptions | Options for a WinLines layer. |
| WinLineStyle | How one line is drawn. Every field is optional. |
Type Aliases#
| Type Alias | Description |
|---|---|
| DebugOverlayLayer | A single visual debug layer. |
Variables#
| Variable | Description |
|---|---|
| DEBUG_FONT | The monospace stack every debug plaque draws with. |
| OVERLAY_LABEL | Container / layer label prefix. Used by the Pixi devtools and by tests. |
Functions#
| Function | Description |
|---|---|
| debugOverlay | 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. |
| roundRectPath | Add a rounded rectangle to g as one closed PATH instead of a shape, and return g so the stroke chains on. |