-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Add example demonstrating creating and copying Path2D paths #42532
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
base: main
Are you sure you want to change the base?
Conversation
| First, `path1` creates a rectangle. | ||
| Then, `path2` is created as a copy of `path1`. | ||
| After that, `path2` is extended with a circle. |
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.
[mdn-linter] reported by reviewdog 🐶
| First, `path1` creates a rectangle. | |
| Then, `path2` is created as a copy of `path1`. | |
| After that, `path2` is extended with a circle. | |
| First, `path1` creates a rectangle. | |
| Then, `path2` is created as a copy of `path1`. | |
| After that, `path2` is extended with a circle. |
|
|
||
| ctx.stroke(path2); | ||
| ``` | ||
| ## Specifications |
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.
[mdn-linter] reported by reviewdog 🐶
| ## Specifications | |
| ## Specifications |
| ## See also | ||
|
|
||
| - {{domxref("CanvasRenderingContext2D")}} | ||
|
|
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.
[mdn-linter] reported by reviewdog 🐶
|
Hi maintainers, I’ve verified locally that there are no markdown, front-matter, or Prettier lint issues. Please let me know if any changes are needed from my side. Thanks! |
|
Preview URLs |
This PR adds an example demonstrating how to create and copy Path2D paths.
Re-opening after an accidental branch reset while rebasing onto the latest main.
The content change itself is unchanged.
Happy to iterate based on feedback.
Fixes #41793