Enlarge height to get full estonia
This commit is contained in:
@@ -22,6 +22,7 @@ export const DrawView: Component<{
|
|||||||
createEffect(async () => {
|
createEffect(async () => {
|
||||||
setIsLoading(true)
|
setIsLoading(true)
|
||||||
const canvas = getCanvas()!
|
const canvas = getCanvas()!
|
||||||
|
canvas.style.width = '100%'
|
||||||
const ctx = canvas.getContext('2d')!
|
const ctx = canvas.getContext('2d')!
|
||||||
ctx.clearRect(0, 0, canvas.width, canvas.height)
|
ctx.clearRect(0, 0, canvas.width, canvas.height)
|
||||||
const cropBounds = options.getIsCrop() ? CROP_BOUNDS : undefined
|
const cropBounds = options.getIsCrop() ? CROP_BOUNDS : undefined
|
||||||
|
|||||||
@@ -185,8 +185,8 @@ export function drawRotate(
|
|||||||
tempCtx.restore()
|
tempCtx.restore()
|
||||||
|
|
||||||
ctx.clearRect(0, 0, canvas.width, canvas.height)
|
ctx.clearRect(0, 0, canvas.width, canvas.height)
|
||||||
canvas.width = 640*4 - 510 // -offset right
|
canvas.width = 640*4 - 1000 // -offset right
|
||||||
canvas.height = 540*1.7
|
canvas.height = 540*1.7 + 140
|
||||||
// canvas.style.border = "1px solid red"
|
// canvas.style.border = "1px solid red"
|
||||||
// console.log(ctx.imageSmoothingEnabled, ctx.imageSmoothingQuality)
|
// console.log(ctx.imageSmoothingEnabled, ctx.imageSmoothingQuality)
|
||||||
if (isInterpolated) {
|
if (isInterpolated) {
|
||||||
|
|||||||
Reference in New Issue
Block a user