Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Bump pdfjs-dist from 3.11.174 to 4.2.67 #970

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion js/pdfjs/build/pdf.js.map

This file was deleted.

32,247 changes: 16,957 additions & 15,290 deletions js/pdfjs/build/pdf.js → js/pdfjs/build/pdf.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/pdfjs/build/pdf.mjs.map

Large diffs are not rendered by default.

280 changes: 0 additions & 280 deletions js/pdfjs/build/pdf.sandbox.js

This file was deleted.

1 change: 0 additions & 1 deletion js/pdfjs/build/pdf.sandbox.js.map

This file was deleted.

239 changes: 239 additions & 0 deletions js/pdfjs/build/pdf.sandbox.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/pdfjs/build/pdf.sandbox.mjs.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion js/pdfjs/build/pdf.worker.js.map

This file was deleted.

81,178 changes: 39,438 additions & 41,740 deletions js/pdfjs/build/pdf.worker.js → js/pdfjs/build/pdf.worker.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/pdfjs/build/pdf.worker.mjs.map

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions js/pdfjs/web/debugger.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
font: message-box;
}
#PDFBug {
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(102, 102, 102, 1);
background-color: rgb(255 255 255);
border: 1px solid rgb(102 102 102);
position: fixed;
top: 32px;
right: 0;
Expand All @@ -33,8 +33,8 @@
width: var(--panel-width);
}
#PDFBug .controls {
background: rgba(238, 238, 238, 1);
border-bottom: 1px solid rgba(102, 102, 102, 1);
background: rgb(238 238 238);
border-bottom: 1px solid rgb(102 102 102);
padding: 3px;
}
#PDFBug .panels {
Expand All @@ -50,7 +50,7 @@
}
.debuggerShowText,
.debuggerHideText:hover {
background-color: rgba(255, 255, 0, 1);
background-color: rgb(255 255 0 / 0.25);
}
#PDFBug .stats {
font-family: courier;
Expand Down Expand Up @@ -82,30 +82,30 @@
}

#viewer.textLayer-visible .canvasWrapper {
background-color: rgba(128, 255, 128, 1);
background-color: rgb(128 255 128);
}

#viewer.textLayer-visible .canvasWrapper canvas {
mix-blend-mode: screen;
}

#viewer.textLayer-visible .textLayer span {
background-color: rgba(255, 255, 0, 0.1);
color: rgba(0, 0, 0, 1);
border: solid 1px rgba(255, 0, 0, 0.5);
background-color: rgb(255 255 0 / 0.1);
color: rgb(0 0 0);
border: solid 1px rgb(255 0 0 / 0.5);
box-sizing: border-box;
}

#viewer.textLayer-visible .textLayer span[aria-owns] {
background-color: rgba(255, 0, 0, 0.3);
background-color: rgb(255 0 0 / 0.3);
}

#viewer.textLayer-hover .textLayer span:hover {
background-color: rgba(255, 255, 255, 1);
color: rgba(0, 0, 0, 1);
background-color: rgb(255 255 255);
color: rgb(0 0 0);
}

#viewer.textLayer-shadow .textLayer span {
background-color: rgba(255, 255, 255, 0.6);
color: rgba(0, 0, 0, 1);
background-color: rgb(255 255 255 / 0.6);
color: rgb(0 0 0);
}
36 changes: 24 additions & 12 deletions js/pdfjs/web/debugger.js → js/pdfjs/web/debugger.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -111,21 +111,29 @@ const FontInspector = (function FontInspectorClosure() {
}
return moreInfo;
}
const moreInfo = properties(fontObj, ["name", "type"]);

const moreInfo = fontObj.css
? properties(fontObj, ["baseFontName"])
: properties(fontObj, ["name", "type"]);

const fontName = fontObj.loadedName;
const font = document.createElement("div");
const name = document.createElement("span");
name.textContent = fontName;
const download = document.createElement("a");
if (url) {
url = /url\(['"]?([^)"']+)/.exec(url);
download.href = url[1];
} else if (fontObj.data) {
download.href = URL.createObjectURL(
new Blob([fontObj.data], { type: fontObj.mimetype })
);
let download;
if (!fontObj.css) {
download = document.createElement("a");
if (url) {
url = /url\(['"]?([^)"']+)/.exec(url);
download.href = url[1];
} else if (fontObj.data) {
download.href = URL.createObjectURL(
new Blob([fontObj.data], { type: fontObj.mimetype })
);
}
download.textContent = "Download";
}
download.textContent = "Download";

const logIt = document.createElement("a");
logIt.href = "";
logIt.textContent = "Log";
Expand All @@ -139,7 +147,11 @@ const FontInspector = (function FontInspectorClosure() {
select.addEventListener("click", function () {
selectFont(fontName, select.checked);
});
font.append(select, name, " ", download, " ", logIt, moreInfo);
if (download) {
font.append(select, name, " ", download, " ", logIt, moreInfo);
} else {
font.append(select, name, " ", logIt, moreInfo);
}
fonts.append(font);
// Somewhat of a hack, should probably add a hook for when the text layer
// is done rendering.
Expand Down Expand Up @@ -574,7 +586,7 @@ class PDFBug {

const link = document.createElement("link");
link.rel = "stylesheet";
link.href = url.replace(/.js$/, ".css");
link.href = url.replace(/\.mjs$/, ".css");

document.head.append(link);
}
Expand Down
6 changes: 6 additions & 0 deletions js/pdfjs/web/images/cursor-editorFreeHighlight.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions js/pdfjs/web/images/cursor-editorTextHighlight.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions js/pdfjs/web/images/editor-toolbar-delete.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 0 additions & 11 deletions js/pdfjs/web/images/gv-toolbarButton-openinapp.svg

This file was deleted.

24 changes: 0 additions & 24 deletions js/pdfjs/web/images/loading-dark.svg

This file was deleted.

4 changes: 3 additions & 1 deletion js/pdfjs/web/images/toolbarButton-editorFreeText.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions js/pdfjs/web/images/toolbarButton-editorHighlight.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion js/pdfjs/web/images/toolbarButton-editorStamp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading