biometry-angular-components
Version:
Angular UI component library for capturing biometric data
29 lines (28 loc) • 1.31 kB
TypeScript
import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core';
import { PermissionsService } from '../../services/permissions.service';
import * as i0 from "@angular/core";
export declare class FaceCaptureComponent implements OnInit, OnDestroy {
private perms;
private ngZone;
private cdr;
rectWidth: number;
rectHeight: number;
noShadow: boolean;
capture: EventEmitter<File>;
videoEl: ElementRef<HTMLVideoElement>;
isConfirming: boolean;
capturedUrl: string | null;
capturedFile: File | null;
private stream?;
readonly QUALITY_MULTIPLIER = 3;
constructor(perms: PermissionsService, ngZone: NgZone, cdr: ChangeDetectorRef);
ngOnInit(): Promise<void>;
ngOnDestroy(): void;
private initStream;
private stopStream;
handleCapture(): void;
handleConfirm(): void;
handleDecline(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FaceCaptureComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<FaceCaptureComponent, "bio-face-capture", never, { "rectWidth": { "alias": "rectWidth"; "required": false; }; "rectHeight": { "alias": "rectHeight"; "required": false; }; "noShadow": { "alias": "noShadow"; "required": false; }; }, { "capture": "capture"; }, never, never, true, never>;
}