Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background color (not fixed ?) #6

Closed
Stefdv opened this issue Jan 20, 2021 · 5 comments
Closed

Background color (not fixed ?) #6

Stefdv opened this issue Jan 20, 2021 · 5 comments

Comments

@Stefdv
Copy link

Stefdv commented Jan 20, 2021

No description provided.

@Stefdv
Copy link
Author

Stefdv commented Jan 20, 2021

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

@Stefdv
Copy link
Author

Stefdv commented Jan 20, 2021

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

@kinimesi
Copy link
Owner

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
Copy link
Author

Stefdv commented Jan 30, 2021

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

@kinimesi
Copy link
Owner

kinimesi commented Apr 3, 2021

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

@kinimesi kinimesi closed this as completed Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants