MapObject
Defined in: tilemap/src/types.ts:86
Properties
Section titled “Properties”capsule?
Section titled “capsule?”
optionalcapsule?:boolean
Defined in: tilemap/src/types.ts:107
class?
Section titled “class?”
optionalclass?:string
Defined in: tilemap/src/types.ts:89
ellipse?
Section titled “ellipse?”
optionalellipse?:boolean
Defined in: tilemap/src/types.ts:106
optionalgid?: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
Section titled “height”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
point?
Section titled “point?”
optionalpoint?:boolean
Defined in: tilemap/src/types.ts:103
polygon?
Section titled “polygon?”
optionalpolygon?:object[]
Defined in: tilemap/src/types.ts:104
x:
number
y:
number
polyline?
Section titled “polyline?”
optionalpolyline?:object[]
Defined in: tilemap/src/types.ts:105
x:
number
y:
number
properties?
Section titled “properties?”
optionalproperties?:MapObjectProperty[]
Defined in: tilemap/src/types.ts:108
rotation
Section titled “rotation”rotation:
number
Defined in: tilemap/src/types.ts:94
visible
Section titled “visible”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.