mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Convert a number of import * as pdfjsLib from 'pdfjs-web/pdfjs';
cases to only specify the necessary imports
Rather than always importing everything from the `web/pdfjs.js`, similar to all other imports we can just choose what we actually need.
This commit is contained in:
parent
3b35c15d42
commit
b2c3f8f081
14 changed files with 89 additions and 86 deletions
|
@ -13,7 +13,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import * as pdfjsLib from 'pdfjs-web/pdfjs';
|
||||
import { PDFJS } from 'pdfjs-web/pdfjs';
|
||||
|
||||
var CSS_UNITS = 96.0 / 72.0;
|
||||
var DEFAULT_SCALE_VALUE = 'auto';
|
||||
|
@ -32,8 +32,6 @@ var RendererType = {
|
|||
|
||||
var mozL10n = document.mozL10n || document.webL10n;
|
||||
|
||||
var PDFJS = pdfjsLib.PDFJS;
|
||||
|
||||
/**
|
||||
* Disables fullscreen support, and by extension Presentation Mode,
|
||||
* in browsers which support the fullscreen API.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue