Constructor
new module:Knob(positionDefinition, optionsopt)
knob constructor
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
positionDefinition | PositionDefinition | Position of the center | |
options | KnobOptions | <optional> | Specific options |
- Source
Extends
Members
(static) defaultOptions :KnobOptions
Type:
- KnobOptions
- Source
(static) NOTCH_SIZE :Number
Width of the rotation marker
Type:
- Number
- Source
radius
Get this knob's radius
- Source
radius
Set this knob's radius
- Source
value
Returns this current value
- Overrides
- Source
value
Change this current value
- Overrides
- Source
Type Definitions
KnobOptions
Type:
Properties- Object
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 |
- Source