Skip to content
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

Add guideline about chaining to style guide #6797

Closed
meezwhite opened this issue Feb 7, 2024 · 2 comments · Fixed by #6885
Closed

Add guideline about chaining to style guide #6797

meezwhite opened this issue Feb 7, 2024 · 2 comments · Fixed by #6885

Comments

@meezwhite
Copy link
Contributor

meezwhite commented Feb 7, 2024

Increasing access

Improve style guide to prevent future inconsistencies in docs.

Most appropriate sub-area of p5.js?

Feature enhancement details

In reference to #6400 (comment), as proposed by @nickmcintyre, to add guideline about chaining functions to styleguide.

// Nope.
fill(0)
  .strokeWeight(0)
  .textSize(10);

// Nope.
fill(0).strokeWeight(0).textSize(10);

// Yep.
fill(0);
strokeWeight(0);
textSize(10);
@Anayverma
Copy link

Hey @meezwhite I would like to work on this issue. Please assign it to me.

@limzykenneth
Copy link
Member

Yes I think that is fine to add, @meezwhite you can go ahead with a PR if you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants