Skip to content

overlayTransform

overlayTransform(tilePosition, normalization, controls?, base?): AssetTransform

Defined in: packages/declarative-hex-worlds/src/overlay/overlay.ts:45

Compose a normalized asset onto a tile at tilePosition with overlay controls, yielding the final AssetTransform. Order: normalized recenter → anchor within the cell → tile position → dev offset; scale = normalized × control multiplier; rotation = base + control.

WorldPosition

Normalization

OverlayControls = {}

number

AssetTransform