-
-
Notifications
You must be signed in to change notification settings - Fork 35.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: fix types #30677
Docs: fix types #30677
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
@@ -25,7 +25,7 @@ class LatheGeometry extends BufferGeometry { | |||
/** | |||
* Constructs a new lathe geometry. | |||
* | |||
* @param {Array<Vector2>} [points] - An array of points in 2D space. The x-coordinate of each point | |||
* @param {Array<Vector2|Vector3>} [points] - An array of points in 2D space. The x-coordinate of each point |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why should we allow here Vector3
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- CapsuleGeometry extends LatheGeometry
- CapsuleGeometry uses Path().getPoints( capSegments ) for points attribute
- Path extends CurvePath
- CurvePath.getPoints depends on CurvePath.getPoint
- CurvePath.getPoint returns a Vector2 or a Vector3
@s-rigaud BTW: Thank you for all your contributions lately! Your PRs are an important QA for the project's JSDoc and also improve the overall code quality 🙌. |
Thanks a lot, I'm happy to help. It's nothing compare to your contributions over the years but just a few PRs might help the project QA 😁 |
Description
Fix some types in the doc