johnnyflinn / ngCytoscape

Angular directive for cytoscape.js
http://johnnyflinn.github.io/ngCytoscape
MIT License
17 stars 18 forks source link

node and edge styles #21

Closed ckapop closed 7 years ago

ckapop commented 7 years ago

How do we include edge styles along with node styles in your example?

johnnyflinn commented 7 years ago

By passing in the appropriate selector to the graph-style attribute.

$scope.styles = [ { selector: 'edge', style:{ 'line-color': 'red' } } ];

See http://js.cytoscape.org/#style/edge-line for available options.