Skip to content

Commit e83e9d4

Browse files
authored
Merge pull request #8757 from harshiltewari2004/fix-jsdoc-typos-dev-2.0
Fix JSDoc typos: widhts → widths, coordniates → coordinates, coordian…
2 parents 70147fb + dbf4709 commit e83e9d4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/core/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function modeAdjust(a, b, c, d, mode) {
1515
if (mode === constants.CORNER) {
1616

1717
// CORNER mode already corresponds to a bounding box (top-left corner, width, height).
18-
// For negative widhts or heights, the absolute value is used.
18+
// For negative widths or heights, the absolute value is used.
1919
bbox = {
2020
x: a,
2121
y: b,
@@ -26,7 +26,7 @@ function modeAdjust(a, b, c, d, mode) {
2626
} else if (mode === constants.CORNERS) {
2727

2828
// CORNERS mode uses two opposite corners, in any configuration.
29-
// Make sure to get the top left corner by using the minimum of the x and y coordniates.
29+
// Make sure to get the top left corner by using the minimum of the x and y coordinates.
3030
bbox = {
3131
x: Math.min(a, c),
3232
y: Math.min(b, d),

src/webgl/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { Texture } from "./p5.Texture";
77
* @param {Uint8Array|Float32Array|undefined} pixels An existing pixels array to reuse if the size is the same
88
* @param {WebGLRenderingContext} gl The WebGL context
99
* @param {WebGLFramebuffer|null} framebuffer The Framebuffer to read
10-
* @param {Number} x The x coordiante to read, premultiplied by pixel density
11-
* @param {Number} y The y coordiante to read, premultiplied by pixel density
10+
* @param {Number} x The x coordinate to read, premultiplied by pixel density
11+
* @param {Number} y The y coordinate to read, premultiplied by pixel density
1212
* @param {Number} width The width in pixels to be read (factoring in pixel density)
1313
* @param {Number} height The height in pixels to be read (factoring in pixel density)
1414
* @param {GLEnum} format Either RGB or RGBA depending on how many channels to read

0 commit comments

Comments
 (0)