mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Convert the files in the /web
folder to ES6 modules
Note that as discussed on IRC, this makes the viewer slightly slower to load *only* in `gulp server` mode, however the difference seem slight enough that I think it will be fine.
This commit is contained in:
parent
313060aff5
commit
3b35c15d42
32 changed files with 1585 additions and 2045 deletions
|
@ -13,19 +13,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs-web/pdf_presentation_mode', ['exports', 'pdfjs-web/ui_utils'],
|
||||
factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('./ui_utils.js'));
|
||||
} else {
|
||||
factory((root.pdfjsWebPDFPresentationMode = {}), root.pdfjsWebUIUtils);
|
||||
}
|
||||
}(this, function (exports, uiUtils) {
|
||||
var normalizeWheelEventDelta = uiUtils.normalizeWheelEventDelta;
|
||||
import { normalizeWheelEventDelta } from 'pdfjs-web/ui_utils';
|
||||
|
||||
var DELAY_BEFORE_RESETTING_SWITCH_IN_PROGRESS = 1500; // in ms
|
||||
var DELAY_BEFORE_HIDING_CONTROLS = 3000; // in ms
|
||||
|
@ -517,5 +505,6 @@ var PDFPresentationMode = (function PDFPresentationModeClosure() {
|
|||
return PDFPresentationMode;
|
||||
})();
|
||||
|
||||
exports.PDFPresentationMode = PDFPresentationMode;
|
||||
}));
|
||||
export {
|
||||
PDFPresentationMode,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue