mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Adds UMD headers to core, display and shared files.
This commit is contained in:
parent
1b5940edd2
commit
6b60c8f4db
54 changed files with 1876 additions and 572 deletions
|
@ -12,11 +12,33 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals PDFJS, shadow, isWorker, assert, warn, bytesToString, string32,
|
||||
globalScope, FontFace, Promise */
|
||||
/* globals FontFace */
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs/display/font_loader', ['exports', 'pdfjs/shared/util',
|
||||
'pdfjs/shared/global'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('../shared/util.js'),
|
||||
require('../shared/global.js'));
|
||||
} else {
|
||||
factory((root.pdfjsDisplayFontLoader = {}), root.pdfjsSharedUtil,
|
||||
root.pdfjsSharedGlobal);
|
||||
}
|
||||
}(this, function (exports, sharedUtil, sharedGlobal) {
|
||||
|
||||
var assert = sharedUtil.assert;
|
||||
var bytesToString = sharedUtil.bytesToString;
|
||||
var string32 = sharedUtil.string32;
|
||||
var shadow = sharedUtil.shadow;
|
||||
var warn = sharedUtil.warn;
|
||||
|
||||
var PDFJS = sharedGlobal.PDFJS;
|
||||
var globalScope = sharedGlobal.globalScope;
|
||||
var isWorker = sharedGlobal.isWorker;
|
||||
|
||||
function FontLoader(docId) {
|
||||
this.docId = docId;
|
||||
this.styleElement = null;
|
||||
|
@ -430,3 +452,7 @@ var FontFaceObject = (function FontFaceObjectClosure() {
|
|||
};
|
||||
return FontFaceObject;
|
||||
})();
|
||||
|
||||
exports.FontFaceObject = FontFaceObject;
|
||||
exports.FontLoader = FontLoader;
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue