CDCgov / MicrobeTrace

The Visualization Multitool for Molecular Epidemiology and Bioinformatics
https://microbetrace.cdc.gov/
Apache License 2.0
88 stars 38 forks source link

Mossy: unable to export from 2D view #852

Open ikb6 opened 1 week ago

ikb6 commented 1 week ago

Tried to export SVG, PNG and JPEG from 2D view. Does not seem to work

mossy426 commented 15 hours ago

I've got it to work with svg. The main issue was that it was reference the old network object, not the unovis object. That being said, for the other ones the problem is that the unovis network is a custom element that the save library cannot read. I can see a possible resolution by modifying the savesvgaspng library, but then we would have to maintain a custom library. Looking for work arounds, but will push at least the fix for svg to mossy for now.