Browse Source

PDF.js version 1.3.133 - See mozilla/pdf.js@85589483d6cdd1eb3919e2d265f6e1fa189a65ce

master v1.3.133
Pdf Bot 9 years ago
parent
commit
c03741b631
  1. 2
      bower.json
  2. 49
      build/pdf.combined.js
  3. 49
      build/pdf.js
  4. 4
      build/pdf.worker.js
  5. 2
      package.json

2
bower.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.3.131",
"version": "1.3.133",
"main": [
"build/pdf.js",
"build/pdf.worker.js"

49
build/pdf.combined.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
typeof global !== 'undefined' ? global : this).PDFJS = {};
}
PDFJS.version = '1.3.131';
PDFJS.build = 'edf8ccc';
PDFJS.version = '1.3.133';
PDFJS.build = '8558948';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
@ -2095,11 +2095,12 @@ var TextAnnotationElement = (function TextAnnotationElementClosure() { @@ -2095,11 +2095,12 @@ var TextAnnotationElement = (function TextAnnotationElementClosure() {
if (!this.data.hasPopup) {
var popupElement = new PopupElement({
parentContainer: this.container,
parentTrigger: image,
container: this.container,
trigger: image,
color: this.data.color,
title: this.data.title,
contents: this.data.contents
contents: this.data.contents,
hideWrapper: true
});
var popup = popupElement.render();
@ -2211,8 +2212,8 @@ var PopupAnnotationElement = (function PopupAnnotationElementClosure() { @@ -2211,8 +2212,8 @@ var PopupAnnotationElement = (function PopupAnnotationElementClosure() {
}
var popup = new PopupElement({
parentContainer: parentElement,
parentTrigger: parentElement,
container: this.container,
trigger: parentElement,
color: this.data.color,
title: this.data.title,
contents: this.data.contents
@ -2243,11 +2244,12 @@ var PopupElement = (function PopupElementClosure() { @@ -2243,11 +2244,12 @@ var PopupElement = (function PopupElementClosure() {
var BACKGROUND_ENLIGHT = 0.7;
function PopupElement(parameters) {
this.parentContainer = parameters.parentContainer;
this.parentTrigger = parameters.parentTrigger;
this.container = parameters.container;
this.trigger = parameters.trigger;
this.color = parameters.color;
this.title = parameters.title;
this.contents = parameters.contents;
this.hideWrapper = parameters.hideWrapper || false;
this.pinned = false;
}
@ -2264,9 +2266,15 @@ var PopupElement = (function PopupElementClosure() { @@ -2264,9 +2266,15 @@ var PopupElement = (function PopupElementClosure() {
var wrapper = document.createElement('div');
wrapper.className = 'popupWrapper';
var popup = this.popup = document.createElement('div');
// For Popup annotations we hide the entire section because it contains
// only the popup. However, for Text annotations without a separate Popup
// annotation, we cannot hide the entire container as the image would
// disappear too. In that special case, hiding the wrapper suffices.
this.hideElement = (this.hideWrapper ? wrapper : this.container);
this.hideElement.setAttribute('hidden', true);
var popup = document.createElement('div');
popup.className = 'popup';
popup.setAttribute('hidden', true);
var color = this.color;
if (color) {
@ -2282,10 +2290,9 @@ var PopupElement = (function PopupElementClosure() { @@ -2282,10 +2290,9 @@ var PopupElement = (function PopupElementClosure() {
title.textContent = this.title;
// Attach the event listeners to the trigger element.
var trigger = this.parentTrigger;
trigger.addEventListener('click', this._toggle.bind(this));
trigger.addEventListener('mouseover', this._show.bind(this, false));
trigger.addEventListener('mouseout', this._hide.bind(this, false));
this.trigger.addEventListener('click', this._toggle.bind(this));
this.trigger.addEventListener('mouseover', this._show.bind(this, false));
this.trigger.addEventListener('mouseout', this._hide.bind(this, false));
popup.addEventListener('click', this._hide.bind(this, true));
popup.appendChild(title);
@ -2340,9 +2347,9 @@ var PopupElement = (function PopupElementClosure() { @@ -2340,9 +2347,9 @@ var PopupElement = (function PopupElementClosure() {
if (pin) {
this.pinned = true;
}
if (this.popup.hasAttribute('hidden')) {
this.popup.removeAttribute('hidden');
this.parentContainer.style.zIndex += 1;
if (this.hideElement.hasAttribute('hidden')) {
this.hideElement.removeAttribute('hidden');
this.container.style.zIndex += 1;
}
},
@ -2357,9 +2364,9 @@ var PopupElement = (function PopupElementClosure() { @@ -2357,9 +2364,9 @@ var PopupElement = (function PopupElementClosure() {
if (unpin) {
this.pinned = false;
}
if (!this.popup.hasAttribute('hidden') && !this.pinned) {
this.popup.setAttribute('hidden', true);
this.parentContainer.style.zIndex -= 1;
if (!this.hideElement.hasAttribute('hidden') && !this.pinned) {
this.hideElement.setAttribute('hidden', true);
this.container.style.zIndex -= 1;
}
}
};

49
build/pdf.js

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
typeof global !== 'undefined' ? global : this).PDFJS = {};
}
PDFJS.version = '1.3.131';
PDFJS.build = 'edf8ccc';
PDFJS.version = '1.3.133';
PDFJS.build = '8558948';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it
@ -2095,11 +2095,12 @@ var TextAnnotationElement = (function TextAnnotationElementClosure() { @@ -2095,11 +2095,12 @@ var TextAnnotationElement = (function TextAnnotationElementClosure() {
if (!this.data.hasPopup) {
var popupElement = new PopupElement({
parentContainer: this.container,
parentTrigger: image,
container: this.container,
trigger: image,
color: this.data.color,
title: this.data.title,
contents: this.data.contents
contents: this.data.contents,
hideWrapper: true
});
var popup = popupElement.render();
@ -2211,8 +2212,8 @@ var PopupAnnotationElement = (function PopupAnnotationElementClosure() { @@ -2211,8 +2212,8 @@ var PopupAnnotationElement = (function PopupAnnotationElementClosure() {
}
var popup = new PopupElement({
parentContainer: parentElement,
parentTrigger: parentElement,
container: this.container,
trigger: parentElement,
color: this.data.color,
title: this.data.title,
contents: this.data.contents
@ -2243,11 +2244,12 @@ var PopupElement = (function PopupElementClosure() { @@ -2243,11 +2244,12 @@ var PopupElement = (function PopupElementClosure() {
var BACKGROUND_ENLIGHT = 0.7;
function PopupElement(parameters) {
this.parentContainer = parameters.parentContainer;
this.parentTrigger = parameters.parentTrigger;
this.container = parameters.container;
this.trigger = parameters.trigger;
this.color = parameters.color;
this.title = parameters.title;
this.contents = parameters.contents;
this.hideWrapper = parameters.hideWrapper || false;
this.pinned = false;
}
@ -2264,9 +2266,15 @@ var PopupElement = (function PopupElementClosure() { @@ -2264,9 +2266,15 @@ var PopupElement = (function PopupElementClosure() {
var wrapper = document.createElement('div');
wrapper.className = 'popupWrapper';
var popup = this.popup = document.createElement('div');
// For Popup annotations we hide the entire section because it contains
// only the popup. However, for Text annotations without a separate Popup
// annotation, we cannot hide the entire container as the image would
// disappear too. In that special case, hiding the wrapper suffices.
this.hideElement = (this.hideWrapper ? wrapper : this.container);
this.hideElement.setAttribute('hidden', true);
var popup = document.createElement('div');
popup.className = 'popup';
popup.setAttribute('hidden', true);
var color = this.color;
if (color) {
@ -2282,10 +2290,9 @@ var PopupElement = (function PopupElementClosure() { @@ -2282,10 +2290,9 @@ var PopupElement = (function PopupElementClosure() {
title.textContent = this.title;
// Attach the event listeners to the trigger element.
var trigger = this.parentTrigger;
trigger.addEventListener('click', this._toggle.bind(this));
trigger.addEventListener('mouseover', this._show.bind(this, false));
trigger.addEventListener('mouseout', this._hide.bind(this, false));
this.trigger.addEventListener('click', this._toggle.bind(this));
this.trigger.addEventListener('mouseover', this._show.bind(this, false));
this.trigger.addEventListener('mouseout', this._hide.bind(this, false));
popup.addEventListener('click', this._hide.bind(this, true));
popup.appendChild(title);
@ -2340,9 +2347,9 @@ var PopupElement = (function PopupElementClosure() { @@ -2340,9 +2347,9 @@ var PopupElement = (function PopupElementClosure() {
if (pin) {
this.pinned = true;
}
if (this.popup.hasAttribute('hidden')) {
this.popup.removeAttribute('hidden');
this.parentContainer.style.zIndex += 1;
if (this.hideElement.hasAttribute('hidden')) {
this.hideElement.removeAttribute('hidden');
this.container.style.zIndex += 1;
}
},
@ -2357,9 +2364,9 @@ var PopupElement = (function PopupElementClosure() { @@ -2357,9 +2364,9 @@ var PopupElement = (function PopupElementClosure() {
if (unpin) {
this.pinned = false;
}
if (!this.popup.hasAttribute('hidden') && !this.pinned) {
this.popup.setAttribute('hidden', true);
this.parentContainer.style.zIndex -= 1;
if (!this.hideElement.hasAttribute('hidden') && !this.pinned) {
this.hideElement.setAttribute('hidden', true);
this.container.style.zIndex -= 1;
}
}
};

4
build/pdf.worker.js vendored

@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') { @@ -21,8 +21,8 @@ if (typeof PDFJS === 'undefined') {
typeof global !== 'undefined' ? global : this).PDFJS = {};
}
PDFJS.version = '1.3.131';
PDFJS.build = 'edf8ccc';
PDFJS.version = '1.3.133';
PDFJS.build = '8558948';
(function pdfjsWrapper() {
// Use strict in our context only - users might not want it

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "pdfjs-dist",
"version": "1.3.131",
"version": "1.3.133",
"main": "build/pdf.js",
"description": "Generic build of Mozilla's PDF.js library.",
"keywords": [

Loading…
Cancel
Save