API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classAsepriteSheet
Parsed representation of an Aseprite JSON sprite sheet export. `AsepriteSheet.parse(data, texture)` converts the raw JSON document into: - A Spritesheet whose frames correspond to the Aseprite frame array (keyed by zero-based index string: `"0"`, `"1"`, …). - A `clips` map of AnimatedSpriteClipDefinition entries built from `meta.frameTags`, one per named tag. Call createAnimatedSprite to obtain a ready-to-use AnimatedSprite with all clips pre-registered.
import { AsepriteSheet } from '@codexo/exojs-aseprite' Parsed representation of an Aseprite JSON sprite sheet export.
`AsepriteSheet.parse(data, texture)` converts the raw JSON document into: - A Spritesheet whose frames correspond to the Aseprite frame array (keyed by zero-based index string: `"0"`, `"1"`, …). - A `clips` map of AnimatedSpriteClipDefinition entries built from `meta.frameTags`, one per named tag.
Call createAnimatedSprite to obtain a ready-to-use AnimatedSprite with all clips pre-registered.
createAnimatedSprite(): AnimatedSprite destroy(): void parse(data: AsepriteData, texture: Texture): AsepriteSheet clips: ReadonlyMap<string, AnimatedSpriteClipDefinition> slices: ReadonlyMap<string, AsepriteSlice> spritesheet: Spritesheet