docs: new site
This commit is contained in:
parent
43ccd7389d
commit
719a563feb
43 changed files with 1185 additions and 1899 deletions
104
resources/docs/docs/advanced-property-syntax.md
Normal file
104
resources/docs/docs/advanced-property-syntax.md
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
# Advanced property syntax
|
||||
|
||||
## Inheritance: `@{}`
|
||||
|
||||
Widgets can use each other's property values by using the following syntaxes:
|
||||
|
||||
- `@{this.propertyName}`
|
||||
- `@{parent.propertyName}`
|
||||
- `@{widgetId.propertyName}` (where `widgetId` is the target widget's `id`)
|
||||
|
||||
!!! note
|
||||
Don't use `widgetId` when targetting `this` or `parent`, it won't work.
|
||||
|
||||
`propertyName` can be any of the target widget's properties.
|
||||
|
||||
It can be used to:
|
||||
|
||||
- concatenate strings: `/@{parent.id}/some_suffix`
|
||||
- define object value: `["@{parent.id}"]`
|
||||
|
||||
If the retreived property is an object (`[] / {}`), a subset can be defined by appending a dot and a key (array index or object key) : `@{parent.variables.key}`
|
||||
|
||||
!!! note ""
|
||||
The root panel's `id` is `root`.
|
||||
|
||||
### Using the value
|
||||
|
||||
The special property name `value`<i class="dynamic-prop-icon" title="dynamic"></i> refers to a widget's current value (which can be affected by its `value` *property*).
|
||||
|
||||
When omitted, the property name defaults to `value` : `@{widgetId}` => `@{widgetId.value}`
|
||||
|
||||
### Dynamic properties
|
||||
|
||||
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 ` `<i class="dynamic-prop-icon" title="dynamic"></i>.
|
||||
|
||||
|
||||
### Circular references cases
|
||||
|
||||
- container widgets can inherit their children's properties only to define `dynamic` properties
|
||||
- widgets can inherit their own `value`<i class="dynamic-prop-icon" title="dynamic"></i> property only to define `dynamic` properties
|
||||
|
||||
----
|
||||
|
||||
### Nesting
|
||||
|
||||
The inheritance syntax supports 1-level nesting : `@{fader_@{toggle_1}}`
|
||||
|
||||
## OSC listeners: `OSC{}`
|
||||
|
||||
The following syntax allows listening on an osc address to define a property, with an optionnal default value :
|
||||
|
||||
```
|
||||
OSC{/address, 1}
|
||||
```
|
||||
Will return `1` at first and listen for osc messages on address `/address [preArgs]`. Each time a value is received, the property will be updated.
|
||||
|
||||
|
||||
If the leading slash (`/`) is omitted, the address will be prefixed with the widget's `address` property:
|
||||
|
||||
```
|
||||
OSC{color, "auto"}
|
||||
```
|
||||
Will listen for osc messages on address `/widget_address/color [preArgs]`.
|
||||
----
|
||||
|
||||
By default, osc listeners inherit the widget's `preArgs` and (these must be matched for the osc messages to be processed). This can be bypassed by appending a third argument to the constructor:
|
||||
|
||||
```
|
||||
OSC{color, "auto", false}
|
||||
```
|
||||
|
||||
|
||||
## Formulas: `#{}`
|
||||
|
||||
The following syntax allow writing mathematical formulas in widgets' properties:
|
||||
|
||||
```
|
||||
#{FORMULA}
|
||||
```
|
||||
|
||||
Where FORMULA is a valid [MathJS](http://mathjs.org/docs/expressions/syntax.html) expression:
|
||||
|
||||
- [syntax documentation](http://mathjs.org/docs/expressions/syntax.html)
|
||||
- [available functions](http://mathjs.org/docs/reference/functions.html)
|
||||
- [available constants](http://mathjs.org/docs/reference/constants.html)
|
||||
- formulas can be [multiline](http://mathjs.org/docs/expressions/syntax.html#multiline-expressions)
|
||||
- property inheritance calls (`@{...}`) are always resolved before formulas
|
||||
- arrays / matrices indexes are **zero-based** (ie `["a","b"][0]` returns `"a"`)
|
||||
- strings can be multiline when enclosed in backticks instead of double quotes (``` ` ` ```)
|
||||
|
||||
Additionnal functions:
|
||||
|
||||
- `indexOf(a, x)`: returns index of item `x` in array `a`
|
||||
- `unpack(x)`: remove an array's brackets (`unpack([1,2])` returns `"1, 2"`)
|
||||
- `pad(x, padding)`: add leading zeros if the length the integer part of `x` is smaller than `padding` (`pad(1,2)` returns `"01"`)
|
||||
- `length(x)`: returns the length of an array or string
|
||||
- `keys(x)`: returns an array of a given object's property names (from [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys))
|
||||
- `values(x)`: returns an array of a given object's own enumerable property values (from [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values))
|
||||
- `extend(x, y)`: merges two objects into one
|
||||
|
||||
!!! tip ""
|
||||
A single widget property can contain multiple formulas. Variables and functions declared in a formula are available to subsequent formulas in the same property definition.
|
||||
20
resources/docs/docs/credits.md
Normal file
20
resources/docs/docs/credits.md
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
## License
|
||||
|
||||
Copyleft © Jean-Emmanuel Doucet @ [AMMD](http://ammd.net) 2018.
|
||||
This program is a free software released under the [GNU/GPL3](https://github.com/jean-emmanuel/open-stage-control/blob/master/LICENSE) license.
|
||||
|
||||
## Dependencies
|
||||
|
||||
Open Stage Control relies on several other free softwares, including [Node.js](https://nodejs.org/), [Electron](http://electron.atom.io/), [osc.js](https://github.com/colinbdclark/osc.js), [babel](http://babeljs.io/), [browserify](http://browserify.org), [exorcist](https://github.com/thlorenz/exorcist), [express](http://expressjs.com), [node-sass](https://github.com/sass/node-sass), [jQuery](http://jquery.com/), [jQuery-UI](http://jqueryui.com/), [Font Awesome](http://fontawesome.io/), [stacktracejs](http://stacktracejs.com), [mathjs](http://mathjs.org/). A comprehensive and up-to-date list can be found [here](https://github.com/jean-emmanuel/open-stage-control/network/dependencies).
|
||||
|
||||
## Contributors
|
||||
|
||||
https://github.com/jean-emmanuel/open-stage-control/graphs/contributors
|
||||
|
||||
----
|
||||
|
||||
<div style="width:240px">
|
||||
[](http://browserstack.com/)
|
||||
</div>
|
||||
|
||||
BrowserStack supports Open Stage Control by providing a complete suite of browser emulators for Android, iOS and Windows.
|
||||
107
resources/docs/docs/css-tips.md
Normal file
107
resources/docs/docs/css-tips.md
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
# CSS Tips
|
||||
|
||||
## Inline syntax
|
||||
|
||||
For simple use cases, the `css` property can be written as a HTML inline styles (without any CSS selector). CSS rules will apply to the widget element.
|
||||
|
||||
```css
|
||||
opacity: 0.5; /* make the widget's transparent */
|
||||
font-size: 120%; /* increase font-size */
|
||||
```
|
||||
|
||||
|
||||
## Selector syntax
|
||||
|
||||
CSS selectors can be used to apply styles to specific elements:
|
||||
|
||||
```css
|
||||
:host {
|
||||
/* style for the widget element
|
||||
& { } also works (deprecated)
|
||||
*/
|
||||
}
|
||||
|
||||
.label {
|
||||
/* style for the .label elements */
|
||||
}
|
||||
|
||||
> .label {
|
||||
/* style for the direct child .label element */
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
!!! tip ""
|
||||
Mixing Inline and Selector syntaxes doesn't work, once you use selectors, you have to use the `:host` selector to target the widget element.
|
||||
|
||||
## Extra css classes: `class`
|
||||
|
||||
This non-standard css property can be used to add custom css classes to the widget element: `class: my-custom-class;`
|
||||
Multiple classes can be added (one per `class` statement).
|
||||
|
||||
!!! warning ""
|
||||
Using class names that are already used in the app can be hazardous. In order to avoid that, custom class names should be prefixed with something uncommon and preferably cool, such as `xxx-myclass` or `crispy-seitan-myclass`.
|
||||
|
||||
## Layering: `z-index`
|
||||
|
||||
Z-Axis ordering can be set using the `z-index` rule. Absolutely positionned widgets (when `top` or `left` is different from `auto`) have `z-index:10;` by default.
|
||||
|
||||
## Layering: `pointer-events`
|
||||
|
||||
To make a widget ignore interactions (ie to be able to click through it), add `pointer-events:none;`.
|
||||
|
||||
!!! note ""
|
||||
This is always ignored when the editor is enabled.
|
||||
|
||||
## Responsive sizing
|
||||
|
||||
In most cases, using percentages in `height` and `width` will do. CSS `calc()` function can help in some cases:
|
||||
|
||||
```css
|
||||
:host {
|
||||
|
||||
width: calc(100% - 100rem);
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
Media queries can also be used:
|
||||
|
||||
```css
|
||||
@media screen and (min-width: 768px) {
|
||||
|
||||
:host {
|
||||
|
||||
/* style the widget if the screen is bigger than 768px */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
## Size units
|
||||
|
||||
- use `rem` instead of `px` (`px` values will not scale when zooming)
|
||||
- use `%` for font-size
|
||||
|
||||
|
||||
## CSS Variables
|
||||
|
||||
CSS Variables declared in the [default theme](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/browser/scss/themes/default.scss) can be overriden. Some widgets also use specific CSS variables (mostly to define colors) documented on their respective pages.
|
||||
|
||||
## Other tips
|
||||
|
||||
#### 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
|
||||
|
||||
This works for panel, strip and tabs:
|
||||
|
||||
```css
|
||||
> .panel {
|
||||
background-color: red;
|
||||
}
|
||||
```
|
||||
88
resources/docs/docs/custom-module.md
Normal file
88
resources/docs/docs/custom-module.md
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
# Custom module
|
||||
|
||||
Using the `-c / --custom-module` command-line switch, users can load a javascript file to tune the way Open Stage Control behaves regarding osc.
|
||||
|
||||
```js
|
||||
|
||||
// Do whatever you want, initialize some variables, declare some functions, ...
|
||||
|
||||
module.exports = {
|
||||
|
||||
init: function(){
|
||||
// this will be executed once when the osc server starts
|
||||
},
|
||||
|
||||
oscInFilter:function(data){
|
||||
// Filter incomming osc messages
|
||||
|
||||
var {address, args, host, port} = data
|
||||
|
||||
// do what you want
|
||||
|
||||
// address = string
|
||||
// args = array of {value, type} objects
|
||||
// host = string
|
||||
// port = integer
|
||||
|
||||
// return data if you want the message to be processed
|
||||
return {address, args, host, port}
|
||||
|
||||
},
|
||||
|
||||
oscOutFilter:function(data){
|
||||
// Filter outgoing osc messages
|
||||
|
||||
var {address, args, host, port} = data
|
||||
|
||||
// same as oscInFilter
|
||||
|
||||
// return data if you want the message to be and sent
|
||||
return {address, args, host, port}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
The module is executed in a restricted context, only a few globals are available :
|
||||
|
||||
- `console`: `object`
|
||||
- `sendOsc`: `function({host, port, address, args})`
|
||||
- `receiveOsc`: `function({host, port, address, args})`
|
||||
- `send`: `function(host, port, address, arg1, arg2, ...)`
|
||||
- `receive`: `function(host, port, address, arg1, arg2, ...)`
|
||||
- `receive`: `function(address, arg1, arg2, ...)`
|
||||
- `setTimeout`: `function(function, delay)`
|
||||
- `clearTimeout`: `function(timeout)`
|
||||
- `setInterval`: `function(function, delay)`
|
||||
- `clearInterval`: `function(interval)`
|
||||
- `settings.read`: `function(name)`, see [settings.js](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/server/settings.js#L55-L103) for available options
|
||||
- `app`: an [event emitter](https://nodejs.org/api/events.html#events_class_eventemitter) for monitoring the events sent by the different clients. Event names can be found in [callbacks.js](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/server/callbacks.js), callbacks are called with 2 arguments: `data` (object) and `client` (object: `{address, id}`)
|
||||
- `options`: `array` containing the extra options passed to `--custom-module` after the filename
|
||||
|
||||
|
||||
`sendOsc` and `receiveOsc` expect arguments formatted as follow:
|
||||
|
||||
- `address`: `string`
|
||||
- `args`: `array` of `{type: "OSC_TYPE_LETTER", value: VALUE}` `objects`
|
||||
- `host`: `string` ip address, valid hostname or `midi`
|
||||
- `port`: `integer` port number or `string` midi device name
|
||||
|
||||
`send` and `receive` are shorthands for `sendOsc` and `receiveOsc` that don't require args to be formatted as objects (numbers are casted to floats by default):
|
||||
|
||||
```js
|
||||
// calling
|
||||
send('127.0.0.1', 5555, '/test' 1, 2, {type: 'i', value: 3})
|
||||
|
||||
// equals
|
||||
sendOsc({
|
||||
host: '127.0.0.1',
|
||||
port: 5555,
|
||||
address: '/test',
|
||||
args: [
|
||||
{type: 'f', value: 1},
|
||||
{type: 'f', value: 2},
|
||||
{type: 'i', value: 3},
|
||||
]
|
||||
})
|
||||
```
|
||||
98
resources/docs/docs/editing-sessions.md
Normal file
98
resources/docs/docs/editing-sessions.md
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
# Editing sessions
|
||||
|
||||
The session editor can be enabled from the sidepanel. Once enabled, clicking on a widget will make it the *selected widget*.
|
||||
|
||||
## Root panel
|
||||
|
||||
The root panel can be selected by clicking on the "Root" button in the sidepanel.
|
||||
|
||||
## Context menu
|
||||
|
||||
Right clicking / long touch on a widget or on a tab will also display a context menu providing useful utilities :
|
||||
|
||||
- `Edit parent`: select widget's parent for edition
|
||||
- `Copy`: copy widget's data
|
||||
- `Cut`: copy widget's data and delete selected widget
|
||||
- `Wrap in`: wrap the widget in a new container
|
||||
- `Paste`: paste copied widget in selected container
|
||||
- `Paste`: paste the widget as is
|
||||
- `ID + 1` : increments the id of the copied widget (and all its children) before pasting
|
||||
- `Clone` : create a clone widget targetting the copied widget
|
||||
- `Add widget`: create a new widget in selected container
|
||||
- `Add tab`: create a new tab in selected container
|
||||
- `Delete`: delete selected tab or widget
|
||||
|
||||
## Save
|
||||
|
||||
When working on a sessions that has been loaded from the server's filesystem, it is possible to save it remotely. When doing so, all the other clients working on the same session will be reloaded automatically.
|
||||
|
||||
It is possible to limit this feature to specific client addresses by using the server's `--remote-saving` option. For example:
|
||||
`open-stage-control --remote-saving 127.0.0.1|192.168.0.10`
|
||||
|
||||
Will disable remote saving except for the clients with ip addresses `127.0.0.1` (the server's local address) and `192.168.0.10`.
|
||||
|
||||
## Save As
|
||||
|
||||
Session can be exported as a `.json` file on the client's filesystem.
|
||||
|
||||
## Load
|
||||
|
||||
Loading a session file doesn't affect other clients.
|
||||
|
||||
## Grid
|
||||
|
||||
By default, widget resizing / dragging snaps to a 10 pixel wide grid. Its width can be customized in the editor (when it's enabled). Setting its width to 1 will disable it. Note that the grid doesn't affect manual setting of a widget's size / position.
|
||||
|
||||
## Properties
|
||||
|
||||
Selected widget's properties are displayed and can be modified in the sidepanel. The [widgets reference](/docs/widgets-reference) section lists the available properties for each widget type. Property fields are all multiline (press `shift + enter` for new line).
|
||||
|
||||
Properties are written in JSON, with some flexibility brought by the [JSON5](https://github.com/json5/json5) format. For example, doubles quotes around object keys are not mandatory. All input will be converted to standard JSON.
|
||||
|
||||
|
||||
## Widget resizing / dragging
|
||||
|
||||
Selected widget can be resized using its south, south-east and east handles. It can be dragged with its north-west handle. Using this feature will convert position and size values to plain number values, thus breaking previously set percent or inherited values.
|
||||
|
||||
## Keyboard shortcuts
|
||||
|
||||
The following shortcuts are always available:
|
||||
|
||||
| Shortcut | Description |
|
||||
|---|---|
|
||||
| `mod + e` | enable/disable editor |
|
||||
| `mod + s` | save session |
|
||||
| `mod + shift s` | export session as... |
|
||||
| `mod + o` | open a session file |
|
||||
|
||||
The following shortcuts are available only when the editor is enabled:
|
||||
|
||||
| Shortcut | Description |
|
||||
|---|---|
|
||||
| `mod + click`* | Multi-widget selection. Widgets can be toggled from selection by clicking on them individually.|
|
||||
| `shift + click + drag`* | Draw a selection rectangle and attempt to select widgets in it (starts by selecting the widget under the cursor). If `mod` is pressed too, current selection is kept and will be merged with the new one if possible. |
|
||||
| `f2` | Edit selected widget's label |
|
||||
| `mod + z` | Undo |
|
||||
| `mod + y / mod + shift + z` | Redo |
|
||||
| `delete` (`backspace` on Mac) | Delete selected widgets |
|
||||
| `mod + c` | Copy selected widgets |
|
||||
| `mod + x` | Cut selected widgets |
|
||||
| `mod + v` | Paste clipboard in selected widget |
|
||||
| `mod + shift + v` | Paste and increment id |
|
||||
| `up, down, left, right` | Move selected widgets (1 grid unit, hold `shift` for 5 grid units) |
|
||||
| `alt + [up, down, left, right]` | Resize selected widgets (1 grid unit, hold `shift` for 5 grid units) |
|
||||
| `mod + a` | Select current widget's siblings and itself |
|
||||
| `mod + shift + a` | Cancel current widget selection |
|
||||
| `mod + up` | Select current widget's parent |
|
||||
| `mod + down` | Select current widget's first child |
|
||||
| `mod + right` | Select current widget's next sibling |
|
||||
| `mod + left` | Select current widget's previous sibling |
|
||||
|
||||
|
||||
Where `mod` is `ctrl` except on MacOs (`command`)
|
||||
|
||||
|
||||
!!! note "* Multi-widgets editing"
|
||||
- selection can only contain sibling widgets (same direct parent)
|
||||
- context-menu actions and properties changes apply to all selected widgets
|
||||
- resizing / dragging will affect all selected widgets, relatively to the first selected widget
|
||||
34
resources/docs/docs/examples.md
Normal file
34
resources/docs/docs/examples.md
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Community examples
|
||||
|
||||
Feel free to submitt you own by [opening an issue](https://github.com/jean-emmanuel/open-stage-control/issues/new?title=[example]) on github.
|
||||
|
||||
## Ardour
|
||||
|
||||
- [Ardour Control](https://github.com/jean-emmanuel/ardour-control)
|
||||

|
||||
|
||||
## Reaper
|
||||
|
||||
- [Reaper OSC Panels](https://github.com/ThrashJazzAssassin/REAPER-OSC-panels)
|
||||

|
||||
|
||||
## QLab
|
||||
|
||||
- [QLab Cook Book / Open Stage Control](https://qlabcookbook.com/tag/open-stage-control/)
|
||||

|
||||
|
||||
## Bitwig
|
||||
|
||||
- [Open Stage Control Bitwig](https://github.com/kdejaeger/open-stage-control-bitwig)
|
||||

|
||||
|
||||
|
||||
- [OpenStageControl4Bitwig](http://www.mossgrabers.de/Software/Bitwig/Bitwig.html)
|
||||
- https://www.youtube.com/watch?v=u-fgArpsHQQ
|
||||
- https://www.youtube.com/watch?v=RvEMlo72ynQ
|
||||
|
||||
|
||||
## Others
|
||||
|
||||
- [Manaberry's UI](https://vi-control.net/community/threads/open-stage-control-tutorial-an-alternative-to-lemur-and-touchosc.72643/)
|
||||

|
||||
189
resources/docs/docs/getting-started.md
Normal file
189
resources/docs/docs/getting-started.md
Normal file
|
|
@ -0,0 +1,189 @@
|
|||
# Getting started
|
||||
|
||||
!!! tip ""
|
||||
Prebuilt binaries for Linux, Windows and OS X can be found on the [release](https://github.com/jean-emmanuel/open-stage-control/releases) page.
|
||||
|
||||
## Supported platforms
|
||||
|
||||
Open Stage Control is a *desktop* server application. It runs on all [platforms supported by Electron](https://electron.atom.io/docs/tutorial/supported-platforms/) or [Node](https://nodejs.org/en/) (in headless mode only, see [Running without Electron](#running-without-electron)). Any device running a compatible browser can connect to the server :
|
||||
|
||||
- Chrome/Chromium version `50` or later (Linux, MacOS, Windows, Android, etc)
|
||||
- iOS version `9.3` or later
|
||||
|
||||
!!! tip "Android / iOS native app ?"
|
||||
There is no native mobile application. The server's url can be added to the home screen to launch the interface in fullscreen.
|
||||
|
||||
|
||||
## Options
|
||||
|
||||
Below are the available command-line options. Note that when running without any command-line switch (ie from a file browser), a launcher window will spawn to help setting them.
|
||||
|
||||
!!! tip ""
|
||||
Preferences are stored in the user's home folder in a file named `.open-stage-control` (hidden under Linux / macOS)
|
||||
|
||||
|| Option | Description |
|
||||
|---||---|
|
||||
| `-s` | `--send` | default targets for all widgets (ip:port pairs)|
|
||||
| `-l` | `--load` | session file to load |
|
||||
| | `--state` | state file to load (osc messages will be sent, unless there are other clients connected) |
|
||||
| `-b` | `--blank` | load a blank session and start the editor |
|
||||
| `-c` | `--custom-module` | custom module file to load (custom options can be passed after the filename) |
|
||||
| `-p` | `--port` | http port of the server (default to 8080) |
|
||||
| `-o` | `--osc-port` | osc input port (default to --port) |
|
||||
| | `--tcp-port` | tcp server input port |
|
||||
| | `--tcp-targets` | tcp servers to connect to (ip:port pairs), does not susbtitute for --send |
|
||||
| `-m` | `--midi` | midi router settings |
|
||||
| `-d` | `--debug` | log received osc messages in the console |
|
||||
| `-n` | `--no-gui` | disable default gui |
|
||||
| `-g` | `--gui-only` | app server's url. If true, local port (--port) is used |
|
||||
| `-t` | `--theme` | theme name or path (mutliple values allowed) see [theming](/docs/theming/) |
|
||||
| `-e` | `--examples` | list examples instead of recent sessions |
|
||||
| | `--url-options` | [url options](/docs/url-options) (opt=value pairs) |
|
||||
| |`--disable-vsync` | disable gui's vertical synchronization |
|
||||
| |`--disable-gpu` | disable hardware acceleration |
|
||||
| |`--read-only` | disable session editing and session history changes |
|
||||
| |`--remote-saving` | disable remote session saving for hosts that don\'t match the regular expresion |
|
||||
| |`--instance-name` | used to differenciate multiple instances in a zeroconf network |
|
||||
| |`--fullscreen` | launch in fullscreen mode (only affects the default gui, F11 to exit) |
|
||||
|
||||
Command-line only :
|
||||
|
||||
|| Option | Description |
|
||||
|---||---|
|
||||
| `-h` | `--help` | print available options |
|
||||
| `-v` | `--version` | print version number |
|
||||
|
||||
**Examples**
|
||||
|
||||
```bash
|
||||
open-stage-control --send 127.0.0.1:5555 127.0.0.1:6666 --port 7777
|
||||
```
|
||||
|
||||
This will create an app listening on port 7777 for synchronization messages, and sending its widgets state changes to ports 5555 and 6666.
|
||||
|
||||
```bash
|
||||
open-stage-control --no-gui --load path/to/session.js --port 9999
|
||||
```
|
||||
|
||||
This will create a headless app available through http on port 9999 with session.js loaded automatically.
|
||||
|
||||
!!! tip "What about HTTPS ?"
|
||||
Security is out of the app's scope. If you are concerned about safety, using a private - protected - network should be enough.
|
||||
|
||||
|
||||
## Run from sources
|
||||
|
||||
Running the app from the sources slightly differs from using built binaries : we'll build and launch the app with npm (node package manager).
|
||||
|
||||
**1. Requirements**
|
||||
|
||||
- [Node.js >= 4.8](https://nodejs.org/en/#download)
|
||||
- [git](https://git-scm.com/downloads)
|
||||
|
||||
**2. Download sources**
|
||||
|
||||
```bash
|
||||
git clone https://github.com/jean-emmanuel/open-stage-control
|
||||
cd open-stage-control/
|
||||
# uncomment next line if you want the latest release
|
||||
# instead of the current development version
|
||||
# git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
|
||||
npm install
|
||||
npm run build
|
||||
```
|
||||
|
||||
!!! note "Updating from sources"
|
||||
```bash
|
||||
git pull
|
||||
npm install
|
||||
npm run build
|
||||
```
|
||||
|
||||
**3. Run !**
|
||||
|
||||
```bash
|
||||
npm start [ -- options]
|
||||
```
|
||||
|
||||
!!! note ""
|
||||
A double hyphen (`--`) is used here to tell npm that the options are to be passed to the app.
|
||||
|
||||
|
||||
## Build from sources
|
||||
|
||||
**1. Requirements**
|
||||
|
||||
- [Node.js >= 4.8](https://nodejs.org/en/#download)
|
||||
- [git](https://git-scm.com/downloads)
|
||||
|
||||
**2. Download sources & build package**
|
||||
|
||||
```bash
|
||||
git clone https://github.com/jean-emmanuel/open-stage-control
|
||||
cd open-stage-control/
|
||||
# uncomment next line if you want the latest release
|
||||
# instead of the current development version
|
||||
# git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
|
||||
npm install
|
||||
|
||||
# TARGET_PLATFORM can be linux, win32 (windows) or darwin (os x)
|
||||
export PLATFORM=TARGET_PLATFORM
|
||||
# TARGET_ARCH can be ia32, x64 or armv7l
|
||||
export ARCH=TARGET_ARCH
|
||||
|
||||
npm run build
|
||||
|
||||
npm run package
|
||||
|
||||
# For raspberry-pi / armv7l, run this instead
|
||||
npm run package-rpi
|
||||
|
||||
# Do one of the following if you want a deb package for debian/ubuntu
|
||||
npm run deb32
|
||||
npm run deb64
|
||||
npm run debarm
|
||||
```
|
||||
|
||||
This will build the app in `dist/open-stage-control-PLATFORM-ARCH`.
|
||||
|
||||
!!! note ""
|
||||
Building the app for windows from a linux system requires wine to be installed.*
|
||||
|
||||
## Running in a headless context
|
||||
|
||||
Electron, Open Stage Control's engine, is based on chromium and can't run out of the box without a display server. However, using a virtual framebuffer does the trick. Detailed instructions can be found in Electron's [documentation](http://electron.atom.io/docs/tutorial/testing-on-headless-ci/).
|
||||
|
||||
In short: install [xvfb](https://en.wikipedia.org/wiki/Xvfb) and prepend your command with `xvfb-run`:
|
||||
|
||||
```bash
|
||||
xvfb-run open-stage-control -n
|
||||
```
|
||||
|
||||
## Running without Electron
|
||||
|
||||
It is possible to run the server in headless mode without Electron using [node](https://nodejs.org/en/download/package-manager/) (v6 or higher) :
|
||||
|
||||
```bash
|
||||
node /path/to/packaged/open-stage-control/resources/app/ -n
|
||||
node /path/to/sources/open-stage-control/app/ -n
|
||||
```
|
||||
|
||||
Or using the precompilled binaries for node:
|
||||
|
||||
```bash
|
||||
node /path/to/packaged/open-stage-control-node/ -n
|
||||
```
|
||||
|
||||
To build the app for node only from sources:
|
||||
|
||||
```bash
|
||||
|
||||
# git clone, etc...
|
||||
|
||||
npm install
|
||||
|
||||
npm run build
|
||||
|
||||
npm run package-node
|
||||
|
||||
```
|
||||
37
resources/docs/docs/interface.md
Normal file
37
resources/docs/docs/interface.md
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# User interface
|
||||
|
||||
## Sidepanel
|
||||
|
||||
The sidepanel can be opened by clicking the navigation icon in the upper right corner or by pressing F10.
|
||||
|
||||
### State management
|
||||
|
||||
- Store: save the state of all widgets in the temporary slot
|
||||
- Recall: reload saved state from the temporary slot
|
||||
- Send All: make all widgets send their current value
|
||||
- Export: save the state of all widgets to a `.preset` file
|
||||
- Import: load a state from a `.preset` file
|
||||
|
||||
### Traversing gestures
|
||||
|
||||
By default, a dragging gesture can only affect the widget it started on. Enabling traversing gesture does two things:
|
||||
|
||||
- make gestures affect every widgets no matter where they started
|
||||
- make sliders-like widgets respond as if their `snap` option is enabled
|
||||
|
||||
When traversing gestures are set to "Smart", these will only affect widgets that have the same type as the first touched widget.
|
||||
|
||||
### Editor
|
||||
|
||||
See [Editing sessions](/docs/editing-sessions.md).
|
||||
|
||||
## Interactions
|
||||
|
||||
| Mouse | Touch | Description |
|
||||
|---|---|---|
|
||||
| Click | Tap | Handled at pressing time, not releasing. |
|
||||
| Double Click | Double Tap | Some widgets handle double click / tap events. |
|
||||
| Right-click | Long touch | Widgets that have only one value input will give focus to it when receiving this event. When the editor is enabled, Right-click / Long touch spawns the editor's context menu. |
|
||||
| Drag | Drag | The widgets respond to mouse and touch drag gestures with a 1:1 precision ratio. |
|
||||
| `Ctrl` + Drag | | Holding the `Ctrl` key while dragging with the mouse increases the gesture's precision by 10.|
|
||||
| | Two-fingers drag (single target) | Using two on a single-touch target increases the gesture's precision by 10. |
|
||||
92
resources/docs/docs/midi.md
Normal file
92
resources/docs/docs/midi.md
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
## Requirements
|
||||
|
||||
MIDI support requires additional software to be installed on the server's system:
|
||||
|
||||
- python (2 / 3)
|
||||
- python package [rtmidi](https://pypi.python.org/pypi/rtmidi) (version 2.3.2)
|
||||
|
||||
!!! note "Why an additionnal dependency ?"
|
||||
Providing cross-platform MIDI support is not trivial, as it requires OS-specific compilation that cannot be automated within Open Stage Control's current packaging workflow. Using a python addon seems to be the best compromise so far : the core app remains easy to build, and the extra dependency is easy to install.
|
||||
|
||||
## Setup
|
||||
|
||||
When running the app, the `-m / --midi` switch must be set; it accepts the following options (separated by spaces):
|
||||
|
||||
- `list`: prints the available MIDI ports to the console; numbers in the first column may be used for `input`/`output` definition below
|
||||
- `device_name:input,output`: connect to midi ports `input` and `output`; osc messages sent to target `midi:device_name` will be processed as midi events; Multiple devices can be declared
|
||||
|
||||
*Linux only:*
|
||||
|
||||
- `device_name:virtual`: creates a virtual midi device with one input port and one output port
|
||||
- `jack`: use JACK MIDI instead of ALSA (add as extra parameter). `rtmidi` must be compiled with `--jack-midi` flag for this to work.
|
||||
|
||||
## Widget settings
|
||||
|
||||
In order to send MIDI messages, a widget must have at least one `target` formatted as follows:
|
||||
|
||||
`midi:device_name` (where `device_name` is one of the declared midi devices)
|
||||
|
||||
## Supported MIDI messages
|
||||
|
||||
!!! warning ""
|
||||
Define static argument values using the [`preArgs`](/docs/widgets-reference/#preArgs) option in order to complete the respective MIDI message.
|
||||
|
||||
|
||||
|
||||
### `/note channel note velocity`
|
||||
|
||||
NoteOn event or noteOff if velocity equals `0`.
|
||||
|
||||
- `channel`: integer between 1 and 16
|
||||
- `note`: integer between 0 and 127
|
||||
- `velocity`: integer between 0 and 127
|
||||
|
||||
Example:
|
||||
|
||||
A push button might be configured as follows in order to send a MIDI note whose velocity is defined by the button's on/off value:
|
||||
|
||||
- `address`: /note
|
||||
- `preArgs`: [1, 60] (for MIDI channel 1, and note 60 / C3)
|
||||
- `on`: 100 (for noteOn velocity of 100 on button push)
|
||||
- `off`: 0 (to send a noteOff on button release)
|
||||
- `target`: ["midi:device_name"] (where device_name is one of the declared midi devices defined during [setup](#setup))
|
||||
|
||||
### `/control channel cc value`
|
||||
|
||||
Control change event.
|
||||
|
||||
- `channel`: integer between 1 and 16
|
||||
- `cc`: integer between 0 and 127
|
||||
- `value`: integer between 0 and 127
|
||||
|
||||
Example:
|
||||
|
||||
A fader might be configured as follows in order to send a MIDI control message (a volume control in this example):
|
||||
|
||||
- `address`: /control
|
||||
- `pre-args`: [1, 7] (MIDI channel 1, control number 7 generally used as volume control)
|
||||
- `range`: {"min": 0, "max": 127} (MIDI values are encoded in this range)
|
||||
- `target`: ["midi:device_name"]
|
||||
|
||||
### `/program channel program`
|
||||
|
||||
Program change event.
|
||||
|
||||
- `channel`: integer between 1 and 16
|
||||
- `program`: integer between 0 and 127
|
||||
|
||||
### `/pitch channel pitch`
|
||||
|
||||
PitchWheel event.
|
||||
|
||||
- `channel`: integer between 1 and 16
|
||||
- `pitch`: integer between 0 and 16383
|
||||
|
||||
### `/sysex msg v1 .. vN`
|
||||
|
||||
System exclusive message.
|
||||
|
||||
- `msg`: hexadecimal sysex data string of the form `f0 ... f7`. You may include placeholders of the form `nn` which will be replaced by `v1, .., vN` respectively.
|
||||
- `v1, .., vN`: values encoded as hexadecimal data strings to include in `msg`. Most probably, you will need to sepcify a [custom module](/docs/custom-module/) in order to convert numeric widget values into the required hexadecimal format. In general, this conversion will be different for each manufacturer / device.
|
||||
|
||||
For a very simple example, refer to session 'sysex.json' found in the application's sub folder 'resources/app/examples/'. Please remember to adjust the button's `target` to the `device_name` used in your MIDI setup.
|
||||
114
resources/docs/docs/remote-control.md
Normal file
114
resources/docs/docs/remote-control.md
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
# Remote control
|
||||
|
||||
All widgets that send osc messages respond to the same messages. Additionnaly, Open Stage Control responds to some general osc commands.
|
||||
|
||||
|
||||
## `/EDIT id options`
|
||||
|
||||
|
||||
Apply a set of options to an existing widget by replacing the old ones with the new ones.
|
||||
|
||||
|
||||
- `id`: `string`, widget's `id`
|
||||
- `options`: `string`, [JSON5](https://github.com/json5/json5) stringified object defining the new properties to merge
|
||||
- example: `{"label":"New Label", "color":"red"}`
|
||||
|
||||
!!! warning ""
|
||||
Editing a widget can be cpu expensive, hence updating the UI continuously is not a good idea
|
||||
|
||||
## `/EDIT/MERGE id options`
|
||||
|
||||
Apply a set of options to an existing widget by merging them to the widget's options.
|
||||
|
||||
|
||||
- `id`: `string`, widget's `id`
|
||||
- `options`: `string`, [JSON5](https://github.com/json5/json5) stringified object defining the new properties to merge
|
||||
- example: `{"label":"New Label", "color":"red"}`
|
||||
|
||||
!!! warning ""
|
||||
Editing a widget can be cpu expensive, hence updating the UI continuously is not a good idea
|
||||
|
||||
## `/EDIT/UNDO`
|
||||
|
||||
Undo editing action
|
||||
|
||||
## `/EDIT/REDO`
|
||||
|
||||
Redo editing action
|
||||
|
||||
## `/EDIT/GET target id`
|
||||
|
||||
Sends back a widget's data (JSON stringified object), including its children, to specified target.
|
||||
|
||||
- `target`: `string`, `ip:port` pair
|
||||
- `id`: `string`, widget's `id`
|
||||
|
||||
Returns `/EDIT/GET id data`
|
||||
|
||||
- `id`: `string`
|
||||
- `data`: `string`
|
||||
|
||||
## `/EDIT/GET target address preArg1 preArg2 ...`
|
||||
|
||||
Sends back a widget's data (JSON stringified object), including its children, to specified target.
|
||||
|
||||
- `target`: `string`, `ip:port` pair
|
||||
- `address`: `string`, widget's `address`
|
||||
- `preArg[1...]`: `*`, widget's `preArgs`
|
||||
|
||||
Returns `/EDIT/GET address preArg1 preArg2 ... data`
|
||||
|
||||
- `address`: `string`, widget's `address`
|
||||
- `preArg[1...]`: `*`, widget's `preArgs`
|
||||
- `data`: `string`
|
||||
|
||||
|
||||
## `/GET target id`
|
||||
|
||||
Sends back a widget's value to specified target.
|
||||
|
||||
- `target`: `string`, `ip:port` pair
|
||||
- `id`: `string`, widget's `id`
|
||||
|
||||
Returns `/GET id value`
|
||||
|
||||
- `id`: `string`
|
||||
- `value`: `*`
|
||||
|
||||
## `/GET target address preArg1 preArg2 ...`
|
||||
|
||||
Sends back a widget's value to specified target.
|
||||
|
||||
- `target`: `string`, `ip:port` pair
|
||||
- `address`: `string`, widget's `address`
|
||||
- `preArg[1...]`: `*`, widget's `preArgs`
|
||||
|
||||
Returns `/GET address preArg1 preArg2 ... value`
|
||||
|
||||
- `address`: `string`, widget's `address`
|
||||
- `preArg[1...]`: `*`, widget's `preArgs`
|
||||
- `value`: `*`
|
||||
|
||||
## `/GET/#`
|
||||
|
||||
Same as `/GET` but uses the widget's address instead of `/GET` to reply.
|
||||
|
||||
## `/SET target id value`
|
||||
|
||||
Set a widget's value as if it was interacted with from the interface. This is likely to make it send its value.
|
||||
|
||||
- `id`: `string`, widget's `id`
|
||||
- `value`: `*`, widget's new value
|
||||
|
||||
## `/SET address preArg1 preArg2 ... value`
|
||||
|
||||
Set a widget's value as if it was interacted with from the interface. This is likely to make it send its value.
|
||||
|
||||
- `address`: `string`, widget's `address`
|
||||
- `preArg[1...]`: `*`, widget's `preArgs`
|
||||
- `value`: `*`, widget's new value
|
||||
|
||||
|
||||
## `/TABS id id etc`
|
||||
|
||||
Open the tabs designated by the `id` parameters. The target tab link must be accesible (opening a tab located in a disabled tab won't work unless you specify the parent tab's `id` before; the safest way to go is to pass the whole tab tree to enable).
|
||||
44
resources/docs/docs/theming.md
Normal file
44
resources/docs/docs/theming.md
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
## Built-in themes
|
||||
|
||||
Themes can be loaded with the `--theme` option. Multiple themes can be combined. Built-in themes can be loaded using their name, custom theme files can be loaded using their path.
|
||||
|
||||
Available themes (full color scheme):
|
||||
|
||||
- `orange`: grey and orange theme
|
||||
- `light`: light and blue
|
||||
- `dark`: blue night theme
|
||||
|
||||
Available extensions (alternative visual settings)
|
||||
|
||||
- `flat`: remove 3d effects
|
||||
- `alt-buttons`: colorful active buttons
|
||||
- `responsive-fonts`: bigger texts for bigger screens
|
||||
|
||||
## Creating a custom theme
|
||||
|
||||
Creating a custom theme is as simple as writing a tiny css file that will override the default css variables defined in [default.scss](https://github.com/jean-emmanuel/open-stage-control/blob/master/src/browser/scss/themes/default.scss) :
|
||||
|
||||
```css
|
||||
:root {
|
||||
--color-accent:red;
|
||||
}
|
||||
```
|
||||
|
||||
This will change the default accent color to red. Variables can also be overridden for a specific subset of elements, for example :
|
||||
|
||||
```css
|
||||
.panel-container {
|
||||
--color-text:blue;
|
||||
}
|
||||
```
|
||||
|
||||
This will change the default text color to blue for all elements in panel widgets.
|
||||
|
||||
## Scss / autoreload
|
||||
|
||||
When running the app [from sources](/docs/getting-started), custom themes can be written in scss:
|
||||
|
||||
- the scss file must be located in `src/browser/scss/themes/`
|
||||
- run `npm run watch-css`
|
||||
|
||||
The theme will be watched and compiled automatically to a css file located in app/browser/themes/ (css files in this directory can be selected from the theme option by their name, without .css suffix). If the app is running on default http port, clients will reload the theme automatically.
|
||||
23
resources/docs/docs/url-options.md
Normal file
23
resources/docs/docs/url-options.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# URL Options
|
||||
|
||||
Client specific options can be set by adding query parameters to the server's url. One must prepend the url with a question mark (`?`) followed by `parameter=value` pairs separated with ampersands (`&`).
|
||||
|
||||
|
||||
| Option | Value | Default | Description |
|
||||
|----|----|----|----|
|
||||
| hdpi | 1 / 0 | 0 | enable high resolution canvas |
|
||||
| forceHdpi | number | 0 | force canvas scaling (ignore `hdpi`) |
|
||||
| doubletab | number | 375 | sets the double tap/click time thershold in milliseconds |
|
||||
| zoom | number | 1 | sets the initial zoom |
|
||||
| framerate | number | 60 | limit canvas drawing framerate |
|
||||
| lang | string | *system_default* | use a different language than the default if available (available languages: en, fr, ru) |
|
||||
|
||||
Example:
|
||||
|
||||
`http://server-ip:port?hdpi=1`
|
||||
|
||||
|
||||
!!! note ""
|
||||
When using the built-in client, url options can be set through the `--url-options` switch.
|
||||
|
||||
Example: `open-stage-control --url-options zoom=2 doubletap=200`
|
||||
488
resources/docs/docs/widgets-reference.md
Normal file
488
resources/docs/docs/widgets-reference.md
Normal file
|
|
@ -0,0 +1,488 @@
|
|||
|
||||
|
||||
## Generic properties
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 id="type">type<a class="headerlink" href="#type" title="Permanent link">¶</a></h4> | `string` | <code>"auto"</code> | |
|
||||
| <h4 id="id">id<a class="headerlink" href="#id" title="Permanent link">¶</a></h4> | `string` | <code>"auto"</code> | Widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages. |
|
||||
| <h4 id="linkId">linkId<a class="headerlink" href="#linkId" title="Permanent link">¶</a></h4> | `string`\|<br/>`array` | <code>""</code> | Widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages.<br/><br/>When prefixed with >>, the `linkId` will make the widget act as a master (sending but not receiving)<br/><br/>When prefixed with <<, the `linkId` will make the widget act as a slave (receiving but not sending) |
|
||||
| <h4 class="thead2" id="geometry">geometry<a class="headerlink" href="#geometry" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="left">left<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#left" title="Permanent link">¶</a></h4> | `number`\|<br/>`string` | <code>"auto"</code> | 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).<br/><br/>Otherwise, the widget will be absolutely positioned |
|
||||
| <h4 id="top">top<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#top" title="Permanent link">¶</a></h4> | `number`\|<br/>`percentage` | <code>"auto"</code> | 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).<br/><br/>Otherwise, the widget will be absolutely positioned |
|
||||
| <h4 id="width">width<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#width" title="Permanent link">¶</a></h4> | `number`\|<br/>`percentage` | <code>"auto"</code> | |
|
||||
| <h4 id="height">height<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#height" title="Permanent link">¶</a></h4> | `number`\|<br/>`percentage` | <code>"auto"</code> | |
|
||||
| <h4 class="thead2" id="style">style<a class="headerlink" href="#style" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="label">label<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#label" title="Permanent link">¶</a></h4> | `string`\|<br/>`boolean` | <code>"auto"</code> | Set to `false` to hide completely<br/><br/>Insert icons using the prefix ^ followed by the icon's name : ^play, ^pause, etc |
|
||||
| <h4 id="color">color<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#color" title="Permanent link">¶</a></h4> | `string` | <code>"auto"</code> | CSS color code. Set to "auto" to inherit from parent widget. |
|
||||
| <h4 id="css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#css" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | CSS rules |
|
||||
| <h4 class="thead2" id="value">value<a class="headerlink" href="#value" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="default">default<a class="headerlink" href="#default" title="Permanent link">¶</a></h4> | `*` | <code>""</code> | If set, the widget will be initialized with this value when the session is loaded. |
|
||||
| <h4 id="value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#value" title="Permanent link">¶</a></h4> | `*` | <code>""</code> | Define the widget's value depending on other widget's values / properties using property inheritance and property maths |
|
||||
| <h4 class="thead2" id="osc">osc<a class="headerlink" href="#osc" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="precision">precision<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#precision" title="Permanent link">¶</a></h4> | `integer`\|<br/>`string` | <code>2</code> | Defines the number of decimals to display and to send.<br/><br/>Set to `0` to send integers only.<br/><br/>Data type can be specified by appending a valid osc type tag to the precision value, for example : `3d` will make the widget send double precision numbers rounded to three decimals |
|
||||
| <h4 id="address">address<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#address" title="Permanent link">¶</a></h4> | `string` | <code>"auto"</code> | OSC address for sending messages, it must start with a / |
|
||||
| <h4 id="preArgs">preArgs<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#preArgs" title="Permanent link">¶</a></h4> | `*`\|<br/>`array` | <code>""</code> | A value or array of values that will be prepended to the OSC messages.<br/><br/>Values can be defined as objects if the osc type tag needs to be specified: `{type: "i", value: 1}` |
|
||||
| <h4 id="target">target<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#target" title="Permanent link">¶</a></h4> | `string`\|<br/>`array`\|<br/>`null` | <code>""</code> | This defines the targets of the widget's OSC messages<br/>- A `string` or `array` of strings formatted as follow: `ip:port` or `["ip:port"]`<br/>- If midi is enabled, targets can be `midi:device_name`<br/>- The special item `"self"` can be used to refer to the emitting client directly.<br/>- If no target is set, messages can still be sent if the server has default targets<br/>- The server's default targets can be bypassed by setting one of the items to `null` |
|
||||
| <h4 id="bypass">bypass<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#bypass" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to prevent the widget from sending any osc message |
|
||||
|
||||
## Sliders
|
||||
|
||||
### fader
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="fader_style">style<a class="headerlink" href="#fader_style" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="fader_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#fader_css" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--color-gauge: color;`<br/>- `--color-knob: color;`<br/>- `--color-pips: color;`<br/>- `--gauge-opacity: number;` |
|
||||
| <h4 class="thead2" id="fader_fader">fader<a class="headerlink" href="#fader_fader" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="fader_horizontal">horizontal<a class="headerlink" href="#fader_horizontal" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to display the fader horizontally |
|
||||
| <h4 id="fader_alignRight">alignRight<a class="headerlink" href="#fader_alignRight" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to invert the pip's and fader's position |
|
||||
| <h4 id="fader_pips">pips<a class="headerlink" href="#fader_pips" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
|
||||
| <h4 id="fader_input">input<a class="headerlink" href="#fader_input" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the built-in input |
|
||||
| <h4 id="fader_meter">meter<a class="headerlink" href="#fader_meter" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to true to display a vu-meter next in the fader<br/>- the meter's `id` will be the same as the widget's with `/meter` appended to it<br/>- the meter's `address` will be the same as the widget's with `/meter` appended to it |
|
||||
| <h4 id="fader_compact">compact<a class="headerlink" href="#fader_compact" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to display a compact alternative for the widget. Disables default mouse/touch focusing on the value display. |
|
||||
| <h4 id="fader_dashed">dashed<a class="headerlink" href="#fader_dashed" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to display a dashed gauge |
|
||||
| <h4 id="fader_snap">snap<a class="headerlink" href="#fader_snap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | 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 |
|
||||
| <h4 id="fader_spring">spring<a class="headerlink" href="#fader_spring" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its `default` value when released |
|
||||
| <h4 id="fader_doubleTap">doubleTap<a class="headerlink" href="#fader_doubleTap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to make the fader reset to its `default` value when receiving a double tap.<br/><br/>Can also be an osc address, in which case the widget will just send an osc message (`/<doubleTap> <preArgs>`) |
|
||||
| <h4 id="fader_range">range<a class="headerlink" href="#fader_range" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 1<br/>}</code> | Defines the breakpoints of the fader's scale:<br/>- keys can be percentages and/or `min` / `max`<br/>- values can be `number` or `object` if a custom label is needed<br/><br/>Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) |
|
||||
| <h4 id="fader_steps">steps<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#fader_steps" title="Permanent link">¶</a></h4> | `string`\|<br/>`number`\|<br/>`array` | <code>""</code> | Restricts the widget's value:<br/>- `auto`: use values defined in `range`<br/>- `number`: define a number of evenly spaced steps<br/>- `array`: use arbitrary values |
|
||||
| <h4 id="fader_logScale">logScale<a class="headerlink" href="#fader_logScale" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale |
|
||||
| <h4 id="fader_unit">unit<a class="headerlink" href="#fader_unit" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
|
||||
| <h4 id="fader_origin">origin<a class="headerlink" href="#fader_origin" title="Permanent link">¶</a></h4> | `number` | <code>"auto"</code> | Defines the starting point's value of the fader's gauge |
|
||||
| <h4 class="thead2" id="fader_osc">osc<a class="headerlink" href="#fader_osc" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="fader_touchAddress">touchAddress<a class="headerlink" href="#fader_touchAddress" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
|
||||
| <h4 id="fader_meterAddress">meterAddress<a class="headerlink" href="#fader_meterAddress" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | OSC address for the built-in meter |
|
||||
|
||||
### knob
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="knob_style">style<a class="headerlink" href="#knob_style" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="knob_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#knob_css" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--color-gauge: color;`<br/>- `--color-knob: color;`<br/>- `--color-pips: color;` |
|
||||
| <h4 class="thead2" id="knob_knob">knob<a class="headerlink" href="#knob_knob" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="knob_pips">pips<a class="headerlink" href="#knob_pips" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
|
||||
| <h4 id="knob_input">input<a class="headerlink" href="#knob_input" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the built-in input |
|
||||
| <h4 id="knob_dashed">dashed<a class="headerlink" href="#knob_dashed" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to display a dashed gauge |
|
||||
| <h4 id="knob_angle">angle<a class="headerlink" href="#knob_angle" title="Permanent link">¶</a></h4> | `number` | <code>270</code> | Defines the angle's width of the knob, in degrees |
|
||||
| <h4 id="knob_snap">snap<a class="headerlink" href="#knob_snap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | 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 |
|
||||
| <h4 id="knob_spring">spring<a class="headerlink" href="#knob_spring" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its `default` value when released |
|
||||
| <h4 id="knob_doubleTap">doubleTap<a class="headerlink" href="#knob_doubleTap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to make the knob reset to its `default` value when receiving a double tap.<br/><br/>Can also be an osc address, in which case the widget will just send an osc message (`/<doubleTap> <preArgs>`) |
|
||||
| <h4 id="knob_range">range<a class="headerlink" href="#knob_range" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 1<br/>}</code> | Defines the breakpoints of the fader's scale:<br/>- keys can be percentages and/or `min` / `max`<br/>- values can be `number` or `object` if a custom label is needed<br/><br/>Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) |
|
||||
| <h4 id="knob_steps">steps<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#knob_steps" title="Permanent link">¶</a></h4> | `string`\|<br/>`number`\|<br/>`array` | <code>""</code> | Restricts the widget's value:<br/>- `auto`: use values defined in `range`<br/>- `number`: define a number of evenly spaced steps<br/>- `array`: use arbitrary values |
|
||||
| <h4 id="knob_logScale">logScale<a class="headerlink" href="#knob_logScale" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale |
|
||||
| <h4 id="knob_unit">unit<a class="headerlink" href="#knob_unit" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
|
||||
| <h4 id="knob_origin">origin<a class="headerlink" href="#knob_origin" title="Permanent link">¶</a></h4> | `number` | <code>"auto"</code> | Defines the starting point's value of the knob's gauge |
|
||||
| <h4 class="thead2" id="knob_osc">osc<a class="headerlink" href="#knob_osc" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="knob_touchAddress">touchAddress<a class="headerlink" href="#knob_touchAddress" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
|
||||
|
||||
### encoder
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="encoder_encoder">encoder<a class="headerlink" href="#encoder_encoder" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="encoder_ticks">ticks<a class="headerlink" href="#encoder_ticks" title="Permanent link">¶</a></h4> | `number` | <code>"auto"</code> | defines the granularity / verbosity of the encoder (number of step for a 360° arc) |
|
||||
| <h4 id="encoder_back">back<a class="headerlink" href="#encoder_back" title="Permanent link">¶</a></h4> | `*` | <code>-1</code> | Defines which value is sent when rotating the encoder anticlockwise |
|
||||
| <h4 id="encoder_forth">forth<a class="headerlink" href="#encoder_forth" title="Permanent link">¶</a></h4> | `*` | <code>1</code> | Defines which value is sent when rotating the encoder clockwise |
|
||||
| <h4 id="encoder_release">release<a class="headerlink" href="#encoder_release" title="Permanent link">¶</a></h4> | `number` | <code>"auto"</code> | Defines which value is sent when releasing the encoder:<br/>- Set to `null` to send send no argument in the osc message<br/>- Can be an `object` if the type needs to be specified |
|
||||
| <h4 id="encoder_snap">snap<a class="headerlink" href="#encoder_snap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | 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 |
|
||||
| <h4 id="encoder_doubleTap">doubleTap<a class="headerlink" href="#encoder_doubleTap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to make the fader reset to its `default` value when receiving a double tap.<br/><br/>Can also be an osc address, in which case the widget will just send an osc message (`/<doubleTap> <preArgs>`) |
|
||||
| <h4 class="thead2" id="encoder_osc">osc<a class="headerlink" href="#encoder_osc" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="encoder_touchAddress">touchAddress<a class="headerlink" href="#encoder_touchAddress" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
|
||||
|
||||
### range
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="range_style">style<a class="headerlink" href="#range_style" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="range_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#range_css" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--color-gauge: color;`<br/>- `--color-knob: color;`<br/>- `--color-pips: color;`<br/>- `--gauge-opacity: number;` |
|
||||
| <h4 class="thead2" id="range_range">range<a class="headerlink" href="#range_range" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="range_range">range<a class="headerlink" href="#range_range" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 1<br/>}</code> | See fader's `range` |
|
||||
| <h4 id="range_horizontal">horizontal<a class="headerlink" href="#range_horizontal" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | See fader's `horizontal` |
|
||||
| <h4 id="range_alignRight">alignRight<a class="headerlink" href="#range_alignRight" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | See fader's `alignRight` |
|
||||
| <h4 id="range_input">input<a class="headerlink" href="#range_input" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | See fader's `input` |
|
||||
| <h4 id="range_compact">compact<a class="headerlink" href="#range_compact" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | See fader's `compact` |
|
||||
| <h4 id="range_pips">pips<a class="headerlink" href="#range_pips" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | See fader's `pips` |
|
||||
| <h4 id="range_snap">snap<a class="headerlink" href="#range_snap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | See fader's `snap` |
|
||||
| <h4 id="range_spring">spring<a class="headerlink" href="#range_spring" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | See fader's `spring` |
|
||||
| <h4 id="range_logScale">logScale<a class="headerlink" href="#range_logScale" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | See fader's `logScale` |
|
||||
| <h4 class="thead2" id="range_osc">osc<a class="headerlink" href="#range_osc" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="range_touchAddress">touchAddress<a class="headerlink" href="#range_touchAddress" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | See fader's `touchAddress` |
|
||||
| <h4 id="range_split">split<a class="headerlink" href="#range_split" title="Permanent link">¶</a></h4> | `boolean`\|<br/>`object` | <code>false</code> | Set to `true` to send separate osc messages for `low` and `high` handles. The `address` will be the same as the widget's with `/low` or `/high` appended to it<br/><br/>Can be set as an object to specify a different `address` : `['/osc_address_low', '/osc_address_high']`<br/><br/>Note: the widget will only respond to its original osc address, not to the splitted version |
|
||||
|
||||
## Buttons
|
||||
|
||||
### toggle
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="toggle_toggle">toggle<a class="headerlink" href="#toggle_toggle" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="toggle_doubleTap">doubleTap<a class="headerlink" href="#toggle_doubleTap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to make the button require a double tap to be toggled instead of a single tap |
|
||||
| <h4 id="toggle_led">led<a class="headerlink" href="#toggle_led" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to display the toggle's state with a led |
|
||||
| <h4 id="toggle_on">on<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#toggle_on" title="Permanent link">¶</a></h4> | `*` | <code>1</code> | Set to `null` to send send no argument in the osc message<br/><br/>Can be an `object` if the type needs to be specified (see preArgs) |
|
||||
| <h4 id="toggle_off">off<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#toggle_off" title="Permanent link">¶</a></h4> | `*` | <code>0</code> | Set to `null` to send send no argument in the osc message<br/><br/>Can be an `object` if the type needs to be specified (see preArgs) |
|
||||
|
||||
### push
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="push_push">push<a class="headerlink" href="#push_push" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="push_doubleTap">doubleTap<a class="headerlink" href="#push_doubleTap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to make the button require a double tap to be pushed instead of a single tap |
|
||||
| <h4 id="push_on">on<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#push_on" title="Permanent link">¶</a></h4> | `*` | <code>1</code> | Set to `null` to send send no argument in the osc message<br/><br/>Can be an `object` if the type needs to be specified (see preArgs) |
|
||||
| <h4 id="push_off">off<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#push_off" title="Permanent link">¶</a></h4> | `*` | <code>0</code> | Set to `null` to send send no argument in the osc message<br/><br/>Can be an `object` if the type needs to be specified (see preArgs) |
|
||||
| <h4 id="push_norelease">norelease<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#push_norelease" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to prevent sending any osc message when releasing the button |
|
||||
|
||||
### switch
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="switch_switch">switch<a class="headerlink" href="#switch_switch" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="switch_horizontal">horizontal<a class="headerlink" href="#switch_horizontal" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to display values horizontally |
|
||||
| <h4 id="switch_showValues">showValues<a class="headerlink" href="#switch_showValues" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | If values is an object, set to `true` to display both values and labels instead of labels only |
|
||||
| <h4 id="switch_values">values<a class="headerlink" href="#switch_values" title="Permanent link">¶</a></h4> | `array`\|<br/>`object` | <code>{<br/> "Value 1": 1,<br/> "Value 2": 2<br/>}</code> | `Array` of possible values to switch between : `[1,2,3]`<br/><br/>`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 |
|
||||
| <h4 id="switch_traversing">traversing<a class="headerlink" href="#switch_traversing" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to disable traversing gestures |
|
||||
|
||||
### dropdown
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="dropdown_dropdown">dropdown<a class="headerlink" href="#dropdown_dropdown" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="dropdown_values">values<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#dropdown_values" title="Permanent link">¶</a></h4> | `array`\|<br/>`object` | <code>{<br/> "Value 1": 1,<br/> "Value 2": 2<br/>}</code> | `Array` of possible values to switch between : `[1,2,3]`<br/><br/>`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<br/><br/>An empty option will always be prepended to values (sends an osc message without any value); it can be hidden by adding `option:first-child{display:none}` to the widget's `css` |
|
||||
|
||||
## Pads
|
||||
|
||||
### xy
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="xy_style">style<a class="headerlink" href="#xy_style" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="xy_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#xy_css" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--background: background;`: sets the dragging area's background<br/>- `--pips-color: color;`<br/>- `--pips-opacity: number;`<br/>- `--point-opacity: number;` |
|
||||
| <h4 class="thead2" id="xy_xy">xy<a class="headerlink" href="#xy_xy" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="xy_pointSize">pointSize<a class="headerlink" href="#xy_pointSize" title="Permanent link">¶</a></h4> | `integer` | <code>20</code> | Defines the points' size |
|
||||
| <h4 id="xy_snap">snap<a class="headerlink" href="#xy_snap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | By default, the points are dragged from their initial position.<br/><br/>If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates |
|
||||
| <h4 id="xy_spring">spring<a class="headerlink" href="#xy_spring" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its default value when released |
|
||||
| <h4 id="xy_pips">pips<a class="headerlink" href="#xy_pips" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
|
||||
| <h4 id="xy_rangeX">rangeX<a class="headerlink" href="#xy_rangeX" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 1<br/>}</code> | Defines the min and max values for the x axis |
|
||||
| <h4 id="xy_rangeY">rangeY<a class="headerlink" href="#xy_rangeY" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 1<br/>}</code> | Defines the min and max values for the y axis |
|
||||
| <h4 id="xy_logScaleX">logScaleX<a class="headerlink" href="#xy_logScaleX" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the x axis (log10) |
|
||||
| <h4 id="xy_logScaleY">logScaleY<a class="headerlink" href="#xy_logScaleY" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the y axis (log10) |
|
||||
| <h4 id="xy_input">input<a class="headerlink" href="#xy_input" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to false to hide the built-in input widget |
|
||||
| <h4 id="xy_doubleTap">doubleTap<a class="headerlink" href="#xy_doubleTap" title="Permanent link">¶</a></h4> | `boolean`\|<br/>`string` | <code>false</code> | Set to `true` to make the fader reset to its default value when receiving a double tap.<br/><br/>Can also be an osc address, which case the widget will just send an osc message: `/<doubleTap> <preArgs>` |
|
||||
| <h4 class="thead2" id="xy_osc">osc<a class="headerlink" href="#xy_osc" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="xy_touchAddress">touchAddress<a class="headerlink" href="#xy_touchAddress" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1`) |
|
||||
| <h4 id="xy_split">split<a class="headerlink" href="#xy_split" title="Permanent link">¶</a></h4> | `boolean`\|<br/>`object` | <code>false</code> | Set to `true` to send separate osc messages for each point's x and y axis. The address will be the same as the widget's with `/x` or `/y` appended to it<br/><br/>Can be set as an `object` to specify a different address : ['/osc_address_x', '/osc_address_y']<br/><br/>Note: the widget will only respond to its original osc address, not to the splitted version |
|
||||
|
||||
### rgb
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="rgb_rgb">rgb<a class="headerlink" href="#rgb_rgb" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="rgb_snap">snap<a class="headerlink" href="#rgb_snap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | By default, the points are dragged from their initial position.<br/><br/>If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates |
|
||||
| <h4 id="rgb_spring">spring<a class="headerlink" href="#rgb_spring" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its default value when released |
|
||||
| <h4 id="rgb_range">range<a class="headerlink" href="#rgb_range" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 255<br/>}</code> | Defines the widget's output scale. |
|
||||
| <h4 id="rgb_input">input<a class="headerlink" href="#rgb_input" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the built-in input widget |
|
||||
| <h4 id="rgb_alpha">alpha<a class="headerlink" href="#rgb_alpha" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to enable alpha channel |
|
||||
| <h4 class="thead2" id="rgb_osc">osc<a class="headerlink" href="#rgb_osc" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="rgb_split">split<a class="headerlink" href="#rgb_split" title="Permanent link">¶</a></h4> | `boolean`\|<br/>`object` | <code>false</code> | Set to `true` to send separate osc messages for for r and g & b. The address will be the same as the widget's with `/r`, `/g` or `/b` appended to it<br/><br/>Can be set as an `object` to specify a different address : `['/r', '/g', 'b']`<br/><br/>Note: the widget will only respond to its original osc address, not to the splitted version |
|
||||
|
||||
### multixy
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="multixy_style">style<a class="headerlink" href="#multixy_style" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="multixy_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#multixy_css" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--background: background;`: sets the dragging area's background<br/>- `--pips-color: color;`<br/>- `--pips-opacity: number;`<br/>- `--color-text: point-color;`<br/><br/>Pads can be targetted individually with the .pad-X selector (where X is the pad's index) |
|
||||
| <h4 class="thead2" id="multixy_multi xy">multi xy<a class="headerlink" href="#multixy_multi xy" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="multixy_points">points<a class="headerlink" href="#multixy_points" title="Permanent link">¶</a></h4> | `integer`\|<br/>`array` | <code>2</code> | Defines the number of points on the pad<br/><br/>Can be an array of strings that will be used as labels for the points (ex: `['A', 'B']`) |
|
||||
| <h4 class="thead2" id="multixy_xy">xy<a class="headerlink" href="#multixy_xy" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="multixy_pointSize">pointSize<a class="headerlink" href="#multixy_pointSize" title="Permanent link">¶</a></h4> | `integer` | <code>20</code> | Defines the points' size |
|
||||
| <h4 id="multixy_snap">snap<a class="headerlink" href="#multixy_snap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | By default, the points are dragged from their initial position.<br/><br/>If set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates |
|
||||
| <h4 id="multixy_spring">spring<a class="headerlink" href="#multixy_spring" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | When set to `true`, the widget will go back to its default value when released |
|
||||
| <h4 id="multixy_pips">pips<a class="headerlink" href="#multixy_pips" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
|
||||
| <h4 id="multixy_rangeX">rangeX<a class="headerlink" href="#multixy_rangeX" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 1<br/>}</code> | Defines the min and max values for the x axis |
|
||||
| <h4 id="multixy_rangeY">rangeY<a class="headerlink" href="#multixy_rangeY" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 1<br/>}</code> | Defines the min and max values for the y axis |
|
||||
| <h4 id="multixy_logScaleX">logScaleX<a class="headerlink" href="#multixy_logScaleX" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the x axis (log10) |
|
||||
| <h4 id="multixy_logScaleY">logScaleY<a class="headerlink" href="#multixy_logScaleY" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the y axis (log10) |
|
||||
| <h4 class="thead2" id="multixy_osc">osc<a class="headerlink" href="#multixy_osc" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="multixy_touchAddress">touchAddress<a class="headerlink" href="#multixy_touchAddress" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | OSC address for touched state messages: `/touchAddress [preArgs] 0/1` |
|
||||
| <h4 id="multixy_split">split<a class="headerlink" href="#multixy_split" title="Permanent link">¶</a></h4> | `boolean`\|<br/>`object` | <code>false</code> | Set to `true` to send separate osc messages for each point's x and y axis. The address will be the same as the widget's with `/N/x` or `/N/y` appended to it, where N is the point's id (or the point's label if points is an array)<br/><br/>Can be set as an `object` to specify a different address : `['/0/x', '/0/y', '/1/x', '/2/y']`<br/><br/>Note: the widget will only respond to its original osc address, not to the splitted version |
|
||||
|
||||
## Matrices
|
||||
|
||||
### matrix
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="matrix_matrix">matrix<a class="headerlink" href="#matrix_matrix" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="matrix_widgetType">widgetType<a class="headerlink" href="#matrix_widgetType" title="Permanent link">¶</a></h4> | `string` | <code>"toggle"</code> | Defines the type of the widgets in the matrix |
|
||||
| <h4 id="matrix_matrix">matrix<a class="headerlink" href="#matrix_matrix" title="Permanent link">¶</a></h4> | `array` | <code>[<br/> 2,<br/> 2<br/>]</code> | Defines the number of columns and and rows in the matrix |
|
||||
| <h4 id="matrix_start">start<a class="headerlink" href="#matrix_start" title="Permanent link">¶</a></h4> | `integer` | <code>0</code> | First widget's index |
|
||||
| <h4 id="matrix_spacing">spacing<a class="headerlink" href="#matrix_spacing" title="Permanent link">¶</a></h4> | `integer` | <code>0</code> | Adds space between widgets |
|
||||
| <h4 id="matrix_traversing">traversing<a class="headerlink" href="#matrix_traversing" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to disable traversing gestures |
|
||||
| <h4 id="matrix_border">border<a class="headerlink" href="#matrix_border" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to disables the widgets' borders |
|
||||
| <h4 id="matrix_props">props<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#matrix_props" title="Permanent link">¶</a></h4> | `object` | <code>{}</code> | Defines a set of property to override the widgets' defaults.<br/><br/>Formulas in this field are resolved with an extra variable representing each widget's index: `$`<br/><br/>Note: by default, the widgets inherit from the matrix' `id` and osc properties (`id` and `address` are appended with `/$`) |
|
||||
|
||||
### keyboard
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="keyboard_style">style<a class="headerlink" href="#keyboard_style" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="keyboard_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#keyboard_css" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--color-white:color;` (white keys color)<br/>- `--color-black:color;` (black keys color) |
|
||||
| <h4 class="thead2" id="keyboard_matrix">matrix<a class="headerlink" href="#keyboard_matrix" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="keyboard_keys">keys<a class="headerlink" href="#keyboard_keys" title="Permanent link">¶</a></h4> | `number` | <code>25</code> | Defines the number keys |
|
||||
| <h4 id="keyboard_start">start<a class="headerlink" href="#keyboard_start" title="Permanent link">¶</a></h4> | `number` | <code>48</code> | MIDI note number to start with (default is C4)<br/><br/>Standard keyboards settings are: `[25, 48]`, `[49, 36]`, `[61, 36]`, `[88, 21]` |
|
||||
| <h4 id="keyboard_traversing">traversing<a class="headerlink" href="#keyboard_traversing" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to disable traversing gestures |
|
||||
| <h4 id="keyboard_on">on<a class="headerlink" href="#keyboard_on" title="Permanent link">¶</a></h4> | `*` | <code>1</code> | Set to `null` to send send no argument in the osc message<br/><br/>Can be an `object` if the type needs to be specified (see preArgs) |
|
||||
| <h4 id="keyboard_off">off<a class="headerlink" href="#keyboard_off" title="Permanent link">¶</a></h4> | `*` | <code>0</code> | Set to `null` to send send no argument in the osc message<br/><br/>Can be an `object` if the type needs to be specified (see preArgs) |
|
||||
| <h4 class="thead2" id="keyboard_osc">osc<a class="headerlink" href="#keyboard_osc" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="keyboard_split">split<a class="headerlink" href="#keyboard_split" title="Permanent link">¶</a></h4> | `boolean`\|<br/>`string` | <code>false</code> | `true`: the widget's index will be appended to the matrice's osc address<br/><br/>`false`: it will be prepended to the widget's preArgs<br/><br/>`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 |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="patchbay_style">style<a class="headerlink" href="#patchbay_style" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="patchbay_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#patchbay_css" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | The inputs/ouputs width can be adjusted by using the `.nodes` selector:<br/><br/>`.nodes { width: 25% }` |
|
||||
| <h4 class="thead2" id="patchbay_patchbay">patchbay<a class="headerlink" href="#patchbay_patchbay" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="patchbay_inputs">inputs<a class="headerlink" href="#patchbay_inputs" title="Permanent link">¶</a></h4> | `array`\|<br/>`object` | <code>[<br/> "input_1",<br/> "input_2"<br/>]</code> | - `Array` of input names : `['input_1', 'input_2']`<br/>- `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<br/><br/><br/><br/>Patchbay inputs can be connected to one or more outputs and will send messages of the following form when they are connected/disconnected: <br/><br/>`/patchbay_address input_x output_x output_y etc`<br/><br/>If no output is connected to the input, the message will be `/patchbay_address input_x`<br/><br/>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` |
|
||||
| <h4 id="patchbay_outputs">outputs<a class="headerlink" href="#patchbay_outputs" title="Permanent link">¶</a></h4> | `array`\|<br/>`object` | <code>[<br/> "output_1",<br/> "output_2"<br/>]</code> | List of output values the inputs can connect to (see `inputs`). |
|
||||
|
||||
## Plots
|
||||
|
||||
### plot
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="plot_plot">plot<a class="headerlink" href="#plot_plot" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="plot_rangeX">rangeX<a class="headerlink" href="#plot_rangeX" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 1<br/>}</code> | Defines the min and max values for the x axis |
|
||||
| <h4 id="plot_rangeY">rangeY<a class="headerlink" href="#plot_rangeY" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 1<br/>}</code> | Defines the min and max values for the y axis |
|
||||
| <h4 id="plot_logScaleX">logScaleX<a class="headerlink" href="#plot_logScaleX" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the x axis (log10) |
|
||||
| <h4 id="plot_logScaleY">logScaleY<a class="headerlink" href="#plot_logScaleY" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the y axis (log10) |
|
||||
| <h4 id="plot_origin">origin<a class="headerlink" href="#plot_origin" title="Permanent link">¶</a></h4> | `number` | <code>"auto"</code> | Defines the y axis origin. Set to `false` to disable it. |
|
||||
| <h4 id="plot_dots">dots<a class="headerlink" href="#plot_dots" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | |
|
||||
| <h4 id="plot_bars">bars<a class="headerlink" href="#plot_bars" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing) |
|
||||
| <h4 id="plot_smooth">smooth<a class="headerlink" href="#plot_smooth" title="Permanent link">¶</a></h4> | `boolean`\|<br/>`number` | <code>false</code> | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
|
||||
| <h4 id="plot_pips">pips<a class="headerlink" href="#plot_pips" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
|
||||
| <h4 class="thead2" id="plot_value">value<a class="headerlink" href="#plot_value" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="plot_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#plot_value" title="Permanent link">¶</a></h4> | `array`\|<br/>`string` | <code>""</code> | - `Array` of `y` values<br/>- `Array` of `[x, y]` `array` values<br/>- `String` `array`<br/>- `String` `object` to update specific coordinates only: `{0:1, 4:0}` will change the 1st and 5th points' coordinates |
|
||||
|
||||
### eq
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="eq_eq">eq<a class="headerlink" href="#eq_eq" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="eq_pips">pips<a class="headerlink" href="#eq_pips" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to false to hide the scale |
|
||||
| <h4 id="eq_resolution">resolution<a class="headerlink" href="#eq_resolution" title="Permanent link">¶</a></h4> | `number` | <code>128</code> | Defines the number of points used to compute the frequency response |
|
||||
| <h4 id="eq_rangeY">rangeY<a class="headerlink" href="#eq_rangeY" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 1<br/>}</code> | Defines the min and max values for the y axis |
|
||||
| <h4 id="eq_origin">origin<a class="headerlink" href="#eq_origin" title="Permanent link">¶</a></h4> | `number`\|<br/>`boolean` | <code>"auto"</code> | Defines the y axis origin. Set to `false` to disable it |
|
||||
| <h4 id="eq_logScaleX">logScaleX<a class="headerlink" href="#eq_logScaleX" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the x axis (log10) |
|
||||
| <h4 id="eq_smooth">smooth<a class="headerlink" href="#eq_smooth" title="Permanent link">¶</a></h4> | `boolean`\|<br/>`number` | <code>false</code> | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
|
||||
|
||||
### visualizer
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="visualizer_visualizer">visualizer<a class="headerlink" href="#visualizer_visualizer" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="visualizer_duration">duration<a class="headerlink" href="#visualizer_duration" title="Permanent link">¶</a></h4> | `number` | <code>1</code> | Defines visualization duration in seconds |
|
||||
| <h4 id="visualizer_range">range<a class="headerlink" href="#visualizer_range" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 1<br/>}</code> | Defines the min and max values for the y axis |
|
||||
| <h4 id="visualizer_origin">origin<a class="headerlink" href="#visualizer_origin" title="Permanent link">¶</a></h4> | `number` | <code>"auto"</code> | Defines the y axis origin. Set to `false` to disable it |
|
||||
| <h4 id="visualizer_logScale">logScale<a class="headerlink" href="#visualizer_logScale" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to use logarithmic scale for the y axis |
|
||||
| <h4 id="visualizer_smooth">smooth<a class="headerlink" href="#visualizer_smooth" title="Permanent link">¶</a></h4> | `boolean`\|<br/>`number` | <code>false</code> | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
|
||||
| <h4 id="visualizer_pips">pips<a class="headerlink" href="#visualizer_pips" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to hide the scale |
|
||||
|
||||
### led
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="led_led">led<a class="headerlink" href="#led_led" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="led_range">range<a class="headerlink" href="#led_range" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 1<br/>}</code> | Value to led intensity mapping range |
|
||||
| <h4 id="led_logScale">logScale<a class="headerlink" href="#led_logScale" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to use a logarithmic mapping scale) |
|
||||
|
||||
### rgbled
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="rgbled_value">value<a class="headerlink" href="#rgbled_value" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="rgbled_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#rgbled_value" title="Permanent link">¶</a></h4> | `array`\|<br/>`string` | <code>""</code> | - `Array`: `[r, g, b]` (`r`, `g` and `b` between `0` and `255`)<br/>- `Array`: `[r, g, b, alpha]` (`alpha` between `0` and `255`)<br/>- `String`: CSS color |
|
||||
|
||||
### meter
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="meter_style">style<a class="headerlink" href="#meter_style" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="meter_css">css<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#meter_css" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Available CSS variables:<br/>- `--color-gauge: color;`<br/>- `--color-knob: color;`<br/>- `--color-pips: color;`<br/>- `--gauge-opacity: number;` |
|
||||
| <h4 class="thead2" id="meter_meter">meter<a class="headerlink" href="#meter_meter" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="meter_range">range<a class="headerlink" href="#meter_range" title="Permanent link">¶</a></h4> | `object` | <code>{<br/> "min": 0,<br/> "max": 1<br/>}</code> | See fader's `range` |
|
||||
| <h4 id="meter_logScale">logScale<a class="headerlink" href="#meter_logScale" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | See fader's `logScale` |
|
||||
| <h4 id="meter_origin">origin<a class="headerlink" href="#meter_origin" title="Permanent link">¶</a></h4> | `number` | <code>"auto"</code> | See fader's `origin` |
|
||||
| <h4 id="meter_unit">unit<a class="headerlink" href="#meter_unit" title="Permanent link">¶</a></h4> | `string` | <code>"auto"</code> | See fader's `unit` |
|
||||
| <h4 id="meter_alignRight">alignRight<a class="headerlink" href="#meter_alignRight" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | See fader's `alignRight` |
|
||||
| <h4 id="meter_horizontal">horizontal<a class="headerlink" href="#meter_horizontal" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | See fader's `horizontal` |
|
||||
| <h4 id="meter_pips">pips<a class="headerlink" href="#meter_pips" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | See fader's `pips` |
|
||||
| <h4 id="meter_dashed">dashed<a class="headerlink" href="#meter_dashed" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | See fader's `dashed` |
|
||||
| <h4 id="meter_gradient">gradient<a class="headerlink" href="#meter_gradient" title="Permanent link">¶</a></h4> | `array`\|<br/>`object` | <code>[]</code> | When set, the meter's gauge will be filled with a linear color gradient<br/>- each item must be a CSS color string.<br/>- as an `object`: each key must be a number between 0 and 1<br/>- each item must be a CSS color string.<br/><br/>Examples: `['blue', 'red']`, {'0': 'blue', '0.9': 'blue', '1': 'red'} |
|
||||
|
||||
### text
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="text_text">text<a class="headerlink" href="#text_text" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="text_vertical">vertical<a class="headerlink" href="#text_vertical" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to display the text vertically |
|
||||
| <h4 id="text_wrap">wrap<a class="headerlink" href="#text_wrap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to wrap long lines automatically.<br/><br/>This will not break overflowing words by default, word-breaking can be enabled by adding `word-break: break-all;` to the `css` property |
|
||||
| <h4 id="text_align">align<a class="headerlink" href="#text_align" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Set to `left` or `right` to change text alignment (otherwise center) |
|
||||
|
||||
### image
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="image_image">image<a class="headerlink" href="#image_image" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="image_size">size<a class="headerlink" href="#image_size" title="Permanent link">¶</a></h4> | `string` | <code>"cover"</code> | CSS background-size |
|
||||
| <h4 id="image_position">position<a class="headerlink" href="#image_position" title="Permanent link">¶</a></h4> | `string` | <code>"center"</code> | CSS background-position |
|
||||
| <h4 id="image_repeat">repeat<a class="headerlink" href="#image_repeat" title="Permanent link">¶</a></h4> | `string` | <code>"no-repeat"</code> | CSS background-repeat |
|
||||
| <h4 id="image_border">border<a class="headerlink" href="#image_border" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to disable the borders and background-color |
|
||||
| <h4 id="image_cache">cache<a class="headerlink" href="#image_cache" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to false to disable image caching (forces file reload when updating or editing the widget).<br/><br/>When true, sending `reload` to the widget reloads its image without changing its value |
|
||||
| <h4 class="thead2" id="image_value">value<a class="headerlink" href="#image_value" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="image_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#image_value" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | - File `url` or `absolute path`<br/>- Base64 encoded image : `data:image/...` |
|
||||
|
||||
### svg
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="svg_svg">svg<a class="headerlink" href="#svg_svg" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="svg_svg">svg<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#svg_svg" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Svg xml definition:<br/>- will be wrapped in a `< svg />` element<br/>- `<path>` commands support a special percent notation (`%x` and `%y`) |
|
||||
|
||||
### frame
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="frame_style">style<a class="headerlink" href="#frame_style" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="frame_label">label<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#frame_label" title="Permanent link">¶</a></h4> | `string`\|<br/>`boolean` | <code>"auto"</code> | Set to `false` to hide completely<br/><br/>Insert icons using the prefix ^ followed by the icon's name : ^play, ^pause, etc<br/><br/>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 |
|
||||
| <h4 class="thead2" id="frame_frame">frame<a class="headerlink" href="#frame_frame" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="frame_border">border<a class="headerlink" href="#frame_border" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to disable the borders and background-color |
|
||||
| <h4 class="thead2" id="frame_value">value<a class="headerlink" href="#frame_value" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="frame_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#frame_value" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | 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) |
|
||||
|
||||
## Containers
|
||||
|
||||
### panel
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="panel_panel">panel<a class="headerlink" href="#panel_panel" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="panel_scroll">scroll<a class="headerlink" href="#panel_scroll" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to disable scrollbars |
|
||||
| <h4 id="panel_border">border<a class="headerlink" href="#panel_border" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | By default, widgets in panels/strip have their border disabled, except for panels and strips. Set to `false` to apply this rule to the panel too |
|
||||
| <h4 class="thead2" id="panel_value">value<a class="headerlink" href="#panel_value" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="panel_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#panel_value" title="Permanent link">¶</a></h4> | `integer` | <code>""</code> | Defines currently opened tab in the widget<br/><br/>A tab can be opened only by setting its parent's value |
|
||||
| <h4 class="thead2" id="panel_children">children<a class="headerlink" href="#panel_children" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="panel_variables">variables<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#panel_variables" title="Permanent link">¶</a></h4> | `*` | <code>"@{parent.variables}"</code> | Defines one or more arbitrary variables that can be inherited by children widgets |
|
||||
| <h4 id="panel_widgets">widgets<a class="headerlink" href="#panel_widgets" title="Permanent link">¶</a></h4> | `array` | <code>[]</code> | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. |
|
||||
| <h4 id="panel_tabs">tabs<a class="headerlink" href="#panel_tabs" title="Permanent link">¶</a></h4> | `array` | <code>[]</code> | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
|
||||
|
||||
### strip
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="strip_strip">strip<a class="headerlink" href="#strip_strip" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="strip_scroll">scroll<a class="headerlink" href="#strip_scroll" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to disable scrollbars |
|
||||
| <h4 id="strip_horizontal">horizontal<a class="headerlink" href="#strip_horizontal" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to display widgets horizontally |
|
||||
| <h4 id="strip_stretch">stretch<a class="headerlink" href="#strip_stretch" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to stretch widgets evenly |
|
||||
| <h4 id="strip_border">border<a class="headerlink" href="#strip_border" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | By default, widgets in panels/strip have their border disabled, except for panels and strips. Set to `false` to apply this rule to the panel too |
|
||||
| <h4 id="strip_spacing">spacing<a class="headerlink" href="#strip_spacing" title="Permanent link">¶</a></h4> | `integer`\|<br/>`percentage` | <code>0</code> | Adds space between widgets. Percents are always relative to the strips width |
|
||||
| <h4 class="thead2" id="strip_children">children<a class="headerlink" href="#strip_children" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="strip_variables">variables<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#strip_variables" title="Permanent link">¶</a></h4> | `*` | <code>"@{parent.variables}"</code> | Defines one or more arbitrary variables that can be inherited by children widgets |
|
||||
| <h4 id="strip_widgets">widgets<a class="headerlink" href="#strip_widgets" title="Permanent link">¶</a></h4> | `array` | <code>[]</code> | Each element of the array must be a widget object<br/>- By default, children widgets that don't have an explicit `width`/`height` set will be shrinked to respect the sizes specified by others<br/>- Adding `flex:1;` to a children's `css` will give it the ability the fill the remaining space<br/>- Multiple children can have a `flex:x;` css property (`x` will ponderate their expansion) |
|
||||
|
||||
### modal
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="modal_modal">modal<a class="headerlink" href="#modal_modal" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="modal_doubleTap">doubleTap<a class="headerlink" href="#modal_doubleTap" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to make the modal require a double tap to open instead of a single tap |
|
||||
| <h4 id="modal_popupLabel">popupLabel<a class="headerlink" href="#modal_popupLabel" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Alternative label for the modal popup |
|
||||
| <h4 id="modal_popupWidth">popupWidth<a class="headerlink" href="#modal_popupWidth" title="Permanent link">¶</a></h4> | `number`\|<br/>`percentage` | <code>"80%"</code> | Modal popup's size |
|
||||
| <h4 id="modal_popupHeight">popupHeight<a class="headerlink" href="#modal_popupHeight" title="Permanent link">¶</a></h4> | `number`\|<br/>`percentage` | <code>"80%"</code> | Modal popup's size |
|
||||
| <h4 id="modal_popupLeft">popupLeft<a class="headerlink" href="#modal_popupLeft" title="Permanent link">¶</a></h4> | `number`\|<br/>`percentage` | <code>"auto"</code> | Modal popup's position |
|
||||
| <h4 id="modal_popupTop">popupTop<a class="headerlink" href="#modal_popupTop" title="Permanent link">¶</a></h4> | `number`\|<br/>`percentage` | <code>"auto"</code> | Modal popup's position |
|
||||
| <h4 class="thead2" id="modal_value">value<a class="headerlink" href="#modal_value" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="modal_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#modal_value" title="Permanent link">¶</a></h4> | `integer` | <code>""</code> | Defines the modal's state:`0` for closed, `1` for opened |
|
||||
| <h4 class="thead2" id="modal_children">children<a class="headerlink" href="#modal_children" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="modal_variables">variables<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#modal_variables" title="Permanent link">¶</a></h4> | `*` | <code>"@{parent.variables}"</code> | Defines one or more arbitrary variables that can be inherited by children widgets |
|
||||
| <h4 id="modal_widgets">widgets<a class="headerlink" href="#modal_widgets" title="Permanent link">¶</a></h4> | `array` | <code>[]</code> | Each element of the array must be a widget object |
|
||||
|
||||
### clone
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="clone_clone">clone<a class="headerlink" href="#clone_clone" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="clone_widgetId">widgetId<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#clone_widgetId" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | `id` of the widget to clone |
|
||||
| <h4 class="thead2" id="clone_overrides">overrides<a class="headerlink" href="#clone_overrides" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="clone_props">props<a class="headerlink" href="#clone_props" title="Permanent link">¶</a></h4> | `object` | <code>{}</code> | Cloned widget's properties to override |
|
||||
|
||||
## Switchers
|
||||
|
||||
### switcher
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="switcher_switcher">switcher<a class="headerlink" href="#switcher_switcher" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="switcher_linkedWidgets">linkedWidgets<a class="headerlink" href="#switcher_linkedWidgets" title="Permanent link">¶</a></h4> | `string`\|<br/>`array` | <code>""</code> | - `String`: a widget's `id` whose state changes will be stored<br/>- `Array`: a list of widget `id` string |
|
||||
| <h4 id="switcher_horizontal">horizontal<a class="headerlink" href="#switcher_horizontal" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to display values horizontally |
|
||||
| <h4 id="switcher_values">values<a class="headerlink" href="#switcher_values" title="Permanent link">¶</a></h4> | `array`\|<br/>`object` | <code>{<br/> "Value 1": 1,<br/> "Value 2": 2<br/>}</code> | Each item represents a bank that stores the values from the widgets listed in `linkedWidgets`<br/>- `Array` of possible values to switch between : `[1,2,3]`<br/>- `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 |
|
||||
|
||||
### crossfader
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="crossfader_crossfader">crossfader<a class="headerlink" href="#crossfader_crossfader" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="crossfader_linkedWidgets">linkedWidgets<a class="headerlink" href="#crossfader_linkedWidgets" title="Permanent link">¶</a></h4> | `string`\|<br/>`array` | <code>""</code> | - `String`: a widget's `id` whose state changes will be stored<br/>- `Array`: a list of widget `id` string |
|
||||
| <h4 id="crossfader_horizontal">horizontal<a class="headerlink" href="#crossfader_horizontal" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to display values horizontally |
|
||||
|
||||
## Inputs
|
||||
|
||||
### input
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="input_input">input<a class="headerlink" href="#input_input" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="input_vertical">vertical<a class="headerlink" href="#input_vertical" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to display the text vertically |
|
||||
| <h4 id="input_align">align<a class="headerlink" href="#input_align" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Set to `left` or `right` to change text alignment (otherwise center) |
|
||||
| <h4 id="input_unit">unit<a class="headerlink" href="#input_unit" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Unit will be appended to the displayed widget's value (it doesn't affect osc messages) |
|
||||
| <h4 id="input_editable">editable<a class="headerlink" href="#input_editable" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to make the input non-editable |
|
||||
|
||||
### keys
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="keys_keys">keys<a class="headerlink" href="#keys_keys" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="keys_binding">binding<a class="headerlink" href="#keys_binding" title="Permanent link">¶</a></h4> | `string`\|<br/>`array` | <code>""</code> | Key combo `string` or `array` of strings (see <a href="https://github.com/RobertWHurst/KeyboardJS">KeyboardJS</a> documentation) |
|
||||
| <h4 id="keys_keydown">keydown<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#keys_keydown" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | 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:<br/>- `key`: pressed key name (usefull for handling multiple keys with a single keys widget, lowercased when referencing a character key)<br/>- `code`: pressed key code name (<a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code#Code_values" target="_blank">full list</a>)<br/>- `ctrl`: control key state<br/>- `alt`: alt key state<br/>- `shift`: shift key state<br/>- `super`: command/windows key state |
|
||||
| <h4 id="keys_keyup">keyup<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#keys_keyup" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | Same as `keydown`, but evaluated when releasing the key combo |
|
||||
| <h4 id="keys_repeat">repeat<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#keys_repeat" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Set to `false` to prevent keydown repeats when holding the key combo pressed |
|
||||
|
||||
### script
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="script_script">script<a class="headerlink" href="#script_script" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="script_condition">condition<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#script_condition" title="Permanent link">¶</a></h4> | `string` | <code>1</code> | When the widget receives a value, if this property return a falsy value, the script property won't be evaluated. If it's non-falsy, it will be evaluated normally. Formulas are given one extra variable in this context:<br/>- `value`: the value received by the widget |
|
||||
| <h4 id="script_script">script<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#script_script" title="Permanent link">¶</a></h4> | `string` | <code>""</code> | This property is evaluated each time the widget receives a value* if condition is non-falsy. Formulas are given extras variables in this context:<br/>- `value`: the value received by the widget<br/>- `send(target, address, arg1, arg2, ...)`: function for sending osc messages (ignores the script's targets and the server's defaults unless `target` is `false`; ignores the script's `preArgs`)<br/>- `set(id, value)`: function for setting a widget's value<br/><br/><br/><br/>* Note: `value` or `linkId` properties can be used to receive other widgets' values. The `value` property must actually change to trigger the execution, where linked widgets via `linkId` can submit the same value over and over and trigger the execution |
|
||||
|
||||
### gyroscope
|
||||
|
||||
| property | type |default | description |
|
||||
| --- | --- | --- | --- |
|
||||
| <h4 class="thead2" id="gyroscope_gyroscope">gyroscope<a class="headerlink" href="#gyroscope_gyroscope" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="gyroscope_frequency">frequency<a class="headerlink" href="#gyroscope_frequency" title="Permanent link">¶</a></h4> | `number` | <code>30</code> | Value update frequency (updates per seconds) |
|
||||
| <h4 id="gyroscope_normalize">normalize<a class="headerlink" href="#gyroscope_normalize" title="Permanent link">¶</a></h4> | `boolean` | <code>true</code> | Normalize gravity related values |
|
||||
| <h4 id="gyroscope_compass">compass<a class="headerlink" href="#gyroscope_compass" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to return the orientation values with respect to the actual north direction of the world instead of the head direction of the device |
|
||||
| <h4 id="gyroscope_screenAdjusted">screenAdjusted<a class="headerlink" href="#gyroscope_screenAdjusted" title="Permanent link">¶</a></h4> | `boolean` | <code>false</code> | Set to `true` to return screen adjusted values |
|
||||
| <h4 class="thead2" id="gyroscope_value">value<a class="headerlink" href="#gyroscope_value" title="Permanent link">¶</a></h4> ||||
|
||||
| <h4 id="gyroscope_value">value<i class="dynamic-prop-icon" title="dynamic"></i><a class="headerlink" href="#gyroscope_value" title="Permanent link">¶</a></h4> | `object` | <code>""</code> | The gyroscope's value is an object containing multiple values, which can be used by other widgets via the property maths syntax<br/>- `value.do.alpha`: deviceorientation event alpha<br/>- `value.do.beta`: deviceorientation event beta<br/>- `value.do.gamma`: deviceorientation event gamma<br/>- `value.do.absolute`: deviceorientation event absolute<br/>- `value.dm.x`: devicemotion event acceleration x<br/>- `value.dm.y`: devicemotion event acceleration y<br/>- `value.dm.z`: devicemotion event acceleration z<br/>- `value.dm.gx`: devicemotion event accelerationIncludingGravity x<br/>- `value.dm.gy`: devicemotion event accelerationIncludingGravity y<br/>- `value.dm.gz`: devicemotion event accelerationIncludingGravity z<br/>- `value.dm.alpha`: devicemotion event rotationRate alpha<br/>- `value.dm.beta`: devicemotion event rotationRate beta<br/>- `value.dm.gamma`: devicemotion event rotationRate gamma |
|
||||
|
||||
|
||||
<script>
|
||||
document.querySelectorAll('.thead2').forEach(function(item){
|
||||
item.classList.remove('thead2')
|
||||
item.closest('tr').classList.add('thead2')
|
||||
})
|
||||
</script>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue