pdfjs-dist-viewer-min
Advanced tools
Comparing version 2.9.359 to 2.12.313
@@ -27,6 +27,4 @@ /** | ||
}); | ||
exports.OptionKind = exports.AppOptions = void 0; | ||
exports.compatibilityParams = exports.OptionKind = exports.AppOptions = void 0; | ||
var _viewer_compatibility = require("./viewer_compatibility.js"); | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -40,2 +38,24 @@ | ||
var compatibilityParams = Object.create(null); | ||
exports.compatibilityParams = compatibilityParams; | ||
{ | ||
var userAgent = typeof navigator !== "undefined" && navigator.userAgent || ""; | ||
var platform = typeof navigator !== "undefined" && navigator.platform || ""; | ||
var maxTouchPoints = typeof navigator !== "undefined" && navigator.maxTouchPoints || 1; | ||
var isAndroid = /Android/.test(userAgent); | ||
var isIOS = /\b(iPad|iPhone|iPod)(?=;)/.test(userAgent) || platform === "MacIntel" && maxTouchPoints > 1; | ||
var isIOSChrome = /CriOS/.test(userAgent); | ||
(function checkOnBlobSupport() { | ||
if (isIOSChrome) { | ||
compatibilityParams.disableCreateObjectURL = true; | ||
} | ||
})(); | ||
(function checkCanvasSizeLimitation() { | ||
if (isIOS || isAndroid) { | ||
compatibilityParams.maxCanvasPixels = 5242880; | ||
} | ||
})(); | ||
} | ||
var OptionKind = { | ||
@@ -49,2 +69,6 @@ VIEWER: 0x02, | ||
var defaultOptions = { | ||
annotationMode: { | ||
value: 2, | ||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE | ||
}, | ||
cursorToolOnLoad: { | ||
@@ -104,3 +128,3 @@ value: 0, | ||
value: 16777216, | ||
compatibility: _viewer_compatibility.viewerCompatibilityParams.maxCanvasPixels, | ||
compatibility: compatibilityParams.maxCanvasPixels, | ||
kind: OptionKind.VIEWER | ||
@@ -120,6 +144,2 @@ }, | ||
}, | ||
renderInteractiveForms: { | ||
value: true, | ||
kind: OptionKind.VIEWER + OptionKind.PREFERENCE | ||
}, | ||
sidebarViewOnLoad: { | ||
@@ -182,3 +202,3 @@ value: -1, | ||
enableXfa: { | ||
value: false, | ||
value: true, | ||
kind: OptionKind.API + OptionKind.PREFERENCE | ||
@@ -202,2 +222,6 @@ }, | ||
}, | ||
standardFontDataUrl: { | ||
value: "../web/standard_fonts/", | ||
kind: OptionKind.API | ||
}, | ||
verbosity: { | ||
@@ -311,2 +335,7 @@ value: 1, | ||
} | ||
}, { | ||
key: "_hasUserOptions", | ||
value: function _hasUserOptions() { | ||
return Object.keys(userOptions).length > 0; | ||
} | ||
}]); | ||
@@ -313,0 +342,0 @@ |
{ | ||
"version": "2.9.359", | ||
"build": 359, | ||
"commit": "e667c8cbc" | ||
"version": "2.12.313", | ||
"build": 313, | ||
"commit": "a2ae56f39" | ||
} |
{ | ||
"name": "pdfjs-dist-viewer-min", | ||
"version": "2.9.359", | ||
"version": "2.12.313", | ||
"description": "Generic minified build of Mozilla's PDF.js library including the viewer component.", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 18 instances in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
14257977
369
3815
3
207