module:Knob

module:Knob

Knob class
knob demo

Constructor

# new module:Knob(positionDefinition, optionsopt)

knob constructor

Parameters:
Name Type Attributes Description
positionDefinition PositionDefinition

Position of the center

options KnobOptions <optional>

Specific options

Extends

Members

# (static) defaultOptions :KnobOptions

Type:
  • KnobOptions

# (static) NOTCH_SIZE :Number

Width of the rotation marker

Type:
  • Number

# radius

Get this knob's radius

# radius

Set this knob's radius

# value

Returns this current value

Overrides:

# value

Change this current value

Overrides:

Type Definitions

# KnobOptions

Type:
  • Object
Properties
Name Type Attributes Default Description
min Number <optional>
0

Minimum value when the knob is at lowest

max Number <optional>
10

Maximum value when the knob is at highest

value Number <optional>
0

Initial value

radius Number <optional>
100

Radius of the knob