From 9601e24d4b2fe12e65c175e34e225990a5aa8766 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Thu, 18 Feb 2021 15:49:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D3.1.2=E7=89=88?= =?UTF-8?q?=E6=9C=AC=20canvasGetImageData=E3=80=81canvasToTempFilePath=20?= =?UTF-8?q?=E9=AB=98=E5=BA=A6=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/view/components/canvas/index.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/view/components/canvas/index.vue b/src/core/view/components/canvas/index.vue index d553daf22..a4c885381 100644 --- a/src/core/view/components/canvas/index.vue +++ b/src/core/view/components/canvas/index.vue @@ -4,10 +4,10 @@ :disable-scroll="disableScroll" v-on="_listeners" > -
@@ -372,7 +372,7 @@ export default { const maxWidth = canvas.offsetWidth - x width = width ? Math.min(width, maxWidth) : maxWidth const maxHeight = canvas.offsetHeight - y - height = height ? Math.min(height, maxWidth) : maxHeight + height = height ? Math.min(height, maxHeight) : maxHeight if (!hidpi) { if (!destWidth && !destHeight) { destWidth = Math.round(width * pixelRatio) -- GitLab