Skip to content

Commit dad29b2

Browse files
committed
fix: shape fix
1 parent 5a7c2cd commit dad29b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/shapes/shape.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export default abstract class Shape extends Observable {
318318
}
319319
canvas.save();
320320
if (this.rotate !== 0) {
321-
canvas.rotate(this.rotate, this.originX, this.originY);
321+
canvas.rotate(this.rotate, this.originX * width, this.originY * height);
322322
}
323323
if (dx !== 0 || dy !== 0) {
324324
canvas.translate(dx, dy);

0 commit comments

Comments
 (0)