Optional
dataThe tiles data of the layer.
The unique identifier of the layer.
Optional
imageThe image of the image layer.
Optional
layerThe canvas element for the layer.
Optional
layerThe rendering context of the layer canvas.
Optional
nameThe name of the layer (optional).
Optional
objectsThe objects in the layer.
The offset of the layer.
The parallax factor of the layer.
The properties of the layer.
The render order of the layer.
The repeatX mode for the image layer.
The repeatY mode for the image layer.
The size of the layer.
Optional
tintThe tint color of the layer.
The type of the layer.
Flag indicating whether the layer is visible.
Clears the tile at the specified position.
The position of the tile to clear.
Retrieves the tile at the specified position.
The position of the tile.
The tile at the specified position, or null
if the position is out of range
or the data is not available.
Sets the tile at the specified position.
The position of the tile.
The ID of the tile to set.
Creates a new layer.