-
Notifications
You must be signed in to change notification settings - Fork 13
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 page for CanvasRenderingContext2D.roundRect #29
Conversation
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.
This looks pretty good. (Don't let the number of changes fool you. Pro writers don't get off scott free.) I only have two content questions. The rest of typo fixes.
content/en-US/api/roundRect.md
Outdated
The following example draws 4 rooundRect with `raddi`'s size equals to 1, 2, 3 or 4 and `r` is in | ||
form of double. |
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.
The following example draws 4 rooundRect with `raddi`'s size equals to 1, 2, 3 or 4 and `r` is in | |
form of double. | |
The following example draws four `rooundRect` images with `raddi` sizes equal to 1, 2, 3 or 4. `r` is a double. |
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.
I don't understand the 'r' part. I don't see an 'r' in the example below.
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.
ctx.roundRect(50, 50, 100, 100, [20]);
means r = 20, radii = [20]
ctx.roundRect(200, 50, 100, 100, [20, 40]);
means r1 = 20 and r2 =40, radii = [20, 40]
I will add some comments to explain this.
Thank you for the review! I updated the spec according the comments. |
Add a page for CanvasRenderingContext2D.roundRect, the whatwg spec is in progress here: whatwg/html#6765