08-06-2021 23:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-06-2021 23:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
let sweep = Math.floor(180*(batteryPercentage/100));
batteryLineFront.sweepAngle = sweep;
This doesn't seem to be working after I changed my arc svg object to a gradientArc. Doesn't seem to work on the simulator or on the Sense.
Device is the Sense. SDK version 6.0, simulator is on Windows and v0.9.1. Someone else reported that it works on the device, but the device does not seem to change either.

08-11-2021 07:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


08-11-2021 07:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Is it just failing to change via JavaScript? Does it work with hardcoded attributes?
start-angle='0' sweep-angle='270'

08-11-2021 08:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

08-11-2021 08:39
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Yes, works when hard coded into the SVG as expected but does not update (apparently) via javascript.

