0

This is somewhat of a follow on to this question (I'm piggybacking here):

Add an edge label with Cytoscape.js

This allows you to add a label to the edge, but the labels are always horizontal regardless of the edge's actual position. Is there anyway to bind the label itself to the edge so that when the edge repositions, the label rotates with it?

Community
  • 1
  • 1

2 Answers2

0

Not currently, and I would be hesitant to add a feature like that because it makes the text harder to read for users. It also wouldn't really be possible for bezier edges without skewing the text -- making legibility even worse.

Do you have a specific usecase that requires labels like this. Would you please describe it?

Edit:

Also see #714. Rui Cheng is implementing a feature like this.

maxkfranz
  • 11,896
  • 1
  • 27
  • 36
  • Well, from what I understood, [this](http://codio.io/gpublio/GAT-HTML5/index_v01.html) is the problem that he's talking about. This overposition on edge's labels is bothering. – gcpdev Mar 21 '14 at 17:20
0

I made patch for cytoscape, maybe it will be helpfull for you.

Link to patched buld version: cytoscape-2.3.4-patched.js

Link to patch for builded js file version 2.3.4: cytoscape-2.3.4.patch

Please, ask your questions if you have.