widgets: add math widget, the ultimate helper (not safe yet)
This commit is contained in:
parent
2403ad2336
commit
27a0f31ff4
5 changed files with 144 additions and 1 deletions
24
resources/docs/user-guide/widgets-specifics/maths.md
Normal file
24
resources/docs/user-guide/widgets-specifics/maths.md
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Maths
|
||||
|
||||
Maths do the maths !
|
||||
|
||||
----
|
||||
|
||||
## Math
|
||||
|
||||
Math evaluates mathematical expressions over other widgets' values each one of these widgets changes.
|
||||
|
||||
```js
|
||||
{
|
||||
type:'math',
|
||||
// etc
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
#### `formula`
|
||||
- type: `string`
|
||||
- default: `''`
|
||||
- usage: a javascript expression in which
|
||||
- `${id}` will be replaced the `id`'s value
|
||||
- example: `${fader_1} * 2 + ${fader_2}`
|
||||
Loading…
Add table
Add a link
Reference in a new issue