also looking at this
chore(deps): update dependency react-dom to 19.2.7
#2138
222 files
+16350
-1825
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -98,7 +98,6 @@ barcode('#barcode', '590123412345', { format: 'EAN13' }) formatting only | ||
| 98 | 98 | // Automatically adds check digit: '5901234123457' |
| 99 | 99 | ``` |
| 100 | 100 | |
| 101 | ||
| 102 | 101 | ## OCR-B Font Support |
| 103 | 102 | |
| 104 | 103 | Standard EAN/UPC barcodes typically use OCR-B font. You can specify this using @font-face: |
| @@ -117,15 +116,17 @@ barcode('#barcode', '123456789012', { | ||
| 117 | 116 | ## Common Use Cases |
| 118 | 117 | |
| 119 | 118 | 1. Retail Products |
| 120 | - Product identification | |
| 121 | - Inventory management | |
| 122 | - Point of sale scanning | |
| 119 | - Product identification | |
| 120 | - Inventory management | |
| 121 | - Point of sale scanning | |
| 122 | ||
| 123 | 123 | 2. ISBN Books |
| 124 | - EAN-13 format with "978" or "979" prefix | |
| 125 | - Optional EAN-5 add-on for price | |
| 124 | - EAN-13 format with "978" or "979" prefix | |
| 125 | - Optional EAN-5 add-on for price | |
| 126 | ||
| 126 | 127 | 3. Magazines & Periodicals |
| 127 | - ISSN numbers in EAN-13 format | |
| 128 | - EAN-2 add-on for issue numbers | |
| 128 | - ISSN numbers in EAN-13 format | |
| 129 | - EAN-2 add-on for issue numbers | |
| 129 | 130 | |
| 130 | 131 | ## Detailed Format Documentation |
| 131 | 132 | |
| @@ -27,22 +27,22 @@ import { QRCode } from '@stacksjs/qrx' | ||
| 27 | 27 | |
| 28 | 28 | const options = { |
| 29 | 29 | // Size Options |
| 30 | width: 256, // Width in pixels | |
| 31 | height: 256, // Height in pixels | |
| 32 | margin: 10, // Margin around QR code | |
| 30 | width: 256, // Width in pixels | |
| 31 | height: 256, // Height in pixels | |
| 32 | margin: 10, // Margin around QR code | |
| 33 | 33 | |
| 34 | 34 | // Color Options |
| 35 | colorDark: '#000000', // QR code color | |
| 35 | colorDark: '#000000', // QR code color | |
| 36 | 36 | colorLight: '#ffffff', // Background color |
| 37 | 37 | |
| 38 | 38 | // Error Correction |
| 39 | 39 | correctLevel: QRErrorCorrectLevel.H, // H, Q, M, or L |
| 40 | 40 | |
| 41 | 41 | // Rendering |
| 42 | useSVG: true, // Use SVG renderer instead of canvas | |
| 42 | useSVG: true, // Use SVG renderer instead of canvas | |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | const qrCode = new QRCode(document.getElementById("qr-code"), options) | |
| 45 | const qrCode = new QRCode(document.getElementById('qr-code'), options) | |
| 46 | 46 | ``` |
| 47 | 47 | |
| 48 | 48 | ## Error Correction Levels |