Enlarge height to get full estonia
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user