-
Notifications
You must be signed in to change notification settings - Fork 9
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
Support change background #52
Comments
@kinimesi @royludo @metincansiper please, asnwer, this is feature |
@kubitre Feel free to do a PR to the unstable branch please |
@kubitre why don't you just set the background color of cytoscape div? |
@kinimesi it seems that this option is a crutch =) The point is not to do it well for me, but to everyone who possibly uses this lib. If you change the background through the configuration, besides, this is not a super global change, backward compatible, I see no reason not to support it |
@ugurdogrusoz check my pr please |
@kubitre I'm sorry, but I think it's redundant to have such an option in this extension while the same feature can be achieved by just setting the CSS background color for Cytoscape div #cy {
background: #000;
} Also the default |
I think @kinimesi is right. |
all lines are colored as background color of this div |
this work if i change alpha level to 0.9, but If you have to bother like that, then this is some kind of game |
but if i change grid lines color to white for example, i get full fill color as background color of div |
@kubitre how do those rectangular white dots appear? I agree with @kinimesi. The background color of your canvas is not related to this extension. By using CSS, you can set the background color of your canvas. If you set a background color, |
Hello! I want to upgrade your wonderful library so that it allows you to change the background. just pass the background setting (color)(change naming, this color is GridLinesColor):
cytoscape.js-grid-guide/src/index.js
Line 35 in 296adb1
Change as:
, and after need add in svg rendering
cytoscape.js-grid-guide/src/draw_grid.js
Lines 55 to 56 in 296adb1
following code:
This result i showed on attached image:
The text was updated successfully, but these errors were encountered: