Skip to content

Commit

Permalink
[fix] A — a1 透明度参数
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaochaos committed Jun 21, 2020
1 parent 2582f37 commit bbc2d69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/renderer/RendererLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function listPoints(qrcode, params) {
ava2[x][y + i] = false;
available[x][y + i] = false;
}
pointList.push(<line x1={x + 0.5} y1={y + 0.5} x2={x + 0.5} y2={y + end - start - 1 + 0.5} strokeWidth={size} stroke={otherColor} strokeLinecap="round" key={id++}/>)
pointList.push(<line opacity={opacity} x1={x + 0.5} y1={y + 0.5} x2={x + 0.5} y2={y + end - start - 1 + 0.5} strokeWidth={size} stroke={otherColor} strokeLinecap="round" key={id++}/>)
}
}
if (available[x][y]) {
Expand All @@ -134,7 +134,7 @@ function listPoints(qrcode, params) {
ava2[x + i][y + i] = false;
available[x + i][y + i] = false;
}
pointList.push(<line x1={x + 0.5} y1={y + 0.5} x2={x + end - start - 1 + 0.5} y2={y + end - start - 1 + 0.5} strokeWidth={size} stroke={otherColor} strokeLinecap="round" key={id++}/>)
pointList.push(<line opacity={opacity} x1={x + 0.5} y1={y + 0.5} x2={x + end - start - 1 + 0.5} y2={y + end - start - 1 + 0.5} strokeWidth={size} stroke={otherColor} strokeLinecap="round" key={id++}/>)
}
}
if (available[x][y]) {
Expand All @@ -159,7 +159,7 @@ function listPoints(qrcode, params) {
ava2[x - i][y + i] = false;
available[x - i][y + i] = false;
}
pointList.push(<line x1={x + 0.5} y1={y + 0.5} x2={x - (end - start - 1) + 0.5} y2={y + (end - start - 1) + 0.5} strokeWidth={size} stroke={otherColor} strokeLinecap="round" key={id++}/>)
pointList.push(<line opacity={opacity} x1={x + 0.5} y1={y + 0.5} x2={x - (end - start - 1) + 0.5} y2={y + (end - start - 1) + 0.5} strokeWidth={size} stroke={otherColor} strokeLinecap="round" key={id++}/>)
}
}
if (available[x][y]) {
Expand Down

0 comments on commit bbc2d69

Please sign in to comment.