From 383e5b9cb1ea9ad63c53496bd458ae3439230f84 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 6 Dec 2021 12:26:16 +0100 Subject: [PATCH] docs: canvas widget --- CHANGELOG.md | 3 ++- resources/docs/docs/widgets/canvas.md | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad7a03c7..d57e1801 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/resources/docs/docs/widgets/canvas.md b/resources/docs/docs/widgets/canvas.md index 45e78624..9d91b559 100644 --- a/resources/docs/docs/widgets/canvas.md +++ b/resources/docs/docs/widgets/canvas.md @@ -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 ```