From 3234344be2fdf849b3e775e969b4680f71c26136 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 11 Jul 2019 16:45:14 +0200 Subject: [PATCH] update docs --- resources/docs/docs/widgets-reference.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/docs/docs/widgets-reference.md b/resources/docs/docs/widgets-reference.md index 83a4b2a0..a88692ac 100644 --- a/resources/docs/docs/widgets-reference.md +++ b/resources/docs/docs/widgets-reference.md @@ -45,7 +45,7 @@ |

compact#

| `boolean` | false | Set to `true` to display a compact alternative for the widget. If `input` is `true`, the input can be focused with a right-click (mouse only). Disables `pips` when enabled. | |

dashed#

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

snap#

| `boolean` | false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position | -|

spring#

| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | +|

spring#

| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | |

doubleTap#

| `boolean` | false | Set to `true` to make the fader reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | |

range#

| `object` | {
 "min": 0,
 "max": 1
}
| Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed

Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) | |

steps#

| `string`\|
`number`\|
`array` | "" | Restricts the widget's value:
- `auto`: use values defined in `range`
- `number`: define a number of evenly spaced steps
- `array`: use arbitrary values | @@ -71,7 +71,7 @@ |

dashed#

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

angle#

| `number` | 270 | Defines the angle's width of the knob, in degrees | |

snap#

| `boolean` | false | By default, dragging the widget will modify it's value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position | -|

spring#

| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | +|

spring#

| `boolean` | false | When set to `true`, the widget will go back to its `default` value when released | |

doubleTap#

| `boolean` | false | Set to `true` to make the knob reset to its `default` value when receiving a double tap.

Can also be an osc address, in which case the widget will just send an osc message (`/ `) | |

range#

| `object` | {
 "min": 0,
 "max": 1
}
| Defines the breakpoints of the fader's scale:
- keys can be percentages and/or `min` / `max`
- values can be `number` or `object` if a custom label is needed

Example: (`{min:{"-inf": 0}, "50%": 0.25, max: {"+inf": 1}}`) | |

steps#

| `string`\|
`number`\|
`array` | "" | Restricts the widget's value:
- `auto`: use values defined in `range`
- `number`: define a number of evenly spaced steps
- `array`: use arbitrary values | @@ -145,7 +145,7 @@ A fader with two heads for setting a range. |

on#

| `*` | 1 | 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) | |

off#

| `*` | 0 | 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) | |

norelease#

| `boolean` | false | Set to `true` to prevent sending any osc message when releasing the button | -|

afterTouch#

| `string` | "" | Send afterTouch value to this osc address (between 0 and 1) | +|

afterTouch#

| `string`\|
`object` | "" | Send afterTouch value to this osc address (between 0 and 1) | ### switch @@ -391,7 +391,7 @@ Load a image (url or base64-encoded). |

border#

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

cache#

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

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

value#

|||| -|

value#

| `string` | "" | - File `url` or `absolute path`
- Base64 encoded image : `data:image/...` | +|

value#

| `string` | "" | - File `url` or `path` (relative to the session file location by default, falling back to absolute path)
- Base64 encoded image : `data:image/...` | ### svg