Skip to content

Commit 573c9ff

Browse files
authored
fix(image): fix #602 (#617)
1 parent fa3a1d5 commit 573c9ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/image/src/core/Renderer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ export class Renderer extends EventEmitter {
7070
canvas.height = height * this.ratio;
7171
canvas.style.width = `${width}px`;
7272
canvas.style.height = `${height}px`;
73+
this.options.width = width;
74+
this.options.height = height;
7375

7476
this.ctx?.scale(this.ratio, this.ratio);
7577
}

0 commit comments

Comments
 (0)