@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
62 lines (56 loc) • 1.68 kB
JavaScript
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
const __meta__ = {
id: "pdfjs.loader",
name: "PDFJSLoader",
category: "web",
description: "Utility that enables pdfjsLib to be loaded from global scope",
depends: []
};
/* The PDFViewer common package uses this enum in the global namespace.
It isn't called when the PDFViewer is being initialized but when the file itself is getting loaded.
That is why we need to have it regardless if pdfjs is imported or not.
*/
const AnnotationEditorTypeMock = {
DISABLE: -1,
NONE: 0,
FREETEXT: 3,
HIGHLIGHT: 9,
STAMP: 13,
INK: 15,
};
const {
shadow,
AnnotationEditorType,
FeatureTest,
setLayerDimensions,
AnnotationEditorParamsType,
PixelsPerInch,
DOMSVGFactory,
PDFDateString,
Util,
XfaLayer,
getDocument,
AnnotationMode,
AbortException,
TextLayer,
fetchData,
noContextMenu
} = window.pdfjsLib || { AnnotationEditorType: AnnotationEditorTypeMock };
exports.AbortException = AbortException;
exports.AnnotationEditorParamsType = AnnotationEditorParamsType;
exports.AnnotationEditorType = AnnotationEditorType;
exports.AnnotationMode = AnnotationMode;
exports.DOMSVGFactory = DOMSVGFactory;
exports.FeatureTest = FeatureTest;
exports.PDFDateString = PDFDateString;
exports.PixelsPerInch = PixelsPerInch;
exports.TextLayer = TextLayer;
exports.Util = Util;
exports.XfaLayer = XfaLayer;
exports.__meta__ = __meta__;
exports.fetchData = fetchData;
exports.getDocument = getDocument;
exports.noContextMenu = noContextMenu;
exports.setLayerDimensions = setLayerDimensions;
exports.shadow = shadow;
;