|
@@ -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;
|