diff --git a/libs/bluepixle.js b/libs/bluepixle.js index 561aadc..6444d87 100644 --- a/libs/bluepixle.js +++ b/libs/bluepixle.js @@ -129,7 +129,7 @@ class container { this.containers.forEach(cont => cont.renderContainer(ctx,refPos,refRot)); } ctx.translate(center.d[0],center.d[1]); - ctx.rotate(-origRot); + ctx.rotate(-refRot.getRadAngle()); ctx.translate(-center.d[0],-center.d[1]); }