diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md
index 9201b4aa..ab104d37 100644
--- a/resources/docs/docs/widgets/properties-reference.md
+++ b/resources/docs/docs/widgets/properties-reference.md
@@ -43,9 +43,10 @@
|
alphaFillOff
| `number` | "auto" | Fill color opacity (off). |
| alphaFillOn
| `number` | "auto" | Fill color opacity (on). |
| lineWidth
| `number` | "auto" | Stroke width. |
+ | borderRadius
| `number`|
`string` | "auto" | Border radius expressed as a number or a css string. This property may not work for all widgets. |
| padding
| `number` | "auto" | Inner spacing. |
| html
| `string` | "" | Custom html content to be inserted in the widget (before the widget's content). Elements are all unstyled by default, `css` should be used to customize their appearance.
The code is automatically wrapped in <div class="html"></div>
Allowed HTML tags:
h1-6, blockquote, p, a, ul, ol, nl, li,
b, i, strong, em, strike, code, hr, br, div,
table, thead, img, caption, tbody, tr, th, td, pre
Allowed attributes:
<*>: class, style, title, name
<img>: src, width, height |
- | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke` |
+ | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke` |
=== "value"
@@ -63,7 +64,7 @@
| --- | --- | --- | --- |
| address
| `string` | "auto" | OSC address for sending / receiving messages, it must start with a slash (`/`)
By default ("auto"), the widget's id is used: `/widget_id` |
| preArgs
| `*`|
`array` | "" | A value or array of values that will be prepended to the widget's value in the OSC messages it sends.
Incoming messages must match these to affect by the widget. |
- | | `string` | "" | Defines the osc argument types, one letter per argument (including preArgs)
- If empty, the types are infered automatically from the values (with numbers casted to floats by default)
- If there are more arguments than type letters, the last type is used for the extra arguments
See OSC 1.0 specification for existing typetags |
+ | | `string` | "" | Defines the osc argument types, one letter per argument (including preArgs)
- If empty, the types are inferred automatically from the values (with numbers casted to floats by default)
- If there are more arguments than type letters, the last type is used for the extra arguments
See OSC 1.0 specification for existing typetags |
| decimals
| `integer` | 2 | Defines the number of decimals to send. |
| target
| `string`|
`array`|
`null` | "" | This defines the targets of the widget's OSC messages
- A `string` or `array` of strings formatted as follow: `ip:port` or `["ip:portA", "ip:portB"]`
- If midi is enabled, targets can be `midi:device_name`
- If no target is set, messages can still be sent if the server has default targets |
| ignoreDefaults
| `boolean` | false | Set to `true` to ignore the server's default targets |
@@ -85,9 +86,9 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | | `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` |
+ | | `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` |
| colorTextOn
| `string` | "auto" | Defines the widget's text color when active. |
- | | `string`|
`boolean` | "auto" | Set to `false` to hide completely
- Insert icons using the prefix ^ followed by the icon's name : `^play`, `^pause`, etc (see https://fontawesome.com/icons?d=gallery&s=solid&m=free)
- Icons can be transformed with the following suffixes: `.flip-[horizontal|vertical|both]`, `.rotate-[90|180|270]`, `.spin`, `.pulse`. Example: `^play.flip-horizontal` |
+ | | `string`|
`boolean` | "auto" | Set to `false` to hide completely
- Insert icons using the prefix ^ followed by the icon's name : `^play`, `^pause`, etc (see https://fontawesome.com/search?m=free&s=solid
- Icons can be transformed with the following suffixes: `.flip-[horizontal|vertical|both]`, `.rotate-[90|180|270]`, `.spin`, `.pulse`. Example: `^play.flip-horizontal` |
| | `boolean` | false | Set to `true` to display the text vertically |
| | `boolean`|
`string` | false | Set to `true` to wrap long lines automatically. Set to `soft` to avoid breaking words.
Choices: `false`, `true`, `soft` |
@@ -97,14 +98,15 @@
| --- | --- | --- | --- |
| | `*` | 1 | Set to `null` to send send no argument in the osc message. Ignored if `mode` is `momentary`. |
| | `*` | 0 | Set to `null` to send send no argument in the osc message. Must be different from `on`. Ignored if `mode` is `momentary` or `tap`. |
- | | `string` | "toggle" | Interraction mode:
- `toggle` (classic on/off switch)
- `push` (press & release)
- `momentary` (no release, no value sent)
- `tap` (no release, sends `on` as value)
Choices: `toggle`, `push`, `momentary`, `tap` |
+ | | `string` | "toggle" | Interaction mode:
- `toggle` (classic on/off switch)
- `push` (press & release)
- `momentary` (no release, no value sent with the address)
- `tap` (no release, sends `on` as value)
Choices: `toggle`, `push`, `momentary`, `tap` |
+ | | `boolean` | false | If `true`, the button's visual state will not change unless it receives a value that matches `on` or `off` coming from an osc/midi message.
From a script property this kind of message can be simulated with:
`set("widget_id", value, {external: true})` |
| | `boolean` | false | Set to `true` to make the button require a double tap to be pushed instead of a single tap |
=== "scripting"
| property | type |default | description |
| --- | --- | --- | --- |
- | | `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. |
+ | | `script` | "" | Script executed when the widget's value updates. See documentation.
Additional variables:
- `locals.touchCoords`: `[x, y]` array representing the touch coordinates, normalized between 0 and 1. |
??? api "switch
"
Value selector button.
@@ -113,7 +115,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` |
+ | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` |
| colorTextOn
| `string` | "auto" | Defines the widget's text color when active. |
| layout
| `string` | "vertical" | Defines how items should be laid out
Choices: `vertical`, `horizontal`, `grid` |
| gridTemplate
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns or a valid value for the css property "grid-template". |
@@ -124,7 +126,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
| values
| `array`|
`object` | \{
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`
`Object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won't be kept |
- | mode
| `string` | "tap" | Interraction mode:
- `tap`: activates when the pointer is down but prevents further scrolling
- `slide`: same as `tap` but allows sliding between values
- `click`: activates upon click only and allows further scrolling
- `flip`: selects the next value upon click regardless of where the widget is touched
Choices: `tap`, `slide`, `click`, `flip` |
+ | mode
| `string` | "tap" | Interaction mode:
- `tap`: activates when the pointer is down but prevents further scrolling
- `slide`: same as `tap` but allows sliding between values
- `click`: activates upon click only and allows further scrolling
- `flip`: selects the next value upon click regardless of where the widget is touched
Choices: `tap`, `slide`, `click`, `flip` |
??? api "dropdown
"
Native dropdown menu.
@@ -181,7 +183,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | | `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
+ | | `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
| | `string` | "center" | Set to `left` or `right` to change text alignment (otherwise center)
Choices: `center`, `left`, `right` |
| | `string` | "" | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
@@ -386,7 +388,7 @@
| on
| `*` | 1 | Set to `null` to send send no argument in the osc message |
| off
| `*` | 0 | Set to `null` to send send no argument in the osc message |
| velocity
| `boolean` | false | Set to `true` to map the touch coordinates between `off` (top) and `on` (bottom). Requires `on` and `off` to be numbers |
- | mode
| `string` | "push" | Interraction mode:
- `push` (press & release)
- `toggle` (on/off switches)
- `tap` (no release)
Choices: `push`, `toggle`, `tap` |
+ | mode
| `string` | "push" | Interaction mode:
- `push` (press & release)
- `toggle` (on/off switches)
- `tap` (no release)
Choices: `push`, `toggle`, `tap` |
??? api "patchbay
"
Connect inputs to outputs.
@@ -395,7 +397,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
+ | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
=== "patchbay"
@@ -538,7 +540,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
+ | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
| dots
| `boolean` | false | Draw dots on the line |
| bars
| `boolean` | false | Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing) |
| pips
| `boolean` | true | Set to `false` to hide the scale |
@@ -570,7 +572,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
+ | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
| dots
| `boolean` | false | Draw dots on the line |
| bars
| `boolean` | false | Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing) |
| pips
| `boolean` | true | Set to `false` to hide the scale |
@@ -604,7 +606,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
+ | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
| pips
| `boolean` | true | Set to `false` to hide the scale |
=== "visualizer"
@@ -635,12 +637,6 @@
??? api "led
"
Intensity display.
- === "style"
-
- | property | type |default | description |
- | --- | --- | --- | --- |
- | borderRadius
| `string` | "" | Css border-radius property. |
-
=== "led"
| property | type |default | description |
@@ -675,7 +671,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
+ | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
| pointSize
| `integer` | 20 | Defines the points' size |
| ephemeral
| `boolean` | false | When set to `true`, the point will be drawn only while touched. |
| pips
| `boolean` | true | Set to `false` to hide the scale |
@@ -726,7 +722,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
+ | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
| pointSize
| `integer` | 20 | Defines the points' size |
| ephemeral
| `boolean` | false | When set to `true`, the points will be drawn only while touched. |
| pips
| `boolean` | true | Set to `false` to hide the scale |
@@ -759,7 +755,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
+ | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
=== "canvas"
@@ -786,7 +782,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
+ | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
| design
| `string` | "default" | Design style
Choices: `default`, `round`, `compact` |
| knobSize
| `number` | "auto" | Fader knob size |
| horizontal
| `boolean` | false | Set to `true` to display the fader horizontally |
@@ -821,7 +817,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
+ | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
| design
| `string` | "default" | Design style
Note: "solid" design uses "colorStroke" for the central knob color.
Choices: `default`, `solid`, `line` |
| pips
| `boolean` | false | Set to `true` to show the scale's breakpoints |
| dashed
| `boolean`|
`array` | false | Set to `true` to display a dashed gauge. Can be set as an `array` of two numbers : `[dash_size, gap_size]` |
@@ -831,7 +827,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | mode
| `string` | "vertical" | - `circular`: relative move in circular motion
- `snap`: snap to touch position and move in vertical motion
- `vertical`: relative move in vertical motion
Choices: `vertical`, `circular`, `snap` |
+ | mode
| `string` | "vertical" | - `vertical`: relative move in vertical motion
- `circular`: relative move in circular motion
- `snap`: snap to touch position
- `snap-alt`: alternative snap mode that allow jumping from `range.min` to `range.max`. `sensitivity` is ignored with this mode.
Choices: `vertical`, `circular`, `snap`, `snap-alt` |
| spring
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released |
| doubleTap
| `boolean` | false | Set to `true` to make the knob reset to its `default` value when receiving a double tap.
Can also be an osc address, in which case the widget will just send an osc message (`/ `) |
| range
| `object` | \{
"min": 0,
"max": 1
} | Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed
Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) |
@@ -848,13 +844,13 @@
| onTouch
| `script` | "" | Script executed when the widget is touched and released. See documentation. |
??? api "encoder
"
- A knob that sends relative direction information instead of an absolute value.
+ A knob that sends a relative direction information instead of an absolute value.
=== "style"
| property | type |default | description |
| --- | --- | --- | --- |
- | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
+ | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
=== "encoder"
@@ -874,7 +870,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 |
+ | 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`
Additional 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 and released. See documentation. |
??? api "range
"
@@ -884,7 +880,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
- | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
+ | css
| `string` | "" | CSS rules. See documentation.
Some style-related properties can be set or read from css using css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--line-width`: `lineWidth`
- `--border-radius`: `borderRadius`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText`
Canvas-based widget have their computed width and height available as css variables (read-only):
- `--widget-width`
- `--widget-height` |
| design
| `string` | "default" | Design style
Choices: `default`, `round`, `compact` |
| knobSize
| `number` | "auto" | Fader knob size |
| horizontal
| `boolean` | false | Set to `true` to display the fader horizontally |