kopia lustrzana https://github.com/viljoviitanen/qrcodejs
Swap col and row in SVG output so that the display equals the PNG output
rodzic
1119361409
commit
11d1bdbb8a
|
@ -205,7 +205,7 @@ var QRCode;
|
|||
for (var row = 0; row < nCount; row++) {
|
||||
for (var col = 0; col < nCount; col++) {
|
||||
if (oQRCode.isDark(row, col)) {
|
||||
var child = makeSVG("use", {"x": String(row), "y": String(col)});
|
||||
var child = makeSVG("use", {"x": String(col), "y": String(row)});
|
||||
child.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template")
|
||||
svg.appendChild(child);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue