updating the docs, site mkdocs site on the way
This commit is contained in:
parent
df1c2d26f4
commit
0d5b1a0c0c
20 changed files with 619 additions and 247 deletions
|
|
@ -1,26 +0,0 @@
|
|||
# Buttons
|
||||
|
||||
Buttons are exactly what you think they are.
|
||||
|
||||
## toggle
|
||||
```js
|
||||
type:'toggle',
|
||||
on: 1, // [string|number|false|null] value sent when toggle is on (false to prevent sending, null to send no arg)
|
||||
off:0, // [string|number|false|null] value sent when toggle is off (false to prevent sending, null to send no arg)
|
||||
```
|
||||
|
||||
## push
|
||||
```js
|
||||
type:'push',
|
||||
on: 1, // [string|number|false|null] value sent when toggle is on (false to prevent sending, null to send no arg)
|
||||
off:0, // [string|number|false|null] value sent when toggle is off (false to prevent sending, null to send no arg)
|
||||
```
|
||||
|
||||
## switch
|
||||
```js
|
||||
type:'switch',
|
||||
values: { // [object] of ("label":value) pairs
|
||||
"Value 1":1,
|
||||
"Value 2":2
|
||||
}
|
||||
```
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
# Containers
|
||||
|
||||
Containers can contain any widgets
|
||||
|
||||
## strip :
|
||||
|
||||
Strips can contain any number of widgets, which can't be absolutely positioned and whose size can't overflow their parent's.
|
||||
|
||||
```js
|
||||
type:'strip',
|
||||
horizontal:false, // [bool] set to true to display widgets horizontally
|
||||
widgets: [] // [array] of widget objects
|
||||
```
|
||||
|
||||
## panel :
|
||||
|
||||
Panels can contains tabs or widgets. These can be absolutely positioned and can overflow their parent's size (which will then display scrollbars).
|
||||
|
||||
```js
|
||||
type:'panel',
|
||||
scroll:true, // [bool] set to false to disable scrollbars
|
||||
widgets: [], // [array] of widget objects
|
||||
tabs: [] // [array] of tab objects
|
||||
```
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
# Matrices
|
||||
|
||||
Matrices are special containers that only contain one type of widget. All contained widgets will be traversed by single dragging gestures.
|
||||
|
||||
## multifader
|
||||
```js
|
||||
type:'multifader',
|
||||
strips:2, // [integer] number of faders
|
||||
range: {"min":0,"max":1}, // [object] defining the breakpoints of the fader
|
||||
// keys can be percentages or 'min' / 'max'
|
||||
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
|
||||
```
|
||||
*This creates a row of vertical faders that respond to the same gesture. Each of these faders will receive its parent's properties and the following (where X is the fader's index in the row) :*
|
||||
```js
|
||||
id:PARENT_ID_X,
|
||||
label: X,
|
||||
path: PARENT_PATH/X
|
||||
```
|
||||
|
||||
|
||||
## multitoggle
|
||||
```js
|
||||
type:'multitoggle',
|
||||
matrix:[2,2], // [array] [number of columns, number of rows]
|
||||
on: 1, // [string|number|false] value sent when toggle is on (false to prevent sending )
|
||||
off:0, // [string|number|false] value sent when toggle is off (false to prevent sending )
|
||||
```
|
||||
*This creates a matrix of toggles that respond to the same gesture. Each of these toggles will receive its parent's properties and the following (where X is the toggle's index in the row) :*
|
||||
```js
|
||||
id:PARENT_ID_X,
|
||||
label: X,
|
||||
path: PARENT_PATH/X
|
||||
```
|
||||
|
||||
|
||||
## multipush
|
||||
```js
|
||||
type:'multipush',
|
||||
matrix:[2,2], // [array] [number of columns, number of rows]
|
||||
on: 1, // [string|number|false] value sent when toggle is on (false to prevent sending )
|
||||
off:0, // [string|number|false] value sent when toggle is off (false to prevent sending )
|
||||
```
|
||||
*This creates a matrix of push buttons that respond to the same gesture. Each of these buttons will receive its parent's properties and the following (where X is the button's index in the row) :*
|
||||
```js
|
||||
id:PARENT_ID_X,
|
||||
label: X,
|
||||
path: PARENT_PATH/X
|
||||
```
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
# Pads
|
||||
|
||||
Pads are multidimensional widgets that output multiple values.
|
||||
|
||||
## xy
|
||||
```js
|
||||
type:'xy',
|
||||
range:{ // [object] minimum and maximum values for x and y axis
|
||||
x:{"min":0,"max":1},
|
||||
y:{"min":0,"max":1}
|
||||
},
|
||||
logScaleX: false, // [bool] use logarithmic scale for X axis (log10)
|
||||
logScaleY: false, // [bool] use logarithmic scale for y axis (log10)
|
||||
absolute:false, // [bool] set to true for absolute value on touch/click instead of relative dragging
|
||||
split:false // [bool|object] sends separate osc messages for x and y axes
|
||||
// if true : '/x' & '/y' will be appended to the widget's path
|
||||
// or object : {x:'/osc_path_x', y:'/osc_path_y'}
|
||||
|
||||
```
|
||||
|
||||
## rgb
|
||||
```js
|
||||
type:'rgb',
|
||||
absolute:false, // [bool] set to true for absolute value on touch/click instead of relative dragging
|
||||
split:false // [bool|object] sends separate osc messages for x and y axes
|
||||
// if true : '/r', '/g' & '/b' will be appended to the widget's path
|
||||
// or object : {r:'/osc_path_r', g:'/osc_path_g',b:'/osc_path_b'}
|
||||
```
|
||||
Variant of xy pad, it outputs rgb values between 0 and 255.
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
# Plots
|
||||
|
||||
Plots are tools that display other widgets' state or incomming osc messages. They are not sensitive to mouse and touch interactions.
|
||||
|
||||
## led
|
||||
```js
|
||||
type:'led',
|
||||
range:x:{"min":0,"max":1} // [object] minimum and maximum values for X and Y axis
|
||||
logScale: false, // [bool] use logarithmic scale
|
||||
```
|
||||
|
||||
|
||||
## plot
|
||||
|
||||
The plot receives an array of [x,y] coordinates and draws them on a chart with linear or logarithmic interpolation.
|
||||
|
||||
```js
|
||||
type:'plot',
|
||||
points:[], // [string|array]
|
||||
// string : a single widget id, whose multiple values will be displayed,
|
||||
// evenly spaced on the x-axis
|
||||
// array : an array of [x,y] coordinates, which can be numbers
|
||||
// or widget id strings, for example :
|
||||
// [[0,0],[0.5,"some_widget_id"],["some_other_id","another_id"]]
|
||||
range:{ // [object] minimum and maximum values for X and Y axis
|
||||
x:{"min":0,"max":1},
|
||||
y:{"min":0,"max":1}
|
||||
},
|
||||
logScaleX: false, // [bool] use logarithmic scale for X axis (log10)
|
||||
logScaleY: false // [bool] use logarithmic scale for y axis (log10)
|
||||
```
|
||||
|
||||
## visualizer
|
||||
|
||||
The visualizer displays the evolution in time of a received value (through osc) *or* another widget's value.
|
||||
|
||||
```js
|
||||
type:'visualizer',
|
||||
widgetId:'', // [string] widget id (its value will be displayed instead of the incoming osc)
|
||||
duration:1, // [number] window size in seconds
|
||||
range:{"min":0,"max":1}, // [object] minimum and maximum values the Y axis
|
||||
logScale: false, // [bool] use logarithmic scale for Y axis (log10)
|
||||
```
|
||||
|
||||
## text
|
||||
```js
|
||||
type:'text',
|
||||
vertical:false, // [bool]
|
||||
```
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
# Sliders
|
||||
|
||||
Sliders are unidimensional widgets that output one value at a time.
|
||||
|
||||
## fader
|
||||
```js
|
||||
type:'fader',
|
||||
horizontal:false, // [bool] set to true to display fader horizontally
|
||||
align:'center', // [left|right] only display one scale and one meter
|
||||
noPip:false, // [bool] set to true to hide the scale
|
||||
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: {
|
||||
// min:{'-inf':0}
|
||||
// max:1
|
||||
// }
|
||||
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
|
||||
meter:false, // [bool] set to true to display a vumeter which will display values send to '/widgets_path/meter'
|
||||
```
|
||||
|
||||
**theming vars**
|
||||
```
|
||||
--color-gauge:CSS_COLOR;
|
||||
--color-knob:CSS_COLOR;
|
||||
--color-pips:CSS_COLOR;
|
||||
```
|
||||
|
||||
|
||||
## knob
|
||||
```js
|
||||
type:'knob',
|
||||
noPip:false, // [bool] set to true to hide the scale
|
||||
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
|
||||
```
|
||||
|
||||
|
||||
**theming vars**
|
||||
```
|
||||
--color-gauge:CSS_COLOR;
|
||||
--color-knob:CSS_COLOR;
|
||||
--color-pips:CSS_COLOR;
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue