API reference

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

C

classTiledMap

@codexo/exojs-tiled / tiled / stable

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.

14
props
4
methods
0
events
Import
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.

Constructors 1
new(source: string, data: TiledMapData, tilesets: readonly TiledTileset[]): TiledMap
Methods 4
destroy(): void
findTilesetForGid(gid: number): TiledTileset | undefined
getProperty(name: string): TiledPropertyData | undefined
toTileMap(): TileMap
Properties 14
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
Source