mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Merge pull request #16774 from Snuffleupagus/rm-deprecated-options
[api-major] Remove various deprecated functionality and options
This commit is contained in:
commit
0edc490e1b
6 changed files with 1 additions and 91 deletions
|
@ -280,13 +280,6 @@ class PDFViewer {
|
|||
this.enablePrintAutoRotate = options.enablePrintAutoRotate || false;
|
||||
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
||||
this.removePageBorders = options.removePageBorders || false;
|
||||
|
||||
if (options.useOnlyCssZoom) {
|
||||
console.error(
|
||||
"useOnlyCssZoom was removed, please use `maxCanvasPixels = 0` instead."
|
||||
);
|
||||
options.maxCanvasPixels = 0;
|
||||
}
|
||||
}
|
||||
this.isOffscreenCanvasSupported =
|
||||
options.isOffscreenCanvasSupported ?? true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue