Drawings - rotation support, Fixes: #140

This commit is contained in:
ziajka 2018-05-28 15:24:39 +02:00
parent 46d028a4d2
commit cc2544e3d0

View File

@ -44,7 +44,7 @@ export class DrawingsWidget implements Widget {
const drawing_merge = drawing.merge(drawing_enter)
.attr('transform', (d: Drawing) => {
return `translate(${d.x},${d.y})`;
return `translate(${d.x},${d.y}) rotate(${d.rotation})`;
});
this.drawingWidgets.forEach((widget) => {