mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Consistently use number
for numeric data types in JSDoc comments
Sometimes we also used `Number` and `integer`, but `number` is what the JSDoc documentation recommends.
This commit is contained in:
parent
ff37cdb5d7
commit
e75991b49e
5 changed files with 16 additions and 16 deletions
|
@ -530,7 +530,7 @@ class AnnotationBorderStyle {
|
|||
*
|
||||
* @public
|
||||
* @memberof AnnotationBorderStyle
|
||||
* @param {integer} width - The width.
|
||||
* @param {number} width - The width.
|
||||
* @param {Array} rect - The annotation `Rect` entry.
|
||||
*/
|
||||
setWidth(width, rect = [0, 0, 0, 0]) {
|
||||
|
@ -642,7 +642,7 @@ class AnnotationBorderStyle {
|
|||
*
|
||||
* @public
|
||||
* @memberof AnnotationBorderStyle
|
||||
* @param {integer} radius - The horizontal corner radius
|
||||
* @param {number} radius - The horizontal corner radius.
|
||||
*/
|
||||
setHorizontalCornerRadius(radius) {
|
||||
if (Number.isInteger(radius)) {
|
||||
|
@ -655,7 +655,7 @@ class AnnotationBorderStyle {
|
|||
*
|
||||
* @public
|
||||
* @memberof AnnotationBorderStyle
|
||||
* @param {integer} radius - The vertical corner radius
|
||||
* @param {number} radius - The vertical corner radius.
|
||||
*/
|
||||
setVerticalCornerRadius(radius) {
|
||||
if (Number.isInteger(radius)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue