zedbar 0.2.2 → 0.2.4
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/package.json +1 -1
- package/zedbar.d.ts +8 -1
- package/zedbar.js +8 -1
- package/zedbar_bg.wasm +0 -0
package/package.json
CHANGED
package/zedbar.d.ts
CHANGED
|
@@ -34,10 +34,17 @@ export class DecodeResult {
|
|
|
34
34
|
readonly symbolType: string;
|
|
35
35
|
/**
|
|
36
36
|
* Raw decoded bytes.
|
|
37
|
+
*
|
|
38
|
+
* For 2D codes (QR, SQ), these are the original bytes as encoded
|
|
39
|
+
* in the barcode, before any text encoding or base64 conversion.
|
|
37
40
|
*/
|
|
38
41
|
readonly data: Uint8Array;
|
|
39
42
|
/**
|
|
40
|
-
* Decoded data as
|
|
43
|
+
* Decoded data as text, or null if not decodable as text.
|
|
44
|
+
*
|
|
45
|
+
* For 2D codes, the text is produced by detecting the encoding (UTF-8,
|
|
46
|
+
* Shift-JIS, Windows-1252, etc.) and converting to a UTF-8 string.
|
|
47
|
+
* For linear barcodes, the data is always ASCII text.
|
|
41
48
|
*/
|
|
42
49
|
readonly text: string | undefined;
|
|
43
50
|
}
|
package/zedbar.js
CHANGED
|
@@ -179,6 +179,9 @@ class DecodeResult {
|
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
181
181
|
* Raw decoded bytes.
|
|
182
|
+
*
|
|
183
|
+
* For 2D codes (QR, SQ), these are the original bytes as encoded
|
|
184
|
+
* in the barcode, before any text encoding or base64 conversion.
|
|
182
185
|
* @returns {Uint8Array}
|
|
183
186
|
*/
|
|
184
187
|
get data() {
|
|
@@ -188,7 +191,11 @@ class DecodeResult {
|
|
|
188
191
|
return v1;
|
|
189
192
|
}
|
|
190
193
|
/**
|
|
191
|
-
* Decoded data as
|
|
194
|
+
* Decoded data as text, or null if not decodable as text.
|
|
195
|
+
*
|
|
196
|
+
* For 2D codes, the text is produced by detecting the encoding (UTF-8,
|
|
197
|
+
* Shift-JIS, Windows-1252, etc.) and converting to a UTF-8 string.
|
|
198
|
+
* For linear barcodes, the data is always ASCII text.
|
|
192
199
|
* @returns {string | undefined}
|
|
193
200
|
*/
|
|
194
201
|
get text() {
|
package/zedbar_bg.wasm
CHANGED
|
Binary file
|