vasturiano / react-force-graph

React component for 2D, 3D, VR and AR force directed graphs
https://vasturiano.github.io/react-force-graph/example/large-graph/
MIT License
2.2k stars 285 forks source link

How to access DOM elements inside the canvas and export is as SVG? #403

Open irusriAZ opened 1 year ago

irusriAZ commented 1 year ago

I would like to access network inside the ForceGraph2D and export it as SVG image. How can I access the elements inside the canvas? Later I would like to use fabricjs or canvas2svg to export it as SVG.

FatouDllo commented 1 year ago

Hello, I am also trying to export the graph in pdf format have you managed to do it if so can you guide me?

irusriAZ commented 1 year ago

HI @FatouDllo I am sorry, I still did not manage to make that work.

rsodha commented 6 months ago

+1