mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-15 06:06:35 +00:00
Fix interface labels positions
This commit is contained in:
parent
b733d94fbe
commit
3e9eb81dfd
@ -86,13 +86,8 @@ export class InterfaceLabelWidget {
|
||||
styles = this.fontFixer.fixStyles(styles);
|
||||
return styles;
|
||||
})
|
||||
.attr('x', function (this: SVGTextElement, l: MapLinkNode) {
|
||||
return l.label.x;
|
||||
})
|
||||
.attr('y', function (this: SVGTextElement, l: MapLinkNode) {
|
||||
let bbox = this.getBBox();
|
||||
return l.label.y + bbox.height;
|
||||
})
|
||||
.attr('x', (l: MapLinkNode) => l.label.x)
|
||||
.attr('y', (l: MapLinkNode) => l.label.y)
|
||||
.attr('transform', (l: MapLinkNode) => {
|
||||
return `rotate(${l.label.rotation}, ${l.label.x}, ${l.label.y})`;
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user