MapObject
Defined in: tilemap/src/types.ts:82
Properties
Section titled “Properties”capsule?
Section titled “capsule?”
optionalcapsule?:boolean
Defined in: tilemap/src/types.ts:103
class?
Section titled “class?”
optionalclass?:string
Defined in: tilemap/src/types.ts:85
ellipse?
Section titled “ellipse?”
optionalellipse?:boolean
Defined in: tilemap/src/types.ts:102
optionalgid?:number
Defined in: tilemap/src/types.ts:98
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:89
id:
number
Defined in: tilemap/src/types.ts:83
name:
string
Defined in: tilemap/src/types.ts:84
point?
Section titled “point?”
optionalpoint?:boolean
Defined in: tilemap/src/types.ts:99
polygon?
Section titled “polygon?”
optionalpolygon?:object[]
Defined in: tilemap/src/types.ts:100
x:
number
y:
number
polyline?
Section titled “polyline?”
optionalpolyline?:object[]
Defined in: tilemap/src/types.ts:101
x:
number
y:
number
properties?
Section titled “properties?”
optionalproperties?:MapObjectProperty[]
Defined in: tilemap/src/types.ts:104
rotation
Section titled “rotation”rotation:
number
Defined in: tilemap/src/types.ts:90
visible
Section titled “visible”visible:
boolean
Defined in: tilemap/src/types.ts:91
width:
number
Defined in: tilemap/src/types.ts:88
x:
number
Defined in: tilemap/src/types.ts:86
y:
number
Defined in: tilemap/src/types.ts:87