Skip to content

Commit

Permalink
Fix render line (latentcat#19)
Browse files Browse the repository at this point in the history
* 修改文档加入 npm 包

* 1.fix line func 属性没有转换为字符串

Co-authored-by: 葛欣 <[email protected]>
  • Loading branch information
gexin1 and 葛欣 authored Aug 9, 2020
1 parent 5742fb8 commit 8b77cb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/rendererFunc/listPoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default function listPoints(qrcode, params) {
key="${id++}"
d="${sq25}"
stroke="${posColor}"
stroke-width=${(100 / 6) * (1 - (1 - 0.8) * 0.75)}
stroke-width="${(100 / 6) * (1 - (1 - 0.8) * 0.75)}"
fill="none"
transform="${
'translate(' +
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/rendererLine/listPoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ export default function listPoints(qrcode, params) {
opacity="${opacity}"
x1="${x + 0.5}"
y1="${y + 0.5}"
x2=${x + end - start - 0.5}
x2="${x + end - start - 0.5}"
y2="${y + 0.5}"
stroke-width=${size}
stroke-width="${size}"
stroke="${otherColor}"
stroke-linecap="round"
key="${id++}"
Expand Down

0 comments on commit 8b77cb9

Please sign in to comment.