diff --git a/src/display/api.js b/src/display/api.js index 20c78009e..f5b0a9f75 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -1169,7 +1169,8 @@ class PDFDocumentProxy { * Page render parameters. * * @typedef {Object} RenderParameters - * @property {Object} canvasContext - A 2D context of a DOM Canvas object. + * @property {CanvasRenderingContext2D} canvasContext - A 2D context of a DOM + * Canvas object. * @property {PageViewport} viewport - Rendering viewport obtained by calling * the `PDFPageProxy.getViewport` method. * @property {string} [intent] - Rendering intent, can be 'display', 'print', diff --git a/web/pdf_find_controller.js b/web/pdf_find_controller.js index ecc52295f..cbb2b4f6b 100644 --- a/web/pdf_find_controller.js +++ b/web/pdf_find_controller.js @@ -369,7 +369,7 @@ function getOriginalIndex(diffs, pos, len) { * @typedef {Object} PDFFindControllerOptions * @property {IPDFLinkService} linkService - The navigation/linking service. * @property {EventBus} eventBus - The application event bus. - * @property {boolean} updateMatchesCountOnProgress - True if the matches + * @property {boolean} [updateMatchesCountOnProgress] - True if the matches * count must be updated on progress or only when the last page is reached. * The default value is `true`. */