@alfresco/adf-core
Version:
63 lines (62 loc) • 1.92 kB
TypeScript
import * as i0 from "@angular/core";
/**
*
* RenderingQueueServices rendering of the views for pages and thumbnails.
*
*/
export declare class RenderingQueueServices {
renderingStates: {
INITIAL: number;
RUNNING: number;
PAUSED: number;
FINISHED: number;
};
CLEANUP_TIMEOUT: number;
pdfViewer: any;
pdfThumbnailViewer: any;
onIdle: any;
highestPriorityPage: string | null;
idleTimeout: any;
printing: any;
isThumbnailViewEnabled: boolean;
/**
* Set the instance of the PDF Viewer
*
* @param pdfViewer viewer instance
*/
setViewer(pdfViewer: any): void;
/**
* Sets the instance of the PDF Thumbnail Viewer
*
* @param pdfThumbnailViewer viewer instance
*/
setThumbnailViewer(pdfThumbnailViewer: any): void;
/**
* Check if the view has highest rendering priority
*
* @param view view to render
* @returns `true` if the view has higher priority, otherwise `false`
*/
isHighestPriority(view: any): boolean;
renderHighestPriority(currentlyVisiblePages: any): void;
getHighestPriority(visible: any, views: any, scrolledDown: any): any;
hasViewer(): boolean;
/**
* Checks if the view rendering is finished
*
* @param view the View instance to check
* @returns `true` if rendering is finished, otherwise `false`
*/
isViewFinished(view: any): boolean;
/**
* Render a page or thumbnail view. This calls the appropriate function
* based on the views state. If the view is already rendered it will return
* false.
*
* @param view View instance to render
* @returns the rendered state of the view
*/
renderView(view: any): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<RenderingQueueServices, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<RenderingQueueServices>;
}