[api-minor] Move addLinkAttributes and LinkTarget into the viewer

As part of the changes/improvement in PR 14092, we're no longer using the `addLinkAttributes` directly in e.g. the AnnotationLayer-code.
Given that the helper function is now *only* used in the viewer, hence it no longer seems necessary to expose it through the official API.

*Please note:* It seems somewhat unlikely that third-party users were relying *directly* on the helper function, which is why it's not being exported as part of the viewer components. (If necessary, we can always change this later on.)
This commit is contained in:
Jonas Jenwald 2022-01-03 13:36:49 +01:00
parent 290cbc5232
commit 2d2b6463b8
5 changed files with 111 additions and 124 deletions

View file

@ -19,7 +19,11 @@ import {
DefaultTextLayerFactory,
DefaultXfaLayerFactory,
} from "./default_factory.js";
import { PDFLinkService, SimpleLinkService } from "./pdf_link_service.js";
import {
LinkTarget,
PDFLinkService,
SimpleLinkService,
} from "./pdf_link_service.js";
import { PDFSinglePageViewer, PDFViewer } from "./pdf_viewer.js";
import { AnnotationLayerBuilder } from "./annotation_layer_builder.js";
import { DownloadManager } from "./download_manager.js";
@ -49,6 +53,7 @@ export {
DownloadManager,
EventBus,
GenericL10n,
LinkTarget,
NullL10n,
PDFFindController,
PDFHistory,