Skip to content

tileTransform

tileTransform(flag): TileTransform

Defined in: src/modules/tilemap/tile-transform.ts:46

Resolves a per-tile flip-flag bitfield (TmxLayer.flags[i]) to the canvas render transform that reproduces Tiled’s flip/rotate behaviour for a centre-anchored sprite.

Callers register RotationDef and ScaleDef stores and apply the result in SpawnTilemapOptions.onTile.

number

TileTransform