textureCellInset()
pixi-reels / index / textureCellInset
Function: textureCellInset()
function textureCellInset(texture: Texture): ReelCellInset | null;
Defined in: symbols/PerspectiveCell.ts:14
The slice of its cell a texture’s opaque art really occupies.
TexturePacker trims the transparent margin off each frame, so a 300x300
symbol whose art is a 152x152 blob at (74, 74) ships as a 152x152 frame. A
Sprite puts that back; a mesh does not, so the reel has to be told or it
projects - and inflates - the whole cell.
null for an untrimmed texture, which needs no correction.
Parameters#
| Parameter | Type |
|---|---|
texture | Texture |
Returns#
ReelCellInset | null