diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index cf5d27d4..e9569eb3 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -12,7 +12,7 @@ | property | type |default | description | | --- | --- | --- | --- | - |
"auto" | |
+ | "auto" | Widget type |
| "auto" | Widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages. |
| true | Set to `false` to hide the widget. |
| true | Set to `false` to disable pointer interactions. |
@@ -24,8 +24,8 @@
| --- | --- | --- | --- |
| "auto" | When both top and left are set to auto, the widget is positioned according to the normal flow of the page (from left to right, by order of creation)."auto" | When both top and left are set to auto, the widget is positioned according to the normal flow of the page (from left to right, by order of creation)."auto" | |
- | "auto" | |
+ | "auto" | Widget width |
+ | "auto" | Widget height |
| "false" | If parent's layout is `vertical` or `horizontal`, set this to `true` to stretch the widget to use available space automatically. |
@@ -52,7 +52,7 @@
| "" | Define the widget's value depending on other widget's values / properties using the advanced property syntax |
| "" | If set, the widget will be initialized with this value when the session is loaded. |
| "" | Widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages."" | Script executed whenever the widget's value updates. See documentation. |
+ | "" | Script executed whenever the widget's value updates. See documentation. |
=== "osc"
@@ -125,7 +125,9 @@
| property | type |default | description |
| --- | --- | --- | --- |
| 200 | - If `layout` is `circular`: diameter (in px)"center" | Set to `left` or `right` to change text alignment (otherwise center)"center" | Set to `left` or `right` to change text alignment (otherwise center)"center" | Set to `top` or `bottom` to change menu alignment (otherwise center)"center" | Set to `left` or `right` to change menu alignment (otherwise center)"circular" | Defines whether the menu's layout should be rendered in a circle or in a box"" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
| false | Set to `true` to make the menu stay opened after mouse/touch release |
@@ -445,7 +447,7 @@
| false | Set to `true` to use logarithmic scale for the x axis (base 10). Set to a `number` to define the logarithm's base. |
| false | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. |
| "auto" | Defines the y axis origin. Set to `false` to disable it. |
- | true | |
+ | true | Draw dots on the line |
| false | Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing) |
| true | Set to `false` to hide the scale |
diff --git a/resources/docs/docs/widgets/scripting.md b/resources/docs/docs/widgets/scripting.md
index dd88fb99..53899106 100644
--- a/resources/docs/docs/widgets/scripting.md
+++ b/resources/docs/docs/widgets/scripting.md
@@ -39,7 +39,7 @@ Returns the value of the first matching widget.
----
#### `set`: `function(id, value)`
-- `id`: widget `id` as a string. Can be `"self"` to target the host widget, or `"parent"` to target the parent widget.
+- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget.
- `value`: new value for the widget.
Sets the value of the first matching widget.
@@ -57,7 +57,7 @@ If the event that triggered the script's execution was not initiated by a user i
----
#### `getProp`: `function(id, name)`
-- `id`: widget `id` as a string. Can be `"self"` to target the host widget, or `"parent"` to target the parent widget.
+- `id`: widget `id` as a string. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget.
- `name`: property name.
Returns the property called `"name"` of the first matching widget.
@@ -72,7 +72,7 @@ Returns the property called `"name"` of the first matching widget.
----
#### `stateGet`: `function(id)`
-- `id`: widget `id` as a string, or array of `id` strings. Can be `"self"` to target the host widget, or `"parent"` to target the parent widget.
+- `id`: widget `id` as a string, or array of `id` strings. Can be `"this"` to target the host widget, or `"parent"` to target the parent widget.
Returns a state object (`id:value`) for matching widget and all their children.
diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js
index 2ca41ed9..8c47ca2d 100644
--- a/src/client/widgets/common/widget.js
+++ b/src/client/widgets/common/widget.js
@@ -99,7 +99,7 @@ class Widget extends EventEmitter {
'When prefixed with >>, the `linkId` will make the widget act as a master (sending but not receiving)',
'When prefixed with <<, the `linkId` will make the widget act as a slave (receiving but not sending)'
]},
- script: {type: 'script', value: '', help: 'Script executed whenever the widget\'s value updates. See documentation.'},
+ script: {type: 'script', value: '', help: 'Script executed whenever the widget\'s value updates. See documentation.'},
_osc: 'osc',