mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Convert the files in the /src/display
folder to ES6 modules
Also disables ES2015 transpilation in development mode.
This commit is contained in:
parent
c6e8ca863e
commit
52e3de3c0a
12 changed files with 453 additions and 628 deletions
|
@ -14,22 +14,8 @@
|
|||
*/
|
||||
/* eslint-disable no-multi-str */
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs/display/webgl', ['exports', 'pdfjs/shared/util',
|
||||
'pdfjs/display/dom_utils'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('../shared/util.js'), require('./dom_utils.js'));
|
||||
} else {
|
||||
factory((root.pdfjsDisplayWebGL = {}), root.pdfjsSharedUtil,
|
||||
root.pdfjsDisplayDOMUtils);
|
||||
}
|
||||
}(this, function (exports, sharedUtil, displayDOMUtils) {
|
||||
|
||||
var shadow = sharedUtil.shadow;
|
||||
var getDefaultSetting = displayDOMUtils.getDefaultSetting;
|
||||
import { getDefaultSetting } from './dom_utils';
|
||||
import { shadow } from '../shared/util';
|
||||
|
||||
var WebGLUtils = (function WebGLUtilsClosure() {
|
||||
function loadShader(gl, code, shaderType) {
|
||||
|
@ -450,5 +436,6 @@ var WebGLUtils = (function WebGLUtilsClosure() {
|
|||
};
|
||||
})();
|
||||
|
||||
exports.WebGLUtils = WebGLUtils;
|
||||
}));
|
||||
export {
|
||||
WebGLUtils,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue