pixi-reels

ColumnTarget

pixi-reels


pixi-reels / index / ColumnTarget

Interface: ColumnTarget

Defined in: frame/ColumnTarget.ts:9

Per-reel target shape for ReelSet.setResult and ReelSetBuilder.initialFrame. One object per reel.

Use this for every result grid that crosses a worker, network, or serializer boundary. The shape survives structuredClone, JSON, and postMessage round-trips.

Properties#

PropertyTypeDescriptionDefined in
bufferEnd?(string | undefined)[]Buffer-below target symbols. bufferEnd[0] is the slot closest to the visible bottom cell; later indices go further below. Up to bufferSymbols entries are honored. Big-symbol stubs may sit here. A block anchored at the last visible cell with h > 1 will have its non-anchor cells spill into bufferEnd automatically. You can also place an anchor here, but the block then lies entirely off-screen (legal but invisible).frame/ColumnTarget.ts:36
bufferStart?(string | undefined)[]Buffer-above target symbols. bufferStart[0] is the slot closest to the visible top cell; later indices go further above. Up to bufferSymbols entries are honored. Big-symbol anchors may sit here. Place a multi-cell symbol id (one whose SymbolData.size.cells > 1) at any bufferStart[i] and the coordinator paints OCCUPIED stubs across the rest of the block, including any cells that fall in visible. The block must fit on the strip end-to-end (anchor.cell + h <= visibleCells + bufferEnd); the portion above visible is clipped by the reel mask. This is the “tail-visible” partial-landing pattern.frame/ColumnTarget.ts:25
visiblestring[]Visible-area target symbols, indexed 0 ... visibleCells-1.frame/ColumnTarget.ts:11