liyongli hace 2 años
padre
commit
18146f1b91
Se han modificado 1 ficheros con 14 adiciones y 14 borrados
  1. 14 14
      src/view/easyDiffusion/components/imageEdit.vue

+ 14 - 14
src/view/easyDiffusion/components/imageEdit.vue

@@ -329,19 +329,19 @@ const width = [6, 14, 16, 24, 30, 40, 48, 64];
 //   ctxBg.beginPath();
 //   ctxBg.fillRect(0, 0, waith.value, height.value);
 // };
-const fillAll = () => {
-  const conf = {
-    globalAlpha: select.value[3],
-    shadowBlur: select.value[4] * 5,
-    strokeStyle: select.value[1],
-    shadowColor: select.value[1],
-    lineWidth: select.value[2],
-    lineCap: 'round',
-    lineJoin: 'round',
-    type: 'rect',
-  };
-  ctxBg.fillRect(0, 0, waith.value, height.value);
-};
+// const fillAll = () => {
+//   const conf = {
+//     globalAlpha: select.value[3],
+//     shadowBlur: select.value[4] * 5,
+//     strokeStyle: select.value[1],
+//     shadowColor: select.value[1],
+//     lineWidth: select.value[2],
+//     lineCap: 'round',
+//     lineJoin: 'round',
+//     type: 'rect',
+//   };
+//   ctxBg.fillRect(0, 0, waith.value, height.value);
+// };
 // 清除
 const clearAll = () => {
   pathList = [];
@@ -465,7 +465,7 @@ const drawBg = () => {
   canvasBg.value.width = wbg;
   for (let o = 0; o < pathList.length; o++) {
     const config = pathList[o];
-    // if(config.type !== 'line') 
+    if(config.type !== 'line') continue;
     ctxBg.beginPath();
     ctxBg.lineCap = config.lineCap;
     ctxBg.lineJoin = config.lineJoin;