API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classImageLayer
A data-only image layer: a single image (texture + resolved URL) placed as a background or foreground layer. The layer itself holds no scene-graph state - it is rendered by an import('./ImageLayerNode').ImageLayerNode, which import('./TileMapNode').TileMapNode and import('./TileMapView').TileMapView generate and interleave with tile layers by the map's combined document order (import('./TileMap').TileMap.renderableLayers). Parallax, opacity, tint, offset, and repeat flags are carried from the source Tiled map.
import { ImageLayer } from '@codexo/exojs-tilemap'A data-only image layer: a single image (texture + resolved URL) placed as a background or foreground layer. The layer itself holds no scene-graph state - it is rendered by an import('./ImageLayerNode').ImageLayerNode, which import('./TileMapNode').TileMapNode and import('./TileMapView').TileMapView generate and interleave with tile layers by the map's combined document order (import('./TileMap').TileMap.renderableLayers).
Parallax, opacity, tint, offset, and repeat flags are carried from the source Tiled map.
new(options: ImageLayerOptionsConstruction options for an ImageLayer.): ImageLayerclass: stringid: numberimage: stringkind: "image"name: stringoffsetX: numberoffsetY: numberopacity: numberparallaxScale: numberparallaxX: numberparallaxY: numberrepeatX: booleanrepeatY: booleantintColor: null | numbervisible: boolean