bill 1 سال پیش
والد
کامیت
469512b364
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 3 1
      src/view/case/draw/selectFuseImage.vue
  2. 1 1
      src/view/case/help.ts

+ 3 - 1
src/view/case/draw/selectFuseImage.vue

@@ -94,6 +94,7 @@ const refreshBlob = async () => {
   const width = 500 * scale;
   const height = 390 * scale;
   const fuseImage = await getFuseImage(iframeRef.value, width, height);
+
   if (fuseImage?.blob) {
     imageBlob.value =
       fuseImage.type !== FuseImageType.FUSE
@@ -102,7 +103,8 @@ const refreshBlob = async () => {
             iframeRef.value,
             fuseImage.blob,
             selectTaggings.value,
-            width
+            width,
+            height
           );
   }
 };

+ 1 - 1
src/view/case/help.ts

@@ -272,7 +272,7 @@ export const fuseImageJoinHot = async (
 
   const $ccanvas = document.createElement("canvas");
   $ccanvas.width = width;
-  $ccanvas.height = width;
+  $ccanvas.height = height;
   const cctx = $ccanvas.getContext("2d")!;
   drawImage(
     cctx,