diff --git a/resources/docs/docs/widgets/advanced-syntaxes.md b/resources/docs/docs/widgets/advanced-syntaxes.md index 5ed14237..4957a5eb 100644 --- a/resources/docs/docs/widgets/advanced-syntaxes.md +++ b/resources/docs/docs/widgets/advanced-syntaxes.md @@ -20,7 +20,7 @@ A widget can fetch its own properties or its direct parent's by using the keywor Some properties, when changed, trigger a complete widget recreation that ends any ongoing user interaction. Also, updating these properties continuously (e.g. when linked to a slider's dynamic value) can be very cpu expensive. -Some properties have much cheaper update routines and can be considered as `dynamic`, as in performance safe. These properties are marked in the documentation with a . +Some properties have much cheaper update routines and can be considered as `dynamic`, as in performance safe. These properties are marked in the documentation with a . #### Circular references cases diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index e1feb876..973d3369 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -12,60 +12,60 @@ | property | type |default | description | | --- | --- | --- | --- | - |
"auto" | |
- | "auto" | Widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages. |
- | "auto" | Set to `false` to hide completelytrue | Set to `false` to hide the widget. |
- | true | Set to `false` to disable pointer interactions. |
+ | "auto" | |
+ | "auto" | Widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages. |
+ | "auto" | Set to `false` to hide completelytrue | Set to `false` to hide the widget. |
+ | true | Set to `false` to disable pointer interactions. |
=== "geometry"
| property | type |default | description |
| --- | --- | --- | --- |
- | "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" | |
- | "false" | If parent's layout is `vertical` or `horizontal`, set this to `true` to stretch the widget to use available space automatically. |
+ | "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" | |
+ | "false" | If parent's layout is `vertical` or `horizontal`, set this to `true` to stretch the widget to use available space automatically. |
=== "style"
| property | type |default | description |
| --- | --- | --- | --- |
- | "auto" | Text color. Set to "auto" to inherit from parent widget. |
- | "auto" | Widget's default accent color. Set to "auto" to inherit from parent widget. |
- | "auto" | Stroke color. Set to "auto" to use `colorWidget`. |
- | "auto" | Fill color. Set to "auto" to use `colorWidget`. |
- | "auto" | Stroke color opacity. |
- | "auto" | Fill color opacity (off). |
- | "auto" | Fill color opacity (on). |
- | "auto" | Inner spacing. |
- | "" | CSS rules. See documentation."auto" | Text color. Set to "auto" to inherit from parent widget. |
+ | "auto" | Widget's default accent color. Set to "auto" to inherit from parent widget. |
+ | "auto" | Stroke color. Set to "auto" to use `colorWidget`. |
+ | "auto" | Fill color. Set to "auto" to use `colorWidget`. |
+ | "auto" | Stroke color opacity. |
+ | "auto" | Fill color opacity (off). |
+ | "auto" | Fill color opacity (on). |
+ | "auto" | Inner spacing. |
+ | "" | CSS rules. See documentation."" | 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. |
+ | "" | 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. |
=== "osc"
| property | type |default | description |
| --- | --- | --- | --- |
- | "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. |
- | "" | Defines the osc argument types, one letter per argument (including preArgs)2 | Defines the number of decimals to send. |
- | "" | This defines the targets of the widget's OSC messagesfalse | Set to `true` to ignore the server's default targets |
- | false | Set to `true` to prevent the widget from sending any osc message |
+ | "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. |
+ | "" | Defines the osc argument types, one letter per argument (including preArgs)2 | Defines the number of decimals to send. |
+ | "" | This defines the targets of the widget's OSC messagesfalse | Set to `true` to ignore the server's default targets |
+ | false | Set to `true` to prevent the widget from sending any osc message |
## Basics
??? api ""
@@ -75,17 +75,17 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | "" | CSS rules. See documentation."" | CSS rules. See documentation.1 | Set to `null` to send send no argument in the osc message |
- | 0 | Set to `null` to send send no argument in the osc message. Must be different from `on`. |
- | "toggle" | Interraction mode:false | Set to `true` to make the button require a double tap to be pushed instead of a single tap |
- | "auto" | Defines the widget's text color when active. |
+ | 1 | Set to `null` to send send no argument in the osc message |
+ | 0 | Set to `null` to send send no argument in the osc message. Must be different from `on`. |
+ | "toggle" | Interraction mode:false | Set to `true` to make the button require a double tap to be pushed instead of a single tap |
+ | "auto" | Defines the widget's text color when active. |
??? api """ | CSS rules. See documentation."" | CSS rules. See documentation."vertical" | Choices: `vertical`, `horizontal`, `grid` |
- | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
- | \{
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`"tap" | Interraction mode:"auto" | Defines the widget's text color when active. |
+ | "vertical" | Choices: `vertical`, `horizontal`, `grid` |
+ | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
+ | \{
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`"tap" | Interraction mode:"auto" | Defines the widget's text color when active. |
??? api ""center" | Set to `left` or `right` to change text alignment (otherwise center)\{
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`"center" | Set to `left` or `right` to change text alignment (otherwise center)\{
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`200 | - If `layout` is `circular`: diameter (in px)"center" | Set to `left` or `right` to change text 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 |
- | false | Set to `true` to make the menu require a double tap to be opened instead of a single tap |
- | [
1,
2,
3
] | `Array` of possible values to switch between : `[1,2,3]`"" | `Array` of `number` defining the weights of each value in `values`200 | - If `layout` is `circular`: diameter (in px)"center" | Set to `left` or `right` to change text 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 |
+ | false | Set to `true` to make the menu require a double tap to be opened instead of a single tap |
+ | [
1,
2,
3
] | `Array` of possible values to switch between : `[1,2,3]`"" | `Array` of `number` defining the weights of each value in `values`"center" | 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) |
- | false | Set to `true` to make the input send its value at each keystroke |
+ | "center" | 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) |
+ | false | Set to `true` to make the input send its value at each keystroke |
??? api ""center" | Set to `left` or `right` to change text alignment (otherwise center)"auto" | Default browsing directory |
- | "*" | Only display files with this extension |
- | false | Set to `true` to only display the filename (the whole path will still be used as value) |
- | false | Allow selecting a folder (by pressing "open" when no file is selected) |
+ | "center" | Set to `left` or `right` to change text alignment (otherwise center)"auto" | Default browsing directory |
+ | "*" | Only display files with this extension |
+ | false | Set to `true` to only display the filename (the whole path will still be used as value) |
+ | false | Allow selecting a folder (by pressing "open" when no file is selected) |
## Containers
??? api ""auto" | Panel background color. Set to "auto" to inherit from parent widget. |
- | "default" | Defines how children are laid out."start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified."" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
- | false | Set to `true` to display for vertical tab layout |
- | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget |
- | true | Set to `false` to disable scrollbars |
- | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
+ | "auto" | Panel background color. Set to "auto" to inherit from parent widget. |
+ | "default" | Defines how children are laid out."start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified."" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
+ | false | Set to `true` to display for vertical tab layout |
+ | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget |
+ | true | Set to `false` to disable scrollbars |
+ | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
- | "" | Defines currently widgeted tab in the widget"" | Defines currently widgeted tab in the widget[] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. |
- | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
+ | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. |
+ | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
??? api "false | 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 |
- | "auto" | Panel background color. Set to "auto" to inherit from parent widget. |
- | "default" | Defines how children are laid out."" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
- | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget |
- | true | Set to `false` to disable scrollbars |
- | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
+ | false | 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 |
+ | "auto" | Panel background color. Set to "auto" to inherit from parent widget. |
+ | "default" | Defines how children are laid out."" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
+ | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget |
+ | true | Set to `false` to disable scrollbars |
+ | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
- | "" | Defines the modal's state:`0` for closed, `1` for opened |
+ | "" | Defines the modal's state:`0` for closed, `1` for opened |
=== "children"
| property | type |default | description |
| --- | --- | --- | --- |
- | [] | Each element of the array must be a widget object |
+ | [] | Each element of the array must be a widget object |
??? api """ | `id` of the widget to clone |
+ | "" | `id` of the widget to clone |
=== "overrides"
| property | type |default | description |
| --- | --- | --- | --- |
- | \{} | Cloned widget's properties to override |
+ | \{} | Cloned widget's properties to override |
??? api ""button" | Defines the type of the widgets in the matrix |
- | "auto" | Panel background color. Set to "auto" to inherit from parent widget. |
- | "horizontal" | Defines how children are laid out."" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
- | 4 | Defines the number of widgets in the matrix |
- | 0 | First widget's index |
- | true | Set to `false` to disable traversing gestures |
- | \{} | Defines a set of property to override the widgets' defaults."button" | Defines the type of the widgets in the matrix |
+ | "auto" | Panel background color. Set to "auto" to inherit from parent widget. |
+ | "horizontal" | Defines how children are laid out."" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
+ | 4 | Defines the number of widgets in the matrix |
+ | 0 | First widget's index |
+ | true | Set to `false` to disable traversing gestures |
+ | \{} | Defines a set of property to override the widgets' defaults."" | Available CSS variables:"" | Available CSS variables:25 | Defines the number keys |
- | 48 | MIDI note number to start with (default is C4)true | Set to `false` to disable traversing gestures |
- | 1 | 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 make keys bahave like toggle buttons |
+ | 25 | Defines the number keys |
+ | 48 | MIDI note number to start with (default is C4)true | Set to `false` to disable traversing gestures |
+ | 1 | 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 make keys bahave like toggle buttons |
??? api """ | The inputs/ouputs width can be adjusted by using the `.nodes` selector:"" | 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`). |
??? api ""auto" | Panel background color. Set to "auto" to inherit from parent widget. |
- | "default" | Defines how children are laid out."start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified."" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
- | false | Set to `true` to display for vertical tab layout |
- | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget |
- | true | Set to `false` to disable scrollbars |
- | "" | Defines one or more arbitrary variables that can be inherited by children widgets |
+ | "auto" | Panel background color. Set to "auto" to inherit from parent widget. |
+ | "default" | Defines how children are laid out."start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified."" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
+ | false | Set to `true` to display for vertical tab layout |
+ | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget |
+ | true | Set to `false` to disable scrollbars |
+ | "" | Defines one or more arbitrary variables that can be inherited by children widgets |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
- | "" | Defines currently widgeted tab in the widget"" | Defines currently widgeted tab in the widget[] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. |
- | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
+ | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. |
+ | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
??? api ""auto" | Panel background color. Set to "auto" to inherit from parent widget. |
- | "default" | Defines how children are laid out."start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified."" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
- | false | Set to `true` to display for vertical tab layout |
- | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget |
- | true | Set to `false` to disable scrollbars |
- | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
+ | "auto" | Panel background color. Set to "auto" to inherit from parent widget. |
+ | "default" | Defines how children are laid out."start" | If `layout` is `vertical` or `horizontal`, defines how widgets should be justified."" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. |
+ | false | Set to `true` to display for vertical tab layout |
+ | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget |
+ | true | Set to `false` to disable scrollbars |
+ | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
- | "" | Defines currently widgeted tab in the widget"" | Defines currently widgeted tab in the widget[] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. |
- | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
+ | [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. |
+ | [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
## Frames
??? api ""auto" | Set to `false` to hide completely"auto" | Set to `false` to hide completely"" | External web page URL. Only local URLs are allowed (starting with `http://127.0.0.1/`, `http://10.x.x.x/`, `http://192.168.x.x/`, etc) |
+ | "" | External web page URL. Only local URLs are allowed (starting with `http://127.0.0.1/`, `http://10.x.x.x/`, `http://192.168.x.x/`, etc) |
??? api """ | Svg xml definition:"" | Svg xml definition:"" | Allowed HTML tags:"" | Allowed HTML tags:"cover" | CSS background-size |
- | "center" | CSS background-position |
- | "no-repeat" | CSS background-repeat |
- | true | Set to false to disable image caching (forces file reload when updating or editing the widget)."cover" | CSS background-size |
+ | "center" | CSS background-position |
+ | "no-repeat" | CSS background-repeat |
+ | true | Set to false to disable image caching (forces file reload when updating or editing the widget)."" | - File `url` or `path` (relative to the session file location by default, falling back to absolute path)"" | - File `url` or `path` (relative to the session file location by default, falling back to absolute path)\{
"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. |
- | "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) |
- | 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. |
+ | "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) |
+ | true | Set to `false` to hide the scale |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
- | "" | - `Array` of `y` values"" | - `Array` of `y` values"" | Each item must be an object with the following propertiestrue | Set to false to hide the scale |
- | \{
"min": 20,
"max": 22000
} | Defines the min and max values for the x axis (in Hz, logarithmic scale) |
- | \{
"min": -6,
"max": 6
} | Defines the min and max values for the y axis (in dB) |
- | "auto" | Defines the y axis origin. Set to `false` to disable it |
+ | "" | Each item must be an object with the following propertiestrue | Set to false to hide the scale |
+ | \{
"min": 20,
"max": 22000
} | Defines the min and max values for the x axis (in Hz, logarithmic scale) |
+ | \{
"min": -6,
"max": 6
} | Defines the min and max values for the y axis (in dB) |
+ | "auto" | Defines the y axis origin. Set to `false` to disable it |
??? api "1 | 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. |
- | true | Set to `false` to hide the scale |
+ | 1 | 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. |
+ | true | Set to `false` to hide the scale |
## Indicators
??? api ""intensity" | Defines how value is interpreted (see `value`)\{
"min": 0,
"max": 1
} | Value range |
- | \{
"min": 0,
"max": 1
} | Alpha range (if `mode` is `color`) |
- | false | If `mode` is `intensity`, set to `true` to use logarithmic scale. |
- | "" | Css border-radius property. |
+ | "intensity" | Defines how value is interpreted (see `value`)\{
"min": 0,
"max": 1
} | Value range |
+ | \{
"min": 0,
"max": 1
} | Alpha range (if `mode` is `color`) |
+ | false | If `mode` is `intensity`, set to `true` to use logarithmic scale. |
+ | "" | Css border-radius property. |
=== "value"
| property | type |default | description |
| --- | --- | --- | --- |
- | "" | If `mode` is `intensity`:"" | If `mode` is `intensity`:false | Set to `true` to display the text vertically |
- | false | Set to `true` to wrap long lines automatically."center" | Css text-align property.false | Set to `true` to display the text vertically |
+ | false | Set to `true` to wrap long lines automatically."center" | Css text-align property.20 | Defines the points' size |
- | false | By default, the points are dragged from their initial position.false | When set to `true`, the widget will go back to its default value when released |
- | 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. Set to `-1` for exponential scale. |
- | false | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. |
- | 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` |
+ | 20 | Defines the points' size |
+ | false | By default, the points are dragged from their initial position.false | When set to `true`, the widget will go back to its default value when released |
+ | 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. Set to `-1` for exponential scale. |
+ | false | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. |
+ | 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"
| property | type |default | description |
| --- | --- | --- | --- |
- | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1`) |
+ | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1`) |
??? api "false | By default, the points are dragged from their initial position.false | When set to `true`, the widget will go back to its default value when released |
- | \{
"min": 0,
"max": 255
} | Defines the widget's output scale. |
- | false | Set to `true` to enable alpha channel |
- | \{
"min": 0,
"max": 1
} | Defines the widget's output scale for the alpha channel. |
+ | false | By default, the points are dragged from their initial position.false | When set to `true`, the widget will go back to its default value when released |
+ | \{
"min": 0,
"max": 255
} | Defines the widget's output scale. |
+ | false | Set to `true` to enable alpha channel |
+ | \{
"min": 0,
"max": 1
} | Defines the widget's output scale for the alpha channel. |
??? api "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.false | When set to `true`, the widget will go back to its default value when released |
- | 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. Set to `-1` for exponential scale. |
- | false | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. |
- | 1 | Defines the pad's sensitivity when `snap` is `false` |
+ | 20 | Defines the points' size |
+ | false | By default, the points are dragged from their initial position.false | When set to `true`, the widget will go back to its default value when released |
+ | 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. Set to `-1` for exponential scale. |
+ | false | Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale. |
+ | 1 | Defines the pad's sensitivity when `snap` is `false` |
=== "osc"
| property | type |default | description |
| --- | --- | --- | --- |
- | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
+ | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
## Sliders
??? api """ | CSS rules. See documentation."" | CSS rules. See documentation."default" | Design stylefalse | Set to `true` to display the fader horizontally |
- | false | Set to `true` to show range breakpoints (ignored if `design` is `compact`) |
- | false | Set to `true` to display a dashed gauge |
- | [] | When set, the meter's gauge will be filled with a linear color gradientfalse | 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 | 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:false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. |
- | 1 | Defines the fader's sensitivity when `snap` is `false` |
- | "" | Restricts the widget's value:"auto" | Defines the starting point's value of the fader's gauge |
+ | "default" | Design stylefalse | Set to `true` to display the fader horizontally |
+ | false | Set to `true` to show range breakpoints (ignored if `design` is `compact`) |
+ | false | Set to `true` to display a dashed gauge |
+ | [] | When set, the meter's gauge will be filled with a linear color gradientfalse | 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 | 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:false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. |
+ | 1 | Defines the fader's sensitivity when `snap` is `false` |
+ | "" | Restricts the widget's value:"auto" | Defines the starting point's value of the fader's gauge |
=== "osc"
| property | type |default | description |
| --- | --- | --- | --- |
- | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
+ | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
??? api """ | CSS rules. See documentation."" | CSS rules. See documentation."vertical" | - `circular`: relative move in circular motionfalse | When set to `true`, the widget will go back to its `default` value when released |
- | false | Set to `true` to show the scale's breakpoints |
- | false | Set to `true` to display a dashed gauge |
- | 270 | Defines the angle's width of the knob, in degrees |
- | 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:false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. |
- | 1 | Defines the knob's sensitivity when `mode` is not `snap` |
- | "" | Restricts the widget's value:"auto" | Defines the starting point's value of the knob's gauge |
+ | "vertical" | - `circular`: relative move in circular motionfalse | When set to `true`, the widget will go back to its `default` value when released |
+ | false | Set to `true` to show the scale's breakpoints |
+ | false | Set to `true` to display a dashed gauge |
+ | 270 | Defines the angle's width of the knob, in degrees |
+ | 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:false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. |
+ | 1 | Defines the knob's sensitivity when `mode` is not `snap` |
+ | "" | Restricts the widget's value:"auto" | Defines the starting point's value of the knob's gauge |
=== "osc"
| property | type |default | description |
| --- | --- | --- | --- |
- | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
+ | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
??? api "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 |
- | "" | Defines which value is sent when releasing the encoder:"circular" | - `circular`: relative move in circular motionfalse | Set to `true` to make the fader reset to its `default` value when receiving a double tap.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 |
+ | "" | Defines which value is sent when releasing the encoder:"circular" | - `circular`: relative move in circular motionfalse | Set to `true` to make the fader reset to its `default` value when receiving a double tap."" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
+ | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
??? api """ | CSS rules. See documentation."" | CSS rules. See documentation."default" | Design stylefalse | Set to `true` to display the fader horizontally |
- | false | Set to `true` to show range breakpoints (ignored if `design` is `compact`) |
- | false | Set to `true` to display a dashed gauge |
- | [] | When set, the meter's gauge will be filled with a linear color gradientfalse | 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 | 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:false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. |
- | 1 | Defines the fader's sensitivity when `snap` is `false` |
- | "" | Restricts the widget's value:"auto" | Defines the starting point's value of the fader's gauge |
+ | "default" | Design stylefalse | Set to `true` to display the fader horizontally |
+ | false | Set to `true` to show range breakpoints (ignored if `design` is `compact`) |
+ | false | Set to `true` to display a dashed gauge |
+ | [] | When set, the meter's gauge will be filled with a linear color gradientfalse | 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 | 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:false | Set to `true` to use logarithmic scale. Set to `-1` for exponential scale. |
+ | 1 | Defines the fader's sensitivity when `snap` is `false` |
+ | "" | Restricts the widget's value:"auto" | Defines the starting point's value of the fader's gauge |
=== "osc"
| property | type |default | description |
| --- | --- | --- | --- |
- | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
+ | "" | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
## Scripts
??? api ""value" | Define which events trigger the script's execution."" | Script executed whenever the widget's receives the defined event. See documentation. |
+ | "value" | Define which events trigger the script's execution."" | Script executed whenever the widget's receives the defined event. See documentation. |
=== "event: keyboard"
| property | type |default | description |
| --- | --- | --- | --- |
- | "" | Key combo `string` or `array` of strings (see KeyboardJS documentation) |
- | true | Set to `false` to prevent keydown repeats when holding the key combo pressed |
- | "keyDown" | Determines which key event trigger the script's execution"" | Key combo `string` or `array` of strings (see KeyboardJS documentation) |
+ | true | Set to `false` to prevent keydown repeats when holding the key combo pressed |
+ | "keyDown" | Determines which key event trigger the script's execution${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'
').replace('{','\\{')} | ${help} |`
+ | ${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'
').replace('{','\\{')} | ${help} |`
)
}
@@ -94,7 +94,7 @@ for (var k in widgets.categories) {
if (propName === '_props' || propName[0] === '_' || JSON.stringify(prop) == JSON.stringify(base[propName])) continue
var help = Array.isArray(prop.help) ? prop.help.join('${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'
').replace('{','\\{')} | ${help} |`
+ | ${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'
').replace('{','\\{')} | ${help} |`
)
separator = false
}