Skip to content

MapObject

Defined in: tilemap/src/types.ts:86

optional capsule?: boolean

Defined in: tilemap/src/types.ts:107


optional class?: string

Defined in: tilemap/src/types.ts:89


optional ellipse?: boolean

Defined in: tilemap/src/types.ts:106


optional gid?: number

Defined in: tilemap/src/types.ts:102

Global tile ID, present only on an object that draws a tile. Tiled anchors such an object on a corner of the tile — bottom-left by default — and x/ y here is normalised to its top-left corner, the same as every other object type. The flip bits are kept — split them out with readTileGid.


height: number

Defined in: tilemap/src/types.ts:93


id: number

Defined in: tilemap/src/types.ts:87


name: string

Defined in: tilemap/src/types.ts:88


optional point?: boolean

Defined in: tilemap/src/types.ts:103


optional polygon?: object[]

Defined in: tilemap/src/types.ts:104

x: number

y: number


optional polyline?: object[]

Defined in: tilemap/src/types.ts:105

x: number

y: number


optional properties?: MapObjectProperty[]

Defined in: tilemap/src/types.ts:108


rotation: number

Defined in: tilemap/src/types.ts:94


visible: boolean

Defined in: tilemap/src/types.ts:95


width: number

Defined in: tilemap/src/types.ts:92


x: number

Defined in: tilemap/src/types.ts:90


y: number

Defined in: tilemap/src/types.ts:91

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/tilemap.md.