kinimesi / cytoscape-svg

A Cytoscape.js extension to export the current graph view as an SVG.
https://kinimesi.github.io/cytoscape-svg
GNU General Public License v3.0
34 stars 5 forks source link

background color #4

Closed KonradHoeffner closed 4 years ago

KonradHoeffner commented 4 years ago

Is there a way to set the background color? My application has a black background but the SVG gets exported with a white background.

kinimesi commented 4 years ago

There is, but it wasn't documented and not working properly. Fixed in the latest version and added it to the README. Here is an example

You can setup the background color with the bg option.