base 参数微调

This commit is contained in:
ciaochaos 2020-05-05 00:38:32 +08:00
parent bb2f7ab6a1
commit 8899865f17
2 changed files with 1 additions and 5 deletions

View File

@ -18,7 +18,7 @@ function listPoint(props) {
for (let col = 0; col < nCount; col++) {
if (qrcode.isDark(row, col)) {
if (type == 0)
pointList.push(<rect width={size} height={size} key={id++} fill="black" x={row} y={col}/>)
pointList.push(<rect width={size} height={size} key={id++} fill="black" x={row + (1 - size)/2} y={col + (1 - size)/2}/>)
else if (type == 1)
pointList.push(<circle r={size / 2} key={id++} fill="black" cx={row + 0.5} cy={col + 0.5}/>)
}

View File

@ -8,10 +8,6 @@
.Qr-titled-nobg {
padding-top: calc((10px + 2vmin) * 2);
padding-bottom: calc((10px + 2vmin) * 2);
-webkit-transition-timing-function: ease-in-out;
transition-timing-function: ease-in-out;
-webkit-transition-duration: 0.2s; /* Safari */
transition-duration: 0.2s;
}
.Qr-title {