diff --git a/resources/docs/extras/property-inheritance.md b/resources/docs/extras/property-inheritance.md index e56bb148..8fbaf69b 100644 --- a/resources/docs/extras/property-inheritance.md +++ b/resources/docs/extras/property-inheritance.md @@ -20,7 +20,7 @@ If the retreived property is an object (`[] / {}`), a subset can be defined by a ## Use dynamic value -The special property name `_value`flash_on refers to a widget's value, as opposed to its `value` property. +The special property name `_value`flash_on refers to a widget's value, as opposed to its `value` property. When omitted, the property name defaults to `_value` : `@{widgetId}` => `@{widgetId._value}` @@ -28,10 +28,10 @@ When omitted, the property name defaults to `_value` : `@{widgetId}` => `@{widge 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 ` `flash_on. +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 ` `flash_on. ## Circular references cases - container widgets can inherit their children's properties only to define `dynamic` properties -- widgets can inherit their own `_value`flash_on property only to define `dynamic` properties +- widgets can inherit their own `_value`flash_on property only to define `dynamic` properties diff --git a/resources/docs/widgets/buttons.md b/resources/docs/widgets/buttons.md index 97f0dcdc..d3c89c72 100644 --- a/resources/docs/widgets/buttons.md +++ b/resources/docs/widgets/buttons.md @@ -22,14 +22,14 @@ Buttons are exactly what you think they are. - default: `false` - usage: set to `true` to display the toggle's state with a led -### `on`flash_on +### `on`flash_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`flash_on +### `off`flash_on - 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`flash_on +### `on`flash_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`flash_on +### `off`flash_on - type: `string|number|object` - default: `0` - usage: defines which value is sent when releasing the button diff --git a/resources/docs/widgets/containers.md b/resources/docs/widgets/containers.md index 1148d8b5..fce1489a 100644 --- a/resources/docs/widgets/containers.md +++ b/resources/docs/widgets/containers.md @@ -36,7 +36,7 @@ Panels can contains tabs or widgets. These can be absolutely positioned and can - usage: each element of the `array` must be a tab `object`. A panel cannot contain widgets and tabs simultaneously. -### `variables`flash_on +### `variables`flash_on - type: `*` - default: `@{parent.variables}` - usage: defines one or more arbitrary variables that can be inherited by children widgets. @@ -59,7 +59,7 @@ Panels can contains tabs or widgets. These can be absolutely positioned and can - usage: spacing size used in `layout` expression, can be set as a `[vertical,horizontal]` array. - note: this only applies when the panel contains widgets, not tabs -### `noSync`flash_on +### `noSync`flash_on - type: `boolean` - default: `false` - usage: set to `true` to prevent tab changes from synchronizing between clients that share the same session file diff --git a/resources/docs/widgets/widgets.md b/resources/docs/widgets/widgets.md index 0285332b..10d6ee64 100644 --- a/resources/docs/widgets/widgets.md +++ b/resources/docs/widgets/widgets.md @@ -40,7 +40,7 @@ All widgets share a set of generic properties described below. - type: `number|percentage` - default: `auto` -### `color`flash_on +### `color`flash_on - 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 @@ -58,21 +58,21 @@ All widgets share a set of generic properties described below. ## OSC -### `value`flash_on +### `value`flash_on - type: `*` - default: `empty` - usage: if set, the widget will be initialized with this `value`. This won't send any osc message unless it is changed because of a property inheritance update initiated by an action that should send osc (e.g. dragging a slider). - note: its `type` must match the widget's value type (ie a `number` for sliders, an `array` for pads, etc). -### `precision`flash_on +### `precision`flash_on - type: `integer|string` - default: `2` - usage: the `precision` property defines the number of decimals to display and to send. - set to `0` to send `integers` only. - a specific 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 -### `target`flash_on +### `target`flash_on - type: `array` - default: `[]` - usage: @@ -84,7 +84,7 @@ All widgets share a set of generic properties described below. - if no target is set (empty array `[]`), messages can still be sent if the server has defaults targets (`-s / --send`) - to disable osc regardless of the previous point, set `target` to `[null]` -### `address`flash_on +### `address`flash_on - type: `string` - default: `/widgets_id` - usage: this is the `address` of the osc messages sent by the widget, it must start with a `/` @@ -97,7 +97,7 @@ All widgets share a set of generic properties described below. /touch/address [preArgs] 0/1 ``` -### `preArgs`flash_on +### `preArgs`flash_on - type: `array` - default: `[]` - usage: