API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classTiledMap
A parsed and validated Tiled map (`.tmj`). `TiledMap` represents the parsed Tiled source format. `TileMap` is the format-independent ExoJS runtime map used for rendering, queries, and mutation. Construction validates that tilesets cover a non-overlapping, duplicate-free range of global tile ids, and that every GID referenced by layers (tile layer cells, infinite-map chunks, and tile object `gid`s) falls within one of those ranges. Both checks throw TiledFormatError on failure.
import { TiledMap } from '@codexo/exojs-tiled' A parsed and validated Tiled map (`.tmj`).
`TiledMap` represents the parsed Tiled source format. `TileMap` is the format-independent ExoJS runtime map used for rendering, queries, and mutation.
Construction validates that tilesets cover a non-overlapping, duplicate-free range of global tile ids, and that every GID referenced by layers (tile layer cells, infinite-map chunks, and tile object `gid`s) falls within one of those ranges. Both checks throw TiledFormatError on failure.
new(source: string, data: TiledMapData, tilesets: readonly TiledTileset[]): TiledMap destroy(): void findTilesetForGid(gid: number): TiledTileset | undefined getProperty(name: string): TiledPropertyData | undefined toTileMap(): TileMap backgroundColor: string class: string data: TiledMapData height: number infinite: boolean layers: readonly TiledLayer[] orientation: TiledOrientation properties: readonly TiledPropertyData[] renderOrder: TiledRenderOrder source: string tileHeight: number tilesets: readonly TiledTileset[] tileWidth: number width: number