Represents a layer of terrain with SVG elements.

Hierarchy (view full)

Implements

Constructors

Properties

Methods

Constructors

Properties

elements: Element[] = []

An array of Elements.

range: Range = ...

The tag for the layer.

x: number = 0

The x-coordinate.

y: number = 0

The y-coordinate.

Methods

  • Renders the layer asynchronously using a web worker.

    Parameters

    • frameNum: number

      The frame number.

    • layerNum: number

      The layer number.

    Returns Promise<string>

    A promise that resolves to the rendered layer as an SVG string.