mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +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,30 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals PDFJS, Util, AnnotationType, AnnotationBorderStyleType, warn,
|
||||
CustomStyle, isExternalLinkTargetSet, LinkTargetStringMap */
|
||||
/* globals PDFJS */
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs/display/annotation_layer', ['exports', 'pdfjs/shared/util',
|
||||
'pdfjs/display/dom_utils'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('../shared/util.js'), require('./dom_utils.js'));
|
||||
} else {
|
||||
factory((root.pdfjsDisplayAnnotationLayer = {}), root.pdfjsSharedUtil,
|
||||
root.pdfjsDisplayDOMUtils);
|
||||
}
|
||||
}(this, function (exports, sharedUtil, displayDOMUtils) {
|
||||
|
||||
var AnnotationBorderStyleType = sharedUtil.AnnotationBorderStyleType;
|
||||
var AnnotationType = sharedUtil.AnnotationType;
|
||||
var Util = sharedUtil.Util;
|
||||
var isExternalLinkTargetSet = sharedUtil.Util;
|
||||
var LinkTargetStringMap = sharedUtil.LinkTargetStringMap;
|
||||
var warn = sharedUtil.warn;
|
||||
var CustomStyle = displayDOMUtils.CustomStyle;
|
||||
|
||||
var ANNOT_MIN_SIZE = 10; // px
|
||||
|
||||
var AnnotationLayer = (function AnnotationLayerClosure() {
|
||||
|
@ -354,5 +373,7 @@ var AnnotationLayer = (function AnnotationLayerClosure() {
|
|||
update: update
|
||||
};
|
||||
})();
|
||||
|
||||
PDFJS.AnnotationLayer = AnnotationLayer;
|
||||
|
||||
exports.AnnotationLayer = AnnotationLayer;
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue