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(sector): enhance sector corner radius to support configuring any one corner. #865

Merged
merged 16 commits into from
Jan 7, 2022

Conversation

plainheart
Copy link
Collaborator

The corner radius for the sector has been supported since v5, but it was limited to a pair of corners, either an inner pair or an outer pair. I can remember @Ovilia asked about it at that time.

This PR enhances this feature so that we can configure the radius of four corners at will. As shown below, the sector has four different corner radius.

A related test case is sector.html.


Moreover, in commit 53819e9, I tweaked the watch script to process lib extension immediately after the source was compiled.

Copy link
Member

@Ovilia Ovilia left a comment

Choose a reason for hiding this comment

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

So glad to see this PR. Two minor comments which I am not very sure of. @pissang Please have a double check.

src/graphic/helper/roundSector.ts Show resolved Hide resolved
src/graphic/shape/Sector.ts Show resolved Hide resolved
@pissang pissang merged commit db0029f into next Jan 7, 2022
@pissang pissang deleted the enhance-sector-corner-radius branch January 7, 2022 08:29
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.

None yet

3 participants