Represents a layer of terrain with SVG elements.
Initializes a new instance with specified coordinates and tag.
Optional
The tag for the layer.
The x-coordinate.
The y-coordinate.
An array of Elements.
Adds an object to the elements array.
The object to be added to this.elements
Adds an object at the beginning of elements array. This way object will be rendered first, thus being a background.
Renders the layer asynchronously using a web worker.
The frame number.
The layer number.
A promise that resolves to the rendered layer as an SVG string.
Represents a layer of terrain with SVG elements.