Feature: pngx PDF viewer with updated pdfjs (#4679)

This commit is contained in:
shamoon
2023-12-04 17:17:40 -08:00
committed by GitHub
parent 80ff5677ea
commit 826322b610
16 changed files with 2286 additions and 127 deletions

View File

@@ -0,0 +1,17 @@
export type PDFPageProxy =
import('pdfjs-dist/types/src/display/api').PDFPageProxy
export type PDFSource =
import('pdfjs-dist/types/src/display/api').DocumentInitParameters
export type PDFDocumentProxy =
import('pdfjs-dist/types/src/display/api').PDFDocumentProxy
export type PDFDocumentLoadingTask =
import('pdfjs-dist/types/src/display/api').PDFDocumentLoadingTask
export type PDFViewerOptions =
import('pdfjs-dist/types/web/pdf_viewer').PDFViewerOptions
export interface PDFProgressData {
loaded: number
total: number
}
export type ZoomScale = 'page-height' | 'page-fit' | 'page-width'