rxing-wasm 0.5.4 → 0.5.6

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.
package/rxing_wasm.d.ts CHANGED
@@ -5,381 +5,381 @@
5
5
  * Available barcode types
6
6
  */
7
7
  export enum BarcodeFormat {
8
- /**
9
- * Aztec 2D barcode format.
10
- */
11
- AZTEC = 0,
12
- /**
13
- * CODABAR 1D format.
14
- */
15
- CODABAR = 1,
16
- /**
17
- * Code 39 1D format.
18
- */
19
- Code39 = 2,
20
- /**
21
- * Code 93 1D format.
22
- */
23
- Code93 = 3,
24
- /**
25
- * Code 128 1D format.
26
- */
27
- Code128 = 4,
28
- /**
29
- * Data Matrix 2D barcode format.
30
- */
31
- DataMatrix = 5,
32
- /**
33
- * EAN-8 1D format.
34
- */
35
- Ean8 = 6,
36
- /**
37
- * EAN-13 1D format.
38
- */
39
- Ean13 = 7,
40
- /**
41
- * ITF (Interleaved Two of Five) 1D format.
42
- */
43
- ITF = 8,
44
- /**
45
- * MaxiCode 2D barcode format.
46
- */
47
- MAXICODE = 9,
48
- /**
49
- * PDF417 format.
50
- */
51
- Pdf417 = 10,
52
- /**
53
- * QR Code 2D barcode format.
54
- */
55
- QrCode = 11,
56
- /**
57
- * RSS 14
58
- */
59
- Rss14 = 12,
60
- /**
61
- * RSS EXPANDED
62
- */
63
- RssExpanded = 13,
64
- /**
65
- * UPC-A 1D format.
66
- */
67
- UpcA = 14,
68
- /**
69
- * UPC-E 1D format.
70
- */
71
- UpcE = 15,
72
- /**
73
- * UPC/EAN extension format. Not a stand-alone format.
74
- */
75
- UpcEanExtension = 16,
76
- MicroQR = 17,
77
- Telepen = 18,
78
- RectangularMicroQR = 19,
79
- /**
80
- * Format not supported by the library.
81
- */
82
- UnsuportedFormat = 20,
8
+ /**
9
+ * Aztec 2D barcode format.
10
+ */
11
+ AZTEC = 0,
12
+ /**
13
+ * CODABAR 1D format.
14
+ */
15
+ CODABAR = 1,
16
+ /**
17
+ * Code 39 1D format.
18
+ */
19
+ Code39 = 2,
20
+ /**
21
+ * Code 93 1D format.
22
+ */
23
+ Code93 = 3,
24
+ /**
25
+ * Code 128 1D format.
26
+ */
27
+ Code128 = 4,
28
+ /**
29
+ * Data Matrix 2D barcode format.
30
+ */
31
+ DataMatrix = 5,
32
+ /**
33
+ * EAN-8 1D format.
34
+ */
35
+ Ean8 = 6,
36
+ /**
37
+ * EAN-13 1D format.
38
+ */
39
+ Ean13 = 7,
40
+ /**
41
+ * ITF (Interleaved Two of Five) 1D format.
42
+ */
43
+ ITF = 8,
44
+ /**
45
+ * MaxiCode 2D barcode format.
46
+ */
47
+ MAXICODE = 9,
48
+ /**
49
+ * PDF417 format.
50
+ */
51
+ Pdf417 = 10,
52
+ /**
53
+ * QR Code 2D barcode format.
54
+ */
55
+ QrCode = 11,
56
+ /**
57
+ * RSS 14
58
+ */
59
+ Rss14 = 12,
60
+ /**
61
+ * RSS EXPANDED
62
+ */
63
+ RssExpanded = 13,
64
+ /**
65
+ * UPC-A 1D format.
66
+ */
67
+ UpcA = 14,
68
+ /**
69
+ * UPC-E 1D format.
70
+ */
71
+ UpcE = 15,
72
+ /**
73
+ * UPC/EAN extension format. Not a stand-alone format.
74
+ */
75
+ UpcEanExtension = 16,
76
+ MicroQR = 17,
77
+ Telepen = 18,
78
+ RectangularMicroQR = 19,
79
+ /**
80
+ * Format not supported by the library.
81
+ */
82
+ UnsuportedFormat = 20,
83
83
  }
84
84
 
85
85
  export class BarcodeResult {
86
- private constructor();
87
- free(): void;
88
- [Symbol.dispose](): void;
89
- get_meta_data(): Map<any, any>;
90
- /**
91
- * Each pair of f32 values is an (x,y) point
92
- */
93
- result_points(): Float32Array;
94
- text(): string;
95
- format(): BarcodeFormat;
96
- num_bits(): number;
97
- raw_bytes(): Uint8Array;
98
- timestamp(): number;
86
+ private constructor();
87
+ free(): void;
88
+ [Symbol.dispose](): void;
89
+ format(): BarcodeFormat;
90
+ get_meta_data(): Map<any, any>;
91
+ num_bits(): number;
92
+ raw_bytes(): Uint8Array;
93
+ /**
94
+ * Each pair of f32 values is an (x,y) point
95
+ */
96
+ result_points(): Float32Array;
97
+ text(): string;
98
+ timestamp(): number;
99
99
  }
100
100
 
101
101
  export class DecodeHintDictionary {
102
- free(): void;
103
- [Symbol.dispose](): void;
104
- remove_hint(hint: DecodeHintTypes): boolean;
105
- constructor();
106
- get_hint(hint: DecodeHintTypes): string;
107
- set_hint(hint: DecodeHintTypes, value: string): boolean;
102
+ free(): void;
103
+ [Symbol.dispose](): void;
104
+ get_hint(hint: DecodeHintTypes): string;
105
+ constructor();
106
+ remove_hint(hint: DecodeHintTypes): boolean;
107
+ set_hint(hint: DecodeHintTypes, value: string): boolean;
108
108
  }
109
109
 
110
110
  export enum DecodeHintTypes {
111
- /**
112
- *
113
- * * Unspecified, application-specific hint. Maps to an unspecified {@link Object}.
114
- *
115
- */
116
- Other = 0,
117
- /**
118
- *
119
- * * Image is a pure monochrome image of a barcode. Doesn't matter what it maps to;
120
- * * use {@link Boolean#TRUE}.
121
- *
122
- */
123
- PureBarcode = 1,
124
- /**
125
- *
126
- * * Image is known to be of one of a few possible formats.
127
- * * Maps to a {@link List} of {@link BarcodeFormat}s.
128
- *
129
- */
130
- PossibleFormats = 2,
131
- /**
132
- *
133
- * * Spend more time to try to find a barcode; optimize for accuracy, not speed.
134
- * * Doesn't matter what it maps to; use {@link Boolean#TRUE}.
135
- *
136
- */
137
- TryHarder = 3,
138
- /**
139
- *
140
- * * Specifies what character encoding to use when decoding, where applicable (type String)
141
- *
142
- */
143
- CharacterSet = 4,
144
- /**
145
- *
146
- * * Allowed lengths of encoded data -- reject anything else. Maps to an {@code int[]}.
147
- *
148
- */
149
- AllowedLengths = 5,
150
- /**
151
- *
152
- * * Assume Code 39 codes employ a check digit. Doesn't matter what it maps to;
153
- * * use {@link Boolean#TRUE}.
154
- *
155
- */
156
- AssumeCode39CheckDigit = 6,
157
- /**
158
- *
159
- * * Assume the barcode is being processed as a GS1 barcode, and modify behavior as needed.
160
- * * For example this affects FNC1 handling for Code 128 (aka GS1-128). Doesn't matter what it maps to;
161
- * * use {@link Boolean#TRUE}.
162
- *
163
- */
164
- AssumeGs1 = 7,
165
- /**
166
- *
167
- * * If true, return the start and end digits in a Codabar barcode instead of stripping them. They
168
- * * are alpha, whereas the rest are numeric. By default, they are stripped, but this causes them
169
- * * to not be. Doesn't matter what it maps to; use {@link Boolean#TRUE}.
170
- *
171
- */
172
- ReturnCodabarStartEnd = 8,
173
- /**
174
- *
175
- * * The caller needs to be notified via callback when a possible {@link RXingResultPoint}
176
- * * is found. Maps to a {@link RXingResultPointCallback}.
177
- *
178
- */
179
- NeedResultPointCallback = 9,
180
- /**
181
- *
182
- * * Allowed extension lengths for EAN or UPC barcodes. Other formats will ignore this.
183
- * * Maps to an {@code int[]} of the allowed extension lengths, for example [2], [5], or [2, 5].
184
- * * If it is optional to have an extension, do not set this hint. If this is set,
185
- * * and a UPC or EAN barcode is found but an extension is not, then no result will be returned
186
- * * at all.
187
- *
188
- */
189
- AllowedEanExtensions = 10,
190
- /**
191
- *
192
- * * If true, also tries to decode as inverted image. All configured decoders are simply called a
193
- * * second time with an inverted image. Doesn't matter what it maps to; use {@link Boolean#TRUE}.
194
- *
195
- */
196
- AlsoInverted = 11,
197
- /**
198
- *
199
- * * Translate the ASCII values parsed by the Telepen reader into the Telepen Numeric form; use {@link Boolean#TRUE}.
200
- *
201
- */
202
- TelepenAsNumeric = 12,
111
+ /**
112
+ *
113
+ * * Unspecified, application-specific hint. Maps to an unspecified {@link Object}.
114
+ *
115
+ */
116
+ Other = 0,
117
+ /**
118
+ *
119
+ * * Image is a pure monochrome image of a barcode. Doesn't matter what it maps to;
120
+ * * use {@link Boolean#TRUE}.
121
+ *
122
+ */
123
+ PureBarcode = 1,
124
+ /**
125
+ *
126
+ * * Image is known to be of one of a few possible formats.
127
+ * * Maps to a {@link List} of {@link BarcodeFormat}s.
128
+ *
129
+ */
130
+ PossibleFormats = 2,
131
+ /**
132
+ *
133
+ * * Spend more time to try to find a barcode; optimize for accuracy, not speed.
134
+ * * Doesn't matter what it maps to; use {@link Boolean#TRUE}.
135
+ *
136
+ */
137
+ TryHarder = 3,
138
+ /**
139
+ *
140
+ * * Specifies what character encoding to use when decoding, where applicable (type String)
141
+ *
142
+ */
143
+ CharacterSet = 4,
144
+ /**
145
+ *
146
+ * * Allowed lengths of encoded data -- reject anything else. Maps to an {@code int[]}.
147
+ *
148
+ */
149
+ AllowedLengths = 5,
150
+ /**
151
+ *
152
+ * * Assume Code 39 codes employ a check digit. Doesn't matter what it maps to;
153
+ * * use {@link Boolean#TRUE}.
154
+ *
155
+ */
156
+ AssumeCode39CheckDigit = 6,
157
+ /**
158
+ *
159
+ * * Assume the barcode is being processed as a GS1 barcode, and modify behavior as needed.
160
+ * * For example this affects FNC1 handling for Code 128 (aka GS1-128). Doesn't matter what it maps to;
161
+ * * use {@link Boolean#TRUE}.
162
+ *
163
+ */
164
+ AssumeGs1 = 7,
165
+ /**
166
+ *
167
+ * * If true, return the start and end digits in a Codabar barcode instead of stripping them. They
168
+ * * are alpha, whereas the rest are numeric. By default, they are stripped, but this causes them
169
+ * * to not be. Doesn't matter what it maps to; use {@link Boolean#TRUE}.
170
+ *
171
+ */
172
+ ReturnCodabarStartEnd = 8,
173
+ /**
174
+ *
175
+ * * The caller needs to be notified via callback when a possible {@link RXingResultPoint}
176
+ * * is found. Maps to a {@link RXingResultPointCallback}.
177
+ *
178
+ */
179
+ NeedResultPointCallback = 9,
180
+ /**
181
+ *
182
+ * * Allowed extension lengths for EAN or UPC barcodes. Other formats will ignore this.
183
+ * * Maps to an {@code int[]} of the allowed extension lengths, for example [2], [5], or [2, 5].
184
+ * * If it is optional to have an extension, do not set this hint. If this is set,
185
+ * * and a UPC or EAN barcode is found but an extension is not, then no result will be returned
186
+ * * at all.
187
+ *
188
+ */
189
+ AllowedEanExtensions = 10,
190
+ /**
191
+ *
192
+ * * If true, also tries to decode as inverted image. All configured decoders are simply called a
193
+ * * second time with an inverted image. Doesn't matter what it maps to; use {@link Boolean#TRUE}.
194
+ *
195
+ */
196
+ AlsoInverted = 11,
197
+ /**
198
+ *
199
+ * * Translate the ASCII values parsed by the Telepen reader into the Telepen Numeric form; use {@link Boolean#TRUE}.
200
+ *
201
+ */
202
+ TelepenAsNumeric = 12,
203
203
  }
204
204
 
205
205
  export class EncodeHintDictionary {
206
- free(): void;
207
- [Symbol.dispose](): void;
208
- remove_hint(hint: EncodeHintTypes): boolean;
209
- constructor();
210
- get_hint(hint: EncodeHintTypes): string;
211
- set_hint(hint: EncodeHintTypes, value: string): boolean;
206
+ free(): void;
207
+ [Symbol.dispose](): void;
208
+ get_hint(hint: EncodeHintTypes): string;
209
+ constructor();
210
+ remove_hint(hint: EncodeHintTypes): boolean;
211
+ set_hint(hint: EncodeHintTypes, value: string): boolean;
212
212
  }
213
213
 
214
214
  export enum EncodeHintTypes {
215
- /**
216
- *
217
- * * Specifies what degree of error correction to use, for example in QR Codes.
218
- * * Type depends on the encoder. For example for QR codes it's type
219
- * * {@link com.google.zxing.qrcode.decoder.ErrorCorrectionLevel ErrorCorrectionLevel}.
220
- * * For Aztec it is of type {@link Integer}, representing the minimal percentage of error correction words.
221
- * * For PDF417 it is of type {@link Integer}, valid values being 0 to 8.
222
- * * In all cases, it can also be a {@link String} representation of the desired value as well.
223
- * * Note: an Aztec symbol should have a minimum of 25% EC words.
224
- *
225
- */
226
- ErrorCorrection = 0,
227
- /**
228
- *
229
- * * Specifies what character encoding to use where applicable (type {@link String})
230
- *
231
- */
232
- CharacterSet = 1,
233
- /**
234
- *
235
- * * Specifies the matrix shape for Data Matrix (type {@link com.google.zxing.datamatrix.encoder.SymbolShapeHint})
236
- *
237
- */
238
- DataMatrixShape = 2,
239
- /**
240
- *
241
- * * Specifies whether to use compact mode for Data Matrix (type {@link Boolean}, or "true" or "false"
242
- * * {@link String } value).
243
- * * The compact encoding mode also supports the encoding of characters that are not in the ISO-8859-1
244
- * * character set via ECIs.
245
- * * Please note that in that case, the most compact character encoding is chosen for characters in
246
- * * the input that are not in the ISO-8859-1 character set. Based on experience, some scanners do not
247
- * * support encodings like cp-1256 (Arabic). In such cases the encoding can be forced to UTF-8 by
248
- * * means of the {@link #CHARACTER_SET} encoding hint.
249
- * * Compact encoding also provides GS1-FNC1 support when {@link #GS1_FORMAT} is selected. In this case
250
- * * group-separator character (ASCII 29 decimal) can be used to encode the positions of FNC1 codewords
251
- * * for the purpose of delimiting AIs.
252
- * * This option and {@link #FORCE_C40} are mutually exclusive.
253
- *
254
- */
255
- DataMatrixCompact = 3,
256
- /**
257
- *
258
- * * Specifies a minimum barcode size (type {@link Dimension}). Only applicable to Data Matrix now.
259
- * *
260
- * * @deprecated use width/height params in
261
- * * {@link com.google.zxing.datamatrix.DataMatrixWriter#encode(String, BarcodeFormat, int, int)}
262
- *
263
- */
264
- MinSize = 4,
265
- /**
266
- *
267
- * * Specifies a maximum barcode size (type {@link Dimension}). Only applicable to Data Matrix now.
268
- * *
269
- * * @deprecated without replacement
270
- *
271
- */
272
- MaxSize = 5,
273
- /**
274
- *
275
- * * Specifies margin, in pixels, to use when generating the barcode. The meaning can vary
276
- * * by format; for example it controls margin before and after the barcode horizontally for
277
- * * most 1D formats. (Type {@link Integer}, or {@link String} representation of the integer value).
278
- *
279
- */
280
- Margin = 6,
281
- /**
282
- *
283
- * * Specifies whether to use compact mode for PDF417 (type {@link Boolean}, or "true" or "false"
284
- * * {@link String} value).
285
- *
286
- */
287
- Pdf417Compact = 7,
288
- /**
289
- *
290
- * * Specifies what compaction mode to use for PDF417 (type
291
- * * {@link com.google.zxing.pdf417.encoder.Compaction Compaction} or {@link String} value of one of its
292
- * * enum values).
293
- *
294
- */
295
- Pdf417Compaction = 8,
296
- /**
297
- *
298
- * * Specifies the minimum and maximum number of rows and columns for PDF417 (type
299
- * * {@link com.google.zxing.pdf417.encoder.Dimensions Dimensions}).
300
- *
301
- */
302
- Pdf417Dimensions = 9,
303
- /**
304
- *
305
- * * Specifies whether to automatically insert ECIs when encoding PDF417 (type {@link Boolean}, or "true" or "false"
306
- * * {@link String} value).
307
- * * Please note that in that case, the most compact character encoding is chosen for characters in
308
- * * the input that are not in the ISO-8859-1 character set. Based on experience, some scanners do not
309
- * * support encodings like cp-1256 (Arabic). In such cases the encoding can be forced to UTF-8 by
310
- * * means of the {@link #CHARACTER_SET} encoding hint.
311
- *
312
- */
313
- Pdf417AutoEci = 10,
314
- /**
315
- *
316
- * * Specifies the required number of layers for an Aztec code.
317
- * * A negative number (-1, -2, -3, -4) specifies a compact Aztec code.
318
- * * 0 indicates to use the minimum number of layers (the default).
319
- * * A positive number (1, 2, .. 32) specifies a normal (non-compact) Aztec code.
320
- * * (Type {@link Integer}, or {@link String} representation of the integer value).
321
- *
322
- */
323
- AztecLayers = 11,
324
- /**
325
- *
326
- * * Specifies the exact version of QR code to be encoded.
327
- * * (Type {@link Integer}, or {@link String} representation of the integer value).
328
- *
329
- */
330
- QrVersion = 12,
331
- /**
332
- *
333
- * * Specifies the QR code mask pattern to be used. Allowed values are
334
- * * 0..QRCode.NUM_MASK_PATTERNS-1. By default the code will automatically select
335
- * * the optimal mask pattern.
336
- * * * (Type {@link Integer}, or {@link String} representation of the integer value).
337
- *
338
- */
339
- QrMaskPattern = 13,
340
- /**
341
- *
342
- * * Specifies whether to use compact mode for QR code (type {@link Boolean}, or "true" or "false"
343
- * * {@link String } value).
344
- * * Please note that when compaction is performed, the most compact character encoding is chosen
345
- * * for characters in the input that are not in the ISO-8859-1 character set. Based on experience,
346
- * * some scanners do not support encodings like cp-1256 (Arabic). In such cases the encoding can
347
- * * be forced to UTF-8 by means of the {@link #CHARACTER_SET} encoding hint.
348
- *
349
- */
350
- QrCompact = 14,
351
- /**
352
- *
353
- * * Specifies whether the data should be encoded to the GS1 standard (type {@link Boolean}, or "true" or "false"
354
- * * {@link String } value).
355
- *
356
- */
357
- Gs1Format = 15,
358
- /**
359
- *
360
- * * Forces which encoding will be used. Currently only used for Code-128 code sets (Type {@link String}).
361
- * * Valid values are "A", "B", "C".
362
- * * This option and {@link #CODE128_COMPACT} are mutually exclusive.
363
- *
364
- */
365
- ForceCodeSet = 16,
366
- /**
367
- *
368
- * * Forces C40 encoding for data-matrix (type {@link Boolean}, or "true" or "false") {@link String } value). This
369
- * * option and {@link #DATA_MATRIX_COMPACT} are mutually exclusive.
370
- *
371
- */
372
- ForceC40 = 17,
373
- /**
374
- *
375
- * * Specifies whether to use compact mode for Code-128 code (type {@link Boolean}, or "true" or "false"
376
- * * {@link String } value).
377
- * * This can yield slightly smaller bar codes. This option and {@link #FORCE_CODE_SET} are mutually
378
- * * exclusive.
379
- *
380
- */
381
- Code128Compact = 18,
382
- TelepenAsNumeric = 19,
215
+ /**
216
+ *
217
+ * * Specifies what degree of error correction to use, for example in QR Codes.
218
+ * * Type depends on the encoder. For example for QR codes it's type
219
+ * * {@link com.google.zxing.qrcode.decoder.ErrorCorrectionLevel ErrorCorrectionLevel}.
220
+ * * For Aztec it is of type {@link Integer}, representing the minimal percentage of error correction words.
221
+ * * For PDF417 it is of type {@link Integer}, valid values being 0 to 8.
222
+ * * In all cases, it can also be a {@link String} representation of the desired value as well.
223
+ * * Note: an Aztec symbol should have a minimum of 25% EC words.
224
+ *
225
+ */
226
+ ErrorCorrection = 0,
227
+ /**
228
+ *
229
+ * * Specifies what character encoding to use where applicable (type {@link String})
230
+ *
231
+ */
232
+ CharacterSet = 1,
233
+ /**
234
+ *
235
+ * * Specifies the matrix shape for Data Matrix (type {@link com.google.zxing.datamatrix.encoder.SymbolShapeHint})
236
+ *
237
+ */
238
+ DataMatrixShape = 2,
239
+ /**
240
+ *
241
+ * * Specifies whether to use compact mode for Data Matrix (type {@link Boolean}, or "true" or "false"
242
+ * * {@link String } value).
243
+ * * The compact encoding mode also supports the encoding of characters that are not in the ISO-8859-1
244
+ * * character set via ECIs.
245
+ * * Please note that in that case, the most compact character encoding is chosen for characters in
246
+ * * the input that are not in the ISO-8859-1 character set. Based on experience, some scanners do not
247
+ * * support encodings like cp-1256 (Arabic). In such cases the encoding can be forced to UTF-8 by
248
+ * * means of the {@link #CHARACTER_SET} encoding hint.
249
+ * * Compact encoding also provides GS1-FNC1 support when {@link #GS1_FORMAT} is selected. In this case
250
+ * * group-separator character (ASCII 29 decimal) can be used to encode the positions of FNC1 codewords
251
+ * * for the purpose of delimiting AIs.
252
+ * * This option and {@link #FORCE_C40} are mutually exclusive.
253
+ *
254
+ */
255
+ DataMatrixCompact = 3,
256
+ /**
257
+ *
258
+ * * Specifies a minimum barcode size (type {@link Dimension}). Only applicable to Data Matrix now.
259
+ * *
260
+ * * @deprecated use width/height params in
261
+ * * {@link com.google.zxing.datamatrix.DataMatrixWriter#encode(String, BarcodeFormat, int, int)}
262
+ *
263
+ */
264
+ MinSize = 4,
265
+ /**
266
+ *
267
+ * * Specifies a maximum barcode size (type {@link Dimension}). Only applicable to Data Matrix now.
268
+ * *
269
+ * * @deprecated without replacement
270
+ *
271
+ */
272
+ MaxSize = 5,
273
+ /**
274
+ *
275
+ * * Specifies margin, in pixels, to use when generating the barcode. The meaning can vary
276
+ * * by format; for example it controls margin before and after the barcode horizontally for
277
+ * * most 1D formats. (Type {@link Integer}, or {@link String} representation of the integer value).
278
+ *
279
+ */
280
+ Margin = 6,
281
+ /**
282
+ *
283
+ * * Specifies whether to use compact mode for PDF417 (type {@link Boolean}, or "true" or "false"
284
+ * * {@link String} value).
285
+ *
286
+ */
287
+ Pdf417Compact = 7,
288
+ /**
289
+ *
290
+ * * Specifies what compaction mode to use for PDF417 (type
291
+ * * {@link com.google.zxing.pdf417.encoder.Compaction Compaction} or {@link String} value of one of its
292
+ * * enum values).
293
+ *
294
+ */
295
+ Pdf417Compaction = 8,
296
+ /**
297
+ *
298
+ * * Specifies the minimum and maximum number of rows and columns for PDF417 (type
299
+ * * {@link com.google.zxing.pdf417.encoder.Dimensions Dimensions}).
300
+ *
301
+ */
302
+ Pdf417Dimensions = 9,
303
+ /**
304
+ *
305
+ * * Specifies whether to automatically insert ECIs when encoding PDF417 (type {@link Boolean}, or "true" or "false"
306
+ * * {@link String} value).
307
+ * * Please note that in that case, the most compact character encoding is chosen for characters in
308
+ * * the input that are not in the ISO-8859-1 character set. Based on experience, some scanners do not
309
+ * * support encodings like cp-1256 (Arabic). In such cases the encoding can be forced to UTF-8 by
310
+ * * means of the {@link #CHARACTER_SET} encoding hint.
311
+ *
312
+ */
313
+ Pdf417AutoEci = 10,
314
+ /**
315
+ *
316
+ * * Specifies the required number of layers for an Aztec code.
317
+ * * A negative number (-1, -2, -3, -4) specifies a compact Aztec code.
318
+ * * 0 indicates to use the minimum number of layers (the default).
319
+ * * A positive number (1, 2, .. 32) specifies a normal (non-compact) Aztec code.
320
+ * * (Type {@link Integer}, or {@link String} representation of the integer value).
321
+ *
322
+ */
323
+ AztecLayers = 11,
324
+ /**
325
+ *
326
+ * * Specifies the exact version of QR code to be encoded.
327
+ * * (Type {@link Integer}, or {@link String} representation of the integer value).
328
+ *
329
+ */
330
+ QrVersion = 12,
331
+ /**
332
+ *
333
+ * * Specifies the QR code mask pattern to be used. Allowed values are
334
+ * * 0..QRCode.NUM_MASK_PATTERNS-1. By default the code will automatically select
335
+ * * the optimal mask pattern.
336
+ * * * (Type {@link Integer}, or {@link String} representation of the integer value).
337
+ *
338
+ */
339
+ QrMaskPattern = 13,
340
+ /**
341
+ *
342
+ * * Specifies whether to use compact mode for QR code (type {@link Boolean}, or "true" or "false"
343
+ * * {@link String } value).
344
+ * * Please note that when compaction is performed, the most compact character encoding is chosen
345
+ * * for characters in the input that are not in the ISO-8859-1 character set. Based on experience,
346
+ * * some scanners do not support encodings like cp-1256 (Arabic). In such cases the encoding can
347
+ * * be forced to UTF-8 by means of the {@link #CHARACTER_SET} encoding hint.
348
+ *
349
+ */
350
+ QrCompact = 14,
351
+ /**
352
+ *
353
+ * * Specifies whether the data should be encoded to the GS1 standard (type {@link Boolean}, or "true" or "false"
354
+ * * {@link String } value).
355
+ *
356
+ */
357
+ Gs1Format = 15,
358
+ /**
359
+ *
360
+ * * Forces which encoding will be used. Currently only used for Code-128 code sets (Type {@link String}).
361
+ * * Valid values are "A", "B", "C".
362
+ * * This option and {@link #CODE128_COMPACT} are mutually exclusive.
363
+ *
364
+ */
365
+ ForceCodeSet = 16,
366
+ /**
367
+ *
368
+ * * Forces C40 encoding for data-matrix (type {@link Boolean}, or "true" or "false") {@link String } value). This
369
+ * * option and {@link #DATA_MATRIX_COMPACT} are mutually exclusive.
370
+ *
371
+ */
372
+ ForceC40 = 17,
373
+ /**
374
+ *
375
+ * * Specifies whether to use compact mode for Code-128 code (type {@link Boolean}, or "true" or "false"
376
+ * * {@link String } value).
377
+ * * This can yield slightly smaller bar codes. This option and {@link #FORCE_CODE_SET} are mutually
378
+ * * exclusive.
379
+ *
380
+ */
381
+ Code128Compact = 18,
382
+ TelepenAsNumeric = 19,
383
383
  }
384
384
 
385
385
  export function convert_canvas_to_luma(canvas: HTMLCanvasElement): Uint8Array;