docs: canvas widget

This commit is contained in:
jean-emmanuel 2021-12-06 12:26:16 +01:00
parent 6478d3362b
commit 383e5b9cb1
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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
```