mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Prepare viewer.js for async loading and module separation.
This commit is contained in:
parent
b371785fbb
commit
313b418a20
5 changed files with 93 additions and 54 deletions
|
@ -23,6 +23,8 @@ var MAX_AUTO_SCALE = 1.25;
|
|||
var SCROLLBAR_PADDING = 40;
|
||||
var VERTICAL_PADDING = 5;
|
||||
|
||||
var mozL10n = document.mozL10n || document.webL10n;
|
||||
|
||||
/**
|
||||
* Returns scale factor for the canvas. It makes sense for the HiDPI displays.
|
||||
* @return {Object} The object with horizontal (sx) and vertical (sy)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue