diff --git a/resources/docs/extras/css-tips.md b/resources/docs/extras/css-tips.md index 9f4ac659..9ff993bb 100644 --- a/resources/docs/extras/css-tips.md +++ b/resources/docs/extras/css-tips.md @@ -92,11 +92,11 @@ CSS Variables declared in the [default theme](https://github.com/jean-emmanuel/ ## Other tips -## Use the inspector +#### Use the inspector Hit `F12` to open the developers tools panel. The html/css inspector helps retreiving the class names needed to style specific parts of the widgets. -### Panel's background-color +#### Panel's background-color This works for panel, strip and tabs: diff --git a/resources/docs/widgets-reference.md b/resources/docs/widgets-reference.md index f1e2cb50..44225c76 100644 --- a/resources/docs/widgets-reference.md +++ b/resources/docs/widgets-reference.md @@ -39,7 +39,7 @@ |

alignRight

| `boolean` | false | Set to `true` to invert the pip's and fader's position | |

pips

| `boolean` | true | Set to `false` to hide the scale | |

input

| `boolean` | true | Set to `false` to hide the built-in input | -|

meter

| `boolean` | false | Set to true to display a vu-meter next in the fader
- the meter's `id` will be the same as the widget's with `/meter` appended to it
- the meter's `id` will be the same as the widget's with `/meter` appended to it | +|

meter

| `boolean` | false | Set to true to display a vu-meter next in the fader
- the meter's `id` will be the same as the widget's with `/meter` appended to it
- the meter's `address` will be the same as the widget's with `/meter` appended to it | |

compact

| `boolean` | false | Set to `true` to display a compact alternative for the widget. Disables default mouse/touch focusing on the value display. | |

dashed

| `boolean` | false | Set to `true` to display a dashed gauge | |

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 | @@ -218,7 +218,7 @@ |

spacing

| `integer` | 0 | Adds space between widgets | |

traversing

| `boolean` | true | Set to `false` to disable traversing gestures | |

border

| `boolean` | true | Set to `false` to disables the widgets' borders | -|

props

| `object` | {} | Defines a set of property to override the widgets' defaults.

Formulas in this field are resolved with an extra variable representing each widget's index: `$` | +|

props

| `object` | {} | Defines a set of property to override the widgets' defaults.

Formulas in this field are resolved with an extra variable representing each widget's index: `$`

Note: by default, the widgets inherit from the matrix' `id` and osc properties (`id` and `address` are appended with `/$`) | ### keyboard @@ -235,6 +235,16 @@ |

osc

|||| |

split

| `boolean`\|
`string` | false | `true`: the widget's index will be appended to the matrice's osc address

`false`: it will be prepended to the widget's preArgs

`string`: will be used to define the widgets' addresses, replacing dollar signs (`$`) with their respective index (to insert the actual dollar sign, it must be escaped with a backslash (`\$`)) | +### patchbay + +| property | type |default | description | +| --- | --- | --- | --- | +|

style

|||| +|

css

| `string` | "" | The inputs/ouputs width can be adjusted by using the `.nodes` selector:

`.nodes { width: 25% }` | +|

patchbay

|||| +|

inputs

| `array`\|
`object` | [
 "input_1",
 "input_2"
]
| - `Array` of input names : `['input_1', 'input_2']`
- `Object` of `"label_1": "input_1"` 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



Patchbay inputs can be connected to one or more outputs and will send messages of the following form when they are connected/disconnected:

`/patchbay_address input_x output_x output_y etc`

If no output is connected to the input, the message will be `/patchbay_address input_x`

The inputs values can be consumed with the property inheritance syntax: `@{patchbay_id/input_1}` returns an array of output names connected to `input_1` | +|

outputs

| `array`\|
`object` | [
 "output_1",
 "output_2"
]
| List of output values the inputs can connect to (see `inputs`). | + ## Plots ### plot @@ -326,7 +336,7 @@ |

image

|||| |

size

| `string` | "cover" | CSS background-size | |

position

| `string` | "center" | CSS background-position | -|

repeat

| `string` | "no-repear" | CSS background-repeat | +|

repeat

| `string` | "no-repeat" | CSS background-repeat | |

border

| `boolean` | true | Set to `false` to disable the borders and background-color | |

cache

| `boolean` | true | Set to false to disable image caching (forces file reload when updating or editing the widget).

When true, sending `reload` to the widget reloads its image without changing its value | |

value

|||| @@ -443,7 +453,7 @@ | --- | --- | --- | --- | |

keys

|||| |

binding

| `string`\|
`array` | "" | Key combo `string` or `array` of strings (see KeyboardJS documentation) | -|

keydown

| `string` | "" | This property is evaluated each time the key combo is pressed. Formulas are given extras variables in this context:
- `key`: pressed key name (usefull for handling multiple keys with a single keys widget)
- `ctrl`: control key state
- `alt`: alt key state
- `shift`: shift key state
- `super`: command/windows key state | +|

keydown

| `string` | "" | This property is evaluated each time the key combo is pressed and defines the widget's own value. Formulas are given extras variables in this context:
- `key`: pressed key name (usefull for handling multiple keys with a single keys widget)
- `ctrl`: control key state
- `alt`: alt key state
- `shift`: shift key state
- `super`: command/windows key state | |

keyup

| `string` | "" | Same as `keydown`, but evaluated when releasing the key combo | |

repeat

| `boolean` | true | Set to `false` to prevent keydown repeats when holding the key combo pressed |