Enlarge height to get full estonia

This commit is contained in:
Guntis Smaukstelis
2025-07-11 00:00:11 +03:00
parent 6851c44779
commit 552110f6f0
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -22,6 +22,7 @@ export const DrawView: Component<{
createEffect(async () => {
setIsLoading(true)
const canvas = getCanvas()!
canvas.style.width = '100%'
const ctx = canvas.getContext('2d')!
ctx.clearRect(0, 0, canvas.width, canvas.height)
const cropBounds = options.getIsCrop() ? CROP_BOUNDS : undefined
+2 -2
View File
@@ -185,8 +185,8 @@ export function drawRotate(
tempCtx.restore()
ctx.clearRect(0, 0, canvas.width, canvas.height)
canvas.width = 640*4 - 510 // -offset right
canvas.height = 540*1.7
canvas.width = 640*4 - 1000 // -offset right
canvas.height = 540*1.7 + 140
// canvas.style.border = "1px solid red"
// console.log(ctx.imageSmoothingEnabled, ctx.imageSmoothingQuality)
if (isInterpolated) {