1
0
Fork 0
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:
Yury Delendik 2016-04-01 10:29:44 -05:00
parent b371785fbb
commit 313b418a20
5 changed files with 93 additions and 54 deletions

View file

@ -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)