@thai-qr-payment/assets
Version 0.1.1
Patch Changes
-
e4af92fThanks @uunw! - Fix QR matrix alignment-pattern placement for v2-v40. The previousalignmentCentres()lost the spec’s intermediate positions through a buggyshift()/unshift()sequence, leaving alignment patterns at the wrong coordinates (or missing entirely). Every QR at version ≥ 2 was rejected by scanners as “invalid”. v1 was unaffected because it has no alignment patterns.Rewrite the routine using the canonical “walk backwards from
dim - 7, prepending each position until we hitfloor(v/7) + 2entries” algorithm from ISO/IEC 18004 Annex E. Adds 10 regression tests against the Annex E table.QR output now decodes cleanly via jsQR for every (version, ECC, mask) combination, including the 80+ character Thai QR Payment payloads at v6-H that scanners previously rejected.