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 page for CanvasRenderingContext2D.roundRect #29

Merged
merged 3 commits into from
Aug 12, 2021

Conversation

yiyix
Copy link
Contributor

@yiyix yiyix commented Jul 9, 2021

Add a page for CanvasRenderingContext2D.roundRect, the whatwg spec is in progress here: whatwg/html#6765

content/en-US/api/roundRect.md Outdated Show resolved Hide resolved
content/en-US/api/roundRect.md Outdated Show resolved Hide resolved
content/en-US/api/roundRect.md Show resolved Hide resolved
content/en-US/api/roundRect.md Show resolved Hide resolved
Copy link
Contributor

@jpmedley jpmedley left a 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 Show resolved Hide resolved
content/en-US/api/roundRect.md Outdated Show resolved Hide resolved
content/en-US/api/roundRect.md Outdated Show resolved Hide resolved
content/en-US/api/roundRect.md Outdated Show resolved Hide resolved
content/en-US/api/roundRect.md Outdated Show resolved Hide resolved
content/en-US/api/roundRect.md Outdated Show resolved Hide resolved
content/en-US/api/roundRect.md Show resolved Hide resolved
Comment on lines 76 to 77
The following example draws 4 rooundRect with `raddi`'s size equals to 1, 2, 3 or 4 and `r` is in
form of double.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Contributor

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.

Copy link
Contributor Author

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.

content/en-US/api/roundRect.md Outdated Show resolved Hide resolved
@yiyix
Copy link
Contributor Author

yiyix commented Aug 11, 2021

Thank you for the review! I updated the spec according the comments.

@jpmedley jpmedley merged commit fe25fe3 into GoogleChromeLabs:puppy Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants