Bug 1774899 - Update PDF.js to be2dfe45f96fa58a1926f764fd64d2416cecc501 r=pdfjs-reviewers,calixte

Differential Revision: https://phabricator.services.mozilla.com/D149681
This commit is contained in:
Updatebot 2022-06-19 12:07:24 +00:00
Родитель 00867274b9
Коммит b39b1b78df
9 изменённых файлов: 221 добавлений и 96 удалений

Просмотреть файл

@ -1353,7 +1353,7 @@ async function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
const workerId = await worker.messageHandler.sendWithPromise("GetDocRequest", {
docId,
apiVersion: '2.15.117',
apiVersion: '2.15.129',
source: {
data: source.data,
url: source.url,
@ -3381,9 +3381,9 @@ class InternalRenderTask {
}
const version = '2.15.117';
const version = '2.15.129';
exports.version = version;
const build = '1a6ae5f03';
const build = 'be2dfe45f';
exports.build = build;
/***/ }),
@ -4421,6 +4421,14 @@ class AnnotationEditor {
this.isAttachedToDOM = false;
}
setInBackground() {
this.div.classList.add("background");
}
setInForeground() {
this.div.classList.remove("background");
}
focusin() {
this.parent.setActiveEditor(this);
}
@ -4437,14 +4445,16 @@ class AnnotationEditor {
}
event.preventDefault();
this.commitOrRemove();
this.parent.setActiveEditor(null);
}
commitOrRemove() {
if (this.isEmpty()) {
this.remove();
} else {
this.commit();
}
this.parent.setActiveEditor(null);
}
mousedown(event) {
@ -4481,7 +4491,6 @@ class AnnotationEditor {
this.div = document.createElement("div");
this.div.className = this.name;
this.div.setAttribute("id", this.id);
this.div.draggable = true;
this.div.tabIndex = 100;
const [tx, ty] = this.getInitialTranslation();
this.x = Math.round(this.x + tx);
@ -4609,7 +4618,7 @@ class CommandManager {
#position = NaN;
#start = 0;
add(cmd, undo) {
add(cmd, undo, mustExec) {
const save = [cmd, undo];
const next = (this.#position + 1) % this.#maxSize;
@ -4625,7 +4634,10 @@ class CommandManager {
}
this.#setCommands(save);
cmd();
if (mustExec) {
cmd();
}
}
undo() {
@ -4806,6 +4818,10 @@ class AnnotationEditorUIManager {
this.#disableAll();
} else {
this.#enableAll();
for (const layer of this.#allLayers) {
layer.updateMode(mode);
}
}
}
@ -4865,8 +4881,8 @@ class AnnotationEditorUIManager {
this.#commandManager.redo();
}
addCommands(cmd, undo) {
this.#commandManager.add(cmd, undo);
addCommands(cmd, undo, mustExec) {
this.#commandManager.add(cmd, undo, mustExec);
}
get allowClick() {
@ -4903,7 +4919,7 @@ class AnnotationEditorUIManager {
}
};
this.addCommands(cmd, undo);
this.addCommands(cmd, undo, true);
} else {
if (!this.#activeEditor) {
return;
@ -4920,7 +4936,7 @@ class AnnotationEditorUIManager {
};
}
this.addCommands(cmd, undo);
this.addCommands(cmd, undo, true);
}
copy() {
@ -4942,7 +4958,7 @@ class AnnotationEditorUIManager {
layer.addOrRebuild(editor);
};
this.addCommands(cmd, undo);
this.addCommands(cmd, undo, true);
}
}
@ -4961,7 +4977,7 @@ class AnnotationEditorUIManager {
editor.remove();
};
this.addCommands(cmd, undo);
this.addCommands(cmd, undo, true);
}
selectAll() {
@ -9918,6 +9934,7 @@ var _display_utils = __w_pdfjs_require__(5);
class AnnotationEditorLayer {
#boundClick;
#boundMouseover;
#editors = new Map();
#uiManager;
static _initialized = false;
@ -9935,6 +9952,7 @@ class AnnotationEditorLayer {
this.pageIndex = options.pageIndex;
this.div = options.div;
this.#boundClick = this.click.bind(this);
this.#boundMouseover = this.mouseover.bind(this);
for (const editor of this.#uiManager.getEditors(options.pageIndex)) {
this.add(editor);
@ -9943,8 +9961,24 @@ class AnnotationEditorLayer {
this.#uiManager.addLayer(this);
}
addCommands(cmd, undo) {
this.#uiManager.addCommands(cmd, undo);
updateMode(mode) {
if (mode === _util.AnnotationEditorType.INK) {
this.div.addEventListener("mouseover", this.#boundMouseover);
this.div.removeEventListener("click", this.#boundClick);
} else {
this.div.removeEventListener("mouseover", this.#boundMouseover);
}
}
mouseover(event) {
if (event.target === this.div && event.buttons === 0) {
const editor = this.#createAndAddNewEditor(event);
editor.setInBackground();
}
}
addCommands(cmd, undo, mustExec) {
this.#uiManager.addCommands(cmd, undo, mustExec);
}
undo() {
@ -9988,6 +10022,18 @@ class AnnotationEditorLayer {
}
setActiveEditor(editor) {
const currentActive = this.#uiManager.getActive();
if (currentActive === editor) {
return;
}
this.#uiManager.setActiveEditor(editor);
if (currentActive && currentActive !== editor) {
currentActive.commitOrRemove();
}
if (editor) {
this.unselectAll();
this.div.removeEventListener("click", this.#boundClick);
@ -9995,8 +10041,6 @@ class AnnotationEditorLayer {
this.#uiManager.allowClick = false;
this.div.addEventListener("click", this.#boundClick);
}
this.#uiManager.setActiveEditor(editor);
}
attach(editor) {
@ -10017,7 +10061,6 @@ class AnnotationEditorLayer {
if (this.#uiManager.isActive(editor) || this.#editors.size === 0) {
this.setActiveEditor(null);
this.#uiManager.allowClick = true;
this.div.focus();
}
}
@ -10069,7 +10112,19 @@ class AnnotationEditorLayer {
editor.remove();
};
this.addCommands(cmd, undo);
this.addCommands(cmd, undo, true);
}
addUndoableEditor(editor) {
const cmd = () => {
this.addOrRebuild(editor);
};
const undo = () => {
editor.remove();
};
this.addCommands(cmd, undo, false);
}
getNextId() {
@ -10088,12 +10143,7 @@ class AnnotationEditorLayer {
return null;
}
click(event) {
if (!this.#uiManager.allowClick) {
this.#uiManager.allowClick = true;
return;
}
#createAndAddNewEditor(event) {
const id = this.getNextId();
const editor = this.#createNewEditor({
parent: this,
@ -10103,8 +10153,19 @@ class AnnotationEditorLayer {
});
if (editor) {
this.addANewEditor(editor);
this.add(editor);
}
return editor;
}
click(event) {
if (!this.#uiManager.allowClick) {
this.#uiManager.allowClick = true;
return;
}
this.#createAndAddNewEditor(event);
}
drop(event) {
@ -10197,6 +10258,7 @@ class FreeTextEditor extends _editor.AnnotationEditor {
#color;
#content = "";
#contentHTML = "";
#hasAlreadyBeenCommitted = false;
#fontSize;
static _freeTextDefaultContent = "";
static _l10nPromise;
@ -10296,6 +10358,11 @@ class FreeTextEditor extends _editor.AnnotationEditor {
}
commit() {
if (!this.#hasAlreadyBeenCommitted) {
this.#hasAlreadyBeenCommitted = true;
this.parent.addUndoableEditor(this);
}
this.disableEditMode();
this.#contentHTML = this.editorDiv.innerHTML;
this.#content = this.#extractText().trimEnd();
@ -10385,15 +10452,15 @@ var _editor = __w_pdfjs_require__(9);
var _fit_curve = __w_pdfjs_require__(24);
class InkEditor extends _editor.AnnotationEditor {
#aspectRatio;
#baseHeight;
#baseWidth;
#aspectRatio = 0;
#baseHeight = 0;
#baseWidth = 0;
#boundCanvasMousemove;
#boundCanvasMouseleave;
#boundCanvasMouseup;
#boundCanvasMousedown;
#disableEditing;
#observer;
#disableEditing = false;
#observer = null;
constructor(params) {
super({ ...params,
@ -10406,10 +10473,6 @@ class InkEditor extends _editor.AnnotationEditor {
this.currentPath = [];
this.scaleFactor = 1;
this.translationX = this.translationY = 0;
this.#baseWidth = this.#baseHeight = 0;
this.#aspectRatio = 0;
this.#disableEditing = false;
this.#observer = null;
this.x = 0;
this.y = 0;
this.#boundCanvasMousemove = this.canvasMousemove.bind(this);
@ -10464,16 +10527,16 @@ class InkEditor extends _editor.AnnotationEditor {
return;
}
super.remove();
this.canvas.width = this.canvas.heigth = 0;
this.canvas.remove();
this.canvas = null;
this.#observer.disconnect();
this.#observer = null;
super.remove();
}
enableEditMode() {
if (this.#disableEditing) {
if (this.#disableEditing || this.canvas === null) {
return;
}
@ -10491,13 +10554,14 @@ class InkEditor extends _editor.AnnotationEditor {
super.disableEditMode();
this.canvas.style.cursor = "auto";
this.div.draggable = true;
this.div.draggable = !this.isEmpty();
this.div.classList.remove("editing");
this.canvas.removeEventListener("mousedown", this.#boundCanvasMousedown);
this.canvas.removeEventListener("mouseup", this.#boundCanvasMouseup);
}
onceAdded() {
this.div.draggable = !this.isEmpty();
this.div.focus();
}
@ -10555,11 +10619,16 @@ class InkEditor extends _editor.AnnotationEditor {
if (this.paths.length === 0) {
this.remove();
} else {
if (!this.canvas) {
this.#createCanvas();
this.#createObserver();
}
this.#fitToContent();
}
};
this.parent.addCommands(cmd, undo);
this.parent.addCommands(cmd, undo, true);
}
#redraw() {
@ -10590,6 +10659,7 @@ class InkEditor extends _editor.AnnotationEditor {
}
this.disableEditMode();
this.setInForeground();
this.#disableEditing = true;
this.div.classList.add("disabled");
this.#fitToContent();
@ -10605,6 +10675,7 @@ class InkEditor extends _editor.AnnotationEditor {
return;
}
this.setInForeground();
event.stopPropagation();
this.canvas.addEventListener("mouseleave", this.#boundCanvasMouseleave);
this.canvas.addEventListener("mousemove", this.#boundCanvasMousemove);
@ -10620,11 +10691,13 @@ class InkEditor extends _editor.AnnotationEditor {
if (this.isInEditMode() && this.currentPath.length !== 0) {
event.stopPropagation();
this.#endDrawing(event);
this.setInBackground();
}
}
canvasMouseleave(event) {
this.#endDrawing(event);
this.setInBackground();
}
#endDrawing(event) {
@ -11464,7 +11537,7 @@ class AnnotationElement {
return (0, _util.shadow)(this, "_commonActions", {
display: event => {
const hidden = event.detail.display % 2 === 1;
event.target.style.visibility = hidden ? "hidden" : "visible";
this.container.style.visibility = hidden ? "hidden" : "visible";
this.annotationStorage.setValue(this.data.id, {
hidden,
print: event.detail.display === 0 || event.detail.display === 3
@ -11476,7 +11549,7 @@ class AnnotationElement {
});
},
hidden: event => {
event.target.style.visibility = event.detail.hidden ? "hidden" : "visible";
this.container.style.visibility = event.detail.hidden ? "hidden" : "visible";
this.annotationStorage.setValue(this.data.id, {
hidden: event.detail.hidden
});
@ -11706,6 +11779,7 @@ class LinkAnnotationElement extends AnnotationElement {
linkService
} = this;
const link = document.createElement("a");
link.setAttribute("id", data.id);
let isBound = false;
if (data.url) {
@ -12564,7 +12638,15 @@ class PushButtonWidgetAnnotationElement extends LinkAnnotationElement {
container.title = this.data.alternativeText;
}
this._setDefaultPropertiesFromJS(container);
if (this.enableScripting && this.hasJSActions) {
const linkElement = container.lastChild;
this._setDefaultPropertiesFromJS(linkElement);
linkElement.addEventListener("updatefromsandbox", jsEvent => {
this._dispatchEventFromSandbox({}, jsEvent);
});
}
return container;
}
@ -12638,7 +12720,7 @@ class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement {
noneOptionElement.value = " ";
noneOptionElement.setAttribute("hidden", true);
noneOptionElement.setAttribute("selected", true);
selectElement.insertBefore(noneOptionElement, selectElement.firstChild);
selectElement.prepend(noneOptionElement);
removeEmptyEntry = () => {
noneOptionElement.remove();
@ -12728,10 +12810,17 @@ class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement {
displayValue,
exportValue
} = event.detail.insert;
const selectChild = selectElement.children[index];
const optionElement = document.createElement("option");
optionElement.textContent = displayValue;
optionElement.value = exportValue;
selectElement.insertBefore(optionElement, selectElement.children[index]);
if (selectChild) {
selectChild.before(optionElement);
} else {
selectElement.append(optionElement);
}
storage.setValue(id, {
value: getValue(event, true),
items: getItems(event)
@ -14977,8 +15066,8 @@ var _svg = __w_pdfjs_require__(29);
var _xfa_layer = __w_pdfjs_require__(27);
const pdfjsVersion = '2.15.117';
const pdfjsBuild = '1a6ae5f03';
const pdfjsVersion = '2.15.129';
const pdfjsBuild = 'be2dfe45f';
;
})();

Просмотреть файл

@ -5040,8 +5040,8 @@ Object.defineProperty(exports, "initSandbox", ({
var _initialization = __w_pdfjs_require__(1);
const pdfjsVersion = '2.15.117';
const pdfjsBuild = '1a6ae5f03';
const pdfjsVersion = '2.15.129';
const pdfjsBuild = 'be2dfe45f';
})();
/******/ return __webpack_exports__;

Просмотреть файл

@ -117,7 +117,7 @@ class WorkerMessageHandler {
const WorkerTasks = [];
const verbosity = (0, _util.getVerbosityLevel)();
const apiVersion = docParams.apiVersion;
const workerVersion = '2.15.117';
const workerVersion = '2.15.129';
if (apiVersion !== workerVersion) {
throw new Error(`The API version "${apiVersion}" does not match ` + `the Worker version "${workerVersion}".`);
@ -30436,10 +30436,14 @@ const getStdFontMap = (0, _core_utils.getLookupTableFactory)(function (t) {
t["Arial-Bold"] = "Helvetica-Bold";
t["Arial-BoldItalic"] = "Helvetica-BoldOblique";
t["Arial-Italic"] = "Helvetica-Oblique";
t.ArialMT = "Helvetica";
t["Arial-BoldItalicMT"] = "Helvetica-BoldOblique";
t["Arial-BoldMT"] = "Helvetica-Bold";
t["Arial-ItalicMT"] = "Helvetica-Oblique";
t.ArialMT = "Helvetica";
t.ArialUnicodeMS = "Helvetica";
t["ArialUnicodeMS-Bold"] = "Helvetica-Bold";
t["ArialUnicodeMS-BoldItalic"] = "Helvetica-BoldOblique";
t["ArialUnicodeMS-Italic"] = "Helvetica-Oblique";
t["Courier-BoldItalic"] = "Courier-BoldOblique";
t["Courier-Italic"] = "Courier-Oblique";
t.CourierNew = "Courier";
@ -30898,6 +30902,33 @@ const getGlyphMapForStandardFonts = (0, _core_utils.getLookupTableFactory)(funct
t[337] = 9552;
t[493] = 1039;
t[494] = 1040;
t[672] = 1488;
t[673] = 1489;
t[674] = 1490;
t[675] = 1491;
t[676] = 1492;
t[677] = 1493;
t[678] = 1494;
t[679] = 1495;
t[680] = 1496;
t[681] = 1497;
t[682] = 1498;
t[683] = 1499;
t[684] = 1500;
t[685] = 1501;
t[686] = 1502;
t[687] = 1503;
t[688] = 1504;
t[689] = 1505;
t[690] = 1506;
t[691] = 1507;
t[692] = 1508;
t[693] = 1509;
t[694] = 1510;
t[695] = 1511;
t[696] = 1512;
t[697] = 1513;
t[698] = 1514;
t[705] = 1524;
t[706] = 8362;
t[710] = 64288;
@ -62817,8 +62848,8 @@ Object.defineProperty(exports, "WorkerMessageHandler", ({
var _worker = __w_pdfjs_require__(1);
const pdfjsVersion = '2.15.117';
const pdfjsBuild = '1a6ae5f03';
const pdfjsVersion = '2.15.129';
const pdfjsBuild = 'be2dfe45f';
})();
/******/ return __webpack_exports__;

Просмотреть файл

@ -1,24 +1,24 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- copied from https://www.svgrepo.com/svg/255881/text -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve">
<g>
<g transform="scale(0.03125)">
<path d="M405.787,43.574H8.17c-4.513,0-8.17,3.658-8.17,8.17v119.83c0,4.512,3.657,8.17,8.17,8.17h32.681
c4.513,0,8.17-3.658,8.17-8.17v-24.511h95.319v119.83c0,4.512,3.657,8.17,8.17,8.17c4.513,0,8.17-3.658,8.17-8.17v-128
c0-4.512-3.657-8.17-8.17-8.17H40.851c-4.513,0-8.17,3.658-8.17,8.17v24.511H16.34V59.915h381.277v103.489h-16.34v-24.511
c0-4.512-3.657-8.17-8.17-8.17h-111.66c-4.513,0-8.17,3.658-8.17,8.17v288.681c0,4.512,3.657,8.17,8.17,8.17h57.191v16.34H95.319
v-16.34h57.191c4.513,0,8.17-3.658,8.17-8.17v-128c0-4.512-3.657-8.17-8.17-8.17c-4.513,0-8.17,3.658-8.17,8.17v119.83H87.149
c-4.513,0-8.17,3.658-8.17,8.17v32.681c0,4.512,3.657,8.17,8.17,8.17h239.66c4.513,0,8.17-3.658,8.17-8.17v-32.681
c0-4.512-3.657-8.17-8.17-8.17h-57.192v-272.34h95.319v24.511c0,4.512,3.657,8.17,8.17,8.17h32.681c4.513,0,8.17-3.658,8.17-8.17
V51.745C413.957,47.233,410.3,43.574,405.787,43.574z"/>
</g>
</g>
<g>
<g transform="scale(0.03125)">
<path d="M503.83,452.085h-24.511V59.915h24.511c4.513,0,8.17-3.658,8.17-8.17s-3.657-8.17-8.17-8.17h-65.362
c-4.513,0-8.17,3.658-8.17,8.17s3.657,8.17,8.17,8.17h24.511v392.17h-24.511c-4.513,0-8.17,3.658-8.17,8.17s3.657,8.17,8.17,8.17
h65.362c4.513,0,8.17-3.658,8.17-8.17S508.343,452.085,503.83,452.085z"/>
</g>
</g>
</svg>
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- copied from https://www.svgrepo.com/svg/255881/text -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve">
<g>
<g transform="scale(0.03125)">
<path d="M405.787,43.574H8.17c-4.513,0-8.17,3.658-8.17,8.17v119.83c0,4.512,3.657,8.17,8.17,8.17h32.681
c4.513,0,8.17-3.658,8.17-8.17v-24.511h95.319v119.83c0,4.512,3.657,8.17,8.17,8.17c4.513,0,8.17-3.658,8.17-8.17v-128
c0-4.512-3.657-8.17-8.17-8.17H40.851c-4.513,0-8.17,3.658-8.17,8.17v24.511H16.34V59.915h381.277v103.489h-16.34v-24.511
c0-4.512-3.657-8.17-8.17-8.17h-111.66c-4.513,0-8.17,3.658-8.17,8.17v288.681c0,4.512,3.657,8.17,8.17,8.17h57.191v16.34H95.319
v-16.34h57.191c4.513,0,8.17-3.658,8.17-8.17v-128c0-4.512-3.657-8.17-8.17-8.17c-4.513,0-8.17,3.658-8.17,8.17v119.83H87.149
c-4.513,0-8.17,3.658-8.17,8.17v32.681c0,4.512,3.657,8.17,8.17,8.17h239.66c4.513,0,8.17-3.658,8.17-8.17v-32.681
c0-4.512-3.657-8.17-8.17-8.17h-57.192v-272.34h95.319v24.511c0,4.512,3.657,8.17,8.17,8.17h32.681c4.513,0,8.17-3.658,8.17-8.17
V51.745C413.957,47.233,410.3,43.574,405.787,43.574z"/>
</g>
</g>
<g>
<g transform="scale(0.03125)">
<path d="M503.83,452.085h-24.511V59.915h24.511c4.513,0,8.17-3.658,8.17-8.17s-3.657-8.17-8.17-8.17h-65.362
c-4.513,0-8.17,3.658-8.17,8.17s3.657,8.17,8.17,8.17h24.511v392.17h-24.511c-4.513,0-8.17,3.658-8.17,8.17s3.657,8.17,8.17,8.17
h65.362c4.513,0,8.17-3.658,8.17-8.17S508.343,452.085,503.83,452.085z"/>
</g>
</g>
</svg>

До

Ширина:  |  Высота:  |  Размер: 1.6 KiB

После

Ширина:  |  Высота:  |  Размер: 1.6 KiB

Просмотреть файл

@ -1,9 +1,9 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 16 16">
<g>
<g transform="scale(0.03125)">
<path d="m455.1,137.9l-32.4,32.4-81-81.1 32.4-32.4c6.6-6.6 18.1-6.6 24.7,0l56.3,56.4c6.8,6.8 6.8,17.9 0,24.7zm-270.7,271l-81-81.1 209.4-209.7 81,81.1-209.4,209.7zm-99.7-42l60.6,60.7-84.4,23.8 23.8-84.5zm399.3-282.6l-56.3-56.4c-11-11-50.7-31.8-82.4,0l-285.3,285.5c-2.5,2.5-4.3,5.5-5.2,8.9l-43,153.1c-2,7.1 0.1,14.7 5.2,20 5.2,5.3 15.6,6.2 20,5.2l153-43.1c3.4-0.9 6.4-2.7 8.9-5.2l285.1-285.5c22.7-22.7 22.7-59.7 0-82.5z"/>
</g>
</g>
</svg>
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" xmlns:xlink="http://www.w3.org/1999/xlink" enable-background="new 0 0 16 16">
<g>
<g transform="scale(0.03125)">
<path d="m455.1,137.9l-32.4,32.4-81-81.1 32.4-32.4c6.6-6.6 18.1-6.6 24.7,0l56.3,56.4c6.8,6.8 6.8,17.9 0,24.7zm-270.7,271l-81-81.1 209.4-209.7 81,81.1-209.4,209.7zm-99.7-42l60.6,60.7-84.4,23.8 23.8-84.5zm399.3-282.6l-56.3-56.4c-11-11-50.7-31.8-82.4,0l-285.3,285.5c-2.5,2.5-4.3,5.5-5.2,8.9l-43,153.1c-2,7.1 0.1,14.7 5.2,20 5.2,5.3 15.6,6.2 20,5.2l153-43.1c3.4-0.9 6.4-2.7 8.9-5.2l285.1-285.5c22.7-22.7 22.7-59.7 0-82.5z"/>
</g>
</g>
</svg>

До

Ширина:  |  Высота:  |  Размер: 790 B

После

Ширина:  |  Высота:  |  Размер: 781 B

Просмотреть файл

@ -1,4 +1,4 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M12.407 8.217l-8.083-6.7A.2.2 0 0 0 4 1.672V12.3a.2.2 0 0 0 .333.146l2.56-2.372 1.857 3.9A1.125 1.125 0 1 0 10.782 13L8.913 9.075l3.4-.51a.2.2 0 0 0 .095-.348z"></path></svg>

До

Ширина:  |  Высота:  |  Размер: 481 B

После

Ширина:  |  Высота:  |  Размер: 478 B

Просмотреть файл

@ -743,6 +743,11 @@
overflow: auto;
width: 100%;
height: 100%;
z-index: 1;
}
.annotationEditorLayer .background {
z-index: 0;
}
.annotationEditorLayer .inkEditor:focus {

Просмотреть файл

@ -4751,7 +4751,7 @@ class BaseTreeViewer {
}
};
div.insertBefore(toggler, div.firstChild);
div.prepend(toggler);
}
_toggleTreeItem(root, show = false) {
@ -9626,7 +9626,7 @@ class BaseViewer {
throw new Error("Cannot initialize BaseViewer.");
}
const viewerVersion = '2.15.117';
const viewerVersion = '2.15.129';
if (_pdfjsLib.version !== viewerVersion) {
throw new Error(`The API version "${_pdfjsLib.version}" does not match the Viewer version "${viewerVersion}".`);
@ -12658,7 +12658,7 @@ class TextHighlighter {
if (div.nodeType === Node.TEXT_NODE) {
const span = document.createElement("span");
div.parentNode.insertBefore(span, div);
div.before(span);
span.append(div);
textDivs[divIdx] = span;
div = span;
@ -14659,8 +14659,8 @@ var _app_options = __webpack_require__(1);
var _app = __webpack_require__(2);
const pdfjsVersion = '2.15.117';
const pdfjsBuild = '1a6ae5f03';
const pdfjsVersion = '2.15.129';
const pdfjsBuild = 'be2dfe45f';
window.PDFViewerApplication = _app.PDFViewerApplication;
window.PDFViewerApplicationOptions = _app_options.AppOptions;
;

Просмотреть файл

@ -20,8 +20,8 @@ origin:
# Human-readable identifier for this version/release
# Generally "version NNN", "tag SSS", "bookmark SSS"
release: 1a6ae5f03480d7c655dff7aea3d39d10d05d9197 (2022-06-13T14:16:48Z).
revision: 1a6ae5f03480d7c655dff7aea3d39d10d05d9197
release: be2dfe45f96fa58a1926f764fd64d2416cecc501 (2022-06-17T17:37:43Z).
revision: be2dfe45f96fa58a1926f764fd64d2416cecc501
# The package's license, where possible using the mnemonic from
# https://spdx.org/licenses/