Yes, I think this is a good opportunity, not just for Bangle.js but for Espruino in general.
And yes, as much as it'd be nice to follow a web browser API, I think we're going to have to stay pretty low-level to make this perform well. I think we should aim to handle 80% of what people generally want to do, and then if there's anything more fancy it can be handled in code with a type:"custom" handler.
Good point about color - there could definitely be color: fields (or maybe just a config field that contains a function that sets everything up?).
And I think the ability to re-render just one part of the UI is pretty crucial as well, especially for Bangle.js where it's unbuffered. Being able to do the update in a more or less flicker-free way would be great.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, I think this is a good opportunity, not just for Bangle.js but for Espruino in general.
And yes, as much as it'd be nice to follow a web browser API, I think we're going to have to stay pretty low-level to make this perform well. I think we should aim to handle 80% of what people generally want to do, and then if there's anything more fancy it can be handled in code with a
type:"custom"
handler.Good point about color - there could definitely be
color:
fields (or maybe just aconfig
field that contains a function that sets everything up?).And I think the ability to re-render just one part of the UI is pretty crucial as well, especially for Bangle.js where it's unbuffered. Being able to do the update in a more or less flicker-free way would be great.