import { Texture } from 'pixi.js'; import { ReelCellInset } from '../config/types.js'; /** * 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. */ export declare function textureCellInset(texture: Texture): ReelCellInset | null; /** * Whether a texture can go through the perspective mesh. * * Only textures owning their whole source qualify. An atlas SUB-frame does * not: the mesh addresses its source with plain 0..1 UVs, and remapping them * onto the frame - via `texture.uvs`, via `textureMatrix`, or leaving it to * PixiJS - has not produced a correct draw here. Unmapped, the cell shows the * whole sheet; mapped by hand, a magnified crop of the right frame, which says * the mapping is applied somewhere else too. Rather than ship either, a * sub-frame falls back to the affine fit in `ReelSymbol.applyCellQuad()` - * correct, just not keystoned. * * Generated textures, single loaded images and render textures pass. Atlas * frames - the common production case - do not, yet. */ export declare function canProjectTexture(texture: Texture): boolean; //# sourceMappingURL=PerspectiveCell.d.ts.map