rxing-wasm 0.2.10 → 0.3.0
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/README.md +6 -3
- package/package.json +1 -1
- package/rxing_wasm.d.ts +80 -91
- package/rxing_wasm_bg.js +97 -120
- package/rxing_wasm_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# rxing-wasm
|
|
2
2
|
WASM bindings for common rxing functions. The NPM link is [https://www.npmjs.com/package/rxing-wasm](https://www.npmjs.com/package/rxing-wasm) and the rust source is [https://github.com/rxing-core/rxing-wasm](https://github.com/hschimke/rxing-wasm).
|
|
3
3
|
|
|
4
|
+
## Decode Multi Breaking Change with v0.3.0
|
|
5
|
+
Version `0.3.0` now returns `BarcodeResult` objects in a native javascript array. This fully deprecates the old method
|
|
6
|
+
which returned a custom object with internal state.
|
|
7
|
+
|
|
4
8
|
## Data
|
|
5
9
|
The `convert_js_image_to_luma` function is used to convert canvas image data to the luma 8
|
|
6
10
|
format that rxing expects. An example might look like to below.
|
|
@@ -99,7 +103,8 @@ pub fn decode_multi(
|
|
|
99
103
|
width: u32,
|
|
100
104
|
height: u32,
|
|
101
105
|
hints: &mut decode_hints::DecodeHintDictionary,
|
|
102
|
-
|
|
106
|
+
filter_image: Option<bool>,
|
|
107
|
+
) -> Result<Vec<BarcodeResult>, String>;
|
|
103
108
|
```
|
|
104
109
|
|
|
105
110
|
```rust
|
|
@@ -113,6 +118,4 @@ pub fn encode_barcode_with_hints(
|
|
|
113
118
|
```
|
|
114
119
|
|
|
115
120
|
## Beta Features
|
|
116
|
-
`decode_multi` is currently in beta. The output may be unexpected, or undefined. Please use with caution. The interface may be unstable, and change.
|
|
117
|
-
|
|
118
121
|
`encode_barcode_with_hints` is currently in alpha. The output and behaviour is unexpected and poorly documented. Use at your own risk, feature may change, unstable interface.
|
package/package.json
CHANGED
package/rxing_wasm.d.ts
CHANGED
|
@@ -65,9 +65,10 @@ export function decode_barcode_with_hints(data: Uint8Array, width: number, heigh
|
|
|
65
65
|
* @param {number} width
|
|
66
66
|
* @param {number} height
|
|
67
67
|
* @param {DecodeHintDictionary} hints
|
|
68
|
-
* @
|
|
68
|
+
* @param {boolean | undefined} [filter_image]
|
|
69
|
+
* @returns {(BarcodeResult)[]}
|
|
69
70
|
*/
|
|
70
|
-
export function decode_multi(data: Uint8Array, width: number, height: number, hints: DecodeHintDictionary):
|
|
71
|
+
export function decode_multi(data: Uint8Array, width: number, height: number, hints: DecodeHintDictionary, filter_image?: boolean): (BarcodeResult)[];
|
|
71
72
|
/**
|
|
72
73
|
*/
|
|
73
74
|
export enum EncodeHintTypes {
|
|
@@ -241,6 +242,83 @@ export enum EncodeHintTypes {
|
|
|
241
242
|
TelepenAsNumeric = 19,
|
|
242
243
|
}
|
|
243
244
|
/**
|
|
245
|
+
* Available barcode types
|
|
246
|
+
*/
|
|
247
|
+
export enum BarcodeFormat {
|
|
248
|
+
/**
|
|
249
|
+
* Aztec 2D barcode format.
|
|
250
|
+
*/
|
|
251
|
+
AZTEC = 0,
|
|
252
|
+
/**
|
|
253
|
+
* CODABAR 1D format.
|
|
254
|
+
*/
|
|
255
|
+
CODABAR = 1,
|
|
256
|
+
/**
|
|
257
|
+
* Code 39 1D format.
|
|
258
|
+
*/
|
|
259
|
+
Code39 = 2,
|
|
260
|
+
/**
|
|
261
|
+
* Code 93 1D format.
|
|
262
|
+
*/
|
|
263
|
+
Code93 = 3,
|
|
264
|
+
/**
|
|
265
|
+
* Code 128 1D format.
|
|
266
|
+
*/
|
|
267
|
+
Code128 = 4,
|
|
268
|
+
/**
|
|
269
|
+
* Data Matrix 2D barcode format.
|
|
270
|
+
*/
|
|
271
|
+
DataMatrix = 5,
|
|
272
|
+
/**
|
|
273
|
+
* EAN-8 1D format.
|
|
274
|
+
*/
|
|
275
|
+
Ean8 = 6,
|
|
276
|
+
/**
|
|
277
|
+
* EAN-13 1D format.
|
|
278
|
+
*/
|
|
279
|
+
Ean13 = 7,
|
|
280
|
+
/**
|
|
281
|
+
* ITF (Interleaved Two of Five) 1D format.
|
|
282
|
+
*/
|
|
283
|
+
ITF = 8,
|
|
284
|
+
/**
|
|
285
|
+
* MaxiCode 2D barcode format.
|
|
286
|
+
*/
|
|
287
|
+
MAXICODE = 9,
|
|
288
|
+
/**
|
|
289
|
+
* PDF417 format.
|
|
290
|
+
*/
|
|
291
|
+
Pdf417 = 10,
|
|
292
|
+
/**
|
|
293
|
+
* QR Code 2D barcode format.
|
|
294
|
+
*/
|
|
295
|
+
QrCode = 11,
|
|
296
|
+
/**
|
|
297
|
+
* RSS 14
|
|
298
|
+
*/
|
|
299
|
+
Rss14 = 12,
|
|
300
|
+
/**
|
|
301
|
+
* RSS EXPANDED
|
|
302
|
+
*/
|
|
303
|
+
RssExpanded = 13,
|
|
304
|
+
/**
|
|
305
|
+
* UPC-A 1D format.
|
|
306
|
+
*/
|
|
307
|
+
UpcA = 14,
|
|
308
|
+
/**
|
|
309
|
+
* UPC-E 1D format.
|
|
310
|
+
*/
|
|
311
|
+
UpcE = 15,
|
|
312
|
+
/**
|
|
313
|
+
* UPC/EAN extension format. Not a stand-alone format.
|
|
314
|
+
*/
|
|
315
|
+
UpcEanExtension = 16,
|
|
316
|
+
MicroQR = 17,
|
|
317
|
+
Telepen = 18,
|
|
318
|
+
RectangularMicroQR = 19,
|
|
319
|
+
UnsuportedFormat = 20,
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
244
322
|
*/
|
|
245
323
|
export enum DecodeHintTypes {
|
|
246
324
|
/**
|
|
@@ -337,83 +415,6 @@ export enum DecodeHintTypes {
|
|
|
337
415
|
TelepenAsNumeric = 12,
|
|
338
416
|
}
|
|
339
417
|
/**
|
|
340
|
-
* Available barcode types
|
|
341
|
-
*/
|
|
342
|
-
export enum BarcodeFormat {
|
|
343
|
-
/**
|
|
344
|
-
* Aztec 2D barcode format.
|
|
345
|
-
*/
|
|
346
|
-
AZTEC = 0,
|
|
347
|
-
/**
|
|
348
|
-
* CODABAR 1D format.
|
|
349
|
-
*/
|
|
350
|
-
CODABAR = 1,
|
|
351
|
-
/**
|
|
352
|
-
* Code 39 1D format.
|
|
353
|
-
*/
|
|
354
|
-
Code39 = 2,
|
|
355
|
-
/**
|
|
356
|
-
* Code 93 1D format.
|
|
357
|
-
*/
|
|
358
|
-
Code93 = 3,
|
|
359
|
-
/**
|
|
360
|
-
* Code 128 1D format.
|
|
361
|
-
*/
|
|
362
|
-
Code128 = 4,
|
|
363
|
-
/**
|
|
364
|
-
* Data Matrix 2D barcode format.
|
|
365
|
-
*/
|
|
366
|
-
DataMatrix = 5,
|
|
367
|
-
/**
|
|
368
|
-
* EAN-8 1D format.
|
|
369
|
-
*/
|
|
370
|
-
Ean8 = 6,
|
|
371
|
-
/**
|
|
372
|
-
* EAN-13 1D format.
|
|
373
|
-
*/
|
|
374
|
-
Ean13 = 7,
|
|
375
|
-
/**
|
|
376
|
-
* ITF (Interleaved Two of Five) 1D format.
|
|
377
|
-
*/
|
|
378
|
-
ITF = 8,
|
|
379
|
-
/**
|
|
380
|
-
* MaxiCode 2D barcode format.
|
|
381
|
-
*/
|
|
382
|
-
MAXICODE = 9,
|
|
383
|
-
/**
|
|
384
|
-
* PDF417 format.
|
|
385
|
-
*/
|
|
386
|
-
Pdf417 = 10,
|
|
387
|
-
/**
|
|
388
|
-
* QR Code 2D barcode format.
|
|
389
|
-
*/
|
|
390
|
-
QrCode = 11,
|
|
391
|
-
/**
|
|
392
|
-
* RSS 14
|
|
393
|
-
*/
|
|
394
|
-
Rss14 = 12,
|
|
395
|
-
/**
|
|
396
|
-
* RSS EXPANDED
|
|
397
|
-
*/
|
|
398
|
-
RssExpanded = 13,
|
|
399
|
-
/**
|
|
400
|
-
* UPC-A 1D format.
|
|
401
|
-
*/
|
|
402
|
-
UpcA = 14,
|
|
403
|
-
/**
|
|
404
|
-
* UPC-E 1D format.
|
|
405
|
-
*/
|
|
406
|
-
UpcE = 15,
|
|
407
|
-
/**
|
|
408
|
-
* UPC/EAN extension format. Not a stand-alone format.
|
|
409
|
-
*/
|
|
410
|
-
UpcEanExtension = 16,
|
|
411
|
-
MicroQR = 17,
|
|
412
|
-
Telepen = 18,
|
|
413
|
-
RectangularMicroQR = 19,
|
|
414
|
-
UnsuportedFormat = 20,
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
418
|
*/
|
|
418
419
|
export class BarcodeResult {
|
|
419
420
|
free(): void;
|
|
@@ -495,15 +496,3 @@ export class EncodeHintDictionary {
|
|
|
495
496
|
*/
|
|
496
497
|
remove_hint(hint: EncodeHintTypes): boolean;
|
|
497
498
|
}
|
|
498
|
-
/**
|
|
499
|
-
*/
|
|
500
|
-
export class MultiDecodeResult {
|
|
501
|
-
free(): void;
|
|
502
|
-
/**
|
|
503
|
-
*/
|
|
504
|
-
constructor();
|
|
505
|
-
/**
|
|
506
|
-
* @returns {BarcodeResult | undefined}
|
|
507
|
-
*/
|
|
508
|
-
next(): BarcodeResult | undefined;
|
|
509
|
-
}
|
package/rxing_wasm_bg.js
CHANGED
|
@@ -349,27 +349,41 @@ export function decode_barcode_with_hints(data, width, height, hints, filter_ima
|
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
353
|
+
ptr = ptr >>> 0;
|
|
354
|
+
const mem = getUint32Memory0();
|
|
355
|
+
const slice = mem.subarray(ptr / 4, ptr / 4 + len);
|
|
356
|
+
const result = [];
|
|
357
|
+
for (let i = 0; i < slice.length; i++) {
|
|
358
|
+
result.push(takeObject(slice[i]));
|
|
359
|
+
}
|
|
360
|
+
return result;
|
|
361
|
+
}
|
|
352
362
|
/**
|
|
353
363
|
* @param {Uint8Array} data
|
|
354
364
|
* @param {number} width
|
|
355
365
|
* @param {number} height
|
|
356
366
|
* @param {DecodeHintDictionary} hints
|
|
357
|
-
* @
|
|
367
|
+
* @param {boolean | undefined} [filter_image]
|
|
368
|
+
* @returns {(BarcodeResult)[]}
|
|
358
369
|
*/
|
|
359
|
-
export function decode_multi(data, width, height, hints) {
|
|
370
|
+
export function decode_multi(data, width, height, hints, filter_image) {
|
|
360
371
|
try {
|
|
361
372
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
362
373
|
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
363
374
|
const len0 = WASM_VECTOR_LEN;
|
|
364
375
|
_assertClass(hints, DecodeHintDictionary);
|
|
365
|
-
wasm.decode_multi(retptr, ptr0, len0, width, height, hints.__wbg_ptr);
|
|
376
|
+
wasm.decode_multi(retptr, ptr0, len0, width, height, hints.__wbg_ptr, isLikeNone(filter_image) ? 0xFFFFFF : filter_image ? 1 : 0);
|
|
366
377
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
367
378
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
368
379
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
369
|
-
|
|
370
|
-
|
|
380
|
+
var r3 = getInt32Memory0()[retptr / 4 + 3];
|
|
381
|
+
if (r3) {
|
|
382
|
+
throw takeObject(r2);
|
|
371
383
|
}
|
|
372
|
-
|
|
384
|
+
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
385
|
+
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
|
386
|
+
return v2;
|
|
373
387
|
} finally {
|
|
374
388
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
375
389
|
}
|
|
@@ -546,6 +560,78 @@ ForceC40:17,"17":"ForceC40",
|
|
|
546
560
|
*/
|
|
547
561
|
Code128Compact:18,"18":"Code128Compact",TelepenAsNumeric:19,"19":"TelepenAsNumeric", });
|
|
548
562
|
/**
|
|
563
|
+
* Available barcode types
|
|
564
|
+
*/
|
|
565
|
+
export const BarcodeFormat = Object.freeze({
|
|
566
|
+
/**
|
|
567
|
+
* Aztec 2D barcode format.
|
|
568
|
+
*/
|
|
569
|
+
AZTEC:0,"0":"AZTEC",
|
|
570
|
+
/**
|
|
571
|
+
* CODABAR 1D format.
|
|
572
|
+
*/
|
|
573
|
+
CODABAR:1,"1":"CODABAR",
|
|
574
|
+
/**
|
|
575
|
+
* Code 39 1D format.
|
|
576
|
+
*/
|
|
577
|
+
Code39:2,"2":"Code39",
|
|
578
|
+
/**
|
|
579
|
+
* Code 93 1D format.
|
|
580
|
+
*/
|
|
581
|
+
Code93:3,"3":"Code93",
|
|
582
|
+
/**
|
|
583
|
+
* Code 128 1D format.
|
|
584
|
+
*/
|
|
585
|
+
Code128:4,"4":"Code128",
|
|
586
|
+
/**
|
|
587
|
+
* Data Matrix 2D barcode format.
|
|
588
|
+
*/
|
|
589
|
+
DataMatrix:5,"5":"DataMatrix",
|
|
590
|
+
/**
|
|
591
|
+
* EAN-8 1D format.
|
|
592
|
+
*/
|
|
593
|
+
Ean8:6,"6":"Ean8",
|
|
594
|
+
/**
|
|
595
|
+
* EAN-13 1D format.
|
|
596
|
+
*/
|
|
597
|
+
Ean13:7,"7":"Ean13",
|
|
598
|
+
/**
|
|
599
|
+
* ITF (Interleaved Two of Five) 1D format.
|
|
600
|
+
*/
|
|
601
|
+
ITF:8,"8":"ITF",
|
|
602
|
+
/**
|
|
603
|
+
* MaxiCode 2D barcode format.
|
|
604
|
+
*/
|
|
605
|
+
MAXICODE:9,"9":"MAXICODE",
|
|
606
|
+
/**
|
|
607
|
+
* PDF417 format.
|
|
608
|
+
*/
|
|
609
|
+
Pdf417:10,"10":"Pdf417",
|
|
610
|
+
/**
|
|
611
|
+
* QR Code 2D barcode format.
|
|
612
|
+
*/
|
|
613
|
+
QrCode:11,"11":"QrCode",
|
|
614
|
+
/**
|
|
615
|
+
* RSS 14
|
|
616
|
+
*/
|
|
617
|
+
Rss14:12,"12":"Rss14",
|
|
618
|
+
/**
|
|
619
|
+
* RSS EXPANDED
|
|
620
|
+
*/
|
|
621
|
+
RssExpanded:13,"13":"RssExpanded",
|
|
622
|
+
/**
|
|
623
|
+
* UPC-A 1D format.
|
|
624
|
+
*/
|
|
625
|
+
UpcA:14,"14":"UpcA",
|
|
626
|
+
/**
|
|
627
|
+
* UPC-E 1D format.
|
|
628
|
+
*/
|
|
629
|
+
UpcE:15,"15":"UpcE",
|
|
630
|
+
/**
|
|
631
|
+
* UPC/EAN extension format. Not a stand-alone format.
|
|
632
|
+
*/
|
|
633
|
+
UpcEanExtension:16,"16":"UpcEanExtension",MicroQR:17,"17":"MicroQR",Telepen:18,"18":"Telepen",RectangularMicroQR:19,"19":"RectangularMicroQR",UnsuportedFormat:20,"20":"UnsuportedFormat", });
|
|
634
|
+
/**
|
|
549
635
|
*/
|
|
550
636
|
export const DecodeHintTypes = Object.freeze({
|
|
551
637
|
/**
|
|
@@ -640,78 +726,6 @@ AlsoInverted:11,"11":"AlsoInverted",
|
|
|
640
726
|
*
|
|
641
727
|
*/
|
|
642
728
|
TelepenAsNumeric:12,"12":"TelepenAsNumeric", });
|
|
643
|
-
/**
|
|
644
|
-
* Available barcode types
|
|
645
|
-
*/
|
|
646
|
-
export const BarcodeFormat = Object.freeze({
|
|
647
|
-
/**
|
|
648
|
-
* Aztec 2D barcode format.
|
|
649
|
-
*/
|
|
650
|
-
AZTEC:0,"0":"AZTEC",
|
|
651
|
-
/**
|
|
652
|
-
* CODABAR 1D format.
|
|
653
|
-
*/
|
|
654
|
-
CODABAR:1,"1":"CODABAR",
|
|
655
|
-
/**
|
|
656
|
-
* Code 39 1D format.
|
|
657
|
-
*/
|
|
658
|
-
Code39:2,"2":"Code39",
|
|
659
|
-
/**
|
|
660
|
-
* Code 93 1D format.
|
|
661
|
-
*/
|
|
662
|
-
Code93:3,"3":"Code93",
|
|
663
|
-
/**
|
|
664
|
-
* Code 128 1D format.
|
|
665
|
-
*/
|
|
666
|
-
Code128:4,"4":"Code128",
|
|
667
|
-
/**
|
|
668
|
-
* Data Matrix 2D barcode format.
|
|
669
|
-
*/
|
|
670
|
-
DataMatrix:5,"5":"DataMatrix",
|
|
671
|
-
/**
|
|
672
|
-
* EAN-8 1D format.
|
|
673
|
-
*/
|
|
674
|
-
Ean8:6,"6":"Ean8",
|
|
675
|
-
/**
|
|
676
|
-
* EAN-13 1D format.
|
|
677
|
-
*/
|
|
678
|
-
Ean13:7,"7":"Ean13",
|
|
679
|
-
/**
|
|
680
|
-
* ITF (Interleaved Two of Five) 1D format.
|
|
681
|
-
*/
|
|
682
|
-
ITF:8,"8":"ITF",
|
|
683
|
-
/**
|
|
684
|
-
* MaxiCode 2D barcode format.
|
|
685
|
-
*/
|
|
686
|
-
MAXICODE:9,"9":"MAXICODE",
|
|
687
|
-
/**
|
|
688
|
-
* PDF417 format.
|
|
689
|
-
*/
|
|
690
|
-
Pdf417:10,"10":"Pdf417",
|
|
691
|
-
/**
|
|
692
|
-
* QR Code 2D barcode format.
|
|
693
|
-
*/
|
|
694
|
-
QrCode:11,"11":"QrCode",
|
|
695
|
-
/**
|
|
696
|
-
* RSS 14
|
|
697
|
-
*/
|
|
698
|
-
Rss14:12,"12":"Rss14",
|
|
699
|
-
/**
|
|
700
|
-
* RSS EXPANDED
|
|
701
|
-
*/
|
|
702
|
-
RssExpanded:13,"13":"RssExpanded",
|
|
703
|
-
/**
|
|
704
|
-
* UPC-A 1D format.
|
|
705
|
-
*/
|
|
706
|
-
UpcA:14,"14":"UpcA",
|
|
707
|
-
/**
|
|
708
|
-
* UPC-E 1D format.
|
|
709
|
-
*/
|
|
710
|
-
UpcE:15,"15":"UpcE",
|
|
711
|
-
/**
|
|
712
|
-
* UPC/EAN extension format. Not a stand-alone format.
|
|
713
|
-
*/
|
|
714
|
-
UpcEanExtension:16,"16":"UpcEanExtension",MicroQR:17,"17":"MicroQR",Telepen:18,"18":"Telepen",RectangularMicroQR:19,"19":"RectangularMicroQR",UnsuportedFormat:20,"20":"UnsuportedFormat", });
|
|
715
729
|
|
|
716
730
|
const BarcodeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
717
731
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -953,48 +967,6 @@ export class EncodeHintDictionary {
|
|
|
953
967
|
}
|
|
954
968
|
}
|
|
955
969
|
|
|
956
|
-
const MultiDecodeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
957
|
-
? { register: () => {}, unregister: () => {} }
|
|
958
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_multidecoderesult_free(ptr >>> 0));
|
|
959
|
-
/**
|
|
960
|
-
*/
|
|
961
|
-
export class MultiDecodeResult {
|
|
962
|
-
|
|
963
|
-
static __wrap(ptr) {
|
|
964
|
-
ptr = ptr >>> 0;
|
|
965
|
-
const obj = Object.create(MultiDecodeResult.prototype);
|
|
966
|
-
obj.__wbg_ptr = ptr;
|
|
967
|
-
MultiDecodeResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
968
|
-
return obj;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
__destroy_into_raw() {
|
|
972
|
-
const ptr = this.__wbg_ptr;
|
|
973
|
-
this.__wbg_ptr = 0;
|
|
974
|
-
MultiDecodeResultFinalization.unregister(this);
|
|
975
|
-
return ptr;
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
free() {
|
|
979
|
-
const ptr = this.__destroy_into_raw();
|
|
980
|
-
wasm.__wbg_multidecoderesult_free(ptr);
|
|
981
|
-
}
|
|
982
|
-
/**
|
|
983
|
-
*/
|
|
984
|
-
constructor() {
|
|
985
|
-
const ret = wasm.multidecoderesult_new();
|
|
986
|
-
this.__wbg_ptr = ret >>> 0;
|
|
987
|
-
return this;
|
|
988
|
-
}
|
|
989
|
-
/**
|
|
990
|
-
* @returns {BarcodeResult | undefined}
|
|
991
|
-
*/
|
|
992
|
-
next() {
|
|
993
|
-
const ret = wasm.multidecoderesult_next(this.__wbg_ptr);
|
|
994
|
-
return ret === 0 ? undefined : BarcodeResult.__wrap(ret);
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
|
|
998
970
|
export function __wbindgen_object_drop_ref(arg0) {
|
|
999
971
|
takeObject(arg0);
|
|
1000
972
|
};
|
|
@@ -1004,6 +976,11 @@ export function __wbindgen_string_new(arg0, arg1) {
|
|
|
1004
976
|
return addHeapObject(ret);
|
|
1005
977
|
};
|
|
1006
978
|
|
|
979
|
+
export function __wbg_barcoderesult_new(arg0) {
|
|
980
|
+
const ret = BarcodeResult.__wrap(arg0);
|
|
981
|
+
return addHeapObject(ret);
|
|
982
|
+
};
|
|
983
|
+
|
|
1007
984
|
export function __wbg_new_d9bc3a0147634640() {
|
|
1008
985
|
const ret = new Map();
|
|
1009
986
|
return addHeapObject(ret);
|
package/rxing_wasm_bg.wasm
CHANGED
|
Binary file
|