1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

[api-minor] Remove Outliner from the official API

As far as I can tell `Outliner` is only exposed in the API because we need to access it when running some of the reference-tests, but is otherwise not used.
Hence this seems like something that should be kept *internal* and thus only exposed in TESTING-builds.
This commit is contained in:
Jonas Jenwald 2024-07-16 13:08:26 +02:00
parent f9e3b6bcc4
commit 8a979c2d0e
4 changed files with 8 additions and 7 deletions

View file

@ -80,6 +80,12 @@ const pdfjsVersion =
const pdfjsBuild =
typeof PDFJSDev !== "undefined" ? PDFJSDev.eval("BUNDLE_BUILD") : void 0;
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("TESTING")) {
globalThis.pdfjsTestingUtils = {
Outliner,
};
}
export {
AbortException,
AnnotationEditorLayer,
@ -109,7 +115,6 @@ export {
noContextMenu,
normalizeUnicode,
OPS,
Outliner,
PasswordResponses,
PDFDataRangeTransport,
PDFDateString,