API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classTileSet

@codexo/exojs-tilemap / tilemap / stable

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.

10
props
3
methods
0
events
Import
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.

Constructors 1
new(options: TileSetOptions): TileSet
Methods 3
definedTiles(): IterableIterator<TileDefinition>
getTileDefinition(localTileId: number): TileDefinition | undefined
getTileRect(localTileId: number): object
Properties 10
columns: number
margin: number
name: string
rows: number
spacing: number
texture: TextureRegion
tileCount: number
tileHeight: number
tileWidth: number
allDefinitions: Readonly<Record<number, TileProperties | undefined>>
Source