diff --git a/package.json b/package.json index a5b1dd79..5e1c5b43 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "open-stage-control", "productName": "Open Stage Control", "description": "Libre and modular OSC / MIDI controller", - "version": "1.9.6", + "version": "1.9.7", "author": { "name": "Jean-Emmanuel Doucet", "email": "jean-emmanuel@ammd.net" diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index 6285b24b..b99c3923 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -62,7 +62,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. | - |
typeTags#
| `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 http://opensoundcontrol.org/spec-1_0 for existing typetags | + |
typeTags#
| `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 | |
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 | @@ -87,7 +87,7 @@ |
colorTextOn#
| `string` | "auto" | Defines the widget's text color when active. | |
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` | |
vertical#
| `boolean` | false | Set to `true` to display the text vertically | - |
wrap#
| `boolean` | false | Set to `true` to wrap long lines automatically. | + |
wrap#
| `boolean`|
`string` | false | Set to `true` to wrap long lines automatically. Set to `soft` to avoid breaking words.

Choices: `false`, `true`, `soft` | === "button" @@ -109,6 +109,7 @@ |
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". | + |
wrap#
| `boolean`|
`string` | false | Set to `true` to wrap long lines automatically. Set to `soft` to avoid breaking words.

Choices: `false`, `true`, `soft` | === "switch" @@ -224,7 +225,7 @@ | property | type |default | description | | --- | --- | --- | --- | |
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 | + |
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` to limit affected widgets by the type of the first touched widget

Choices: `false`, `true`, `smart` | === "value" @@ -273,7 +274,7 @@ | property | type |default | description | | --- | --- | --- | --- | | | `*` | "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets | - | | `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 | + | | `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` to limit affected widgets by the type of the first touched widget

Choices: `false`, `true`, `smart` | | | `boolean` | false | Set to `true` to make the modal require a double tap to open instead of a single tap | === "value" @@ -329,11 +330,10 @@ | property | type |default | description | | --- | --- | --- | --- | |
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 | + |
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` to limit affected widgets by the type of the first touched widget

Choices: `false`, `true`, `smart` | |
widgetType#
| `string` | "button" | Defines the type of the widgets in the matrix | |
quantity#
| `number` | 4 | Defines the number of widgets in the matrix | - |
start#
| `integer` | 0 | First widget's index | - |
props#
| `object` | \{} | Defines a set of property to override the widgets' defaults.

JS{{}} and #{} blocks in this field are resolved with an extra variable representing each widget's index: `$` (e.g. `#{$}`)

Advanced syntax blocks (@{}, OSC{}, JS{{}} and #{}) are resolved at the matrix' scope (ie @{this.variables} returns the matrix' variables property)

Note: by default, the widgets inherit from the matrix' `id` and osc properties (`id` and `address` are appended with `/$`) | + |
props#
| `object` | \{} | Defines a set of property to override the widgets' defaults.

JS{} and #{} blocks in this field are resolved with an extra variable representing each widget's index: `$` (e.g. `#{$}`)

Advanced syntax blocks (@{}, OSC{}, JS{}, VAR{} and #{}) are resolved at the matrix' scope (ie @{this.variables} returns the matrix' variables property)

Advanced syntax blocks can be passed to children without being resolved at the matrix' scope by adding an underscore before the opening bracket.

Note: unless overridden, children inherit from the matrix' `id` and osc properties (`id` and `address` are appended with `/$`) | === "value" @@ -407,7 +407,7 @@ | property | type |default | description | | --- | --- | --- | --- | |
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 | + |
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` to limit affected widgets by the type of the first touched widget

Choices: `false`, `true`, `smart` | === "value" @@ -444,7 +444,7 @@ | property | type |default | description | | --- | --- | --- | --- | |
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 | + |
traversing#
| `boolean` | false | Set to `true` to enable traversing gestures in this widget. Set to `smart` to limit affected widgets by the type of the first touched widget

Choices: `false`, `true`, `smart` | === "value" @@ -617,7 +617,7 @@ | property | type |default | description | | --- | --- | --- | --- | |
vertical#
| `boolean` | false | Set to `true` to display the text vertically | - |
wrap#
| `boolean` | false | Set to `true` to wrap long lines automatically. | + |
wrap#
| `boolean`|
`string` | false | Set to `true` to wrap long lines automatically. Set to `soft` to avoid breaking words.

Choices: `false`, `true`, `soft` | |
align#
| `string` | "center" | Text alignment.

Choices: `center`, `left`, `right`, `top`, `bottom`, `left top`, `left bottom`, `right top`, `right bottom` | ## Pads @@ -803,7 +803,7 @@ | --- | --- | --- | --- | |
script#
| `script` | "" | Script executed whenever the widget's receives the defined event. See documentation. | |
event#
| `string` | "value" | Define which events trigger the script's execution.

Choices: `value`, `keyboard`, `once` | - |
keyBinding#
| `string`|
`array` | "" | Key combo `string` or `array` of strings (see KeyboardJS documentation) | + |
keyBinding#
| `string`|
`array` | "" | Key combo `string` or `array` of strings (see KeyboardJS documentation).

If the editor is enabled, some keys / combos will not work. | |
keyRepeat#
| `boolean` | true | Set to `false` to prevent keydown repeats when holding the key combo pressed | |
keyType#
| `string` | "keydown" | Determines which key event trigger the script's execution

Choices: `keydown`, `keyup`, `both` |