Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edge target arrows not working in Cytoscape.js >=2.7.0

Tags:

cytoscape.js

I noticed that edge source or target arrows are missing when using the current unstable branch (2.7.0-unstable). The standard cy demo show below. Is this a known issue or has something changed?

like image 891
mbeynon Avatar asked Jun 14 '16 21:06

mbeynon


1 Answers

The default stylesheet was updated in 2.7 to have greater performance by default. This means that haystack edges are used by default, and haystacks support only mid arrows.

If you set your edges in your stylesheet to beziers, then you can use source and target arrows, e.g.

edge {
  curve-style: bezier;
  target-arrow-shape: triangle;
}
like image 91
maxkfranz Avatar answered Oct 14 '22 04:10

maxkfranz