ACE-IoT-Solutions / ace-svg-react

Grafana SVG Rendering Panel using the 7+ Plugin Framework
https://grafana.com/grafana/plugins/aceiot-svg-panel/
MIT License
41 stars 14 forks source link

Adding all element IDs not working #13

Closed kgroshert closed 2 years ago

kgroshert commented 3 years ago

I am trying to use "Add all SVG element IDs" on a large SVG document (2MB, 160 rects with id). When pushing the button nothing happens. It works fine with simpler SVGs.

Is there anything I can do to debug this?

acedrew commented 3 years ago

Anything you can provide from console would be great, if there are errors. I've not tried any SVG documents that large, so there may just be some limits in the SVG.js code. That's a lot of work, and while we use the React API, SVG rendering doesn't benefit from the virtual DOM so the performance is still somewhat limited.

You can also access the svgnode from the console and manually verify the IDs are getting parsed into the SVG.js object correctly.

acedrew commented 2 years ago

Closing due to no follow up.