Hi folks,
The 2.0.0 release of the SVG node is finally ready
Months later as I had expected, but the lack of free time is killing me ...
This version contains the following new features:
-
Pan and zoom support (both mouse support and gesture support for mobile devices).
-
Control panning and zooming via input messages
-
Support style binding
-
Support removal of attributes via input messages.
-
Support adding new elements via input messages (and apply Event tabsheet entries automatically to dynamically added elements).
-
Support removing elements via input messages.
-
Send coordinates (of multiple coordinate systems) and bounding box (of the element that received the event) in msg.event of the output message: !BREAKING CHANGE! because the old output message field have been moved to the new 'event' property (to become similar to the other UI nodes, as discussed here).
-
Extra validations of input messages, to simplify troubleshooting.
-
Possibility to have server side logging of client side errors, to simplify troubleshooting (e.g. on mobile devices where access to the browser console log is very difficult).
-
Adding events via input messages.
-
Removing events via input messages.
-
Support animations of transformations:
-
The readme page and info panel have been redesigned quite a lot.
-
The wiki contains new tutorials.
-
A series of example flows are available via the flow editor Import menu:
-
Fix animation end which was not freezing.
-
Fix to support case insensitive commands.
-
Fix of undefined
msg.selector
in output message: !BREAKING CHANGE! because msg.elementId now contains the real element id instead of the CSS selector.
Unfortunately there are two breaking changes, which is why I needed to switch to a major version 2.x.x. The breaking changes (and the required actions) are listed on top of the readme page.
Would be nice if somebody could test something ...
The new version can be installed directly from Github (from your Node-RED folder), since it is not on NPM yet:
npm install bartbutenaers/node-red-contrib-ui-svg
I hope to publish it on NPM next week(end).
TODO: I need to check whether local images are still being displayed correctly...
Have fun with it !!!!
Bart