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
35 stars 5 forks source link

Background color (not fixed ?) #6

Closed Stefdv closed 3 years ago

Stefdv commented 3 years ago

It seems that the background color (option bg) is not working. i get a persistent yellow background

Stefdv commented 3 years ago

I should add that i'm using cytoscape-svg.js in browser

kinimesi commented 3 years ago

Are you sure? I just tested the demo file and it works. Below is the syntax. You need to pass the background color code as an argument. The default color in the demo file is yellow.

cy.svg({scale: 1, full: true, bg: '#ff0000'})
Stefdv commented 3 years ago

That's how i did it... will try again. Tx for the reply

kinimesi commented 3 years ago

Closing since I can't reproduce. Please reopen and provide an example if the issue still exists.