Vanessa 2024-10-11 01:07:32 +08:00
parent 5e657df015
commit 2403d5107d
78 changed files with 9107 additions and 6578 deletions

View file

@ -36,6 +36,12 @@ class PDFRenderingQueue {
this.idleTimeout = null;
this.printing = false;
this.isThumbnailViewEnabled = false;
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
Object.defineProperty(this, "hasViewer", {
value: () => !!this.pdfViewer,
});
}
}
/**
@ -60,13 +66,6 @@ class PDFRenderingQueue {
return this.highestPriorityPage === view.renderingId;
}
/**
* @returns {boolean}
*/
hasViewer() {
return !!this.pdfViewer;
}
/**
* @param {Object} currentlyVisiblePages
*/