Hi folks,
Some time ago I have announced an alpha version of node-red-contrib-ui-svg, to create interactive SVG (vector graphics) drawings in Node-RED:
The use cases can vary from a simple round button, to a complex animated floorplan of your entire house and garden...
Got a lot of useful feedback, but it was a hell of a job to start implementing. Fortunately @Steve-Mcl immediately proposed to help me, and he has been a tremendous partner in crime. So thanks a lot Steve for all your spare time!!!!!!
We decided not continuing the previous discussion, because this beta version is a complete rewrite (and we don't want to confuse users with obsolete information). So let's start from scratch here ...
The node contains a lot of new features, so please have a look our Github readme page for a complete overview and some animations. A small summary:
- Enter raw SVG source (incl. beautification)
- Draw your SVG visually with the DrawSvg cloud drawing tool
- Update your SVG dynamically via input messages
- Bind shape attributes to input message fields
- Create customizable output messages for lots of events (click, double click, ...)
- Fontawesome icon support
- ...
Since the previous version was an early alpha, we haven't added any migration code to convert any previous tests. But from now on, we will add migration code for next beta releases. This way we will avoid that users (who help us testing) will have to redraw everything again in a next beta.
We recently also got some great assistance from Joseph Liard, the creator of DrawSvg. He is currently busy adding new functionality to his drawing editor, to make sure we can integrate DrawSvg even better into Node-RED:
- We already received an offline version, which would allow offline Node-RED installations (that cannot connect to his cloud solution) to offer a drawing editor. More about this soon...
- Currently FontAwesome icons cannot be added via DrawSvg, but have to be entered manually into the SVG source.
- Currently local images can only be searched from the machine where the dashboard is being viewed, but not from the machine where the Node-RED flow is running (e.g. Raspberry Pi).
- ...
So we will need at least one extra next beta version, before we publish this node on NPM! This means you will have to install our node directly from the Github repository (see the command at the top of our readme page).
We hope you will have lots of fun with this node, and are looking forward to your 'constructive' feedback!
Steve and Bart