API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceTileTransform

@codexo/exojs-tilemap / tilemap / stable

Describes the orientation of a placed tile independent of source-format flip-bit encodings. The eight legal combinations map to the eight distinct 90°-rotation-and-flip states of a rectangular texture quad. Applying the transform at geometry-build time (reordering UV corners) avoids per-tile runtime cost and per-frame matrix allocation.

3
props
0
methods
0
events
Import
import { TileTransform } from '@codexo/exojs-tilemap'

Describes the orientation of a placed tile independent of source-format flip-bit encodings. The eight legal combinations map to the eight distinct 90°-rotation-and-flip states of a rectangular texture quad.

Applying the transform at geometry-build time (reordering UV corners) avoids per-tile runtime cost and per-frame matrix allocation.

Properties3
diagonal: boolean
Anti-diagonal flip (transpose of the UV axes). Combined with flips produces 90° rotations.
flipX: boolean
Horizontal flip (mirror left-right).
flipY: boolean
Vertical flip (mirror top-bottom).
Source