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: TileSetOptionsOptions for constructing a TileSet.): TileSetdefinedTiles(): IterableIterator<TileDefinitionOptional per-tile metadata in a TileSet. Sparse - only defined tiles carry a definition.>getTileDefinition(localTileId: number): TileDefinitionOptional per-tile metadata in a TileSet. Sparse - only defined tiles carry a definition. | undefinedgetTileRect(localTileId: number): { height: number; width: number; x: number; y: number }setDefinitions(definitions: readonly TileDefinitionOptional per-tile metadata in a TileSet. Sparse - only defined tiles carry a definition.[]): voidclass: stringcolumns: numbermargin: numbername: stringoffsetX: numberoffsetY: numberrows: numberspacing: numbertileCount: numbertileHeight: numbertileWidth: numberallDefinitions: Readonly<Record<number, TilePropertiesAn immutable, flat key-value bag of generic tile properties. Adapters copy and freeze source properties; the runtime never retains a caller-owned mutable objec… | undefined>>