UNPKG

ngx-extended-pdf-viewer

Version:

Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.

34 lines (33 loc) • 1.78 kB
import { ChangeDetectorRef, OnDestroy } from '@angular/core'; import { FocusManagementService } from '../../focus-management.service'; import { PDFNotificationService } from '../../pdf-notification-service'; import { ResponsiveVisibility } from '../../responsive-visibility'; import * as i0 from "@angular/core"; /** * stephanrauh/pdf.js#14: the eraser button. It erases parts of drawings and * free-hand highlights. The eraser only exists in the bleeding-edge bundle * (pdf.js 6.3 and up); the parent component doesn't render this button with * the stable bundle. */ export declare class PdfEraserEditorComponent implements OnDestroy { private readonly focusManagement; private readonly cdr; private readonly elementRef; show: import("@angular/core").InputSignal<ResponsiveVisibility>; disable: import("@angular/core").InputSignal<boolean>; isSelected: boolean; private PDFViewerApplication; private eventBusAbortController; constructor(notificationService: PDFNotificationService, focusManagement: FocusManagementService, cdr: ChangeDetectorRef); /** * Runs `callback` and re-renders this component. The callback is scheduled * from a pdf.js event bus listener, which runs outside Angular's zone (see * the Draw button for the details). */ private asyncWithCD; private onPdfJsInit; ngOnDestroy(): void; onClick: (event?: Event) => void; static ɵfac: i0.ɵɵFactoryDeclaration<PdfEraserEditorComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<PdfEraserEditorComponent, "pdf-eraser-editor", never, { "show": { "alias": "show"; "required": false; "isSignal": true; }; "disable": { "alias": "disable"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>; }