Keeping link label on link path

Resolved issue, I have another label align issue

  1. myDiagram Generated: I want to show label (text like R) align on specific link

  2. LinkLabelRouter Code:

  3. LinkTemplate Code:

What happens when you don’t use the LinkLabelRouter?

Overlapping happened on my Link label that’s why I’m using LinkLabelRouter

Overlapping issue is resolved after using linkLabelRouter but Now Link Label are hanging.

  1. Before using LinkLabelRouter:

  2. After using LinkLabelRouter:

Did you stop using the AvoidsLinksRouter? Continue to use it.

No, I want AvoidLinkRouter feature to show separate link path.

It looks like you should be using the AvoidsLinkRouter but not the LinkLabelRouter, what does a screenshot of that look like?

The LinkLabelRouter uses a ForceDirectedLayout to push labels away from each-other, and it sounds like you want a more structured mechanism for that. We do not have such a router yet, though you could implement one based on your own rules.

Is there any enhancement in future, to provide such router.

We would like to make one, or at least improve the ForceDirected-based one so that it attempts to keep each label as close to its own link as possible, but we don’t have a timeline for these improvements.