mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +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,23 +13,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs-web/pdf_document_properties', ['exports',
|
||||
'pdfjs-web/ui_utils', 'pdfjs-web/overlay_manager'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('./ui_utils.js'), require('./overlay_manager.js'));
|
||||
} else {
|
||||
factory((root.pdfjsWebPDFDocumentProperties = {}), root.pdfjsWebUIUtils,
|
||||
root.pdfjsWebOverlayManager);
|
||||
}
|
||||
}(this, function (exports, uiUtils, overlayManager) {
|
||||
|
||||
var getPDFFileNameFromURL = uiUtils.getPDFFileNameFromURL;
|
||||
var mozL10n = uiUtils.mozL10n;
|
||||
var OverlayManager = overlayManager.OverlayManager;
|
||||
import { getPDFFileNameFromURL, mozL10n } from 'pdfjs-web/ui_utils';
|
||||
import { OverlayManager } from 'pdfjs-web/overlay_manager';
|
||||
|
||||
/**
|
||||
* @typedef {Object} PDFDocumentPropertiesOptions
|
||||
|
@ -239,5 +224,6 @@ var PDFDocumentProperties = (function PDFDocumentPropertiesClosure() {
|
|||
return PDFDocumentProperties;
|
||||
})();
|
||||
|
||||
exports.PDFDocumentProperties = PDFDocumentProperties;
|
||||
}));
|
||||
export {
|
||||
PDFDocumentProperties,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue