Represents Rail SVG elements.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

  • Parameters

    • xOffset: number

      The x-coordinate offset.

    • yOffset: number

      The y-coordinate offset.

    • Optional seed: number = 0

      The seed for randomization.

    • Optional hasTrack: boolean = true

      Indicates whether to generate track segments.

    • Optional height: number = 20

      The height of the rail.

    • Optional width: number = 180

      The width of the rail.

    • Optional perspective: number = 4

      The perspective parameter for rail generation.

    • Optional segments: number = 4

      The number of segments in the rail.

    • Optional hasFront: boolean = true

      Indicates whether to generate front rail segments.

    • Optional rotation: number = 0.7

      The rotation parameter for rail.

    • Optional strokeWidth: number = 1

      The stroke width of the rail.

    Returns Rail

Properties

elements: Element[] = []

An array of Elements.

range: Range = ...

Methods