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.

33 lines (32 loc) 1.89 kB
import { ChangeDetectorRef, OnDestroy } from '@angular/core'; import { ScrollModeType } from '../../options/pdf-viewer'; import { SpreadType } from '../../options/spread-type'; import { PDFNotificationService } from '../../pdf-notification-service'; import { ResponsiveVisibility } from '../../responsive-visibility'; import * as i0 from "@angular/core"; export declare class PdfEvenSpreadComponent implements OnDestroy { private readonly cdr; show: import("@angular/core").InputSignal<ResponsiveVisibility>; disable: import("@angular/core").InputSignal<boolean>; spread: SpreadType; scrollMode: import("@angular/core").InputSignal<ScrollModeType>; private PDFViewerApplication; private eventBusAbortController; constructor(notificationService: PDFNotificationService, 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, so neither zone.js nor a signal write schedules a * change detection run for us - the button kept showing the previous state * until an unrelated click happened to trigger one. The view can already be * destroyed by the time a queued callback runs, and `detectChanges()` throws * on a destroyed view, so that case is skipped. */ private asyncWithCD; onPdfJsInit(): void; ngOnDestroy(): void; onClick: () => void; static ɵfac: i0.ɵɵFactoryDeclaration<PdfEvenSpreadComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<PdfEvenSpreadComponent, "pdf-even-spread", never, { "show": { "alias": "show"; "required": false; "isSignal": true; }; "disable": { "alias": "disable"; "required": false; "isSignal": true; }; "scrollMode": { "alias": "scrollMode"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>; }