From 8259fb4d2f9a38e4e070c042d2f1c593c468f713 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Thu, 27 Apr 2023 15:39:29 +0200 Subject: [PATCH] Declare the `linkService` and `l10n` properties as optional in the `PDFViewerOptions` documentation Both properties have a fallback to `SimpleLinkService` respectively `NullL10n` if no other value is provided explicitly. --- web/pdf_viewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pdf_viewer.js b/web/pdf_viewer.js index ed7117ca8..b8ce37400 100644 --- a/web/pdf_viewer.js +++ b/web/pdf_viewer.js @@ -83,7 +83,7 @@ function isValidAnnotationEditorMode(mode) { * @property {HTMLDivElement} container - The container for the viewer element. * @property {HTMLDivElement} [viewer] - The viewer element. * @property {EventBus} eventBus - The application event bus. - * @property {IPDFLinkService} linkService - The navigation/linking service. + * @property {IPDFLinkService} [linkService] - The navigation/linking service. * @property {IDownloadManager} [downloadManager] - The download manager * component. * @property {PDFFindController} [findController] - The find controller @@ -115,7 +115,7 @@ function isValidAnnotationEditorMode(mode) { * @property {number} [maxCanvasPixels] - The maximum supported canvas size in * total pixels, i.e. width * height. Use -1 for no limit. The default value * is 4096 * 4096 (16 mega-pixels). - * @property {IL10n} l10n - Localization service. + * @property {IL10n} [l10n] - Localization service. * @property {boolean} [enablePermissions] - Enables PDF document permissions, * when they exist. The default value is `false`. * @property {Object} [pageColors] - Overwrites background and foreground colors