发布

  • Put the QR alignment patterns where the spec says (#1432)

    frostbyte_neo 发布于 2026-08-23 01:01:54 +00:00

    The phone pairing QR could not be scanned. The alignment-pattern spacing had
    one division too many, so from version 7 on the middle centre landed at 30
    instead of 22. A misplaced alignment pattern corrupts the function grid a
    decoder locks onto and overwrites data modules, so the symbol read as nothing.

    The pairing URL is 140 characters, which lands on version 7 -- the first
    broken version.

    The encoder moves to lib/qr.ts to make it testable; the test compares whole
    matrices against reference fixtures for versions 1, 7 and 11.

    下载附件