mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +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,31 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals PostScriptLexer, PostScriptParser, error, info, isArray, isBool,
|
||||
isDict, isStream */
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs/core/function', ['exports', 'pdfjs/shared/util',
|
||||
'pdfjs/core/primitives', 'pdfjs/core/ps_parser'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('../shared/util.js'), require('./primitives.js'),
|
||||
require('./ps_parser.js'));
|
||||
} else {
|
||||
factory((root.pdfjsCoreFunction = {}), root.pdfjsSharedUtil,
|
||||
root.pdfjsCorePrimitives, root.pdfjsCorePsParser);
|
||||
}
|
||||
}(this, function (exports, sharedUtil, corePrimitives, corePsParser) {
|
||||
|
||||
var error = sharedUtil.error;
|
||||
var info = sharedUtil.info;
|
||||
var isArray = sharedUtil.isArray;
|
||||
var isBool = sharedUtil.isBool;
|
||||
var isDict = corePrimitives.isDict;
|
||||
var isStream = corePrimitives.isStream;
|
||||
var PostScriptLexer = corePsParser.PostScriptLexer;
|
||||
var PostScriptParser = corePsParser.PostScriptParser;
|
||||
|
||||
var PDFFunction = (function PDFFunctionClosure() {
|
||||
var CONSTRUCT_SAMPLED = 0;
|
||||
var CONSTRUCT_INTERPOLATED = 2;
|
||||
|
@ -1131,3 +1151,9 @@ var PostScriptCompiler = (function PostScriptCompilerClosure() {
|
|||
|
||||
return PostScriptCompiler;
|
||||
})();
|
||||
|
||||
exports.isPDFFunction = isPDFFunction;
|
||||
exports.PDFFunction = PDFFunction;
|
||||
exports.PostScriptEvaluator = PostScriptEvaluator;
|
||||
exports.PostScriptCompiler = PostScriptCompiler;
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue