API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classTiledTileLayer
@codexo/exojs-tiled / tiled / stable
A tile layer. On a finite map, data holds the flat row-major array of GIDs (`width * height` entries). On an infinite map, chunks holds the sparse list of tile chunks instead; exactly one of the two is defined, matching the owning TiledMap's `infinite` flag.
18
props
1
methods
0
events
Import
import { TiledTileLayer } from '@codexo/exojs-tiled'A tile layer. On a finite map, data holds the flat row-major array of GIDs (`width * height` entries). On an infinite map, chunks holds the sparse list of tile chunks instead; exactly one of the two is defined, matching the owning TiledMap's `infinite` flag.
Constructors1
Methods1
Looks up a custom property by name.
Properties18
chunks?: readonly TiledChunkDataA chunk of tile data within an infinite tile layer.[]class: stringdata?: readonly number[]height: numberid: numbername: stringoffsetX: numberoffsetY: numberopacity: numberparallaxX: numberparallaxY: numbertintColor?: stringtype: "tilelayer"visible: booleanwidth: numberx: numbery: numberSource