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

feat(shape/sector): support cornnerRadius & innerCornerRadius. #643

Merged
merged 6 commits into from
Oct 6, 2020

Conversation

plainheart
Copy link
Collaborator

For the PR on ECharts apache/echarts#13378

@pissang
Copy link
Contributor

pissang commented Sep 30, 2020

I'm not sure but I suppose the code of calculating the round corner can be simplified with a neat formula.

The code in d3-shape(Also has cornerRadius) seems to be much simpler. https://github.com/d3/d3-shape/blob/master/src/arc.js#L116

@plainheart
Copy link
Collaborator Author

plainheart commented Oct 1, 2020

Thanks a lot. That's neater and more simple indeed. I've simplified related logic in this commit 7f66d8f.

Just found innerCornerRadius wasn't working, will fix it later. (Fixed in commit 8df0f91)

@pissang pissang merged commit cf07c00 into ecomfe:next Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants