docs: remove deprecated beginGeometry() and endGeometry() references#8642
docs: remove deprecated beginGeometry() and endGeometry() references#8642codervinitjangir wants to merge 4 commits intoprocessing:dev-2.0from
Conversation
ksen0
left a comment
There was a problem hiding this comment.
Hi, thanks for your work. I left some comments - there are many problems.
Please include screenshots. To generate screenshots for doc changes, please run locally the website: https://github.com/processing/p5.js/blob/dev-2.0/contributor_docs/contributing_to_the_p5js_reference.md
To test this PR, I ran inside my local p5.js-website checked out to 2.0 branch: (base) kuksenok@Ks-MacBook-Air p5.js-website % npm run custom:dev https://github.com/codervinitjangir/p5.js.git#fix/buildGeometry-docs but you can use the documentation I linked to be able to build from your local p5.js
|
|
||
| /** | ||
| * Finishes creating a new <a href="#/p5.Geometry">p5.Geometry</a> that was | ||
| * started using <a href="#/p5/beginGeometry">beginGeometry()</a>. One can also |
There was a problem hiding this comment.
This change does not make sense. This is a private method.
| * draws shapes. | ||
| * | ||
| * If you need to draw complex shapes every frame which don't change over time, | ||
| * combining them upfront with `beginGeometry()` and `endGeometry()` and then |
There was a problem hiding this comment.
Like the one below - this does not make sense, it's a private method. It has not been fully removed but it is not in the reference.
| * will run faster than repeatedly drawing the individual pieces. | ||
| * | ||
| * The parameter, `callback`, is a function with the drawing instructions for | ||
| * the new <a href="#/p5.Geometry">p5.Geometry</a> object. It will be called |
…y-docs # Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
|
Hi @ksen0, thank you for the review! I have addressed all the feedback points:
I tried to run the dev server locally to provide the requested screenshots, but I ran into a known environment issue on my Windows setup (the sharp dependency failing during npm install). Since my changes are purely JSDoc text updates, could you please verify the build visually on your end? The code formatting should be perfect now. Let me know if anything else is needed! |
|
Hi @codervinitjangir thanks for your work! Please include screenshots. To generate screenshots for doc changes, please use this guide to clone the website locally: https://github.com/processing/p5.js/blob/dev-2.0/contributor_docs/contributing_to_the_p5js_reference.md If you have any problems with the guide please let us know. But it should be possible. Thank you! |
|
Hi @ksen0, thanks for your patience! I had some local environment issues with the Astro dev server on Windows, but I managed to get a successful static build running. >
|




Resolves #8631
Changes:
In p5.js 2.0,
beginGeometry()andendGeometry()have been removed from the public API and replaced bybuildGeometry(). However, several JSDoc comments still contained broken links to these removed functions.This PR removes those outdated references to fix the 404 errors on the reference website.
Specific updates include:
src/webgl/3d_primitives.js: Removed "See beginGeometry()..." from thebuildGeometry()description, removed references in thefreeGeometry()description, and removed the@exampleblock demonstrating the old functions.src/webgl/loading.js: Removed old functions from the list of ways to buildp5.Geometryin themodel()description.src/webgl/p5.Renderer3D.js: Updated private documentation to remove cross-references to the deprecated functions.Screenshots of the change:
N/A - Changes are strictly limited to JSDoc comments and documentation cleanup.
PR Checklist
npm run lintpasses