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

Hide some DrawSvg menu items #32

Open bartbutenaers opened 4 years ago

bartbutenaers commented 4 years ago

Some of the DrawSvg menu items are not relevant in our context, so they should be removed:

image

image

Not sure whether we have to remove Google maps: image Users already have the worldmap node, and moreover this option won't be available anyway in the offline version.

Not sure whether we have to remove the media? image During development of my node-red-contrib-ui-camera-viewer node I had lots of issue with the foreignobject (which is being used to embed these media elements inside an SVG) on some browsers ...

image

Steve (@Steve-Mcl),

Steve-Mcl commented 4 years ago

Bart, I am thinking, as the author is (rightly) keen to control his product, perhaps we might offer some concessions to ease his worries. i.e. Ask the author to have a build that actually removes the "new", "load", "save" functionality completely - meaning anyone copying our local version will have a reduced functioning version.

As for media elements, I am not certain we should remove these - might be beneficial. At minimum, if we had the API to remove/hide the buttons?

As for maps - its a nice to have anyway (I believe it generates an image - not embed a map - so if a user wanted an image of a map, they could do this themselves).