ReelCellInset
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#
| Property | Type | Defined in |
|---|---|---|
bottom | number | config/types.ts:567 |
left | number | config/types.ts:564 |
right | number | config/types.ts:566 |
top | number | config/types.ts:565 |