API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classTileSet
A resolved tileset: a uniform grid of tiles within a texture atlas. Does **not** own its texture — the Loader or application code retains texture ownership. Tileset dimensions are validated at construction and frozen thereafter. Multiple tilesets are supported per TileMap; each carries its own tile dimensions, spacing, and optional per-tile metadata.
import { TileSet } from '@codexo/exojs-tilemap' A resolved tileset: a uniform grid of tiles within a texture atlas.
Does **not** own its texture — the Loader or application code retains texture ownership. Tileset dimensions are validated at construction and frozen thereafter.
Multiple tilesets are supported per TileMap; each carries its own tile dimensions, spacing, and optional per-tile metadata.
new(options: TileSetOptions): TileSet definedTiles(): IterableIterator<TileDefinition> getTileDefinition(localTileId: number): TileDefinition | undefined getTileRect(localTileId: number): object columns: number margin: number name: string rows: number spacing: number texture: TextureRegion tileCount: number tileHeight: number tileWidth: number allDefinitions: Readonly<Record<number, TileProperties | undefined>>