diff --git a/resources/docs/docs/widgets-reference.md b/resources/docs/docs/widgets-reference.md index a88692ac..254ffff8 100644 --- a/resources/docs/docs/widgets-reference.md +++ b/resources/docs/docs/widgets-reference.md @@ -6,24 +6,24 @@ | --- | --- | --- | --- | |
"auto" | |
| "auto" | Widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages. |
-| "" | Widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages."" | Widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages."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" | 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" | Set to `false` to hide completely"auto" | Set to `false` to hide completely"auto" | Defines the widget's accent color (css variable `--custom-color`). Must be a valid CSS color. Set to "auto" to inherit from parent widget. |
| "" | CSS rules. See documentation. |
| "" | If set, the widget will be initialized with this value when the session is loaded. |
| "" | Define the widget's value depending on other widget's values / properties using property inheritance and property maths |
| 2 | Defines the number of decimals to display and to send.2 | Defines the number of decimals to display and to send."auto" | OSC address for sending messages, it must start with a / |
-| "" | A value or array of values that will be prepended to the OSC messages."" | This defines the targets of the widget's OSC messages"" | A value or array of values that will be prepended to the OSC messages."" | This defines the targets of the widget's OSC messagesfalse | Set to `true` to prevent the widget from sending any osc message |
## Sliders
@@ -48,8 +48,9 @@
| false | When set to `true`, the widget will go back to its `default` value when released |
| false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.{
"min": 0,
"max": 1
} | Defines the breakpoints of the fader's scale:"" | Restricts the widget's value:false | Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm's base. |
+| false | Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm's base. |
+| 1 | Defines the fader's sensitivity when `snap` is `false` |
+| "" | Restricts the widget's value:"" | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
| "auto" | Defines the starting point's value of the fader's gauge |
| false | When set to `true`, the widget will go back to its `default` value when released |
| false | Set to `true` to make the knob reset to its `default` value when receiving a double tap.{
"min": 0,
"max": 1
} | Defines the breakpoints of the fader's scale:"" | Restricts the widget's value:false | Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm's base. |
+| false | Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm's base. |
+| 1 | Defines the knob's sensitivity when `snap` is `false` |
+| "" | Restricts the widget's value:"" | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
| "auto" | Defines the starting point's value of the knob's gauge |
| 360 | defines the granularity / verbosity of the encoder (number of step for a 360° arc) |
| -1 | Defines which value is sent when rotating the encoder anticlockwise |
| 1 | Defines which value is sent when rotating the encoder clockwise |
-| "auto" | Defines which value is sent when releasing the encoder:"" | Defines which value is sent when releasing the encoder:false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position |
| false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.false | See fader's `snap` |
| false | See fader's `spring` |
| false | See fader's `logScale` |
+| 1 | See fader's `sensitivity` |
| "" | See fader's `touchAddress` |
-| false | Set to `true` to send separate osc messages for `low` and `high` handles. The `address` will be the same as the widget's with `/low` or `/high` appended to itfalse | Set to `true` to send separate osc messages for `low` and `high` handles. The `address` will be the same as the widget's with `/low` or `/high` appended to it1 | Set to `null` to send send no argument in the osc message0 | Set to `null` to send send no argument in the osc messagefalse | Set to `true` to prevent sending any osc message when releasing the button |
-| "" | Send afterTouch value to this osc address (between 0 and 1) |
### switch
@@ -156,7 +158,7 @@ A fader with two heads for setting a range.
| false | Set to `true` to display values horizontally |
| false | If values is an object, set to `true` to display both values and labels instead of labels only |
-| {
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`{
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`true | Set to `false` to disable traversing gestures |
### dropdown
@@ -166,7 +168,7 @@ A fader with two heads for setting a range.
| property | type |default | description |
| --- | --- | --- | --- |
| {
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`{
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`true | Set to `false` to hide the scale |
| {
"min": 0,
"max": 1
} | Defines the min and max values for the x axis |
| {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
-| 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. |
+| 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. |
| true | Set to false to hide the built-in input widget |
-| false | Set to `true` to make the fader reset to its default value when receiving a double tap.false | Set to `true` to make the fader reset to its default value when receiving a double tap.1 | Defines the pad's sensitivity when `snap` is `false` |
| "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1`) |
-| false | Set to `true` to send separate osc messages for each point's x and y axis. The address will be the same as the widget's with `/x` or `/y` appended to itfalse | Set to `true` to send separate osc messages for each point's x and y axis. The address will be the same as the widget's with `/x` or `/y` appended to ittrue | Set to `false` to hide the built-in input widget |
| false | Set to `true` to enable alpha channel |
| false | Set to `true` to send separate osc messages for for r and g & b. The address will be the same as the widget's with `/r`, `/g` or `/b` appended to itfalse | Set to `true` to send separate osc messages for for r and g & b. The address will be the same as the widget's with `/r`, `/g` or `/b` appended to it"" | Available CSS variables:2 | Defines the number of points on the pad2 | Defines the number of points on the pad20 | Defines the points' size |
| false | By default, the points are dragged from their initial position.true | Set to `false` to hide the scale |
| {
"min": 0,
"max": 1
} | Defines the min and max values for the x axis |
| {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
-| 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. |
+| 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. |
+| 1 | Defines the pad's sensitivity when `snap` is `false` |
| "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
-| false | Set to `true` to send separate osc messages for each point's x and y axis. The address will be the same as the widget's with `/N/x` or `/N/y` appended to it, where N is the point's id (or the point's label if points is an array)false | Set to `true` to send separate osc messages for each point's x and y axis. The address will be the same as the widget's with `/N/x` or `/N/y` appended to it, where N is the point's id (or the point's label if points is an array)0 | Set to `null` to send send no argument in the osc messagefalse | Set to `true` to make keys bahave like toggle buttons |
| false | `true`: the widget's index will be appended to the matrice's osc addressfalse | `true`: the widget's index will be appended to the matrice's osc address"" | The inputs/ouputs width can be adjusted by using the `.nodes` selector:[
"input_1",
"input_2"
] | - `Array` of input names : `['input_1', 'input_2']`[
"output_1",
"output_2"
] | List of output values the inputs can connect to (see `inputs`). |
+| [
"input_1",
"input_2"
] | - `Array` of input names : `['input_1', 'input_2']`[
"output_1",
"output_2"
] | List of output values the inputs can connect to (see `inputs`). |
## Plots
@@ -289,15 +293,15 @@ XY coordinates plot.
| {
"min": 0,
"max": 1
} | Defines the min and max values for the x axis |
| {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
-| 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. |
+| 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 | |
| false | Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing) |
-| false | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
+| false | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
| true | Set to `false` to hide the scale |
| "" | - `Array` of `y` values"" | - `Array` of `y` valuestrue | Set to false to hide the scale |
| 128 | Defines the number of points used to compute the frequency response |
| {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
-| "auto" | Defines the y axis origin. Set to `false` to disable it |
-| 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 make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
+| "auto" | Defines the y axis origin. Set to `false` to disable it |
+| 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 make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
| "" | Each item must be an object with the following properties1 | Defines visualization duration in seconds |
| {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
| "auto" | Defines the y axis origin. Set to `false` to disable it |
-| false | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. |
-| false | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
+| false | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. |
+| false | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
| true | Set to `false` to hide the scale |
### led
@@ -337,7 +341,7 @@ Display its value over time.
| --- | --- | --- | --- |
| {
"min": 0,
"max": 1
} | Value to led intensity mapping range |
-| false | Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm's base. |
+| false | Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm's base. |
### rgbled
@@ -346,7 +350,7 @@ Display its value over time.
| property | type |default | description |
| --- | --- | --- | --- |
| "" | - `Array`: `[r, g, b]` (`r`, `g` and `b` between `0` and `255`)"" | - `Array`: `[r, g, b]` (`r`, `g` and `b` between `0` and `255`)false | See fader's `horizontal` |
| false | See fader's `pips` |
| false | See fader's `dashed` |
-| [] | When set, the meter's gauge will be filled with a linear color gradient[] | When set, the meter's gauge will be filled with a linear color gradient"" | Svg xml definition:true | Set to `false` to disable the borders and background-color |
+
+### html
+
+
+
+| property | type |default | description |
+| --- | --- | --- | --- |
+| "" | Allowed HTML tags:true | Set to `false` to disable the borders and background-color |
### frame
@@ -409,7 +424,7 @@ Embed a page in a frame (local network only).
| property | type |default | description |
| --- | --- | --- | --- |
| "auto" | Set to `false` to hide completely"auto" | Set to `false` to hide completelytrue | Set to `false` to disable the borders and background-color |
| false | Set to `true` to display widgets horizontally |
| false | Set to `true` to stretch widgets evenly |
| true | By default, widgets in panels/strip have their border disabled, except for panels and strips. Set to `false` to apply this rule to the panel too |
-| 0 | Adds space between widgets. Percents are always relative to the strips width |
+| 0 | Adds space between widgets. Percents are always relative to the strips width |
| "@{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
| [] | Each element of the array must be a widget objectfalse | Set to `true` to make the modal require a double tap to open instead of a single tap |
-| "" | Alternative label for the modal popup |
-| "80%" | Modal popup's size |
-| "80%" | Modal popup's size |
-| "auto" | Modal popup's position |
-| "auto" | Modal popup's position |
+| "" | Alternative label for the modal popup |
+| "80%" | Modal popup's size |
+| "80%" | Modal popup's size |
+| "auto" | Modal popup's position |
+| "auto" | Modal popup's position |
| true | Set to `false` to disable scrollbars |
| "" | Defines the modal's state:`0` for closed, `1` for opened |
@@ -489,12 +504,12 @@ Save and recall the state of other widgets.
| property | type |default | description |
| --- | --- | --- | --- |
| "" | Only save state from widgets contained in widgets designated by id. If empty, the whole session's state is saved. Switchers are always ignored."" | Only save state from widgets contained in widgets designated by id. If empty, the whole session's state is saved. Switchers are always ignored."Save" | Label for save button |
| "Load" | Label for load button |
| false | Set to `true` to display buttons horizontally |
| "" | - `object`: `"widget_id": VALUE` pairs"" | - `object`: `"widget_id": VALUE` pairs"" | - `String`: a widget's `id` whose state changes will be stored"" | - `String`: a widget's `id` whose state changes will be storedfalse | Set to `true` to display values horizontally |
-| {
"Value 1": 1,
"Value 2": 2
} | Each item represents a bank that stores the values from the widgets listed in `linkedWidgets`{
"Value 1": 1,
"Value 2": 2
} | Each item represents a bank that stores the values from the widgets listed in `linkedWidgets`"" | - `String`: a widget's `id` whose state changes will be stored"" | - `String`: a widget's `id` whose state changes will be storedfalse | Set to `true` to display values horizontally |
## Inputs
@@ -530,6 +545,7 @@ Text input.
| "" | Set to `left` or `right` to change text alignment (otherwise center) |
| "" | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
| true | Set to `false` to make the input non-editable |
+| false | Set to `true` to make the input send its value at each keystroke |
### keys
@@ -538,7 +554,7 @@ Keyboard binding.
| property | type |default | description |
| --- | --- | --- | --- |
| "" | Key combo `string` or `array` of strings (see KeyboardJS documentation) |
+| "" | Key combo `string` or `array` of strings (see KeyboardJS documentation) |
| "" | This property is evaluated each time the key combo is pressed and defines the widget's own value. Formulas are given extras variables in this context:"" | Same as `keydown`, but evaluated when releasing the key combo |
| true | Set to `false` to prevent keydown repeats when holding the key combo pressed |
diff --git a/scripts/build-widgets-reference.js b/scripts/build-widgets-reference.js
index eb594d88..907b2295 100644
--- a/scripts/build-widgets-reference.js
+++ b/scripts/build-widgets-reference.js
@@ -34,7 +34,7 @@ for (var propName in base) {
doc.push(`
- | ${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'
')} | ${help} |`
+ | ${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'
')} | ${help} |`
)
}
@@ -84,7 +84,7 @@ for (var k in widgets.categories) {
dynamic = widgets.widgets[type].dynamicProps.includes(propName) ? '' : ''
doc.push(`
- | ${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'
')} | ${help} |`
+ | ${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'
')} | ${help} |`
)
separator = false
}