diff --git a/resources/docs/docs/widgets-reference.md b/resources/docs/docs/widgets-reference.md index 46098d23..153b8559 100644 --- a/resources/docs/docs/widgets-reference.md +++ b/resources/docs/docs/widgets-reference.md @@ -54,7 +54,7 @@ |
false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position |
| false | When set to `true`, the widget will go back to its `default` value when released |
| false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.{
"min": 0,
"max": 1
} | Defines the breakpoints of the fader's scale:\{
"min": 0,
"max": 1
} | Defines the breakpoints of the fader's scale:false | Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm's base. |
| 1 | Defines the fader's sensitivity when `snap` is `false` |
| "" | Restricts the widget's value:false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position |
| false | When set to `true`, the widget will go back to its `default` value when released |
| false | Set to `true` to make the knob reset to its `default` value when receiving a double tap.{
"min": 0,
"max": 1
} | Defines the breakpoints of the fader's scale:\{
"min": 0,
"max": 1
} | Defines the breakpoints of the fader's scale:false | Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm's base. |
| 1 | Defines the knob's sensitivity when `snap` is `false` |
| "" | Restricts the widget's value:"" | Available CSS variables:{
"min": 0,
"max": 1
} | See fader's `range` |
+| \{
"min": 0,
"max": 1
} | See fader's `range` |
| false | See fader's `horizontal` |
| false | See fader's `alignRight` |
| true | See fader's `input` |
@@ -189,7 +189,7 @@
| false | Set to `true` to display values horizontally |
| false | If values is an object, set to `true` to display both values and labels instead of labels only |
-| {
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`\{
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`true | Set to `false` to disable traversing gestures |
@@ -203,7 +203,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
| {
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`\{
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`false | - If `circular` is `false`, set this to `true` for grid layoutfalse | Set to `true` to make the menu stay opened after mouse/touch release |
| false | Set to `true` to make the menu require a double tap to be opened instead of a single tap |
-| {
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`\{
"Value 1": 1,
"Value 2": 2
} | `Array` of possible values to switch between : `[1,2,3]`"" | `Array` of `number` defining the weights of each value in `values`false | By default, the points are dragged from their initial position.false | When set to `true`, the widget will go back to its default value when released |
| true | Set to `false` to hide the scale |
-| {
"min": 0,
"max": 1
} | Defines the min and max values for the x axis |
-| {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
+| \{
"min": 0,
"max": 1
} | Defines the min and max values for the x axis |
+| \{
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
| false | Set to `true` to use logarithmic scale for the x axis (base 10). Set to a `number` to define the logarithm's base. |
| false | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. |
| true | Set to false to hide the built-in input widget |
@@ -268,7 +268,7 @@
| false | By default, the points are dragged from their initial position.false | When set to `true`, the widget will go back to its default value when released |
-| {
"min": 0,
"max": 255
} | Defines the widget's output scale. |
+| \{
"min": 0,
"max": 255
} | Defines the widget's output scale. |
| true | Set to `false` to hide the built-in input widget |
| false | Set to `true` to enable alpha channel |
| false | By default, the points are dragged from their initial position.false | When set to `true`, the widget will go back to its default value when released |
| true | Set to `false` to hide the scale |
-| {
"min": 0,
"max": 1
} | Defines the min and max values for the x axis |
-| {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
+| \{
"min": 0,
"max": 1
} | Defines the min and max values for the x axis |
+| \{
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
| false | Set to `true` to use logarithmic scale for the x axis (base 10). Set to a `number` to define the logarithm's base. |
| false | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. |
| 1 | Defines the pad's sensitivity when `snap` is `false` |
@@ -321,7 +321,7 @@
| 0 | Adds space between widgets |
| true | Set to `false` to disable traversing gestures |
| true | Set to `false` to disables the widgets' borders |
-| {} | Defines a set of property to override the widgets' defaults.\{} | Defines a set of property to override the widgets' defaults.{
"min": 0,
"max": 1
} | Defines the min and max values for the x axis |
-| {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
+| \{
"min": 0,
"max": 1
} | Defines the min and max values for the x axis |
+| \{
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
| false | Set to `true` to use logarithmic scale for the x axis (base 10). Set to a `number` to define the logarithm's base. |
| false | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. |
| "auto" | Defines the y axis origin. Set to `false` to disable it. |
@@ -399,7 +399,7 @@
| true | Set to false to hide the scale |
| 128 | Defines the number of points used to compute the frequency response |
-| {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
+| \{
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
| "auto" | Defines the y axis origin. Set to `false` to disable it |
| false | Set to `true` to use logarithmic scale for the x axis (base 10). Set to a `number` to define the logarithm's base. |
| false | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
@@ -418,7 +418,7 @@
| --- | --- | --- | --- |
| 1 | Defines visualization duration in seconds |
-| {
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
+| \{
"min": 0,
"max": 1
} | Defines the min and max values for the y axis |
| "auto" | Defines the y axis origin. Set to `false` to disable it |
| false | Set to `true` to use logarithmic scale for the y axis (base 10). Set to a `number` to define the logarithm's base. |
| false | Set to `true` to make the line smooth. Float values are also acceptable (works fine between `0` and `0.5`) |
@@ -435,7 +435,7 @@
| property | type |default | description |
| --- | --- | --- | --- |
| {
"min": 0,
"max": 1
} | Value to led intensity mapping range |
+| \{
"min": 0,
"max": 1
} | Value to led intensity mapping range |
| false | Set to `true` to use logarithmic scale (base 10). Set to a `number` to define the logarithm's base. |
@@ -464,7 +464,7 @@
| "" | Available CSS variables:{
"min": 0,
"max": 1
} | See fader's `range` |
+| \{
"min": 0,
"max": 1
} | See fader's `range` |
| false | See fader's `logScale` |
| "auto" | See fader's `origin` |
| "auto" | See fader's `unit` |
@@ -571,7 +571,7 @@
| "" | Defines currently opened tab in the widget"@{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
+| "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
| [] | Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously. |
| [] | Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously |
@@ -592,7 +592,7 @@
| true | 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 |
| 0 | Adds space between widgets. Percents are always relative to the strips width |
| "@{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
+| "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
| [] | Each element of the array must be a widget object"" | Defines the modal's state:`0` for closed, `1` for opened |
| "@{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
+| "@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
| [] | Each element of the array must be a widget object |
@@ -632,7 +632,44 @@
| "" | `id` of the widget to clone |
| {} | Cloned widget's properties to override |
+| \{} | Cloned widget's properties to override |
+
+
+
+
+"root" | Widgets sharing the same id will act as clones and update each other's value(s) without sending extra osc messages |
+| "" | Defines currently opened tab in the widgetfalse | Set to `true` to enable traversing gestures in this widget. Set to `smart` or `auto` to limit affected widgets by the type of the first touched widget |
+| \{} | Defines one or more arbitrary variables that can be inherited by children widgets |
+| [
\{}
] | Each element of the array must be a tab object |true | Set to `false` if the tab contains `frame` widgets that should not be reloaded when the tab open |
+| "" | Defines currently opened tab in the widget"@\{parent.variables}" | Defines one or more arbitrary variables that can be inherited by children widgets |
+| [] | Each element of the array must be a widget object. A tab cannot contain widgets and tabs simultaneously |
+| [] | Each element of the array must be a tab object. A tab cannot contain widgets and tabs simultaneously |"" | - `String`: a widget's `id` whose state changes will be storedfalse | Set to `true` to display values horizontally |
-| {
"Value 1": 1,
"Value 2": 2
} | Each item represents a bank that stores the values from the widgets listed in `linkedWidgets`\{
"Value 1": 1,
"Value 2": 2
} | Each item represents a bank that stores the values from the widgets listed in `linkedWidgets`${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'
')} | ${help} |`
+ | ${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'
').replace('{','\\{')} | ${help} |`
)
separator = false
}
diff --git a/src/client/app/widgets/containers/root.js b/src/client/app/widgets/containers/root.js
index 3985525c..df63ccfc 100644
--- a/src/client/app/widgets/containers/root.js
+++ b/src/client/app/widgets/containers/root.js
@@ -7,6 +7,12 @@ var Panel = require('./panel'),
class Root extends Panel {
+ static description() {
+
+ return 'Main (unique) container'
+
+ }
+
static defaults() {
return Widget.defaults({}, ['label', '_geometry', 'left', 'top', 'width', 'height'], {
diff --git a/src/client/app/widgets/containers/tab.js b/src/client/app/widgets/containers/tab.js
index e822a8c5..0e035f6b 100644
--- a/src/client/app/widgets/containers/tab.js
+++ b/src/client/app/widgets/containers/tab.js
@@ -4,14 +4,19 @@ var Panel = require('./panel'),
module.exports = class Tab extends Panel {
+ static description() {
+
+ return 'Tabbed panel widget'
+
+ }
+
static defaults() {
return Widget.defaults({
_tab:'tab',
- detached: {type: 'boolean', value: true, help: [
- ]}
+ detached: {type: 'boolean', value: true, help: 'Set to `false` if the tab contains `frame` widgets that should not be reloaded when the tab open '}
}, ['_geometry', 'left', 'top', 'width', 'height'], {