-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[p5.js 2.0 Beta Bug Report]: createVector(x, y, z) shows FES message #7741
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
Comments
Looks like it's happening because of this line in the createVector docs: Line 37 in 55ed78e
We currently don't parse this spread notation correctly, treating it like a single positional argument: So for now we could document x, y, and z separately like in 1.x: Lines 34 to 36 in 57638a0
...longer term, we probably need to get |
Thanks @davepagurek! Do we need to update the overloads for To address the documentation itself, maybe we could leave it as it is, and temporarily describe Maybe after the immediate problem is resolved with a workaround, a new issue could be created to resolve the underlying problem with the JSDoc syntax for rest parameters not being parsed correctly? |
@GregStanton When we make a build of p5, parameterData.json gets rewritten automatically from the docs when
I think this makes sense! We'll likely also have to make an accompanying website issue too so that the syntax section of the reference looks like |
Thanks for the explanation @davepagurek! I'm enjoying learning about how the reference is built.
That makes more sense. It'd be a maintenance problem if
Oh, I see. That'd definitely be better. It might be a bit confusing, though? For beginners looking to use a simple function like Could we get it to look like |
Most appropriate sub-area of p5.js?
p5.js version
Latest dev-2.0
Web browser and version
Firefox
Operating system
MacOS
Steps to reproduce this
Steps:
Calling
createVector(x, y, z)
currently shows this message:Looks like maybe the doc comments are out of date on
createVector
?Snippet:
The text was updated successfully, but these errors were encountered: