[p5.js 2.0+ Bug Report]:Typos in JSDoc comments: "widhts" in helpers.js and "coordiante" in p5.RendererGL.js
Most appropriate sub-area of p5.js?
- [ ] Accessibility
- [ ] Color
- [ ] Core/Environment/Rendering
- [ ] Data
- [ ] DOM
- [ ] Events
- [ ] Image
- [ ] IO
- [ ] Math
- [x] Typography
- [ ] Utilities
- [ ] WebGL
- [ ] WebGPU
- [ ] p5.strands
- [ ] Build process
- [ ] Unit testing
- [ ] Internationalization
- [ ] Friendly errors
- [ ] Other (specify if possible)
p5.js version
main branch (verified on https://github.com/processing/p5.js as of April 25, 2026)
Web browser and version
N/A — documentation/comment typos, not a runtime bug
Operating system
N/A — documentation/comment typos, not a runtime bug
Steps to reproduce this
This is a documentation/comment fix rather than a runtime bug, so the standard reproduction steps don't apply. Both typos were verified to exist on the current main branch.
Typo 1: widhts → widths
File: src/core/helpers.js (line 19)
// For negative widhts or heights, the absolute value is used.
// ^^^^^^
Typo 2: coordiante → coordinate (appears twice)
File: src/webgl/p5.RendererGL.js (lines 323–324)
In the JSDoc for the pixel-read function:
* @param {Number} x The x coordiante to read, premultiplied by pixel density
* @param {Number} y The y coordiante to read, premultiplied by pixel density
Notes
- Both occur in JSDoc/inline comments only; no runtime behavior is affected.
- The
coordiantetypo will surface in the generated reference for anyone reading the JSDoc on the website. - I'd like to fix this myself if approved.
Hi @raclim ,I will be very happy to make this small changes!
Hi @harshiltewari2004, feel free to open a PR for this!
Thank you so much @davepagurek for assigning this to me. I have created a PR for it!
Thanks @harshiltewari2004 ! Plese feel free to check if the same PR is needed for dev-2.0 branch
Thanks @ksen0 !Checking dev-2.0 now-will report back
Reporting back as promised — I just opened #8757 against dev-2.0.
A few notes on what I found while checking:
src/core/helpers.jsstill has the originalwidhtstypo, plus an additional typo (coordniates) that didn't exist onmain.src/webgl/p5.RendererGL.jsis already clean ondev-2.0— thecoordiantetypo is gone there.src/webgl/utils.jsis a new file ondev-2.0containing the samecoordiantetypo (×2), which I've also fixed.
Let me know if any adjustments are needed!
Hi @ksen0 I checked the dev-2.0 branch, made the necessary changes and have also created a PR it