From ddd94d377ce7ce6759e4eba73b2e15e889daf134 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 17 Jan 2022 18:16:57 +0100 Subject: [PATCH] docs: update --- .../docs/docs/widgets/properties-reference.md | 16 ++++++++-------- src/client/widgets/pads/canvas.js | 2 +- src/client/widgets/pads/multixy.js | 2 +- src/client/widgets/pads/rgb.js | 2 +- src/client/widgets/pads/xy.js | 2 +- src/client/widgets/sliders/fader.js | 2 +- src/client/widgets/sliders/knob.js | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index 25dba1e6..43555971 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -696,7 +696,7 @@ | property | type |default | description | | --- | --- | --- | --- | |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - |
onTouch#
| `script` | "" | Script executed when the widget is touched. See documentation. | + |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | ??? api "
rgb#
" Color picker with optional alpha slider. @@ -715,7 +715,7 @@ | property | type |default | description | | --- | --- | --- | --- | - |
onTouch#
| `script` | "" | Script executed when the widget is touched. See documentation. | + |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | ??? api "
multixy#
" Multi-point XY pad. @@ -747,7 +747,7 @@ | property | type |default | description | | --- | --- | --- | --- | |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - |
onTouch#
| `script` | "" | Script executed when the widget is touched. See documentation. | + |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | ??? api "
canvas#
" Multitouch canvas widget with user-defined drawing functions and touch reactions. @@ -771,7 +771,7 @@ | property | type |default | description | | --- | --- | --- | --- | |
onValue#
| `script` | "" | Script executed whenever the widget's value updates. See documentation. | - |
onTouch#
| `script` | "" | Script executed when the widget is touched. See documentation. | + |
onTouch#
| `script` | "" | Script executed when the widget is touched and released, and when the pointer moves when the widget is touched. See documentation. | |
onDraw#
| `script` | "" | Script executed when the widget is redrawn. See documentation. | ## Sliders @@ -808,7 +808,7 @@ | property | type |default | description | | --- | --- | --- | --- | |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - |
onTouch#
| `script` | "" | Script executed when the widget is touched. See documentation. | + |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | ??? api "
knob#
" Rotative knob slider. @@ -841,7 +841,7 @@ | property | type |default | description | | --- | --- | --- | --- | |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - |
onTouch#
| `script` | "" | Script executed when the widget is touched. See documentation. | + |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | ??? api "
encoder#
" A knob that sends a relative direction infomation instead of an absolute value. @@ -871,7 +871,7 @@ | property | type |default | description | | --- | --- | --- | --- | |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height`

Additionnal variables:
- `locals.speed`: encoder's speed (reduce `sensitivity` to increase averaging)
- `locals.angle`: encoder's angle in degrees | - |
onTouch#
| `script` | "" | Script executed when the widget is touched. See documentation. | + |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | ??? api "
range#
" A fader with two heads for setting a range. @@ -905,7 +905,7 @@ | property | type |default | description | | --- | --- | --- | --- | |
onValue#
| `script` | "" | Script executed when the widget's value updates. See documentation.

Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` | - |
onTouch#
| `script` | "" | Script executed when the widget is touched. See documentation. | + |
onTouch#
| `script` | "" | Script executed when the widget is touched and released. See documentation. | ## Scripts ??? api "
script#
" diff --git a/src/client/widgets/pads/canvas.js b/src/client/widgets/pads/canvas.js index 206a211f..d0170e78 100644 --- a/src/client/widgets/pads/canvas.js +++ b/src/client/widgets/pads/canvas.js @@ -31,7 +31,7 @@ class CanvasWidget extends Canvas { defaults.scripting = { onCreate: {type: 'script', value: '', editor: 'javascript', help: ['Script executed when the widget is created. See documentation.']}, onValue: {type: 'script', value: '', editor: 'javascript', help: ['Script executed whenever the widget\'s value updates. See documentation.']}, - onTouch: {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched. See documentation.',]}, + onTouch: {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched and released, and when the pointer moves when the widget is touched. See documentation.',]}, onDraw: {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is redrawn. See documentation.']}, } return defaults diff --git a/src/client/widgets/pads/multixy.js b/src/client/widgets/pads/multixy.js index 5184b99e..109a933c 100644 --- a/src/client/widgets/pads/multixy.js +++ b/src/client/widgets/pads/multixy.js @@ -43,7 +43,7 @@ module.exports = class MultiXy extends Pad { } }) - defaults.scripting.onTouch = {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched. See documentation.',]} + defaults.scripting.onTouch = {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched and released. See documentation.',]} return defaults diff --git a/src/client/widgets/pads/rgb.js b/src/client/widgets/pads/rgb.js index 0d80f68b..7cc7f823 100644 --- a/src/client/widgets/pads/rgb.js +++ b/src/client/widgets/pads/rgb.js @@ -32,7 +32,7 @@ module.exports = class Rgb extends Widget { } }) - defaults.scripting.onTouch = {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched. See documentation.',]} + defaults.scripting.onTouch = {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched and released. See documentation.',]} return defaults diff --git a/src/client/widgets/pads/xy.js b/src/client/widgets/pads/xy.js index f00a051e..2e388466 100644 --- a/src/client/widgets/pads/xy.js +++ b/src/client/widgets/pads/xy.js @@ -40,7 +40,7 @@ module.exports = class Xy extends Pad { } }) - defaults.scripting.onTouch = {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched. See documentation.',]} + defaults.scripting.onTouch = {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched and released. See documentation.',]} return defaults diff --git a/src/client/widgets/sliders/fader.js b/src/client/widgets/sliders/fader.js index 66fb7b40..fe01aac4 100644 --- a/src/client/widgets/sliders/fader.js +++ b/src/client/widgets/sliders/fader.js @@ -52,7 +52,7 @@ class Fader extends Slider { } }) - defaults.scripting.onTouch = {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched. See documentation.',]} + defaults.scripting.onTouch = {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched and released. See documentation.',]} return defaults diff --git a/src/client/widgets/sliders/knob.js b/src/client/widgets/sliders/knob.js index 53b22e20..9f2c554b 100644 --- a/src/client/widgets/sliders/knob.js +++ b/src/client/widgets/sliders/knob.js @@ -51,7 +51,7 @@ module.exports = class Knob extends Slider { } }) - defaults.scripting.onTouch = {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched. See documentation.',]} + defaults.scripting.onTouch = {type: 'script', value: '', editor:'javascript', help: ['Script executed when the widget is touched and released. See documentation.',]} return defaults