Reference
Reference
The API reference for pixi-reels, with an architecture tour and a glossary. Each page below explains one part in plain language first, then gives signatures and examples.
Looking for a how-to? Start with Getting started or a mechanic.
API guides
Full reference
Architecture
How pixi-reels works inside, drawn as SVG diagrams. Start with the overview.
OverviewThe main parts of pixi-reels and how they are wired together.The builderWhat build() validates and constructs, in order.ClassesThe ownership tree. Who owns what, who destroys what.Viewport and masksThe five layers under and above the mask, and the strategies that draw the mask.Symbols and poolingThe ReelSymbol lifecycle, and how the registry, factory and pool supply symbols to a reel.MotionHow a column of symbols scrolls, wraps and stops exactly on the grid.The frame pipelineHow a result grid becomes the symbols that land, wrap by wrap.CurvatureHow a flat strip is projected onto a drum, in two modes.Spin lifecycleWhat happens to one reel between spin() and its landing, phase by phase.A spin in millisecondsOne ordinary spin, replayed with a stopwatch, from the button press to spin:complete.SkippingWhat a press does to reels that are still spinning, and how tease protection and reel groups limit it.AnticipationHow a teasing reel slows, holds and creeps onto its symbols before it lands.Speed profilesThe object that holds a spin's timing, such as stagger, speed and bounce, and how to tune it.EventsWhat fires when, in what order, on which bus.Cascade physicsWhy survivors without holes below them never move.Pins, boards, Hold & WinCell pins across spins, the BoardGrid, the Hold & Win state machine.Debug toolingJSON snapshots for agents, the canvas overlay drawn with pixi-silk, and SpinMetrics timings.Testing modelWhy a full spin runs in Node with no renderer.