diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index cf654c13..75228ad9 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -14,7 +14,6 @@ | --- | --- | --- | --- | |
type#
| `string` | "auto" | | |
id#
| `string` | "auto" | Widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages. | - |
label#
| `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` | |
visible#
| `boolean` | true | Set to `false` to hide the widget. | |
interaction#
| `boolean` | true | Set to `false` to disable pointer interactions. | @@ -34,6 +33,7 @@ | property | type |default | description | | --- | --- | --- | --- | + |
colorBg#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | |
colorText#
| `string` | "auto" | Text color. Set to "auto" to inherit from parent widget. | |
colorWidget#
| `string` | "auto" | Widget's default accent color. Set to "auto" to inherit from parent widget. | |
colorStroke#
| `string` | "auto" | Stroke color. Set to "auto" to use `colorWidget`. | @@ -42,7 +42,7 @@ |
alphaFillOff#
| `number` | "auto" | Fill color opacity (off). | |
alphaFillOn#
| `number` | "auto" | Fill color opacity (on). | |
padding#
| `number` | "auto" | Inner spacing. | - |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke` | + |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke` | === "value" @@ -75,12 +75,13 @@ | property | type |default | description | | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` | + |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` | === "button" | property | type |default | description | | --- | --- | --- | --- | + |
label#
| `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` | |
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. Must be different from `on`. | |
mode#
| `string` | "toggle" | Interraction mode:
- `toggle` (classic on/off switch)
- `push` (press & release)
- `tap` (no release)

Choices: `toggle`, `push`, `tap` | @@ -94,7 +95,7 @@ | property | type |default | description | | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` | + |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--color-text-on`: `colorTextOn` | === "switch" @@ -164,7 +165,6 @@ | property | type |default | description | | --- | --- | --- | --- | - |
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | |
variables#
| `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | |
traversing#
| `boolean` | 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 | @@ -204,6 +204,7 @@ | property | type |default | description | | --- | --- | --- | --- | + | | `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` | | | `boolean` | false | Set to `true` to make the modal require a double tap to open instead of a single tap | | | `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | @@ -216,7 +217,6 @@ | | `number`|
`percentage` | "80%" | Modal popup's size | | | `number`|
`percentage` | "auto" | Modal popup's position | | | `number`|
`percentage` | "auto" | Modal popup's position | - | | `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | | | `string` | "default" | Defines how children are laid out.

Choices: `default`, `vertical`, `horizontal`, `grid` | | | `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | | | `boolean` | 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 | @@ -266,7 +266,6 @@ | property | type |default | description | | --- | --- | --- | --- | - |
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | |
layout#
| `string` | "horizontal" | Defines how children are laid out.

Choices: `horizontal`, `vertical`, `grid` | |
gridTemplate#
| `string`|
`number` | "" | If `layout` is `grid`, can be either a number of columns of a value css grid-template definition. | |
traversing#
| `boolean` | true | Set to `false` to disable traversing gestures | @@ -315,7 +314,6 @@ | property | type |default | description | | --- | --- | --- | --- | - |
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | |
variables#
| `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | |
traversing#
| `boolean` | 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 | @@ -355,7 +353,7 @@ | property | type |default | description | | --- | --- | --- | --- | - |
colorPanel#
| `string` | "auto" | Panel background color. Set to "auto" to inherit from parent widget. | + |
label#
| `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` | |
variables#
| `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | |
traversing#
| `boolean` | 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 | @@ -392,12 +390,6 @@ ??? api "
frame#
" Embed a page in a frame (local network only). - === "widget" - - | property | type |default | description | - | --- | --- | --- | --- | - |
label#
| `string`|
`boolean` | "auto" | Set to `false` to hide completely

Insert icons using the prefix ^ followed by the icon's name : ^play, ^pause, etc

If set to `false`, all pointer-events will be disabled on the frame as long as the editor is enabled to ensure it can be selected | - === "value" | property | type |default | description | @@ -596,7 +588,7 @@ | property | type |default | description | | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` | + |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` | === "fader" @@ -605,7 +597,7 @@ |
design#
| `string` | "default" | Design style

Choices: `default`, `round`, `compact` | |
horizontal#
| `boolean` | false | Set to `true` to display the fader horizontally | |
pips#
| `boolean` | false | Set to `true` to show range breakpoints (ignored if `design` is `compact`) | - |
dashed#
| `boolean` | false | Set to `true` to display a dashed gauge | + |
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]` | |
gradient#
| `array`|
`object` | [] | When set, the meter's gauge will be filled with a linear color gradient
- each item must be a CSS color string.
- as an `object`: each key must be a number between 0 and 1
- each item must be a CSS color string.

Examples: `['blue', 'red']`, {'0': 'blue', '0.9': 'blue', '1': 'red'} | |
snap#
| `boolean` | 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 | |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | @@ -629,7 +621,7 @@ | property | type |default | description | | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` | + |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` | === "knob" @@ -680,7 +672,7 @@ | property | type |default | description | | --- | --- | --- | --- | - |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--color-background`: `colorPanel`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` | + |
css#
| `string` | "" | CSS rules. See documentation.

Available css variables:
- `--color-background`: `colorBg`
- `--color-widget`: `colorWidget`
- `--color-fill`: `colorFill`
- `--color-stroke`: `colorStroke`
- `--color-text`: `colorText`
- `--widget-padding`: `padding`
- `--alpha-fill-on`: `alphaFillOn`
- `--alpha-fill-off`: `alphaFillOff`
- `--alpha-stroke`: `alphaStroke`
- `--alpha-pips`: `alphaPips`
- `--alpha-pips-text`: `alphaPipsText` | === "fader" @@ -689,7 +681,7 @@ |
design#
| `string` | "default" | Design style

Choices: `default`, `round`, `compact` | |
horizontal#
| `boolean` | false | Set to `true` to display the fader horizontally | |
pips#
| `boolean` | false | Set to `true` to show range breakpoints (ignored if `design` is `compact`) | - |
dashed#
| `boolean` | false | Set to `true` to display a dashed gauge | + |
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]` | |
gradient#
| `array`|
`object` | [] | When set, the meter's gauge will be filled with a linear color gradient
- each item must be a CSS color string.
- as an `object`: each key must be a number between 0 and 1
- each item must be a CSS color string.

Examples: `['blue', 'red']`, {'0': 'blue', '0.9': 'blue', '1': 'red'} | |
snap#
| `boolean` | 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 | |
spring#
| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released |