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

Add options for setting default node and edge styles #7

Open
jlaw9 opened this issue Jul 20, 2017 · 1 comment
Open

Add options for setting default node and edge styles #7

jlaw9 opened this issue Jul 20, 2017 · 1 comment

Comments

@jlaw9
Copy link

jlaw9 commented Jul 20, 2017

Right now we set node and edge attributes for each node and edge separately. Most of the attributes we're setting are the same for all nodes and edges. It would be much cleaner (and probably faster) to set those attributes as defaults in a node or edge selector style attribute.

For example:

{
    "selector": "node",
    "style": {
        "shape": "ellipse",
        "background-color": "#666"
   }
},
@sandeepm96
Copy link
Collaborator

An add_style() method has been implemented to solve this issue. You can see the changes here:
077d470

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