Skip to content

Commit

Permalink
1.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
id1945 authored Nov 24, 2024
1 parent 60a6598 commit 9e8141a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 9 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

Expand Down

0 comments on commit 9e8141a

Please sign in to comment.