@sythos/js_barcode_universal 1.5.6 → 1.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/NOTICE.md +1 -1
  2. package/README.md +55 -35
  3. package/bundle/sythos-barcode.esm.js +618 -465
  4. package/bundle/sythos-barcode.js +618 -465
  5. package/package.json +90 -24
  6. package/src/index.d.ts +363 -0
  7. package/src/index.js +286 -133
  8. package/src/{aztec → js/aztec}/decoder.js +0 -1
  9. package/src/{aztec → js/aztec}/detector.js +0 -1
  10. package/src/{aztec → js/aztec}/encoder.js +0 -1
  11. package/src/{aztec → js/aztec}/high-level.js +0 -1
  12. package/src/{aztec → js/aztec}/index.js +0 -1
  13. package/src/{aztec → js/aztec}/tables.js +0 -1
  14. package/src/{aztecrune → js/aztecrune}/decoder.js +0 -1
  15. package/src/{aztecrune → js/aztecrune}/detector.js +0 -1
  16. package/src/{aztecrune → js/aztecrune}/encoder.js +0 -1
  17. package/src/{aztecrune → js/aztecrune}/index.js +0 -1
  18. package/src/{aztecrune → js/aztecrune}/tables.js +0 -1
  19. package/src/{compactpdf417 → js/compactpdf417}/decoder.js +0 -1
  20. package/src/{compactpdf417 → js/compactpdf417}/detector.js +0 -1
  21. package/src/{compactpdf417 → js/compactpdf417}/encoder.js +0 -1
  22. package/src/{compactpdf417 → js/compactpdf417}/index.js +0 -5
  23. package/src/{compactpdf417 → js/compactpdf417}/tables.js +0 -1
  24. package/src/{core → js/core}/bit-buffer.js +0 -1
  25. package/src/{core → js/core}/bit-matrix.js +0 -1
  26. package/src/{core → js/core}/errors.js +0 -1
  27. package/src/{core → js/core}/galois-field.js +0 -1
  28. package/src/{core → js/core}/index.js +0 -1
  29. package/src/{core → js/core}/reed-solomon.js +0 -1
  30. package/src/{databar → js/databar}/codec.js +0 -1
  31. package/src/{databar → js/databar}/decoder.js +0 -1
  32. package/src/{databar → js/databar}/encoder.js +0 -1
  33. package/src/{databar → js/databar}/gs1.js +0 -1
  34. package/src/{databar → js/databar}/index.js +0 -1
  35. package/src/{databar → js/databar}/patterns.js +0 -1
  36. package/src/{databar → js/databar}/tables.js +0 -1
  37. package/src/{datamatrix → js/datamatrix}/decoder.js +0 -1
  38. package/src/{datamatrix → js/datamatrix}/detector.js +0 -1
  39. package/src/{datamatrix → js/datamatrix}/encoder.js +0 -1
  40. package/src/{datamatrix → js/datamatrix}/index.js +0 -1
  41. package/src/{datamatrix → js/datamatrix}/tables.js +0 -1
  42. package/src/{frameqr → js/frameqr}/decoder.js +15 -16
  43. package/src/{frameqr → js/frameqr}/detector.js +2 -3
  44. package/src/{frameqr → js/frameqr}/encoder.js +7 -8
  45. package/src/{frameqr → js/frameqr}/index.js +0 -1
  46. package/src/{frameqr → js/frameqr}/tables.js +10 -11
  47. package/src/{image → js/image}/binarizer.js +0 -1
  48. package/src/{image → js/image}/grid-sampler.js +0 -1
  49. package/src/js/image/index.js +40 -0
  50. package/src/{image → js/image}/luminance.js +0 -1
  51. package/src/{image → js/image}/perspective.js +0 -1
  52. package/src/{micropdf417 → js/micropdf417}/compaction.js +0 -1
  53. package/src/{micropdf417 → js/micropdf417}/decoder.js +0 -1
  54. package/src/{micropdf417 → js/micropdf417}/detector.js +0 -1
  55. package/src/{micropdf417 → js/micropdf417}/encoder.js +0 -1
  56. package/src/{micropdf417 → js/micropdf417}/error-correction.js +0 -1
  57. package/src/{micropdf417 → js/micropdf417}/index.js +0 -1
  58. package/src/{micropdf417 → js/micropdf417}/tables.js +0 -1
  59. package/src/{microqr → js/microqr}/decoder.js +0 -1
  60. package/src/{microqr → js/microqr}/detector.js +0 -1
  61. package/src/{microqr → js/microqr}/encoder.js +0 -1
  62. package/src/js/microqr/index.js +36 -0
  63. package/src/{microqr → js/microqr}/tables.js +0 -1
  64. package/src/{oned → js/oned}/addons.js +0 -1
  65. package/src/{oned → js/oned}/index.js +0 -1
  66. package/src/{oned → js/oned}/patterns.js +0 -1
  67. package/src/{oned → js/oned}/reader.js +0 -1
  68. package/src/{oned → js/oned}/writers.js +0 -1
  69. package/src/{pdf417 → js/pdf417}/compaction.js +0 -1
  70. package/src/{pdf417 → js/pdf417}/decoder.js +0 -1
  71. package/src/{pdf417 → js/pdf417}/detector.js +0 -1
  72. package/src/{pdf417 → js/pdf417}/encoder.js +0 -1
  73. package/src/{pdf417 → js/pdf417}/error-correction.js +0 -1
  74. package/src/js/pdf417/index.js +6 -0
  75. package/src/{pdf417 → js/pdf417}/tables.js +0 -1
  76. package/src/{qr → js/qr}/decoder.js +0 -1
  77. package/src/{qr → js/qr}/detector.js +0 -1
  78. package/src/{qr → js/qr}/encoder.js +0 -1
  79. package/src/js/qr/index.js +44 -0
  80. package/src/{qr → js/qr}/tables.js +0 -1
  81. package/src/{render → js/render}/image-data.js +0 -1
  82. package/src/{render → js/render}/index.js +0 -1
  83. package/src/{render → js/render}/options.js +0 -1
  84. package/src/{render → js/render}/png.js +0 -1
  85. package/src/{render → js/render}/svg.js +0 -1
  86. package/src/{render → js/render}/webgl.js +0 -1
  87. package/src/{render → js/render}/webgpu.js +0 -1
  88. package/src/{rmqr → js/rmqr}/decoder.js +0 -1
  89. package/src/{rmqr → js/rmqr}/detector.js +0 -1
  90. package/src/{rmqr → js/rmqr}/encoder.js +0 -1
  91. package/src/{rmqr → js/rmqr}/index.js +0 -1
  92. package/src/{rmqr → js/rmqr}/tables.js +0 -1
  93. package/src/ts/aztec/decoder.d.ts +57 -0
  94. package/src/ts/aztec/detector.d.ts +62 -0
  95. package/src/ts/aztec/encoder.d.ts +94 -0
  96. package/src/ts/aztec/high-level.d.ts +89 -0
  97. package/src/ts/aztec/index.d.ts +35 -0
  98. package/src/ts/aztec/tables.d.ts +144 -0
  99. package/src/ts/aztecrune/decoder.d.ts +56 -0
  100. package/src/ts/aztecrune/detector.d.ts +53 -0
  101. package/src/ts/aztecrune/encoder.d.ts +51 -0
  102. package/src/ts/aztecrune/index.d.ts +35 -0
  103. package/src/ts/aztecrune/tables.d.ts +75 -0
  104. package/src/ts/bundle/sythos-barcode.d.ts +31 -0
  105. package/src/ts/bundle/sythos-barcode.esm.d.ts +31 -0
  106. package/src/ts/compactpdf417/decoder.d.ts +64 -0
  107. package/src/ts/compactpdf417/detector.d.ts +48 -0
  108. package/src/ts/compactpdf417/encoder.d.ts +49 -0
  109. package/src/ts/compactpdf417/index.d.ts +8 -0
  110. package/src/ts/compactpdf417/tables.d.ts +84 -0
  111. package/src/ts/core/bit-buffer.d.ts +78 -0
  112. package/src/ts/core/bit-matrix.d.ts +129 -0
  113. package/src/ts/core/errors.d.ts +57 -0
  114. package/src/ts/core/galois-field.d.ts +141 -0
  115. package/src/ts/core/index.d.ts +40 -0
  116. package/src/ts/core/reed-solomon.d.ts +65 -0
  117. package/src/ts/databar/codec.d.ts +78 -0
  118. package/src/ts/databar/decoder.d.ts +55 -0
  119. package/src/ts/databar/encoder.d.ts +34 -0
  120. package/src/ts/databar/gs1.d.ts +48 -0
  121. package/src/ts/databar/index.d.ts +37 -0
  122. package/src/ts/databar/patterns.d.ts +46 -0
  123. package/src/ts/databar/tables.d.ts +119 -0
  124. package/src/ts/datamatrix/decoder.d.ts +57 -0
  125. package/src/ts/datamatrix/detector.d.ts +59 -0
  126. package/src/ts/datamatrix/encoder.d.ts +36 -0
  127. package/src/ts/datamatrix/index.d.ts +35 -0
  128. package/src/ts/datamatrix/tables.d.ts +88 -0
  129. package/src/ts/frameqr/decoder.d.ts +64 -0
  130. package/src/ts/frameqr/detector.d.ts +96 -0
  131. package/src/ts/frameqr/encoder.d.ts +73 -0
  132. package/src/ts/frameqr/index.d.ts +34 -0
  133. package/src/ts/frameqr/tables.d.ts +123 -0
  134. package/src/ts/image/binarizer.d.ts +85 -0
  135. package/src/ts/image/grid-sampler.d.ts +82 -0
  136. package/src/{image/index.js → ts/image/index.d.ts} +0 -2
  137. package/src/ts/image/luminance.d.ts +112 -0
  138. package/src/ts/image/perspective.d.ts +111 -0
  139. package/src/ts/index.d.ts +363 -0
  140. package/src/ts/micropdf417/compaction.d.ts +38 -0
  141. package/src/ts/micropdf417/decoder.d.ts +57 -0
  142. package/src/ts/micropdf417/detector.d.ts +95 -0
  143. package/src/ts/micropdf417/encoder.d.ts +34 -0
  144. package/src/ts/micropdf417/error-correction.d.ts +38 -0
  145. package/src/ts/micropdf417/index.d.ts +36 -0
  146. package/src/ts/micropdf417/tables.d.ts +73 -0
  147. package/src/ts/microqr/decoder.d.ts +49 -0
  148. package/src/ts/microqr/detector.d.ts +96 -0
  149. package/src/ts/microqr/encoder.d.ts +33 -0
  150. package/src/{microqr/index.js → ts/microqr/index.d.ts} +0 -2
  151. package/src/ts/microqr/tables.d.ts +107 -0
  152. package/src/ts/oned/addons.d.ts +181 -0
  153. package/src/ts/oned/index.d.ts +55 -0
  154. package/src/ts/oned/patterns.d.ts +259 -0
  155. package/src/ts/oned/reader.d.ts +129 -0
  156. package/src/ts/oned/writers.d.ts +218 -0
  157. package/src/ts/pdf417/compaction.d.ts +59 -0
  158. package/src/ts/pdf417/decoder.d.ts +48 -0
  159. package/src/ts/pdf417/detector.d.ts +73 -0
  160. package/src/ts/pdf417/encoder.d.ts +32 -0
  161. package/src/ts/pdf417/error-correction.d.ts +34 -0
  162. package/src/{pdf417/index.js → ts/pdf417/index.d.ts} +0 -1
  163. package/src/ts/pdf417/tables.d.ts +53 -0
  164. package/src/ts/qr/decoder.d.ts +79 -0
  165. package/src/ts/qr/detector.d.ts +93 -0
  166. package/src/ts/qr/encoder.d.ts +166 -0
  167. package/src/{qr/index.js → ts/qr/index.d.ts} +0 -2
  168. package/src/ts/qr/tables.d.ts +291 -0
  169. package/src/ts/render/image-data.d.ts +58 -0
  170. package/src/ts/render/index.d.ts +110 -0
  171. package/src/ts/render/options.d.ts +98 -0
  172. package/src/ts/render/png.d.ts +58 -0
  173. package/src/ts/render/svg.d.ts +46 -0
  174. package/src/ts/render/webgl.d.ts +45 -0
  175. package/src/ts/render/webgpu.d.ts +51 -0
  176. package/src/ts/rmqr/decoder.d.ts +42 -0
  177. package/src/ts/rmqr/detector.d.ts +81 -0
  178. package/src/ts/rmqr/encoder.d.ts +45 -0
  179. package/src/ts/rmqr/index.d.ts +34 -0
  180. package/src/ts/rmqr/tables.d.ts +89 -0
@@ -0,0 +1,89 @@
1
+ /*!
2
+ * Sythos Barcode Suite
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2026 Sythos
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * SPDX-FileCopyrightText: 2026 Sythos (https://www.sythos.net)
27
+ * SPDX-License-Identifier: MIT
28
+ *
29
+ * Original work. No code from any other barcode implementation.
30
+ */
31
+ /**
32
+ * Aztec high-level stream writer.
33
+ *
34
+ * The output is deliberately a `BitWriter`, rather than a byte array: Aztec's
35
+ * text controls and binary-shift lengths are not byte aligned. This module is
36
+ * also the boundary where JavaScript strings become UTF-8. Passing a byte
37
+ * view bypasses that conversion and preserves every octet unchanged.
38
+ *
39
+ * The initial state mandated by the symbology is UPPER. The greedy text pass
40
+ * uses UPPER, LOWER, DIGIT and PUNCT tables, selecting the shortest available
41
+ * latch at each byte. Bytes without a text-table representation are emitted
42
+ * through the standard B/S (binary shift) escape. B/S is available from
43
+ * UPPER and makes this a complete, lossless representation of UTF-8 payloads.
44
+ *
45
+ * @module aztec/high-level
46
+ */
47
+ import { BitWriter } from '../core/bit-buffer.js';
48
+ /** Aztec high-level table identifiers, exposed for decoder/API symmetry. */
49
+ export declare const HIGH_LEVEL_MODE: Readonly<{
50
+ UPPER: 0;
51
+ LOWER: 1;
52
+ DIGIT: 2;
53
+ MIXED: 3;
54
+ PUNCT: 4;
55
+ }>;
56
+ /** Maximum number of bytes represented by one B/S escape. */
57
+ export declare const MAX_BINARY_SHIFT = 2078;
58
+ /**
59
+ * Convert accepted public input to its encoded octets.
60
+ *
61
+ * @param {string|ArrayBuffer|ArrayBufferView} value
62
+ * @param {'utf-8'} [charset]
63
+ * @returns {Uint8Array}
64
+ */
65
+ export declare function aztecBytes(value: string | ArrayBuffer | ArrayBufferView, charset?: 'utf-8'): Uint8Array;
66
+ /**
67
+ * Write an Aztec binary-shift segment while in UPPER mode.
68
+ *
69
+ * B/S is `11111`; its five-bit length directly covers 1..31 bytes. A zero
70
+ * length selects the extended eleven-bit form, whose stored value is n - 31.
71
+ * Splitting at 2078 keeps each control representable and makes arbitrarily
72
+ * long byte input well-defined.
73
+ *
74
+ * @param {BitWriter} writer
75
+ * @param {Uint8Array} bytes
76
+ * @param {number} start
77
+ * @param {number} length
78
+ */
79
+ export declare function writeBinaryShift(writer: BitWriter, bytes: Uint8Array, start: number, length: number): void;
80
+ /**
81
+ * Build a valid Aztec high-level bitstream.
82
+ *
83
+ * @param {string|ArrayBuffer|ArrayBufferView} value
84
+ * @param {{charset?: 'utf-8'}} [options]
85
+ * @returns {BitWriter}
86
+ */
87
+ export declare function encodeHighLevel(value: string | ArrayBuffer | ArrayBufferView, options?: {
88
+ charset?: 'utf-8';
89
+ }): BitWriter;
@@ -0,0 +1,35 @@
1
+ /*!
2
+ * Sythos Barcode Suite
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2026 Sythos
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * SPDX-FileCopyrightText: 2026 Sythos (https://www.sythos.net)
27
+ * SPDX-License-Identifier: MIT
28
+ *
29
+ * Original work. No code from any other barcode implementation.
30
+ */
31
+ /** Aztec Code entry points. @module aztec */
32
+ export { encodeAztec } from './encoder.js';
33
+ export { decodeAztec } from './decoder.js';
34
+ export { detectAztec, detectAndDecodeAztec } from './detector.js';
35
+ export { AZTEC_COMPACT_LAYERS, AZTEC_FULL_LAYERS, AZTEC_LAYERS, AZTEC_DEFAULT_ECC_PERCENT, AZTEC_RS_GENERATOR_BASE, aztecLayer, aztecSymbolSize, validateAztecTables, } from './tables.js';
@@ -0,0 +1,144 @@
1
+ /*!
2
+ * Sythos Barcode Suite
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2026 Sythos
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * SPDX-FileCopyrightText: 2026 Sythos (https://www.sythos.net)
27
+ * SPDX-License-Identifier: MIT
28
+ *
29
+ * Original work. No code from any other barcode implementation.
30
+ */
31
+ /** Reed-Solomon generator base defined for Aztec parameter and data fields. */
32
+ export declare const AZTEC_RS_GENERATOR_BASE = 1;
33
+ /** Minimum recommended error correction: 23 percent plus three codewords. */
34
+ export declare const AZTEC_DEFAULT_ECC_PERCENT = 23;
35
+ export declare const AZTEC_MIN_ECC_WORDS = 3;
36
+ /** Word size selected solely by the number of layers. */
37
+ export declare function wordSizeForLayers(layers: any): 6 | 8 | 10 | 12;
38
+ /** Return the field used by Aztec codewords of `wordSize` bits. */
39
+ export declare function fieldForWordSize(wordSize: any): import("../core/galois-field.js").GaloisField;
40
+ /** Return the data field selected for a symbol with `layers` layers. */
41
+ export declare function fieldForLayers(layers: any): import("../core/galois-field.js").GaloisField;
42
+ /** Matrix side length, including Full-mode reference grid lines. */
43
+ export declare function aztecSymbolSize(layers: any, compact?: boolean): number;
44
+ /** Compact Aztec layers 1 through 4, in encoding preference order. */
45
+ export declare const AZTEC_COMPACT_LAYERS: readonly Readonly<{
46
+ compact: any;
47
+ layers: any;
48
+ wordSize: 6 | 8 | 10 | 12;
49
+ totalBits: number;
50
+ usableBits: number;
51
+ totalCodewords: number;
52
+ maxDataCodewords: number;
53
+ baseMatrixSize: number;
54
+ symbolSize: number;
55
+ modeMessageDataWords: 2 | 4;
56
+ modeMessageWords: 7 | 10;
57
+ modeMessageBits: 28 | 40;
58
+ rsGeneratorBase: 1;
59
+ }>[];
60
+ /** Full Aztec layers 1 through 32, in ascending layer order. */
61
+ export declare const AZTEC_FULL_LAYERS: readonly Readonly<{
62
+ compact: any;
63
+ layers: any;
64
+ wordSize: 6 | 8 | 10 | 12;
65
+ totalBits: number;
66
+ usableBits: number;
67
+ totalCodewords: number;
68
+ maxDataCodewords: number;
69
+ baseMatrixSize: number;
70
+ symbolSize: number;
71
+ modeMessageDataWords: 2 | 4;
72
+ modeMessageWords: 7 | 10;
73
+ modeMessageBits: 28 | 40;
74
+ rsGeneratorBase: 1;
75
+ }>[];
76
+ /** All allowed symbols. Compact entries precede Full entries for automatic selection. */
77
+ export declare const AZTEC_LAYERS: readonly Readonly<{
78
+ compact: any;
79
+ layers: any;
80
+ wordSize: 6 | 8 | 10 | 12;
81
+ totalBits: number;
82
+ usableBits: number;
83
+ totalCodewords: number;
84
+ maxDataCodewords: number;
85
+ baseMatrixSize: number;
86
+ symbolSize: number;
87
+ modeMessageDataWords: 2 | 4;
88
+ modeMessageWords: 7 | 10;
89
+ modeMessageBits: 28 | 40;
90
+ rsGeneratorBase: 1;
91
+ }>[];
92
+ /** Return one immutable layer record. */
93
+ export declare function aztecLayer(layers: any, compact?: boolean): Readonly<{
94
+ compact: any;
95
+ layers: any;
96
+ wordSize: 6 | 8 | 10 | 12;
97
+ totalBits: number;
98
+ usableBits: number;
99
+ totalCodewords: number;
100
+ maxDataCodewords: number;
101
+ baseMatrixSize: number;
102
+ symbolSize: number;
103
+ modeMessageDataWords: 2 | 4;
104
+ modeMessageWords: 7 | 10;
105
+ modeMessageBits: 28 | 40;
106
+ rsGeneratorBase: 1;
107
+ }>;
108
+ /**
109
+ * Calculate the minimum parity count for a data word count.
110
+ *
111
+ * The percentage is rounded up because a fractional codeword cannot be
112
+ * emitted. The mandatory three words protect short payloads, where a bare
113
+ * percentage would otherwise round to zero.
114
+ */
115
+ export declare function eccCodewordsFor(dataCodewords: any, eccPercent?: number): number;
116
+ /**
117
+ * Choose the first symbol which holds an already stuffed payload.
118
+ *
119
+ * `dataBits` must be a multiple of the candidate word size; callers which
120
+ * start from high-level bits must stuff separately per candidate word size.
121
+ */
122
+ export declare function selectAztecLayer(dataBits: any, { eccPercent, layers, compact, }?: {
123
+ compact?: null | undefined;
124
+ eccPercent?: number | undefined;
125
+ layers?: null | undefined;
126
+ }): Readonly<{
127
+ compact: any;
128
+ layers: any;
129
+ wordSize: 6 | 8 | 10 | 12;
130
+ totalBits: number;
131
+ usableBits: number;
132
+ totalCodewords: number;
133
+ maxDataCodewords: number;
134
+ baseMatrixSize: number;
135
+ symbolSize: number;
136
+ modeMessageDataWords: 2 | 4;
137
+ modeMessageWords: 7 | 10;
138
+ modeMessageBits: 28 | 40;
139
+ rsGeneratorBase: 1;
140
+ dataCodewords: number;
141
+ eccCodewords: number;
142
+ }>;
143
+ /** Check static identities so table corruption fails explicitly in tests. */
144
+ export declare function validateAztecTables(): string[];
@@ -0,0 +1,56 @@
1
+ /*!
2
+ * Sythos Barcode Suite
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2026 Sythos
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * SPDX-FileCopyrightText: 2026 Sythos (https://www.sythos.net)
27
+ * SPDX-License-Identifier: MIT
28
+ *
29
+ * Original work. No code from any other barcode implementation.
30
+ */
31
+ /** @param {import('../core/bit-matrix.js').BitMatrix} matrix @param {boolean} inverted */
32
+ declare function structureMatches(matrix: import('../core/bit-matrix.js').BitMatrix, inverted: boolean): boolean;
33
+ /** @param {import('../core/bit-matrix.js').BitMatrix} matrix @param {boolean} inverted */
34
+ declare function readCodewords(matrix: import('../core/bit-matrix.js').BitMatrix, inverted: boolean): number[];
35
+ /**
36
+ * Decode a square Aztec Rune matrix.
37
+ *
38
+ * @param {import('../core/bit-matrix.js').BitMatrix} matrix
39
+ * @param {{inverted?: boolean|'auto', rotation?: number|'auto'}} [options]
40
+ * @returns {{format:'aztecrune',value:number,text:string,bytes:Uint8Array,dimension:number,inverted:boolean,rotation:number,corrections:number}}
41
+ * @throws {FormatError} For non-Rune geometry, structure or uncorrectable data.
42
+ */
43
+ export declare function decodeAztecRune(matrix: import('../core/bit-matrix.js').BitMatrix, options?: {
44
+ inverted?: boolean | 'auto';
45
+ rotation?: number | 'auto';
46
+ }): {
47
+ format: 'aztecrune';
48
+ value: number;
49
+ text: string;
50
+ bytes: Uint8Array;
51
+ dimension: number;
52
+ inverted: boolean;
53
+ rotation: number;
54
+ corrections: number;
55
+ };
56
+ export { readCodewords, structureMatches };
@@ -0,0 +1,53 @@
1
+ /*!
2
+ * Sythos Barcode Suite
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2026 Sythos
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * SPDX-FileCopyrightText: 2026 Sythos (https://www.sythos.net)
27
+ * SPDX-License-Identifier: MIT
28
+ *
29
+ * Original work. No code from any other barcode implementation.
30
+ */
31
+ import { BitMatrix } from '../core/bit-matrix.js';
32
+ export type Point = {
33
+ x: number;
34
+ y: number;
35
+ };
36
+ /**
37
+ * Detect the most prominent Aztec Rune in a binarized image.
38
+ *
39
+ * @param {import('../core/bit-matrix.js').BitMatrix} binaryImage
40
+ * @returns {{corners:Point[],dimension:11,moduleSize:number,matrix:BitMatrix,result:object}|null}
41
+ */
42
+ export declare function detectAztecRune(binaryImage: import('../core/bit-matrix.js').BitMatrix): {
43
+ corners: Point[];
44
+ dimension: 11;
45
+ moduleSize: number;
46
+ matrix: BitMatrix;
47
+ result: object;
48
+ } | null;
49
+ /** Detect and decode one Aztec Rune, or return `null` when none is verified. */
50
+ export declare function detectAndDecodeAztecRune(binaryImage: any): {
51
+ corners: Point[];
52
+ moduleSize: number;
53
+ } | null;
@@ -0,0 +1,51 @@
1
+ /*!
2
+ * Sythos Barcode Suite
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2026 Sythos
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * SPDX-FileCopyrightText: 2026 Sythos (https://www.sythos.net)
27
+ * SPDX-License-Identifier: MIT
28
+ *
29
+ * Original work. No code from any other barcode implementation.
30
+ */
31
+ /** @param {unknown} value @returns {number} */
32
+ export declare function normalizeAztecRuneValue(value: unknown): number;
33
+ /** @param {number} value @returns {number[]} */
34
+ declare function codewordsForValue(value: number): number[];
35
+ /**
36
+ * Encode one byte as an Aztec Rune.
37
+ *
38
+ * @param {number|string|ArrayBuffer|ArrayBufferView} value
39
+ * @param {{inverted?: boolean}} [options]
40
+ * @returns {import('../core/bit-matrix.js').BitMatrix & {
41
+ * format: 'aztecrune', value: number, inverted: boolean
42
+ * }}
43
+ */
44
+ export declare function encodeAztecRune(value: number | string | ArrayBuffer | ArrayBufferView, options?: {
45
+ inverted?: boolean;
46
+ }): import('../core/bit-matrix.js').BitMatrix & {
47
+ format: 'aztecrune';
48
+ value: number;
49
+ inverted: boolean;
50
+ };
51
+ export { codewordsForValue };
@@ -0,0 +1,35 @@
1
+ /*!
2
+ * Sythos Barcode Suite
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2026 Sythos
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * SPDX-FileCopyrightText: 2026 Sythos (https://www.sythos.net)
27
+ * SPDX-License-Identifier: MIT
28
+ *
29
+ * Original work. No code from any other barcode implementation.
30
+ */
31
+ /** Aztec Rune entry points. @module aztecrune */
32
+ export { encodeAztecRune, normalizeAztecRuneValue } from './encoder.js';
33
+ export { decodeAztecRune } from './decoder.js';
34
+ export { detectAztecRune, detectAndDecodeAztecRune } from './detector.js';
35
+ export { AZTEC_RUNE_SIZE, AZTEC_RUNE_DATA_BITS, AZTEC_RUNE_WORD_SIZE, AZTEC_RUNE_DATA_CODEWORDS, AZTEC_RUNE_ECC_CODEWORDS, AZTEC_RUNE_TOTAL_CODEWORDS, AZTEC_RUNE_MASK, AZTEC_RUNE_DATA_POSITIONS, aztecRuneStructuralValue, buildAztecRuneStructure, aztecRuneField, validateAztecRuneTables, } from './tables.js';
@@ -0,0 +1,75 @@
1
+ /*!
2
+ * Sythos Barcode Suite
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2026 Sythos
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * SPDX-FileCopyrightText: 2026 Sythos (https://www.sythos.net)
27
+ * SPDX-License-Identifier: MIT
28
+ *
29
+ * Original work. No code from any other barcode implementation.
30
+ */
31
+ /**
32
+ * Aztec Rune geometry.
33
+ *
34
+ * Aztec Rune is the 11x11, one-byte member of the Aztec family. Two 4-bit
35
+ * data words and five 4-bit Reed-Solomon check words are XORed with the fixed
36
+ * Aztec Rune mask and written clockwise on the outer data ring. The finder and
37
+ * corner orientation marks are independent of the value.
38
+ *
39
+ * The constants below are derived from the public Aztec Code specification and
40
+ * are kept separate from the general Aztec implementation so a normal Aztec
41
+ * decoder can never accidentally treat an 11x11 Rune as a regular symbol.
42
+ *
43
+ * @module aztecrune/tables
44
+ */
45
+ import { BitMatrix } from '../core/bit-matrix.js';
46
+ export declare const AZTEC_RUNE_SIZE = 11;
47
+ export declare const AZTEC_RUNE_DATA_BITS = 8;
48
+ export declare const AZTEC_RUNE_WORD_SIZE = 4;
49
+ export declare const AZTEC_RUNE_DATA_CODEWORDS = 2;
50
+ export declare const AZTEC_RUNE_ECC_CODEWORDS = 5;
51
+ export declare const AZTEC_RUNE_TOTAL_CODEWORDS: number;
52
+ export declare const AZTEC_RUNE_MASK = 10;
53
+ /**
54
+ * Data-module coordinates in wire order: clockwise, starting at the top.
55
+ * Every side contributes seven modules, for 28 bits in total.
56
+ */
57
+ export declare const AZTEC_RUNE_DATA_POSITIONS: readonly (readonly number[])[];
58
+ /** @param {number} x @param {number} y @returns {boolean} */
59
+ export declare function isAztecRuneDataPosition(x: number, y: number): boolean;
60
+ /**
61
+ * Return the value of a structural module. Data positions return `null`.
62
+ * The bull's-eye has five square rings including its one-module centre; its
63
+ * even-radius rings are dark. The four corner groups are the orientation marks
64
+ * described by the Aztec Rune specification.
65
+ *
66
+ * @param {number} x @param {number} y
67
+ * @returns {boolean|null}
68
+ */
69
+ export declare function aztecRuneStructuralValue(x: number, y: number): boolean | null;
70
+ /** Build only the fixed finder/orientation structure. */
71
+ export declare function buildAztecRuneStructure(): BitMatrix;
72
+ /** Return the field used by Rune data/check words. */
73
+ export declare function aztecRuneField(): import("../core/galois-field.js").GaloisField;
74
+ /** Validate the fixed Rune contract and coordinate layout. */
75
+ export declare function validateAztecRuneTables(): string[];
@@ -0,0 +1,31 @@
1
+ /*!
2
+ * Sythos Barcode Suite
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2026 Sythos
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * SPDX-FileCopyrightText: 2026 Sythos (https://www.sythos.net)
27
+ * SPDX-License-Identifier: MIT
28
+ *
29
+ * Original work. No code from any other barcode implementation.
30
+ */
31
+ export * from '../index.js';
@@ -0,0 +1,31 @@
1
+ /*!
2
+ * Sythos Barcode Suite
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2026 Sythos
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * SPDX-FileCopyrightText: 2026 Sythos (https://www.sythos.net)
27
+ * SPDX-License-Identifier: MIT
28
+ *
29
+ * Original work. No code from any other barcode implementation.
30
+ */
31
+ export * from '../index.js';
@@ -0,0 +1,64 @@
1
+ /*!
2
+ * Sythos Barcode Suite
3
+ *
4
+ * MIT License
5
+ *
6
+ * Copyright (c) 2026 Sythos
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ *
26
+ * SPDX-FileCopyrightText: 2026 Sythos (https://www.sythos.net)
27
+ * SPDX-License-Identifier: MIT
28
+ *
29
+ * Original work. No code from any other barcode implementation.
30
+ */
31
+ /**
32
+ * Decode a compact/truncated PDF417 module matrix.
33
+ *
34
+ * The high-level payload uses the normal PDF417 Text/Byte/Numeric compaction
35
+ * rules. This function only changes the physical row parser: no right row
36
+ * indicator is expected and the final module of each row must be dark.
37
+ *
38
+ * @param {import('../core/bit-matrix.js').BitMatrix} matrix
39
+ * @param {object} [options]
40
+ * @param {number} [options.rowHeight]
41
+ */
42
+ export declare function decodeCompactPDF417(matrix: import('../core/bit-matrix.js').BitMatrix, options?: {
43
+ rowHeight?: number;
44
+ }): {
45
+ text: string;
46
+ bytes: Uint8Array<ArrayBuffer>;
47
+ segments: {
48
+ mode: string;
49
+ text: string;
50
+ bytes: Uint8Array<ArrayBuffer>;
51
+ eci: number;
52
+ latch: any;
53
+ codewordStart: number;
54
+ codewordEnd: number;
55
+ }[];
56
+ format: string;
57
+ compact: boolean;
58
+ codewords: number[];
59
+ rows: number;
60
+ columns: number;
61
+ eccLevel: number;
62
+ rowHeight: any;
63
+ corrections: number;
64
+ };