Svg Editor floorpan image not working anymore

Suddenly there's an issue with the SVG node from Bart.
Most likely the problem started after updating NR, dashboard, node, npm or something like that. I can't tell exactly when the problem started, editing the floorplans is not something that is done on regular base.

When you want to edit the floorplan in the editor the background image is not shown.
In the dashboard it works fine, there is the background image shown.

When you open the editor the space (rectangle) for the image is there, in the properties you can find the link to the image. If you open this link in a browser the image is shown, so most likely the ref link is working.
Changing the image ref in the svg editor to a random other (cat) image on the internet works.

It looks like that the ref to local machine in the editor is not working or something like that.
In my setting.js there's httpStatic: '/home/nodered/node-red-static/', for the static content.

SvgEditor

What can be the problem here?
Bart is not supporting the svg node for db1 anymore, but until there's a suitable replacement for db2 I still (wants) need to use it.

Btw NR 4.03, Dashboard 3.6.5, Svg node 2.3.3, npm 10.8.2, Nodejs V20.17.0

Hi @edje11,

Do you see perhaps an error in the console log of your browser developer tools, or a problem with that http request the Network tabsheet?

I assume you use - via the svg node - the online DrawSvg editor, and not my local version (via node-red-contrib-drawsvg)? If so, I assume the author of the editor has changed something in a recent version.

Hi Bart,

Thanks again for you quick reply.
I was using the online version of Drawsvg.
There's indeed an error in the console when you try to edit the background image.

Most likely there's something changed in the online version that causes this problem.
Wasn't aware that you made an local version of Drawsvg, installed this and that works perfect again.

Thanks, will buy your wife a coffee as noted on the github page.

Ah that is a pitty. Yes indeed something will be changed.
Then you are indeed stuck with the old DrawSvg version offered by my node-red-contrib-drawsvg node. Which means you won't have the latest developments of DrawSvg not anymore at your disposal.

Unfortunately I have migrate my own dashboard at home to D2, and I am now 'trying' to migrate my ui nodes to D2. So no time at all anymore to fix bugs on the old ui nodes. Even not enough time to finalize the new ui nodes...

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.