We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd43f80 commit ec2aa51Copy full SHA for ec2aa51
1 file changed
frontend/shared/lib/qr-code.ts
@@ -223,7 +223,11 @@ function placeTiming(matrix: QRMatrix) {
223
function placeAlignment(matrix: QRMatrix, positions: number[]) {
224
for (const y of positions) {
225
for (const x of positions) {
226
- if (matrix.reserved[y]?.[x]) continue;
+ const overlapsFinder =
227
+ (x === 6 && y === 6) ||
228
+ (x === 6 && y === matrix.size - 7) ||
229
+ (x === matrix.size - 7 && y === 6);
230
+ if (overlapsFinder) continue;
231
for (let dy = -2; dy <= 2; dy += 1) {
232
for (let dx = -2; dx <= 2; dx += 1) {
233
const value = Math.max(Math.abs(dx), Math.abs(dy)) !== 1;
0 commit comments