nextbox-ui-plugin
nextbox-ui-plugin copied to clipboard
Multiple interface labels overlap/block each other
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?
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
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.
#134
Great! Thanks for the solution!