nextbox-ui-plugin icon indicating copy to clipboard operation
nextbox-ui-plugin copied to clipboard

Multiple interface labels overlap/block each other

Open nikzeyn opened this issue 2 years ago • 3 comments

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?

nikzeyn avatar Mar 17 '22 05:03 nikzeyn

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

ocalaf-unitenic avatar May 25 '22 07:05 ocalaf-unitenic

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 avatar Jun 30 '23 14:06 Mindl-dev

Great! Thanks for the solution!

nikzeyn avatar Jul 01 '23 07:07 nikzeyn