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.
Constructors 1
new(data: TiledTileLayerData): TiledTileLayer Methods 1
getProperty(name: string): TiledPropertyData | undefined Properties 18
chunks: readonly TiledChunkData[] class: string data: readonly number[] height: number id: number name: string offsetX: number offsetY: number opacity: number parallaxX: number parallaxY: number properties: readonly TiledPropertyData[] tintColor: string type: "tilelayer" visible: boolean width: number x: number y: number Source