Closed mgudesblatart closed 5 years ago
Hi @mgudesblatart
You have to use the navItemsContinuous
property in initSubWheel
.
sub_wheel.navAngle = nav_angle-30;
sub_wheel.sliceAngle = 30;
sub_wheel.navItemsContinuous = true;
Here is my modified bin: https://jsbin.com/bicunuqexu/edit?js,output
P.S. I've also answered this in Stack Overflow.
P.S. 2 Sorry for the late response, I'm on holiday now. I hope you can use this solution anyway.
@softwaretailoring Thank you!
Hello!
This is my code for demonstration purposes https://jsbin.com/mugosec/65/edit?js,output
This is what I am trying to acheive: If I click on the inner circle, I want the visible nav items of the outer circle to center to the inner circle's nav item. So far I can successfully and consistently have the outer circle navItems start at the start of the inner circle nav item. I use the inner circle navitem's baseAngle + the outer circle's visible navItems degrees to arrange my outer circle appropriately.
If I adjust the variables
sub_wheel_var
andwheel_var
from:to:
I can have the OuterCircleNav start at the middle of the ICNI.
What I really would like to do is to have the OCN's middle match the ICNI's middle.
Doing this:
Allows me to get close. The issue is that it's not quite accurate!!!! And no matter what I do, I can't get it to be dead center.
To mess around with the code easier, I've also added variables
sections
andextras
to make it easier to add additional sections or additional outer nav elements respectively. Ive found that if I can get something working for one combination of sections and extras, a different combination will be skewed. I know that the answer lies in how I am calculatingy
, orsubWheelSliceAngle
, orsub_wheel_var
.Once more you may view the code here: https://jsbin.com/mugosec/65/edit?js,output
I would absolutely appreciate any and all help.
Thank you so much.
P.S. I've also posted this question in stack overflow. https://stackoverflow.com/questions/56799110/align-outer-cricles-navigation-to-inner-circles-selected-navigation