mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Removes global PDFJS usage from the src/core/.
This commit is contained in:
parent
21ed8ff71d
commit
bda5e6235e
22 changed files with 376 additions and 299 deletions
|
@ -12,22 +12,24 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals PDFJS */
|
||||
/* jshint -W043 */
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs/display/webgl', ['exports', 'pdfjs/shared/util'], factory);
|
||||
define('pdfjs/display/webgl', ['exports', 'pdfjs/shared/util',
|
||||
'pdfjs/display/global'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('../shared/util.js'));
|
||||
factory(exports, require('../shared/util.js'), require('./global.js'));
|
||||
} else {
|
||||
factory((root.pdfjsDisplayWebGL = {}), root.pdfjsSharedUtil);
|
||||
factory((root.pdfjsDisplayWebGL = {}), root.pdfjsSharedUtil,
|
||||
root.pdfjsDisplayGlobal);
|
||||
}
|
||||
}(this, function (exports, sharedUtil) {
|
||||
}(this, function (exports, sharedUtil, displayGlobal) {
|
||||
|
||||
var shadow = sharedUtil.shadow;
|
||||
var PDFJS = displayGlobal.PDFJS;
|
||||
|
||||
var WebGLUtils = (function WebGLUtilsClosure() {
|
||||
function loadShader(gl, code, shaderType) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue