API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceTiledObjectData
@codexo/exojs-tiled / tiled / stable
An object placed in an object layer (or a tile's collision `objectgroup`). The shape is determined by which of `point` / `ellipse` / `polygon` / `polyline` / `text` / `gid` is present; absent of all of these, the object is a plain rectangle.
18
props
0
methods
0
events
Import
import { TiledObjectData } from '@codexo/exojs-tiled'An object placed in an object layer (or a tile's collision `objectgroup`). The shape is determined by which of `point` / `ellipse` / `polygon` / `polyline` / `text` / `gid` is present; absent of all of these, the object is a plain rectangle.
Properties18
class?: stringObject class as Tiled 1.9 wrote it. Absent in every other version.
ellipse?: booleangid?: numberTile object reference; may carry flip/rotation flag bits in the high bits.
height: numberid: numbername: stringpoint?: booleanpolyline?: readonly TiledPointDataA 2D point as written by Tiled (used for tile offsets and object shapes).[]rotation: numbertemplate?: stringPath to a .tx object template this object was instantiated from.
type: stringObject class, under the name Tiled 1.10 and later write. Empty when unset. Tiled 1.9 wrote the same value as TiledObjectData.class instead; see import('./TiledObject').TiledObject.type for how the two are reconciled.
visible: booleanwidth: numberx: numbery: numberSource