pixi-reels

ReelCellInset

pixi-reels


pixi-reels / index / ReelCellInset

Interface: ReelCellInset

Defined in: config/types.ts:563

The part of its cell a symbol’s art actually covers, as fractions of the flat cell box in SCREEN space (0,0 top-left to 1,1 bottom-right).

Most slot art does not fill its cell: a trimmed atlas frame is typically a small shape floating in a much larger transparent box. Projecting the whole cell and stretching that art across it would blow the symbol up to the cell’s edges and give it the cell’s keystone instead of its own. Reporting the inset instead means the drum projects the rectangle the art is really in.

Returned by ReelSymbol.cellInset; null means “my art fills the cell”.

Properties#

PropertyTypeDefined in
bottomnumberconfig/types.ts:567
leftnumberconfig/types.ts:564
rightnumberconfig/types.ts:566
topnumberconfig/types.ts:565