rxing-wasm 0.2.8 → 0.2.9
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 +3 -2
- package/rxing_wasm.d.ts +77 -77
- package/rxing_wasm_bg.js +72 -72
- package/rxing_wasm_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rxing-wasm",
|
|
3
|
+
"type": "module",
|
|
3
4
|
"description": "wasm bindings for rxing to provide commong barcode operations (decode/encode)",
|
|
4
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.9",
|
|
5
6
|
"license": "Apache 2.0",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
"rxing_wasm_bg.js",
|
|
14
15
|
"rxing_wasm.d.ts"
|
|
15
16
|
],
|
|
16
|
-
"
|
|
17
|
+
"main": "rxing_wasm.js",
|
|
17
18
|
"types": "rxing_wasm.d.ts",
|
|
18
19
|
"sideEffects": [
|
|
19
20
|
"./rxing_wasm.js",
|
package/rxing_wasm.d.ts
CHANGED
|
@@ -241,6 +241,83 @@ export enum EncodeHintTypes {
|
|
|
241
241
|
TelepenAsNumeric = 19,
|
|
242
242
|
}
|
|
243
243
|
/**
|
|
244
|
+
* Available barcode types
|
|
245
|
+
*/
|
|
246
|
+
export enum BarcodeFormat {
|
|
247
|
+
/**
|
|
248
|
+
* Aztec 2D barcode format.
|
|
249
|
+
*/
|
|
250
|
+
AZTEC = 0,
|
|
251
|
+
/**
|
|
252
|
+
* CODABAR 1D format.
|
|
253
|
+
*/
|
|
254
|
+
CODABAR = 1,
|
|
255
|
+
/**
|
|
256
|
+
* Code 39 1D format.
|
|
257
|
+
*/
|
|
258
|
+
Code39 = 2,
|
|
259
|
+
/**
|
|
260
|
+
* Code 93 1D format.
|
|
261
|
+
*/
|
|
262
|
+
Code93 = 3,
|
|
263
|
+
/**
|
|
264
|
+
* Code 128 1D format.
|
|
265
|
+
*/
|
|
266
|
+
Code128 = 4,
|
|
267
|
+
/**
|
|
268
|
+
* Data Matrix 2D barcode format.
|
|
269
|
+
*/
|
|
270
|
+
DataMatrix = 5,
|
|
271
|
+
/**
|
|
272
|
+
* EAN-8 1D format.
|
|
273
|
+
*/
|
|
274
|
+
Ean8 = 6,
|
|
275
|
+
/**
|
|
276
|
+
* EAN-13 1D format.
|
|
277
|
+
*/
|
|
278
|
+
Ean13 = 7,
|
|
279
|
+
/**
|
|
280
|
+
* ITF (Interleaved Two of Five) 1D format.
|
|
281
|
+
*/
|
|
282
|
+
ITF = 8,
|
|
283
|
+
/**
|
|
284
|
+
* MaxiCode 2D barcode format.
|
|
285
|
+
*/
|
|
286
|
+
MAXICODE = 9,
|
|
287
|
+
/**
|
|
288
|
+
* PDF417 format.
|
|
289
|
+
*/
|
|
290
|
+
Pdf417 = 10,
|
|
291
|
+
/**
|
|
292
|
+
* QR Code 2D barcode format.
|
|
293
|
+
*/
|
|
294
|
+
QrCode = 11,
|
|
295
|
+
/**
|
|
296
|
+
* RSS 14
|
|
297
|
+
*/
|
|
298
|
+
Rss14 = 12,
|
|
299
|
+
/**
|
|
300
|
+
* RSS EXPANDED
|
|
301
|
+
*/
|
|
302
|
+
RssExpanded = 13,
|
|
303
|
+
/**
|
|
304
|
+
* UPC-A 1D format.
|
|
305
|
+
*/
|
|
306
|
+
UpcA = 14,
|
|
307
|
+
/**
|
|
308
|
+
* UPC-E 1D format.
|
|
309
|
+
*/
|
|
310
|
+
UpcE = 15,
|
|
311
|
+
/**
|
|
312
|
+
* UPC/EAN extension format. Not a stand-alone format.
|
|
313
|
+
*/
|
|
314
|
+
UpcEanExtension = 16,
|
|
315
|
+
MicroQR = 17,
|
|
316
|
+
Telepen = 18,
|
|
317
|
+
RectangularMicroQR = 19,
|
|
318
|
+
UnsuportedFormat = 20,
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
244
321
|
*/
|
|
245
322
|
export enum DecodeHintTypes {
|
|
246
323
|
/**
|
|
@@ -337,83 +414,6 @@ export enum DecodeHintTypes {
|
|
|
337
414
|
TelepenAsNumeric = 12,
|
|
338
415
|
}
|
|
339
416
|
/**
|
|
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
417
|
*/
|
|
418
418
|
export class BarcodeResult {
|
|
419
419
|
free(): void;
|
package/rxing_wasm_bg.js
CHANGED
|
@@ -546,6 +546,78 @@ ForceC40:17,"17":"ForceC40",
|
|
|
546
546
|
*/
|
|
547
547
|
Code128Compact:18,"18":"Code128Compact",TelepenAsNumeric:19,"19":"TelepenAsNumeric", });
|
|
548
548
|
/**
|
|
549
|
+
* Available barcode types
|
|
550
|
+
*/
|
|
551
|
+
export const BarcodeFormat = Object.freeze({
|
|
552
|
+
/**
|
|
553
|
+
* Aztec 2D barcode format.
|
|
554
|
+
*/
|
|
555
|
+
AZTEC:0,"0":"AZTEC",
|
|
556
|
+
/**
|
|
557
|
+
* CODABAR 1D format.
|
|
558
|
+
*/
|
|
559
|
+
CODABAR:1,"1":"CODABAR",
|
|
560
|
+
/**
|
|
561
|
+
* Code 39 1D format.
|
|
562
|
+
*/
|
|
563
|
+
Code39:2,"2":"Code39",
|
|
564
|
+
/**
|
|
565
|
+
* Code 93 1D format.
|
|
566
|
+
*/
|
|
567
|
+
Code93:3,"3":"Code93",
|
|
568
|
+
/**
|
|
569
|
+
* Code 128 1D format.
|
|
570
|
+
*/
|
|
571
|
+
Code128:4,"4":"Code128",
|
|
572
|
+
/**
|
|
573
|
+
* Data Matrix 2D barcode format.
|
|
574
|
+
*/
|
|
575
|
+
DataMatrix:5,"5":"DataMatrix",
|
|
576
|
+
/**
|
|
577
|
+
* EAN-8 1D format.
|
|
578
|
+
*/
|
|
579
|
+
Ean8:6,"6":"Ean8",
|
|
580
|
+
/**
|
|
581
|
+
* EAN-13 1D format.
|
|
582
|
+
*/
|
|
583
|
+
Ean13:7,"7":"Ean13",
|
|
584
|
+
/**
|
|
585
|
+
* ITF (Interleaved Two of Five) 1D format.
|
|
586
|
+
*/
|
|
587
|
+
ITF:8,"8":"ITF",
|
|
588
|
+
/**
|
|
589
|
+
* MaxiCode 2D barcode format.
|
|
590
|
+
*/
|
|
591
|
+
MAXICODE:9,"9":"MAXICODE",
|
|
592
|
+
/**
|
|
593
|
+
* PDF417 format.
|
|
594
|
+
*/
|
|
595
|
+
Pdf417:10,"10":"Pdf417",
|
|
596
|
+
/**
|
|
597
|
+
* QR Code 2D barcode format.
|
|
598
|
+
*/
|
|
599
|
+
QrCode:11,"11":"QrCode",
|
|
600
|
+
/**
|
|
601
|
+
* RSS 14
|
|
602
|
+
*/
|
|
603
|
+
Rss14:12,"12":"Rss14",
|
|
604
|
+
/**
|
|
605
|
+
* RSS EXPANDED
|
|
606
|
+
*/
|
|
607
|
+
RssExpanded:13,"13":"RssExpanded",
|
|
608
|
+
/**
|
|
609
|
+
* UPC-A 1D format.
|
|
610
|
+
*/
|
|
611
|
+
UpcA:14,"14":"UpcA",
|
|
612
|
+
/**
|
|
613
|
+
* UPC-E 1D format.
|
|
614
|
+
*/
|
|
615
|
+
UpcE:15,"15":"UpcE",
|
|
616
|
+
/**
|
|
617
|
+
* UPC/EAN extension format. Not a stand-alone format.
|
|
618
|
+
*/
|
|
619
|
+
UpcEanExtension:16,"16":"UpcEanExtension",MicroQR:17,"17":"MicroQR",Telepen:18,"18":"Telepen",RectangularMicroQR:19,"19":"RectangularMicroQR",UnsuportedFormat:20,"20":"UnsuportedFormat", });
|
|
620
|
+
/**
|
|
549
621
|
*/
|
|
550
622
|
export const DecodeHintTypes = Object.freeze({
|
|
551
623
|
/**
|
|
@@ -640,78 +712,6 @@ AlsoInverted:11,"11":"AlsoInverted",
|
|
|
640
712
|
*
|
|
641
713
|
*/
|
|
642
714
|
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
715
|
|
|
716
716
|
const BarcodeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
717
717
|
? { register: () => {}, unregister: () => {} }
|
package/rxing_wasm_bg.wasm
CHANGED
|
Binary file
|