Skip to content

Add corner radius for Regular Polygon#1940

Merged
lavrton merged 5 commits intokonvajs:masterfrom
Caden-Hornyak:feature/regular-polygon-corner-radius
Aug 11, 2025
Merged

Add corner radius for Regular Polygon#1940
lavrton merged 5 commits intokonvajs:masterfrom
Caden-Hornyak:feature/regular-polygon-corner-radius

Conversation

@Caden-Hornyak
Copy link
Copy Markdown
Contributor

This PR adds support for rounded corners to the Regular Polygon. It mimics the Rectangle's corner radius behavior through taking a number or array of numbers and maxes out at 1/2 radius which makes the polygon a perfect circle.

I personally needed this for a nicely rounded playback button and was surprised the functionality did not already exist.

@lavrton
Copy link
Copy Markdown
Member

lavrton commented Jun 30, 2025

@Caden-Hornyak can you please check the test?

@Caden-Hornyak
Copy link
Copy Markdown
Contributor Author

I corrected the bugged test, let me know if anything else needs fixing!

@lavrton lavrton merged commit 7b9ccd1 into konvajs:master Aug 11, 2025
2 checks passed
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