TileTransform
Defined in: src/modules/tilemap/tile-transform.ts:13
A tile’s flip flags resolved to the canvas transform the renderer applies
about a centre-anchored sprite: translate(x, y) → rotate(angle) → scale(sx, sy). Centre-anchoring is required so the pivot is in the
middle of the tile.
Only the full 8-orientation D4 dihedral group needs this helper. For the
common H/V-only case, spawnTilemap sets flipH / flipV directly
on the RenderableDef and no extra transform components are needed.
Properties
Section titled “Properties”angle:
number
Defined in: src/modules/tilemap/tile-transform.ts:14
sx:
number
Defined in: src/modules/tilemap/tile-transform.ts:15
sy:
number
Defined in: src/modules/tilemap/tile-transform.ts:16