From 1e9530625cfa2823f713b08a8fc7ced9fe429e07 Mon Sep 17 00:00:00 2001 From: bordun Date: Wed, 28 Apr 2021 17:05:11 +0200 Subject: [PATCH] docs: update --- resources/docs/docs/user-interface/editor.md | 4 ++-- .../docs/docs/widgets/properties-reference.md | 18 +++++++----------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/resources/docs/docs/user-interface/editor.md b/resources/docs/docs/user-interface/editor.md index d76979a9..2be23576 100644 --- a/resources/docs/docs/user-interface/editor.md +++ b/resources/docs/docs/user-interface/editor.md @@ -74,7 +74,7 @@ Multiple widgets can be edited at once. | ++ctrl+i++ | Toggle inspector. | | ++"Click"++ | Widget selection. | | ++ctrl+"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 ++ctrl++ is pressed too, current selection is kept and will be merged with the new one if possible. | + | ++shift+"Click"+"Drag"++ | Draw a selection rectangle and attempt to select widgets in it. If ++ctrl++ is pressed too, current selection is kept and will be merged with the new one if possible. | | ++ctrl+z++ | Undo | | ++ctrl+y++
++ctrl+shift+z++ | Redo | | ++delete++ | Delete selected widgets | @@ -110,7 +110,7 @@ Multiple widgets can be edited at once. | ++cmd+i++ | Toggle inspector. | | ++"Click"++ | Widget selection. | | ++cmd+"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 ++cmd++ is pressed too, current selection is kept and will be merged with the new one if possible. | + | ++shift+"Click"+"Drag"++ | Draw a selection rectangle and attempt to select widgets in it. If ++cmd++ is pressed too, current selection is kept and will be merged with the new one if possible. | | ++cmd+z++ | Undo | | ++cmd+y++
++cmd+shift+z++ | Redo | | ++backspace++ | Delete selected widgets | diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index 1d36f64f..f9fab9ec 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -23,8 +23,8 @@ | property | type |default | description | | --- | --- | --- | --- | - |
left#
| `number`|
`string` | "auto" | 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).

Otherwise, the widget will be absolutely positioned | - |
top#
| `number`|
`percentage` | "auto" | 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).

Otherwise, the widget will be absolutely positioned | + |
left#
| `number`|
`string` | "auto" | 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).

Otherwise, the widget will be positioned at absolute coordinates | + |
top#
| `number`|
`percentage` | "auto" | 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).

Otherwise, the widget will be positioned at absolute coordinates | |
width#
| `number`|
`percentage` | "auto" | Widget width | |
height#
| `number`|
`percentage` | "auto" | Widget height | |
expand#
| `boolean`|
`number` | "false" | If parent's layout is `vertical` or `horizontal`, set this to `true` to stretch the widget to use available space automatically. | @@ -487,9 +487,9 @@ | property | type |default | description | | --- | --- | --- | --- | - |
size#
| `string` | "cover" | CSS background-size | - |
position#
| `string` | "center" | CSS background-position | - |
repeat#
| `string` | "no-repeat" | CSS background-repeat | + |
size#
| `string` | "cover" | CSS background-size

Choices: `cover`, `contain`, `auto` | + |
position#
| `string` | "center" | CSS background-position

Choices: `center`, `left`, `right`, `top`, `bottom`, `left top`, `left bottom`, `right top`, `right bottom` | + |
repeat#
| `string` | "no-repeat" | CSS background-repeat

Choices: `no-repeat`, `repeat`, `repeat-x`, `repeat-y`, `space`, `round` | === "image" @@ -519,7 +519,6 @@ | property | type |default | description | | --- | --- | --- | --- | - |
pips#
| `boolean` | true | Set to false to hide the scale | |
rangeX#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the x axis | |
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | |
origin#
| `number`|
`boolean` | "auto" | Defines the y axis origin. Set to `false` to disable it | @@ -545,11 +544,11 @@ | property | type |default | description | | --- | --- | --- | --- | - |
pips#
| `boolean` | true | Set to false to hide the scale | |
rangeX#
| `object` | \{
 "min": 20,
 "max": 22000
}
| Defines the min and max values for the x axis (in Hz, logarithmic scale) | |
rangeY#
| `object` | \{
 "min": -6,
 "max": 6
}
| Defines the min and max values for the y axis (in dB) | |
origin#
| `number`|
`boolean` | "auto" | Defines the y axis origin. Set to `false` to disable it | |
filters#
| `array` | "" | Each item must be an object with the following properties
- `type`: string ("highpass", "highshelf", "lowpass", "lowshelf", "peak", "bandpass" or "notch", default: "peak")
- `freq`: number (filter's resonant frequency, default: 1000)
- `q`: number (Q factor, default: 1)
- `gain`: number (default: 0)
- `on`: boolean (default: true)

See https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode | + |
pips#
| `boolean` | true | Set to false to hide the scale | === "value" @@ -564,15 +563,12 @@ | property | type |default | description | | --- | --- | --- | --- | - |
dots#
| `boolean` | false | Draw dots on the line | - |
bars#
| `boolean` | false | Set to `true` to use draw bars instead (disables `logScaleX` and forces `x axis` even spacing) | |
pips#
| `boolean` | true | Set to `false` to hide the scale | === "visualizer" | property | type |default | description | | --- | --- | --- | --- | - |
pips#
| `boolean` | true | Set to false to hide the scale | |
rangeX#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the x axis | |
rangeY#
| `object` | \{
 "min": 0,
 "max": 1
}
| Defines the min and max values for the y axis | |
origin#
| `number` | "auto" | Defines the y axis origin. Set to `false` to disable it | @@ -621,7 +617,7 @@ | --- | --- | --- | --- | |
vertical#
| `boolean` | false | Set to `true` to display the text vertically | |
wrap#
| `boolean` | false | Set to `true` to wrap long lines automatically. | - |
align#
| `string` | "center" | Css text-align property.

Choices: `center`, `left`, `right` | + |
align#
| `string` | "center" | Text alignment.

Choices: `center`, `left`, `right`, `top`, `bottom`, `left top`, `left bottom`, `right top`, `right bottom` | ## Pads ??? api "
xy#
"