docs: canvas widget
This commit is contained in:
parent
6478d3362b
commit
383e5b9cb1
2 changed files with 5 additions and 1 deletions
|
|
@ -1,8 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
## 1.11.2
|
||||
## 1.12.0
|
||||
|
||||
- widgets
|
||||
- new **canvas** widget (under `pads`): allows creating custom widgets
|
||||
- button: expose normalized touch coordinates in scipts as `locals.touchCoords`
|
||||
- print a warning in the console when using advanced syntaxes in the script property
|
||||
|
||||
|
|
|
|||
|
|
@ -94,4 +94,7 @@ y = Math.max(0, Math.min(1, value[1]))
|
|||
|
||||
// re-update inner value without retriggering script or sending message
|
||||
set("this", [x, y], {sync: false, send: false})
|
||||
|
||||
// the widget will automatically send its value if
|
||||
// this script was triggered by a user interaction
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue