PR pixi-reels

ReelGridConfig

pixi-reels


pixi-reels / index / ReelGridConfig

Interface: ReelGridConfig

Defined in: config/types.ts:185

Configuration for the reel grid layout.

Properties

PropertyTypeDescriptionDefined in
bufferSymbols?numberNumber of buffer symbols above and below the visible area. Default: 1.config/types.ts:217
multiways?MultiWaysConfigMultiWays configuration. Set by builder.multiways(...). When present: - setShape(rowsPerReel) becomes callable mid-spin - AdjustPhase is inserted between SPIN and STOP - big-symbol registration throws at build timeconfig/types.ts:224
reelAnchor?ReelAnchorHow short reels align vertically inside the tallest reel’s height. Default: ‘center’.config/types.ts:213
reelCountnumberNumber of reel columns.config/types.ts:187
reelPixelHeights?number[]Per-reel pixel-box heights. Length MUST equal reelCount when set. For MultiWays: every entry is the same fixed reel height. For static pyramids: defaults to visibleRowsPerReel[i] * symbolHeight.config/types.ts:208
symbolGap?{ x: number; y: number; }Gap between symbols. Default: { x: 0, y: 0 }.config/types.ts:215
symbolGap.xnumber-config/types.ts:215
symbolGap.ynumber-config/types.ts:215
symbolHeightnumberSymbol height in pixels. Used as the SPIN-time uniform cell height.config/types.ts:202
symbolWidthnumberSymbol width in pixels.config/types.ts:200
visibleRowsnumberDefault visible rows when all reels are uniform. Ignored if visibleRowsPerReel is set.config/types.ts:192
visibleRowsPerReel?number[]Per-reel row counts (static shape). Length MUST equal reelCount. Example: [3, 5, 5, 5, 3] for a pyramid layout. Mutually exclusive with the scalar visibleRows field at the builder level.config/types.ts:198