Improve position of rotated node label

This commit is contained in:
ziajka
2018-11-21 10:48:21 +01:00
parent f802d8d952
commit 593a91dfd3

View File

@ -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