Skip to content

Commit

Permalink
published version 20.1.0; #2339 made several methods in the PDFFindCo…
Browse files Browse the repository at this point in the history
…ntroller public to allow users to add custom implementations; #2343 fixed the box-sizing model of the annotation layer (was broken by #2282)
  • Loading branch information
stephanrauh committed May 24, 2024
1 parent dbceda9 commit 079509f
Show file tree
Hide file tree
Showing 22 changed files with 758 additions and 658 deletions.
2 changes: 0 additions & 2 deletions projects/ngx-extended-pdf-viewer/assets/locale/ia/viewer.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,6 @@ pdfjs-editor-colorpicker-pink =
pdfjs-editor-colorpicker-red =
.title = Rubie
pdfjs-highlight-floating-button =
.title = Evidentiar
pdfjs-highlight-floating-button1 =
.title = Evidentiar
.aria-label = Evidentiar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10706,7 +10706,7 @@ function getDocument(src) {
}
const fetchDocParams = {
docId,
apiVersion: "4.1.891",
apiVersion: "4.1.894",
data,
password,
disableAutoFetch,
Expand Down Expand Up @@ -12473,8 +12473,8 @@ class InternalRenderTask {
}
}
}
const version = "4.1.891";
const build = "867382d12";
const version = "4.1.894";
const build = "9c15ea3ee";

;// CONCATENATED MODULE: ./src/shared/scripting_utils.js
function makeColorComp(n) {
Expand Down Expand Up @@ -19361,8 +19361,8 @@ class DrawLayer {



const pdfjsVersion = "4.1.891";
const pdfjsBuild = "867382d12";
const pdfjsVersion = "4.1.894";
const pdfjsBuild = "9c15ea3ee";

var __webpack_exports__AbortException = __webpack_exports__.AbortException;
var __webpack_exports__AnnotationEditorLayer = __webpack_exports__.AnnotationEditorLayer;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -56851,7 +56851,7 @@ class WorkerMessageHandler {
docId,
apiVersion
} = docParams;
const workerVersion = "4.1.891";
const workerVersion = "4.1.894";
if (apiVersion !== workerVersion) {
throw new Error(`The API version "${apiVersion}" does not match ` + `the Worker version "${workerVersion}".`);
}
Expand Down Expand Up @@ -57426,8 +57426,8 @@ if (typeof window === "undefined" && typeof self !== "undefined" && isMessagePor

;// CONCATENATED MODULE: ./src/pdf.worker.js

const pdfjsVersion = "4.1.891";
const pdfjsBuild = "867382d12";
const pdfjsVersion = "4.1.894";
const pdfjsBuild = "9c15ea3ee";

var __webpack_exports__WorkerMessageHandler = __webpack_exports__.WorkerMessageHandler;
export { __webpack_exports__WorkerMessageHandler as WorkerMessageHandler };
Original file line number Diff line number Diff line change
Expand Up @@ -6944,7 +6944,7 @@ const GenericL10n = null;
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ ngxExtendedPdfViewerVersion: () => (/* binding */ ngxExtendedPdfViewerVersion)
/* harmony export */ });
const ngxExtendedPdfViewerVersion = '20.0.2';
const ngxExtendedPdfViewerVersion = '20.1.0';

/***/ }),

Expand Down Expand Up @@ -10359,7 +10359,7 @@ class PDFFindController {
}
return true;
}
#calculateRegExpMatch(query, entireWord, pageIndex, pageContent) {
_calculateRegExpMatch(query, entireWord, pageIndex, pageContent) {
const matches = this._pageMatches[pageIndex] = [];
const matchesLength = this._pageMatchesLength[pageIndex] = [];
if (!query) {
Expand All @@ -10378,7 +10378,7 @@ class PDFFindController {
}
}
}
#convertToRegExpString(query, hasDiacritics) {
_convertToRegExpString(query, hasDiacritics) {
const {
matchDiacritics
} = this.#state;
Expand Down Expand Up @@ -10418,7 +10418,7 @@ class PDFFindController {
}
return [isUnicode, query];
}
#calculateMatch(pageIndex) {
_calculateMatch(pageIndex) {
let query = this.#query;
if (query.length === 0) {
return;
Expand All @@ -10431,17 +10431,17 @@ class PDFFindController {
const hasDiacritics = this._hasDiacritics[pageIndex];
let isUnicode = false;
if (typeof query === "string") {
[isUnicode, query] = this.#convertToRegExpString(query, hasDiacritics);
[isUnicode, query] = this._convertToRegExpString(query, hasDiacritics);
} else {
query = query.sort().reverse().map(q => {
const [isUnicodePart, queryPart] = this.#convertToRegExpString(q, hasDiacritics);
const [isUnicodePart, queryPart] = this._convertToRegExpString(q, hasDiacritics);
isUnicode ||= isUnicodePart;
return `(${queryPart})`;
}).join("|");
}
const flags = `g${isUnicode ? "u" : ""}${caseSensitive ? "" : "i"}`;
query = query ? new RegExp(query, flags) : null;
this.#calculateRegExpMatch(query, entireWord, pageIndex, pageContent);
this._calculateRegExpMatch(query, entireWord, pageIndex, pageContent);
if (this.#state.highlightAll) {
this.#updatePage(pageIndex);
}
Expand Down Expand Up @@ -10533,7 +10533,7 @@ class PDFFindController {
this._pendingFindMatches.add(i);
this._extractTextPromises[i].then(() => {
this._pendingFindMatches.delete(i);
this.#calculateMatch(i);
this._calculateMatch(i);
});
}
}
Expand Down Expand Up @@ -15094,7 +15094,7 @@ class PDFViewer {
#outerScrollContainer = undefined;
#pageViewMode = "multiple";
constructor(options) {
const viewerVersion = "4.1.891";
const viewerVersion = "4.1.894";
if (pdfjs_lib__WEBPACK_IMPORTED_MODULE_0__.version !== viewerVersion) {
throw new Error(`The API version "${pdfjs_lib__WEBPACK_IMPORTED_MODULE_0__.version}" does not match the Viewer version "${viewerVersion}".`);
}
Expand Down Expand Up @@ -18982,8 +18982,8 @@ _app_js__WEBPACK_IMPORTED_MODULE_3__ = (__webpack_async_dependencies__.then ? (a



const pdfjsVersion = "4.1.891";
const pdfjsBuild = "867382d12";
const pdfjsVersion = "4.1.894";
const pdfjsBuild = "9c15ea3ee";
const AppConstants = {
LinkTarget: _pdf_link_service_js__WEBPACK_IMPORTED_MODULE_2__.LinkTarget,
RenderingStates: _ui_utils_js__WEBPACK_IMPORTED_MODULE_0__.RenderingStates,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ pdfjs-download-button-label = Discargar
pdfjs-bookmark-button =
.title = Pagina actual (vide le URL del pagina actual)
pdfjs-bookmark-button-label = Pagina actual
# Used in Firefox for Android.
pdfjs-open-in-app-button =
.title = Aperir in app
# Used in Firefox for Android.
# Length of the translation matters since we are in a mobile context, with limited screen estate.
pdfjs-open-in-app-button-label = Aperir in app
## Secondary toolbar and context menu

Expand All @@ -67,8 +61,8 @@ pdfjs-first-page-button =
.title = Ir al prime pagina
pdfjs-first-page-button-label = Ir al prime pagina
pdfjs-last-page-button =
.title = Ir al prime pagina
pdfjs-last-page-button-label = Ir al prime pagina
.title = Ir al ultime pagina
pdfjs-last-page-button-label = Ir al ultime pagina
pdfjs-page-rotate-cw-button =
.title = Rotar in senso horari
pdfjs-page-rotate-cw-button-label = Rotar in senso horari
Expand Down Expand Up @@ -304,8 +298,6 @@ pdfjs-editor-stamp-button-label = Adder o rediger imagines
pdfjs-editor-highlight-button =
.title = Evidentia
pdfjs-editor-highlight-button-label = Evidentia
pdfjs-highlight-floating-button =
.title = Evidentiar
pdfjs-highlight-floating-button1 =
.title = Evidentiar
.aria-label = Evidentiar
Expand Down
Loading

0 comments on commit 079509f

Please sign in to comment.