Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple interface labels overlap/block each other #96

Open
nikzeyn opened this issue Mar 17, 2022 · 3 comments · May be fixed by #134
Open

Multiple interface labels overlap/block each other #96

nikzeyn opened this issue Mar 17, 2022 · 3 comments · May be fixed by #134

Comments

@nikzeyn
Copy link

nikzeyn commented Mar 17, 2022

When there are more than one link (curved links) between two devices, the interface labels cover each other so it becomes hard to read. Any idea why it might be and what part of code I can look at to play with/correct it?

@ocalaf-unitenic
Copy link

I can confirm that issue, it would be nice to have a fix, a workaround or to know where should we investigate to find a solution ourselves

@Mindl-dev
Copy link

Mindl-dev commented Jun 30, 2023

Found a fix for this.

In next_app.js in static/next_ui_plugin, add this at line 320:

var _offset = this.getOffset();
var n = line.normal().multiply(_offset);

Change line 326 to:

point = line.start.add(n);

Change line 337 to:

point = line.end.subtract(n);

Its doesn't look perfect, but it works.

Capture

#134

@Mindl-dev Mindl-dev linked a pull request Jun 30, 2023 that will close this issue
@nikzeyn
Copy link
Author

nikzeyn commented Jul 1, 2023

Great! Thanks for the solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants