mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-18 14:58:15 +00:00
Improve position of rotated node label
This commit is contained in:
@ -105,7 +105,7 @@ export class LabelWidget implements Widget {
|
|||||||
return l.y + bbox.height - LabelWidget.NODE_LABEL_MARGIN;
|
return l.y + bbox.height - LabelWidget.NODE_LABEL_MARGIN;
|
||||||
})
|
})
|
||||||
.attr('transform', (l: MapLabel) => {
|
.attr('transform', (l: MapLabel) => {
|
||||||
return `rotate(${l.rotation}, 0, 0)`;
|
return `rotate(${l.rotation}, ${l.x}, ${l.y})`;
|
||||||
})
|
})
|
||||||
|
|
||||||
label_body_merge
|
label_body_merge
|
||||||
|
Reference in New Issue
Block a user