diff --git a/package.json b/package.json index 760ed1f..6223baf 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "@angular/platform-browser": "^16.1.0", "@angular/platform-browser-dynamic": "^16.1.0", "@angular/router": "^16.1.0", - "ngx-scanner-qrcode": "1.6.8", + "ngx-scanner-qrcode": "1.7.3", "bootstrap": "5.0.2", "rxjs": "~7.8.0", "tslib": "^2.3.0", diff --git a/src/app/app.component.ts b/src/app/app.component.ts index b34856c..09d0e6b 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,5 +1,5 @@ import { AfterViewInit, Component, ViewChild } from '@angular/core'; -import { ScannerQRCodeConfig, NgxScannerQrcodeService, ScannerQRCodeSelectedFiles, ScannerQRCodeResult, NgxScannerQrcodeComponent } from 'ngx-scanner-qrcode'; +import { ScannerQRCodeConfig, NgxScannerQrcodeService, ScannerQRCodeSelectedFiles, ScannerQRCodeResult, NgxScannerQrcodeComponent, ScannerQRCodeSymbolType } from 'ngx-scanner-qrcode'; @Component({ selector: 'app-root', @@ -15,6 +15,14 @@ export class AppComponent implements AfterViewInit { width: window.innerWidth }, }, + symbolType: [ + ScannerQRCodeSymbolType.ScannerQRCode_QRCODE, + ScannerQRCodeSymbolType.ScannerQRCode_I25, + ScannerQRCodeSymbolType.ScannerQRCode_DATABAR, + ScannerQRCodeSymbolType.ScannerQRCode_CODE39, + ], + // isMasked: false, + // unScan: true, // canvasStyles: [ // { // lineWidth: 1, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index b629c49..176bb81 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -6,7 +6,7 @@ import { SafePipe } from './safe.pipe'; import { FormsModule } from '@angular/forms'; import { LOAD_WASM, NgxScannerQrcodeModule } from 'ngx-scanner-qrcode'; -LOAD_WASM().subscribe((res: any) => { +LOAD_WASM('assets/wasm/ngx-scanner-qrcode.wasm').subscribe((res: any) => { console.log('LOAD_WASM',res) })