API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
typeTileMapObject
A format-independent map object. The geometry kind is the discriminant; narrow on `kind` to read shape-specific fields. Template objects are not yet represented. The optional property-shape parameter `P` lets typed accessors (see ObjectLayer.byType) narrow `properties` to a developer-declared schema. It defaults to the generic TileProperties bag, so the plain `TileMapObject` form is unchanged.
import { TileMapObject } from '@codexo/exojs-tilemap'A format-independent map object. The geometry kind is the discriminant; narrow on `kind` to read shape-specific fields. Template objects are not yet represented.
The optional property-shape parameter `P` lets typed accessors (see ObjectLayer.byType) narrow `properties` to a developer-declared schema. It defaults to the generic TileProperties bag, so the plain `TileMapObject` form is unchanged.
EllipseObjectAn ellipse inscribed in `[x, y, width, height]`.<P> | PointObjectA single point at `(x, y)`.<P> | PolygonObjectA closed polygon; `points` are relative to the object origin.<P> | PolylineObjectAn open polyline; `points` are relative to the object origin.<P> | RectangleObjectAn axis-aligned rectangle object spanning `[x, y, width, height]`.<P> | TextObjectA text object carrying styled text content within `[x, y, width, height]`.<P> | TileObjectA tile (GID) object carrying a resolved tile reference. `x`/`y` are the top-left corner of the bounding box, the same convention as every other object kind. So…<P>