UNPKG

ngx-capture

Version:

Screen capture library for Angular

32 lines (31 loc) 1.12 kB
import { ElementRef, EventEmitter, OnInit } from '@angular/core'; import { Subject } from 'rxjs'; import { CropDimensions, NgxCaptureService } from './ngx-capture.service'; import * as i0 from "@angular/core"; type Point = { x: number; y: number; }; export declare class NgxCaptureComponent implements OnInit { private captureService; rectangle: ElementRef; overlay: ElementRef; target: any; resultImage: EventEmitter<string>; rect: HTMLElement; captureZone: HTMLElement; isDrawing: boolean; mouseStart: Point; cropDimensions: CropDimensions; destroy$: Subject<void>; constructor(captureService: NgxCaptureService); ngOnInit(): void; private startCapture; private drawRect; private setMousePosition; private endCapture; private setRectangle; static ɵfac: i0.ɵɵFactoryDeclaration<NgxCaptureComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgxCaptureComponent, "ngx-capture", never, { "target": "target"; }, { "resultImage": "resultImage"; }, never, ["*"], false, never>; } export {};