13

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?

maxkfranz
  • 11,896
  • 1
  • 27
  • 36
mbeynon
  • 243
  • 2
  • 8
  • !(https://cloud.githubusercontent.com/assets/5722945/16018601/23d6d1a2-3173-11e6-9bbc-2b2d9c3bcd28.png) – mbeynon Jun 15 '16 at 11:38

2 Answers2

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
1

Use like this.

cy.edges('edge').style({
    "curve-style": "bezier",
    "target-arrow-shape": "triangle"
})
Nithin Kumar Biliya
  • 2,763
  • 3
  • 34
  • 54