Skip to content

atlasCatalogFields

atlasCatalogFields(atlas, pagePath): Pick<CatalogEntry, "atlas" | "frame" | "uv">

Defined in: asset/Catalog.ts:44

Derive a CatalogEntry’s atlas fields from a cook-manifest atlas record. Frame pixels are image-space (y from the page TOP); uv is emitted for flipY-uploaded textures (v origin = image bottom), matching the Sprite/UIVisual uvOffset/uvScale convention. pagePath is the page’s fetch identity — the same string every frame of the page shares, so texture loading can collapse them onto one GPU texture.

CookedAtlasInfo

string

Pick<CatalogEntry, "atlas" | "frame" | "uv">