From a4111812cf2aea87bfae48551b34768cfdfc62a8 Mon Sep 17 00:00:00 2001 From: ciaochaos <1272777550@qq.com> Date: Wed, 6 May 2020 15:08:37 +0800 Subject: [PATCH] =?UTF-8?q?DSJ=20=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/QrRendererDSJ.js | 34 ++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/components/QrRendererDSJ.js b/src/components/QrRendererDSJ.js index 1713420..d64dcc2 100644 --- a/src/components/QrRendererDSJ.js +++ b/src/components/QrRendererDSJ.js @@ -37,18 +37,18 @@ function listPoint(props) { else if (typeTable[x][y] == QRPointType.POS_CENTER) { if (posType == 0) { - pointList.push(); + pointList.push(); } else if (posType == 1) { - pointList.push(); - pointList.push(); - pointList.push(); - pointList.push(); - pointList.push(); + pointList.push(); + pointList.push(); + pointList.push(); + pointList.push(); + pointList.push(); } } else if (typeTable[x][y] == QRPointType.POS_OTHER) { if (posType == 0) { - pointList.push(); + pointList.push(); } } else { @@ -62,8 +62,8 @@ function listPoint(props) { } } if (ctn && qrcode.isDark(x + 2, y) && qrcode.isDark(x + 1, y + 1) && qrcode.isDark(x, y + 2) && qrcode.isDark(x + 2, y + 2)) { - g1.push() - g1.push() + g1.push() + g1.push() available[x][y] = false; available[x + 2][y] = false; available[x][y + 2] = false; @@ -86,8 +86,8 @@ function listPoint(props) { } } if (ctn && qrcode.isDark(x + 1, y) && qrcode.isDark(x, y + 1) && qrcode.isDark(x + 1, y + 1)) { - g1.push() - g1.push() + g1.push() + g1.push() for (let i = 0; i < 2; i++) { for (let j = 0; j < 2; j++) { available[x + i][y + j] = false; @@ -113,8 +113,8 @@ function listPoint(props) { ava2[x][i] = false; available[x][i] = false; } - g2.push() - g2.push() + g2.push() + g2.push() } } } @@ -135,12 +135,12 @@ function listPoint(props) { ava2[i][y] = false; available[i][y] = false; } - g2.push() + g2.push() } } } if (available[x][y]) { - pointList.push() + pointList.push() } @@ -165,7 +165,7 @@ class QrRendererDSJ extends React.Component { this.props.setParamInfo([ { key: '信息点缩放', - default: 80, + default: 70, }, { key: 'x 宽度', @@ -176,7 +176,7 @@ class QrRendererDSJ extends React.Component { default: 1, choices: [ "矩形", - "默认", + "DSJ", ] }, ]