65 Edge Label Rotate - Follow Edge Direction - yEd Q&A
Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Edge Label Rotate - Follow Edge Direction

0 votes
Is there a way to get the edge label to follow the direction of the edge itself? This is mainly for when the label is on a vertical section of an edge - when I draw an edge from A to B, I want the label to rotate so it follows the direction of A -> B.

Auto Rotate With Edge doesn't quite do this. I currently have to manually toggle Auto-Flip on edges that go from top to bottom (the bottom to top is fine) every time, which gets tedious.
ago in Help by

1 Answer

0 votes

Well, "Auto-Rotate with Edge" is the way to go.

If you do not like "Auto-Flip", try the following:

  1. Create a new diagram with only two nodes and one edge. Add a label to said edge and configure said label to use "Auto-Rotate with Edge" but turn off "Auto-Flip".
  2. Create a user-defined palette section and add the edge from step one to said palette section. (Right-click the edge to open its context menu and choose "Add to Palette".)
  3. Set the new style template in the new palette section as the default style for new edges. (Double-click the template to do so.)

This way you will not have to change the "Auto-Flip" property of your edge labels anymore.

That said, turning off "Auto-Flip" has the disadvantage of upside-down text in labels:

With "Auto-Flip" turned on, there is no upside-down text:

For vertical edges, there is no unambiguous solution for "no upside-down text". yEd uses the same orientation for bottom-to-top and top-to-bottom edges, because this is one less different orientation and thus helps to slightly reduce visual "clutter".

ago by [yWorks] (162k points)
Ah I see how this works now. Still, IMHO the orientation for vertical edges should follow the edge direction from source to target as the 'tie breaker'.

I guess, it comes down to personal preference.

Your preference:

Our preference:

The important thing is that yEd supports both orientations - even though yours requires more manual configuration effort.

Legal Disclosure | Privacy Policy
...