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.
This commit is contained in:
Jonas Jenwald 2023-03-09 15:51:55 +01:00
parent a0ef5a4ae1
commit 9232264b8a

View File

@ -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}
*/