API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classTiledObject
@codexo/exojs-tiled / tiled / stable
A parsed Tiled object, placed in an TiledObjectLayer or a tile's collision `objectgroup`. The shape of the object is determined by which of point, ellipse, polygon, polyline, text, or gid is set; if none are set, the object is a plain rectangle spanning `[x, y, width, height]`.
17
props
1
methods
0
events
Import
import { TiledObject } from '@codexo/exojs-tiled' A parsed Tiled object, placed in an TiledObjectLayer or a tile's collision `objectgroup`.
The shape of the object is determined by which of point, ellipse, polygon, polyline, text, or gid is set; if none are set, the object is a plain rectangle spanning `[x, y, width, height]`.
Constructors 1
new(data: TiledObjectData): TiledObject Methods 1
getProperty(name: string): TiledPropertyData | undefined Properties 17
ellipse: boolean gid: number height: number id: number name: string point: boolean polygon: readonly TiledPointData[] polyline: readonly TiledPointData[] properties: readonly TiledPropertyData[] rotation: number template: string text: TiledTextData type: string visible: boolean width: number x: number y: number Source