pixi-reels

API reference

ReelConfig

pixi-reels


pixi-reels / index / ReelConfig

Defined in: core/Reel.ts:143

Properties#

PropertyTypeDescriptionDefined in
axis?ReelAxisTravel projection for this reel. Defaults to vertical/forward.core/Reel.ts:169
bufferEndnumber-core/Reel.ts:149
bufferStartnumber-core/Reel.ts:148
cellStacking?Stacking-core/Reel.ts:193
curve?ReelCurveInputCylinder curvature for this reel. Omitted or 0 leaves it dead flat and costs nothing. See ReelCurveConfig.core/Reel.ts:203
curveBleed?numberCross-axis room, in pixels per side, for art that is wider than its cell. Warp mode only; set by ReelSetBuilder.curveBleed().core/Reel.ts:222
curveFocus?numberReel-local cross coordinate the curve’s perspective converges on. Set by the builder from curveFocus(...); omitted means the reel’s own centre.core/Reel.ts:208
curveRenderer?RendererRenderer to draw the reel’s warp texture with. Present only when the set was built with curveMode('warp') and a renderer(...); its presence is what switches this reel from the per-symbol projection to the whole-reel vertex warp.core/Reel.ts:215
curveTicker?TickerTicker driving the warp’s per-frame texture refresh. Warp mode only.core/Reel.ts:217
extent?numberPixel height of this reel’s box. Used for MultiWays cell-height derivation (extent / visibleCells). Defaults to visibleCells * symbolHeight.core/Reel.ts:175
gsap?typeof gsapThe gsap instance this reel’s tweens live on. Defaults to the one resolved at lib-load time; ReelSetBuilder.gsap(...) overrides it PER SET, so two sets on one stage can use different instances.core/Reel.ts:192
initialSymbolsstring[]-core/Reel.ts:161
mainOffset?numberY offset of this reel relative to the viewport’s top edge. Set by the builder so jagged shapes (pyramids) align according to reelAnchor. Default 0.core/Reel.ts:167
reelCount?numberReels in the set. Reported to symbols and z-index resolvers. Default 1.core/Reel.ts:146
reelIndexnumber-core/Reel.ts:144
reelStacking?StackingRender order of reels within the set. Default 'ascending'. the last reel draws in front.core/Reel.ts:198
spinCellSize?numberThe cell extent the strip moves on while it spins. On a MultiWays set every reel shares it and AdjustPhase reshapes to per-reel extent / visibleCells at land; on any other set it is the reel’s own cell, the same spinning and landed. Defaults to symbolHeight.core/Reel.ts:182
symbolGapXnumber-core/Reel.ts:152
symbolGapYnumber-core/Reel.ts:153
symbolHeightnumber-core/Reel.ts:151
symbolsDataRecord<string, SymbolData>-core/Reel.ts:154
symbolWidthnumber-core/Reel.ts:150
symbolZIndex?SymbolZIndexResolverReplaces the engine’s symbol z-index formula. See ReelSetBuilder.symbolZIndex. Omitted: symbolData.zIndex * 100 + cellStackingIndex.core/Reel.ts:160
visibleCellsnumber-core/Reel.ts:147