docs: fix wrong space chars breaking headers formatting

This commit is contained in:
jean-emmanuel 2018-01-30 10:45:40 +01:00
parent 95843e59bd
commit 8a67f7d861
12 changed files with 115 additions and 115 deletions

View file

@ -12,24 +12,24 @@ Buttons are exactly what you think they are.
}
```
### `doubleTap`
### `doubleTap`
- type: `boolean`
- default: `false`
- usage: set to `true` to make the button require a double tap to be toggled instead of a single tap
### `led`
### `led`
- type: `boolean`
- default: `false`
- usage: set to `true` to display the toggle's state with a led
### `on`
### `on`
- type: `string|number|object`
- default: `1`
- usage: defines which value is sent on `on` position
- set to `null` to send send no argument in the osc message
- can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs))
### `off`
### `off`
- type: `string|number|object`
- default: `0`
- usage: defines which value is sent on `off` position
@ -47,14 +47,14 @@ Buttons are exactly what you think they are.
}
```
### `on`
### `on`
- type: `string|number|object`
- default: `1`
- usage: defines which value is sent when pushing the button
- set to `null` to send send no argument in the osc message
- can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs))
### `off`
### `off`
- type: `string|number|object`
- default: `0`
- usage: defines which value is sent when releasing the button
@ -78,7 +78,7 @@ Setting the `push`'s value externally (via osc) will toggle it's inner light.
// etc
}
```
### `values`
### `values`
- type: `array|object`
- default: `{"Value 1":1,"Value 2":2}`
- usage:
@ -99,7 +99,7 @@ Setting the `push`'s value externally (via osc) will toggle it's inner light.
}
```
### `values`
### `values`
- type: `array|object`
- default: `{"Value 1":1,"Value 2":2}`
- usage:

View file

@ -15,28 +15,28 @@ Panels can contains tabs or widgets. These can be absolutely positioned and can
}
```
### `scroll`
### `scroll`
- type: `boolean`
- default: `true`
- usage: set to `false` to disable scrollbars
### `border`
### `border`
- type: `boolean`
- default: `true`
- usage: 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.
### `widgets`
### `widgets`
- type: `array`
- default: `[]`
- usage: each element of the `array` must be a widget `object`. A panel cannot contain widgets and tabs simultaneously.
### `tabs`
### `tabs`
- type: `array`
- default: `[]`
- usage: each element of the `array` must be a tab `object`. A panel cannot contain widgets and tabs simultaneously.
### `variables`
### `variables`
- type: `*`
- default: `@{parent.variables}`
- usage: defines one or more arbitrary variables that can be inherited by children widgets.
@ -47,13 +47,13 @@ Panels can contains tabs or widgets. These can be absolutely positioned and can
- `@{parent.variables}` useful when nesting containers
### `layout`
### `layout`
- type: `string`
- default: `''`
- usage: `layout` must be a valid [Visual Format Language](https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/AutolayoutPG/VisualFormatLanguage.html) expression. It accepts the [Extended Visual Format Language](https://github.com/IjzerenHein/autolayout.js#extended-visual-format-language-evfl) as well. Widgets are targeted using their `id` or their index prefixed with a `$` (`$0, $1, etc`), the latter method being incompatible with the [range spread operator](https://github.com/IjzerenHein/autolayout.js#view-ranges-spread-operator). Expressions can be tested and debugged with the online [Visual Format Editor](https://rawgit.com/IjzerenHein/visualformat-editor/master/dist/index.html).
- note: this only applies when the panel contains widgets, not tabs
### `spacing`
### `spacing`
- type: `integer|array`
- default: `0`
- usage: spacing size used in `layout` expression, can be set as a `[vertical,horizontal]` array.
@ -72,27 +72,27 @@ Unidirectionnal panel with stretching capability. By default, children widgets t
}
```
### `horizontal`
### `horizontal`
- type: `boolean`
- default: `false`
- usage: set to `true` to display widgets horizontally
### `stretch`
### `stretch`
- type: `boolean`
- default: `false`
- usage: set to `true` to stretch widgets evenly
### `spacing`
### `spacing`
- type: `integer`
- default: `0`
- usage: adds space between widgets
### `border`
### `border`
- type: `boolean`
- default: `true`
- usage: by default, widgets in panels/strip have their border disabled, except for panels and strips. Set to `false` to apply this rule to the strip too.
### `widgets`
### `widgets`
- type: `array`
- default: `[]`
- usage: each element of the `array` must be a widget `object`
@ -111,22 +111,22 @@ Modals are buttons that turn into a centered popup panels when enabled. They can
}
```
### `doubleTap`
### `doubleTap`
- type: `boolean`
- default: `false`
- usage: set to `true` to make the modal require a double tap to open instead of a single tap
### `popupWidth` / `popupHeight`
### `popupWidth` / `popupHeight`
- type: `number|percentage`
- default: `100%`
- usage: sets the modal's size once opened
### `popupLabel`
### `popupLabel`
- type: `string`
- default: `empty`
- usage: alternative label for the popup
### `options`
### `options`
- see panel's [`options`](#panel)
@ -139,12 +139,12 @@ Modals are buttons that turn into a centered popup panels when enabled. They can
}
```
### `widgetId`
### `widgetId`
- type: `string`
- default: `empty`
- usage: `id` of the widget to clone
### `props`
### `props`
- type: `object`
- default: `{}`
- usage: cloned widget's properties to override

View file

@ -16,7 +16,7 @@ Formula evaluates mathematical expressions over other widgets' values each one o
```
### `formula`
### `formula`
- type: `string`
- default: `''`
- usage: a [mathjs](http://mathjs.org/docs/expressions/syntax.html) expression in which
@ -24,19 +24,19 @@ Formula evaluates mathematical expressions over other widgets' values each one o
- example: `${fader_1} * 2 + ${fader_2}`
- **important note**: contrary to what is stated in *mathjs*' documentation, **matrix indexes are zero-based** here
### `condition`
### `condition`
- type: `string`
- default: `''`
- usage:
- a [mathjs](http://mathjs.org/docs/expressions/syntax.html) comparison expression that bypasses widget's osc sending when returning`false`
- example: `${fader_1} > 0.5`
### `unit`
### `unit`
- type: `string`
- default: `empty`
- usage: `unit` will be appended to the displayed widget's value (it doesn't affect osc messages)
### `split`
### `split`
- type: `object`
- default: `[]`
- usage: specify a different `address` for each item of the widget's value : `['/a', '/b']`

View file

@ -13,7 +13,7 @@ Multifader creates a row of vertical faders that respond to the same gestures.
}
```
### `strips`
### `strips`
- type: `integer`
- default: `2`
- usage: number of faders in the row, each fader will inherit its parent's properties and the following ones (where `i` is the fader's index in the row)
@ -21,27 +21,27 @@ Multifader creates a row of vertical faders that respond to the same gestures.
- `label`: `i`
- `address`: same as the widget's with `/i` appended to it
### `start`
### `start`
- type: `integer`
- default: `0`
- usage: first faders's index
### `traversing`
### `traversing`
- type: `boolean`
- default: `true`
- usage: enable traversing gestures
### `split`
### `split`
- type: `boolean`
- default: `false`
- usage: if `true`, the fader's index will be appended to the widget's osc `address`; if `false` it will be prepended to the widget's `preArgs`
### `color`
### `color`
- type: `string|array`
- default: `auto`, inherited accent color
- usage: can be an `array` of css color `strings`, which will be sequentially passed to the faders
### `options`
### `options`
- see fader's [`options`](sliders/#fader)
@ -56,7 +56,7 @@ Multifader creates a row of vertical faders that respond to the same gestures.
}
```
### `matrix`
### `matrix`
- type: `array`
- default: `[2,2]`
- usage: defines the number of columns and and rows. Each cell will contain a toggle button that will inherit its parent's properties and the following ones (where `i` is the fader's index in the row)
@ -64,34 +64,34 @@ Multifader creates a row of vertical faders that respond to the same gestures.
- `label`: `i`
- `address`: same as the widget's with `/i` appended to it
### `start`
### `start`
- type: `integer`
- default: `0`
- usage: first toggle's index
### `spacing`
### `spacing`
- type: `integer`
- default: `0`
- usage: adds space between widgets
### `traversing`
### `traversing`
- type: `boolean`
- default: `true`
- usage: enable traversing gestures
### `split`
### `split`
- type: `boolean`
- default: `false`
- usage: if `true`, the toggle's index will be appended to the widget's osc `address`; if `false` it will be prepended to the widget's `preArgs`
### `color`
### `color`
- type: `string|array`
- default: `auto`, inherited accent color
- usage: can be an `array` of css color `strings`, which will be sequentially passed to the toggles
### `options`
### `options`
- see toggle's [`options`](buttons/#toggle)
@ -104,7 +104,7 @@ Multifader creates a row of vertical faders that respond to the same gestures.
}
```
### `matrix`
### `matrix`
- type: `array`
- default: `[2,2]`
- usage: defines the number of columns and and rows. Each cell will contain a push button that will inherit its parent's properties and the following ones (where `i` is the fader's index in the row)
@ -112,32 +112,32 @@ Multifader creates a row of vertical faders that respond to the same gestures.
- `label`: `i`
- `address`: same as the widget's with `/i` appended to it
### `start`
### `start`
- type: `integer`
- default: `0`
- usage: first push's index
### `spacing`
### `spacing`
- type: `integer`
- default: `0`
- usage: adds space between widgets
### `traversing`
### `traversing`
- type: `boolean`
- default: `true`
- usage: enable traversing gestures
### `split`
### `split`
- type: `boolean`
- default: `false`
- usage: if `true`, the push's index will be appended to the widget's osc `address`; if `false` it will be prepended to the widget's `preArgs`
### `color`
### `color`
- type: `string|array`
- default: `auto`, inherited accent color
- usage: can be an `array` of css color `strings`, which will be sequentially passed to the pushes
### `options`
### `options`
- see push's [`options`](buttons/#push)
@ -153,28 +153,28 @@ This one works pretty much like the multipush, excepts it looks like a piano key
}
```
### `keys`
### `keys`
- type: `integer`
- default: `24`
- usage: defines the number keys
### `start`
### `start`
- type: `integer`
- default: `60`
- usage: MIDI note number to start with (default is C4)
### `traversing`
### `traversing`
- type: `boolean`
- default: `true`
- usage: enable traversing gestures
### `split`
### `split`
- type: `boolean`
- default: `false`
- usage: if `true`, the note's midi code will be appended to the widget's osc `address`; if `false` it will be prepended to the widget's `preArgs`
### `options`
### `options`
- see push's [`options`](buttons/#push)
### `css`

View file

@ -13,35 +13,35 @@ Pads are multidimensional widgets that output multiple values.
}
```
### `input`
### `input`
- type: `boolean`
- default: `true`
- usage: set to `false` to hide the built-in input
### `rangeX`
### `rangeX`
- type: `object`
- default:
`{"min":0,"max":1}`
- usage: defines the `min` and `max` values for the `x` axis. Same as fader's [`range`](sliders/#fader)
### `rangeY`
### `rangeY`
- type: `object`
- default:
`{"min":0,"max":1}`
- usage: defines the `min` and `max` values for the `y` axis. Same as fader's [`range`](sliders/#fader)
### `logScaleX`
### `logScaleX`
- type: `boolean`
- default: `false`
- usage: set to `true` to use logarithmic scale for the `x` axis (log10)
### `logScaleY`
### `logScaleY`
- type: `boolean`
- default: `false`
- usage: set to `true` to use logarithmic scale for the `y` axis (log10)
### `snap`
### `snap`
- type: `boolean`
- default: `false`
- usage: 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.
@ -51,12 +51,12 @@ Pads are multidimensional widgets that output multiple values.
- default: `false`
- usage: when set to `true`, the widget will go back to its initial value when released.
### `doubleTap`
### `doubleTap`
- type: `boolean`
- default: `false`
- usage: set to `true` to make the xy reset to its initial value when receiving a double tap
### `split`
### `split`
- type: `boolean|object`
- default: `false`
- usage:
@ -75,7 +75,7 @@ Pads are multidimensional widgets that output multiple values.
}
```
### `points`
### `points`
- type: `integer|array`
- default: `2`
- usage: defines the number of points on the pad. Can be an `array` of `strings` that will be used as labels for the points (ex: `['A', 'B']`)
@ -85,30 +85,30 @@ Pads are multidimensional widgets that output multiple values.
- default: `15`
- usage: defines the points's size
### `rangeX`
### `rangeX`
- type: `object`
- default:
`{"min":0,"max":1}`
- usage: defines the `min` and `max` values for the `x` axis. Same as fader's [`range`](sliders/#fader)
### `rangeY`
### `rangeY`
- type: `object`
- default:
`{"min":0,"max":1}`
- usage: defines the `min` and `max` values for the `y` axis. Same as fader's [`range`](sliders/#fader)
### `logScaleX`
### `logScaleX`
- type: `boolean`
- default: `false`
- usage: set to `true` to use logarithmic scale for the `x` axis (log10)
### `logScaleY`
### `logScaleY`
- type: `boolean`
- default: `false`
- usage: set to `true` to use logarithmic scale for the `y` axis (log10)
### `split`
### `split`
- type: `boolean|object`
- default: `false`
- usage:
@ -116,7 +116,7 @@ Pads are multidimensional widgets that output multiple values.
- can be set as an object to specify a different `address` : `['/0/x', '/0/y', '/1/x', '/2/y']`
- note: the widget will only respond to its original osc address, not to the splitted version
### `snap`
### `snap`
- type: `boolean`
- default: `false`
- usage: by default, the points are dragged from their initial position; if set to `true`, touching anywhere on the widget's surface will make them snap to the touching coordinates (one per touch).
@ -135,20 +135,20 @@ RGB is a variant of XY, it outputs rgb values between 0 and 255.
}
```
### `input`
### `input`
- type: `boolean`
- default: `true`
- usage: set to `false` to hide the built-in input
### `precision`
### `precision`
- default:`0`
### `snap`
### `snap`
- type: `boolean`
- default: `false`
- usage: 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.
### `split`
### `split`
- type: `boolean|object`
- default: `false`
- usage:

View file

@ -12,37 +12,37 @@ Sliders are unidimensional widgets that output one value at a time.
}
```
### `horizontal`
### `horizontal`
- type: `boolean`
- default: `false`
- usage: set to `true` to display the fader horizontally
### `alignRight`
### `alignRight`
- type: `boolean`
- default: `false`
- usage: set to `true` to invert the pip's and fader's position
### `pips`
### `pips`
- type: `boolean`
- default: `true`
- usage: set to `false` to hide the scale
### `input`
### `input`
- type: `boolean`
- default: `true`
- usage: set to `false` to hide the built-in input
### `compact`
### `compact`
- type: `boolean`
- default: `false`
- usage: set to `true` to display a compact alternative for the widget. Disables default mouse/touch focusing on the value display (right-click/long-touch still triggers it).
### `dashed`
### `dashed`
- type: `boolean`
- default: `false`
- usage: set to `true` to display a dashed gauge
### `range`
### `range`
- type: `object`
- default: `{"min":0,"max":1}`
- usage: `range` defines the breakpoints of the fader's scale
@ -62,19 +62,19 @@ range: {
- default: `auto`
- usage: `origin` defines the starting point's value of the fader's gauge
### `logScale`
### `logScale`
- type: `boolean`
- default: `false`
- usage: set to `true` use logarithmic scaling between breakpoints (log10)
### `unit`
### `unit`
- type: `string`
- default: `empty`
- usage: `unit` will be appended to the displayed widget's value (it doesn't affect osc messages)
### `snap`
### `snap`
- type: `boolean`
- default: `false`
- usage: 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.
@ -85,19 +85,19 @@ range: {
- usage: when set to `true`, the widget will go back to its initial value when released.
### `doubleTap`
### `doubleTap`
- type: `boolean`
- default: `false`
- usage: set to `true` to make the fader reset to its initial value when receiving a double tap
### `meter`
### `meter`
- type: `boolean`
- default: `false`
- usage: set to true to display a vu-meter next in the fader
- the meter's `id` will be the same as the widget's with `/meter` appended to it
- the meter's `address `will be the same as the widget's with `/meter` appended to it
### `meterAddress`
### `meterAddress`
- type: `boolean`
- default: `empty`
- usage: overrides the `meter`'s osc address
@ -121,17 +121,17 @@ range: {
```
### `pips`
### `pips`
- type: `boolean`
- default: `true`
- usage: set to `false` to hide the scale
### `input`
### `input`
- type: `boolean`
- default: `true`
- usage: set to `false` to hide the built-in input
### `compact`
### `compact`
- type: `boolean`
- default: `false`
- usage: set to `true` to display a compact alternative for the widget. Disables default mouse/touch focusing on the value display (right-click/long-touch still triggers it).
@ -141,7 +141,7 @@ range: {
- default: `270`
- usage: `angle` defines the angle's width of the knob, in degrees
### `range`
### `range`
- type: `object`
- default: `{"min":0,"max":1}`
- usage: `range` defines the breakpoints of the fader's scale
@ -161,19 +161,19 @@ range: {
- default: `auto`
- usage: `origin` defines the starting point's value of the knob's gauge
### `logScale`
### `logScale`
- type: `boolean`
- default: `false`
- usage: set to `true` use logarithmic scaling between breakpoints
### `unit`
### `unit`
- type: `string`
- default: `empty`
- usage: `unit` will be appended to the displayed widget's value (it doesn't affect osc messages)
### `snap`
### `snap`
- type: `boolean`
- default: `false`
- usage: by default, dragging the widget *vertically* will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position.
@ -183,7 +183,7 @@ range: {
- default: `false`
- usage: when set to `true`, the widget will go back to its initial value when released.
### `doubleTap`
### `doubleTap`
- type: `boolean`
- default: `false`
- usage: set to `true` to make the knob reset to its initial value when receiving a double tap
@ -231,12 +231,12 @@ An endless knob that only responds to rotative gestures.
- can be an `object` if the type needs to be specified (see [preArgs](./widgets.md#preargs))
### `snap`
### `snap`
- type: `boolean`
- default: `false`
- usage: 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.
### `doubleTap`
### `doubleTap`
- type: `boolean`
- default: `false`
- usage: set to `true` to make the encoder reset to its initial value when receiving a double tap
@ -258,7 +258,7 @@ A range is a fader with two handles.
}
```
### `split`
### `split`
- type: `boolean|object`
- default: `false`
- usage:

View file

@ -16,7 +16,7 @@ The switcher looks like the [`switch`](buttons/#switch). Each of its possible va
}
```
### `linkedWidgets`
### `linkedWidgets`
- type: `array|string`
- default:
`empty`
@ -25,7 +25,7 @@ The switcher looks like the [`switch`](buttons/#switch). Each of its possible va
- as an `array`: a list of widget `id` `strings`
### `values`
### `values`
- type: `array|object`
- default: `["A", "B"]`
- usage:

View file

@ -4,16 +4,16 @@ All widgets share a set of generic properties described below.
## Basics
### `type`
### `type`
- type: `string`
- default: `fader`
### `id`
### `id`
- type: `string`
- default: generated unique 'widget_n'
- usage: widgets sharing the same `id` will act as clones and update each other's value(s) without sending extra osc messages.
### `linkId`
### `linkId`
- type: `string`
- default: `empty`
- usage: widgets sharing the same `linkId` update each other's value(s) AND send their respective osc messages.
@ -21,14 +21,14 @@ All widgets share a set of generic properties described below.
## Style
### `label`
### `label`
- type: `string|false`
- default: `auto`, which displays `id`
- usage:
- set to `false` to hide completely
- insert icons from [FontAwesome](https://fontawesome.com/icons?d=gallery&s=solid&m=free) using the prefix `^` followed by the icon's name : `made with ^heart`, etc
### `top` / `left`
### `top` / `left`
- type: `number|percentage`
- default: `auto`
- usage:
@ -36,11 +36,11 @@ All widgets share a set of generic properties described below.
- otherwise, the widget will be absolutely positioned
### `width` / `height`
### `width` / `height`
- type: `number|percentage`
- default: `auto`
### `color`
### `color`
- type: `string`
- default: `auto`, inherited accent color
- usage: any valid `css` color code is valid, this will change the default accent color for the widget and all its children