We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a7c2cd commit dad29b2Copy full SHA for dad29b2
src/shapes/shape.ts
@@ -318,7 +318,7 @@ export default abstract class Shape extends Observable {
318
}
319
canvas.save();
320
if (this.rotate !== 0) {
321
- canvas.rotate(this.rotate, this.originX, this.originY);
+ canvas.rotate(this.rotate, this.originX * width, this.originY * height);
322
323
if (dx !== 0 || dy !== 0) {
324
canvas.translate(dx, dy);
0 commit comments