Apply rotation to node label selection

This commit is contained in:
ziajka 2018-11-21 10:56:52 +01:00
parent 593a91dfd3
commit 3e4bf71c9c

View File

@ -125,6 +125,7 @@ export class LabelWidget implements Widget {
current.attr('height', bbox.height + border * 2);
current.attr('x', bbox.x - border);
current.attr('y', bbox.y - border);
current.attr('transform', `rotate(${l.rotation}, ${bbox.x - border}, ${bbox.y - border})`);
});
}