Do not maintain zoom for size outlines

main
kts of kettek 2024-04-11 00:09:11 -07:00
parent d40a6d6482
commit f715cf6e6a
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@
ctx.translate(x, y)
ctx.scale(zoom, zoom)
ctx.strokeStyle = baseSizeOutlineColor
ctx.lineWidth = 1
ctx.lineWidth = 1 / zoom
ctx.strokeRect(-file.data.width/2, -file.data.height/2, file.data.width, file.data.height)
ctx.restore()
}
@ -68,7 +68,7 @@
ctx.scale(zoom, zoom)
ctx.rotate(rotation * Math.PI / 180)
ctx.strokeStyle = sizeOutlineColor
ctx.lineWidth = 1
ctx.lineWidth = 1 / zoom
ctx.strokeRect(-file.data.width/2, -file.data.height/2, file.data.width, file.data.height)
ctx.restore()
}