Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a slider's path.

Hierarchy

  • SliderPath

Index

Constructors

Properties

calculatedPath: <internal>.Vector2[]

The calculated path of the slider.

controlPoints: <internal>.Vector2[]

The control points (anchor points) of the slider.

cumulativeLength: number[]

The cumulative length of the slider.

expectedDistance: number

Distance that is expected when calculating slider path.

isInitialized: boolean

Whether or not the instance has been initialized.

The path type of the slider.

Methods

  • calculateCumulativeLength(): void
  • Calculates the slider's cumulative length.

    Returns void

  • calculatePath(): void
  • Calculates the slider's path.

    Returns void

  • ensureInitialized(): void
  • Initializes the instance.

    Returns void

  • Computes the position on the slider at a given progress that ranges from 0 (beginning of the path) to 1 (end of the path).

    Parameters

    • progress: number

      Ranges from 0 (beginning of the path) to 1 (end of the path).

    Returns <internal>.Vector2

Generated using TypeDoc