From 881fe6f9d5aed244f26826b6c952cd0ad393bf53 Mon Sep 17 00:00:00 2001
From: ciaochaos <1272777550@qq.com>
Date: Fri, 15 May 2020 11:37:31 +0800
Subject: [PATCH] =?UTF-8?q?C3=20=E9=A2=9C=E8=89=B2=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/codeStyles/codeStyleConfig.xml | 5 +++
src/components/renderer/RendererResImage.js | 47 +++++++++++++--------
src/utils/util.js | 2 +-
3 files changed, 36 insertions(+), 18 deletions(-)
create mode 100644 .idea/codeStyles/codeStyleConfig.xml
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 0000000..a55e7a1
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/renderer/RendererResImage.js b/src/components/renderer/RendererResImage.js
index f3c4887..6633206 100644
--- a/src/components/renderer/RendererResImage.js
+++ b/src/components/renderer/RendererResImage.js
@@ -11,6 +11,8 @@ function listPoints(qrcode, params) {
const pointList = new Array(nCount);
let alignType = params[1];
let timingType = params[2];
+ let otherColor = params[3];
+ let posColor = params[4];
let id = 0;
for (let x = 0; x < nCount; x++) {
@@ -19,21 +21,21 @@ function listPoints(qrcode, params) {
if (typeTable[x][y] == QRPointType.ALIGN_CENTER || typeTable[x][y] == QRPointType.ALIGN_OTHER) {
if (qrcode.isDark(x, y)) {
if (alignType === 2) {
- pointList.push(