plots: allow setting targets property for midi bindings

docs: mention target requirements
This commit is contained in:
bordun 2020-01-21 17:49:50 +01:00
parent 5487b3ff39
commit 8c19ef0af4
13 changed files with 17 additions and 11 deletions

View file

@ -23,7 +23,7 @@ module.exports = class Eq extends _plots_base {
logScaleX: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the x axis (base 10). Set to a `number` to define the logarithm\'s base.'},
smooth: {type: 'boolean|number', value: false, help: 'Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`)'},
}, ['target', 'precision', 'bypass'], {
}, ['precision', 'bypass'], {
value: {type: 'array', value: '', help: [
'Each item must be an object with the following properties',

View file

@ -19,7 +19,7 @@ class Frame extends Widget {
border: {type: 'boolean', value: true, help: 'Set to `false` to disable the borders and background-color'},
}, ['color', 'target', 'precision', 'bypass'], {
}, ['color', 'precision', 'bypass'], {
label: {type: 'string|boolean', value: 'auto', help: [
'Set to `false` to hide completely',

View file

@ -23,7 +23,7 @@ class Html extends Widget {
]},
border: {type: 'boolean', value: true, help: 'Set to `false` to disable the borders and background-color'},
}, ['color', 'target', 'precision', 'bypass'], {})
}, ['color', 'precision', 'bypass'], {})
}

View file

@ -26,7 +26,7 @@ module.exports = class Image extends Widget {
'When true, sending `reload` to the widget reloads its image without changing its value'
]}
}, ['color', 'target', 'precision', 'bypass'], {
}, ['color', 'precision', 'bypass'], {
value: {type: 'string', value: '', help: [
'- File `url` or `path` (relative to the session file location by default, falling back to absolute path)',

View file

@ -13,7 +13,7 @@ module.exports = class Led extends Widget {
range: {type: 'object', value: {min:0,max:1}, help: 'Value to led intensity mapping range'},
logScale: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm\'s base.'},
}, ['target', 'precision', 'bypass'], {})
}, ['precision', 'bypass'], {})
}

View file

@ -31,7 +31,7 @@ module.exports = class Meter extends Fader {
'Examples: `[\'blue\', \'red\']`, {\'0\': \'blue\', \'0.9\': \'blue\', \'1\': \'red\'} '
]},
}, ['target', 'precision', 'bypass'], {
}, ['precision', 'bypass'], {
css: {type: 'string', value: '', help: [
'Available CSS variables:',

View file

@ -25,7 +25,7 @@ module.exports = class Plot extends _plots_base {
smooth: {type: 'boolean|number', value: false, help: 'Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`)'},
pips:{type: 'boolean', value: true, help: 'Set to `false` to hide the scale'},
}, ['target', 'precision', 'bypass'], {
}, ['precision', 'bypass'], {
value: {type: 'array|string', value: '', help: [
'- `Array` of `y` values',

View file

@ -6,7 +6,7 @@ module.exports = class Rbgled extends Widget {
static defaults() {
return super.defaults({}, ['color', 'target', 'precision', 'bypass'], {
return super.defaults({}, ['color', 'precision', 'bypass'], {
value: {type: 'array|string', value: '', help: [
'- `Array`: `[r, g, b]` (`r`, `g` and `b` between `0` and `255`)',

View file

@ -19,7 +19,7 @@ class Svg extends Widget {
border: {type: 'boolean', value: true, help: 'Set to `false` to disable the borders and background-color'},
}, ['color', 'target', 'precision', 'bypass'], {})
}, ['color', 'precision', 'bypass'], {})
}

View file

@ -23,7 +23,7 @@ module.exports = class Text extends Widget {
]},
align: {type: 'string', value: '', help: 'Set to `left` or `right` to change text alignment (otherwise center)'},
}, ['target', 'precision', 'bypass'], {})
}, ['precision', 'bypass'], {})
}

View file

@ -22,7 +22,7 @@ module.exports = class Visualizer extends _plots_base {
smooth: {type: 'boolean|number', value: false, help: 'Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`)'},
pips:{type: 'boolean', value: true, help: 'Set to `false` to hide the scale'},
}, ['target', 'precision', 'bypass'], {})
}, ['precision', 'bypass'], {})
}