diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md
index 20736db6..fbc7cb7e 100644
--- a/resources/docs/docs/widgets/properties-reference.md
+++ b/resources/docs/docs/widgets/properties-reference.md
@@ -1,4 +1,3 @@
-25
## Common
@@ -74,7 +73,8 @@
| property | type |default | description |
| --- | --- | --- | --- |
- |
script
| `script` | "" | Script executed whenever the widget's value updates. See documentation. |
+ | onCreate
| `script` | "" | Script executed when the widget is created. See documentation. |
+ | onValue
| `script` | "" | Script executed when the widget's value updates. See documentation. |
## Basics
??? api "button
"
@@ -103,7 +103,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | | `script` | "" | Script executed whenever the widget's value updates. See documentation.
Additionnal variables:
- `locals.touchCoords`: `[x, y]` array representing the touch coordinates, normalized between 0 and 1. |
+ | | `script` | "" | Script executed when the widget's value updates. See documentation.
Additionnal variables:
- `locals.touchCoords`: `[x, y]` array representing the touch coordinates, normalized between 0 and 1. |
??? api "switch
"
Value selector button.
@@ -196,7 +196,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | | `script` | "" | Script executed whenever the widget's value updates. See documentation.
Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` |
+ | | `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` |
??? api "textarea
"
Text area (multi line input). Tip: hit shift + enter for new lines.
@@ -407,7 +407,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | script
| `script` | "" | Script executed whenever the widget's value updates. See documentation.
Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` |
+ | 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` |
??? api "root
"
Main (unique) container
@@ -559,7 +559,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | script
| `script` | "" | Script executed whenever the widget's value updates. See documentation.
Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` |
+ | 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` |
??? api "eq
"
Draws logarithmic frequency response from an array of filter objects.
@@ -593,7 +593,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | script
| `script` | "" | Script executed whenever the widget's value updates. See documentation.
Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` |
+ | 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` |
??? api "visualizer
"
Display its value over time.
@@ -627,7 +627,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | script
| `script` | "" | Script executed whenever the widget's value updates. See documentation.
Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` |
+ | 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` |
## Indicators
??? api "led
"
@@ -695,7 +695,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | script
| `script` | "" | Script executed whenever the widget's value updates. See documentation.
Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` |
+ | 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` |
??? api "rgb
"
Color picker with optional alpha slider.
@@ -739,7 +739,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | script
| `script` | "" | Script executed whenever the widget's value updates. See documentation.
Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` |
+ | 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` |
??? api "canvas
"
Multitouch canvas widget with user-defined drawing functions and touch reactions.
@@ -757,14 +757,14 @@
| valueLength
| `number` | 1 | Defines the number of values accepted by the widget (minimum 1). Incoming messages that don't comply will be ignored
When calling `set()` from a script, submitted value should be an array only if `valueLength` is greater than 1. |
| autoClear
| `boolean` | true | If set to `false`, the canvas context won't be cleared automatically and `ctx.clear` will need to be called in `draw`. |
| continuous
| `boolean`|
`number` | false | If set to `true`, `draw` will be called at each frame, otherwise it will be called only when the widget is touched and when it receives a value.
Can be a number between 1 and 60 to specify the framerate (default: 30 fps). |
- | touch
| `string` | "" | Script executed when the widget is touched. See documentation. |
- | draw
| `string` | "" | Script executed when the widget is redrawn. See documentation. |
=== "scripting"
| property | type |default | description |
| --- | --- | --- | --- |
- | script
| `script` | "" | Script executed whenever 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. |
+ | onDraw
| `script` | "" | Script executed when the widget is redrawn. See documentation. |
+ | onValue
| `script` | "" | Script executed whenever the widget's value updates. See documentation. |
## Sliders
??? api "fader
"
@@ -799,7 +799,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | script
| `script` | "" | Script executed whenever the widget's value updates. See documentation.
Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` |
+ | 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` |
??? api "knob
"
Rotative knob slider.
@@ -831,7 +831,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | script
| `script` | "" | Script executed whenever the widget's value updates. See documentation.
Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` |
+ | 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` |
??? api "encoder
"
A knob that sends a relative direction infomation instead of an absolute value.
@@ -860,7 +860,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | script
| `script` | "" | Script executed whenever 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 |
+ | 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 |
??? api "range
"
A fader with two heads for setting a range.
@@ -893,7 +893,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | script
| `script` | "" | Script executed whenever the widget's value updates. See documentation.
Canvas-based widget have their computed width and height available as local variables:
- `locals.width`
- `locals.height` |
+ | 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` |
## Scripts
??? api "script
"
@@ -903,8 +903,8 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | event
| `string` | "value" | Define which events trigger the script's execution.
Choices: `value`, `keyboard`, `once` |
- | script
| `script` | "" | Script executed whenever the widget receives the defined event. See documentation. |
+ | event
| `string` | "value" | Define which events trigger the script's execution.
Choices: `value`, `keyboard` |
+ | onEvent
| `script` | "" | Script executed whenever the widget receives the defined event. See documentation. |
| keyBinding
| `string`|
`array` | "" | Key combo `string` or `array` of strings (see KeyboardJS documentation).
If the editor is enabled, some keys / combos will not work. |
| keyRepeat
| `boolean` | true | Set to `false` to prevent keydown repeats when holding the key combo pressed |
| keyType
| `string` | "keydown" | Determines which key event trigger the script's execution
Choices: `keydown`, `keyup`, `both` |