Skip to content

Commit 4049536

Browse files
yuhao1118Yuhao
andauthored
fix: 🐛 toCanvas scale (bubkoo#102)
Co-authored-by: Yuhao <liyuhao.plastic@bytedance.com>
1 parent d19ab04 commit 4049536

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export async function toCanvas(
106106
context.fillRect(0, 0, canvas.width, canvas.height)
107107
}
108108

109-
context.drawImage(image, 0, 0)
109+
context.drawImage(image, 0, 0, canvas.width, canvas.height)
110110

111111
return canvas
112112
})

0 commit comments

Comments
 (0)