Skip to content

Commit 08926a8

Browse files
committed
fix(DotImageCanvas): correct clearRect size and improve error handling formatting
1 parent d7e70d9 commit 08926a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/canvas/DotImageCanvas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class DotImageCanvas {
175175
for (const { x, y, color } of batchPoints) {
176176
this.ctx.beginPath()
177177
this.ctx.fillStyle = color
178-
this.ctx.clearRect(x - size, y - size, size * 5, size * 5)
178+
this.ctx.clearRect(x - size, y - size, size * 2.5, size * 2.5)
179179
}
180180
}
181181

0 commit comments

Comments
 (0)