bartbutenaers / node-red-contrib-ui-svg

A Node-RED widget node to show interactive SVG (vector graphics) in the dashboard
Apache License 2.0
94 stars 27 forks source link

Question: can I add a shape to a drawing programmatically? #111

Closed goofy2k closed 2 years ago

goofy2k commented 2 years ago

Hi Bart, nice work !

I consider to start using this to create a simple GUI. I did a quick scan of your help pages but did not (yet) find an answer to my question:

Is it possible to add a shape to an existing drawing, triggered by an incoming message? For example can I add a data point (a colored cirlcle) with the color and position specified in the incoming message? Or should shapes always be already present ("hard-coded") in the drawing?

Steve-Mcl commented 2 years ago

Hi @goofy2k it is right there in the readme...

https://github.com/bartbutenaers/node-red-contrib-ui-svg#supported-commands

goofy2k commented 2 years ago

Thanks Steve, I'm going to give this a try!