mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +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
|
@ -17,17 +17,14 @@
|
|||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs/core/bidi', ['exports', 'pdfjs/shared/global'], factory);
|
||||
define('pdfjs/core/bidi', ['exports'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('../shared/global.js'));
|
||||
factory(exports);
|
||||
} else {
|
||||
factory((root.pdfjsCoreBidi = {}), root.pdfjsSharedGlobal);
|
||||
factory((root.pdfjsCoreBidi = {}));
|
||||
}
|
||||
}(this, function (exports, sharedGlobal) {
|
||||
}(this, function (exports) {
|
||||
|
||||
var PDFJS = sharedGlobal.PDFJS;
|
||||
|
||||
var bidi = PDFJS.bidi = (function bidiClosure() {
|
||||
// Character types for symbols from 0000 to 00FF.
|
||||
var baseTypes = [
|
||||
'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'BN', 'S', 'B', 'S', 'WS',
|
||||
|
@ -430,8 +427,5 @@ var bidi = PDFJS.bidi = (function bidiClosure() {
|
|||
return createBidiText(chars.join(''), isLTR);
|
||||
}
|
||||
|
||||
return bidi;
|
||||
})();
|
||||
|
||||
exports.bidi = bidi;
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue