API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceImageLayerOptions
@codexo/exojs-tilemap / tilemap / stable
Construction options for an ImageLayer.
16
props
0
methods
0
events
Import
import { ImageLayerOptions } from '@codexo/exojs-tilemap'Construction options for an ImageLayer.
Properties16
class?: stringLayer class string.
id: numberLayer id (unique within the map).
image: stringResolved image URL.
name?: stringLayer name.
offsetX?: numberLayer pixel offset X. Default 0.
offsetY?: numberLayer pixel offset Y. Default 0.
opacity?: numberLayer opacity in [0, 1]. Default 1.
parallaxScale?: numberUniform parallax scale around the layer origin. Default 1.
parallaxX?: numberHorizontal parallax factor. Default 1.
parallaxY?: numberVertical parallax factor. Default 1.
Layer properties (copied and frozen).
repeatX?: booleanWhether the image repeats horizontally. Default false.
repeatY?: booleanWhether the image repeats vertically. Default false.
Loaded texture for the image, or null if unavailable.
tintColor?: null | numberTint colour as 0xRRGGBB, or null. Default null.
visible?: booleanWhether the layer is visible. Default true.
Source