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?
Asked
Active
Viewed 5,691 times
13
-
!(https://cloud.githubusercontent.com/assets/5722945/16018601/23d6d1a2-3173-11e6-9bbc-2b2d9c3bcd28.png) – mbeynon Jun 15 '16 at 11:38
2 Answers
40
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;
}

maxkfranz
- 11,896
- 1
- 27
- 36
-
It works. Thanks a lot. I am currently using Cytoscape.js >=2.7.0 for network virtualization. – Hua Zhang May 26 '17 at 00:43
-
-
1
1
Use like this.
cy.edges('edge').style({
"curve-style": "bezier",
"target-arrow-shape": "triangle"
})

Nithin Kumar Biliya
- 2,763
- 3
- 34
- 54

Shizan Bhat
- 11
- 1