Bdaya-Dev / circular-widgets

Display widgets in a circle.
BSD 2-Clause "Simplified" License
9 stars 2 forks source link

Add possibility to set _startAngle and _itemSpacing #2

Closed baptistesx closed 2 years ago

baptistesx commented 2 years ago

I'd like to divide widgets only around the bottom half of a circle. I checked the code and I think it might be possible to do it if we can pass _startAngle as parameter and change the 360 value in the _itemSpacing formula? To finally get something like this: image

ahmednfwela commented 2 years ago

This is definitely doable in this library, I just need to figure out the math for it will start working on it soon

ahmednfwela commented 2 years ago

V 2.1.0 handles this now. I also added the ability to change draw direction, please check the example project.

baptistesx commented 2 years ago

Awesome thanks, I'll check that out !