API reference

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

C

classTiledTileset

@codexo/exojs-tiled / tiled / stable

A parsed Tiled tileset - either embedded inline in a map's `tilesets` array, or parsed from an external `.tsj` file referenced by it. firstGid and lastGid define the inclusive range of global tile ids (after masking flip/rotation flags via `maskTiledGid`) that this tileset owns within its owning TiledMap.

21
props
2
methods
0
events
Import
import { TiledTileset } from '@codexo/exojs-tiled'

A parsed Tiled tileset - either embedded inline in a map's `tilesets` array, or parsed from an external `.tsj` file referenced by it.

firstGid and lastGid define the inclusive range of global tile ids (after masking flip/rotation flags via `maskTiledGid`) that this tileset owns within its owning TiledMap.

Constructors1
Methods2
Properties21
class: string
columns: number
firstGid: number
First global tile id owned by this tileset.
imageHeight?: number
imageUrl?: string
Resolved URL of the tileset's atlas image, or undefined for a collection-of-images tileset.
imageWidth?: number
margin: number
name: string
Where a tile object's stored position sits within its bounding box. undefined (and 'unspecified') means Tiled's orientation-dependent default - resolve it with import('./objectAlignment').resolveTiledObjectAlignment.
source?: string
Resolved URL of the external .tsj file, or undefined for an embedded tileset.
spacing: number
tileCount: number
tileHeight: number
Textures loaded for collection-of-images tiles, keyed by local tile id. Loader-owned.
tileWidth: number
lastGid: number
Last global tile id (inclusive) owned by this tileset. Empty (lastGid < firstGid) when tileCount is 0.
Source