mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
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:
parent
a0ef5a4ae1
commit
9232264b8a
1 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue