pixi-reels

setTargetSlot()

pixi-reels


pixi-reels / index / setTargetSlot

Function: setTargetSlot()

function setTargetSlot(
   target: ColumnTarget, 
   cell: number, 
   id: string
): void;

Defined in: frame/ColumnTarget.ts:61

Write one slot of a ColumnTarget by cell, using the same coordinate as getTargetSlot. Creates and extends bufferStart / bufferEnd as needed, so a caller can address any cell on the strip without knowing whether the target declared a buffer.

Mutates target. Clone first if the caller must not touch the original.

Parameters#

ParameterType
targetColumnTarget
cellnumber
idstring

Returns#

void