From 5b19ee5308733a02084671af6c230d46aa0c5c8a Mon Sep 17 00:00:00 2001
From: ciaochaos <1272777550@qq.com>
Date: Wed, 24 Jun 2020 13:53:45 +0800
Subject: [PATCH] =?UTF-8?q?SP=20=E2=80=94=203=20=E5=BE=AE=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/renderer/RendererCircle.js | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/components/renderer/RendererCircle.js b/src/components/renderer/RendererCircle.js
index f670dde..0cf00fb 100644
--- a/src/components/renderer/RendererCircle.js
+++ b/src/components/renderer/RendererCircle.js
@@ -58,6 +58,9 @@ function listPoints(qrcode, params) {
}
if (ctn && qrcode.isDark(x + 1, y) && qrcode.isDark(x + 1, y + 2) && qrcode.isDark(x, y + 1) && qrcode.isDark(x + 2, y + 1)) {
g1.push()
+ if (qrcode.isDark(x + 1, y + 1)) {
+ g1.push()
+ }
available[x + 1][y] = false;
available[x][y + 1] = false;
available[x + 2][y + 1] = false;
@@ -82,24 +85,24 @@ function listPoints(qrcode, params) {
}
if (available[x][y] && y < nCount - 1) {
if (qrcode.isDark(x, y) && qrcode.isDark(x, y + 1)) {
- pointList.push()
+ pointList.push()
available[x][y] = false;
available[x][y + 1] = false;
}
}
if (available[x][y] && x < nCount - 1) {
if (qrcode.isDark(x, y) && qrcode.isDark(x + 1, y)) {
- pointList.push()
+ pointList.push()
available[x][y] = false;
available[x + 1][y] = false;
}
}
if (available[x][y]) {
if (qrcode.isDark(x, y)) {
- pointList.push()
+ pointList.push()
} else if (typeTable[x][y] === QRPointType.DATA) {
- if (rand(0,1) > 0.8) {
- g2.push()
+ if (rand(0,1) > 0.85) {
+ g2.push()
}
}
}