API

Class SliderGroup

Class used to create a SliderGroup which contains groups of slider buttons

Hierarchy (View Summary)

Index
name: string

name of SelectorGroup

  • Adds a slider to the SelectorGroup

    Parameters

    • label: string

      is the label for the SliderBar

    • func: (v: number) => void = ...

      is the function called when the Slider moves

    • unit: string = "Units"

      is a string describing the units used, eg degrees or metres

    • min: number = 0

      is the minimum value for the Slider

    • max: number = 0

      is the maximum value for the Slider

    • value: number = 0

      is the start value for the Slider between min and max

    • onValueChange: (v: number) => number = ...

      is the function used to format the value displayed, eg radians to degrees

    Returns void