add breakpoint scale support to knob

This commit is contained in:
jean-emmanuel 2016-03-29 08:29:16 +02:00
parent 0e697b21c7
commit bf0173c251
3 changed files with 80 additions and 10 deletions

View file

@ -7,7 +7,7 @@ Sliders are unidimensional widgets that output one value at a time.
type:'fader',
horizontal:false, // [bool] set to true to display fader horizontally
align:'center', // [left|right] only display one scale and one meter
range: {"min":0,"max":1}, // [object] defining the breakpoints of the fader
range: {"min":0,"max":1}, // [object] defining the breakpoints of the fader's scale
// keys can be percentages or 'min' / 'max'
// custom label can be set by writing the value as an object:
// range: {
@ -31,7 +31,7 @@ meter:false, // [bool] set to true to display a vumeter which wil
## knob
```js
type:'knob',
range: {"min":0,"max":1}, // [object] minimum and maximum values
range: {"min":0,"max":1}, // [object] defining the breakpoints of the knob's scale (same as fader)
logScale: false, // [bool] use logarithmic scale (log10)
unit: false, // [string] value suffix
absolute:false, // [bool] set to true for absolute value on touch/click instead of relative dragging