SortLayerRegistry
Defined in: packages/three-flatland/src/pipeline/sortLayers.ts:49
Typed registry of sort-layer names (TanStack-style augmentation).
User code extends this interface to get typed sprite.sortLayer
assignment and JSX props:
declare module 'three-flatland' { interface SortLayerRegistry { radarBlip: SortLayerConfig }}flatland.declareSortLayer('radarBlip', { renderOrder: 42 })sprite.sortLayer = 'radarBlip' // ✓ typedsprite.sortLayer = 'radarBlop' // ✗ TS errorProperties
Section titled “Properties”background
Section titled “background”background:
SortLayerConfig
Defined in: packages/three-flatland/src/pipeline/sortLayers.ts:53
Background elements (sky, distant scenery)
default
Section titled “default”default:
SortLayerConfig
Defined in: packages/three-flatland/src/pipeline/sortLayers.ts:51
Sprites that never declare a sortLayer land here (renderOrder 0).
effects
Section titled “effects”effects:
SortLayerConfig
Defined in: packages/three-flatland/src/pipeline/sortLayers.ts:61
Visual effects (particles, spell effects)
entities
Section titled “entities”entities:
SortLayerConfig
Defined in: packages/three-flatland/src/pipeline/sortLayers.ts:59
Game entities (players, enemies, items)
foreground
Section titled “foreground”foreground:
SortLayerConfig
Defined in: packages/three-flatland/src/pipeline/sortLayers.ts:63
Foreground elements (overlays, weather)
ground
Section titled “ground”ground:
SortLayerConfig
Defined in: packages/three-flatland/src/pipeline/sortLayers.ts:55
Ground/floor tiles
radarBlip
Section titled “radarBlip”radarBlip:
SortLayerConfig
Defined in: packages/three-flatland/src/pipeline/sortLayers.test-d.ts:9
shadows
Section titled “shadows”shadows:
SortLayerConfig
Defined in: packages/three-flatland/src/pipeline/sortLayers.ts:57
Shadow sprites (render below entities)
ui:
SortLayerConfig
Defined in: packages/three-flatland/src/pipeline/sortLayers.ts:65
UI elements (always on top)