From 9232264b8a960de48486eccb71c7161e06043b03 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 9 Mar 2023 15:51:55 +0100 Subject: [PATCH] Fix the JSDoc `returns`-type for two `PageViewport`-methods (issue 16134) The affected methods have always returned Arrays, however the JSDoc did not accurately reflect that. --- src/display/display_utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/display/display_utils.js b/src/display/display_utils.js index 1e5ab9f6e..f4d4acb96 100644 --- a/src/display/display_utils.js +++ b/src/display/display_utils.js @@ -428,7 +428,7 @@ class PageViewport { * converting PDF location into canvas pixel coordinates. * @param {number} x - The x-coordinate. * @param {number} y - The y-coordinate. - * @returns {Object} Object containing `x` and `y` properties of the + * @returns {Array} Array containing `x`- and `y`-coordinates of the * point in the viewport coordinate space. * @see {@link convertToPdfPoint} * @see {@link convertToViewportRectangle} @@ -455,7 +455,7 @@ class PageViewport { * for converting canvas pixel location into PDF one. * @param {number} x - The x-coordinate. * @param {number} y - The y-coordinate. - * @returns {Object} Object containing `x` and `y` properties of the + * @returns {Array} Array containing `x`- and `y`-coordinates of the * point in the PDF coordinate space. * @see {@link convertToViewportPoint} */