softwaretailoring / wheelnav

Animated wheel navigation JavaScript library based on Raphaël.js (SVG/VML). It can be a pie menu (radial menu, circular menu) and many more.
https://wheelnavjs.softwaretailoring.net
MIT License
702 stars 101 forks source link

render issues #40

Closed ansari007 closed 7 years ago

ansari007 commented 7 years ago

hey hope your'e doing well, i have 5 items in my wheelnav and i'm giving to each one of them slice angle it's working fine however when i give to a slice an angle bigger than 180 the rendering of wheelnav goes wrong.

softwaretailoring commented 7 years ago

Hi @ansari007 Thanks for your feedback! What types of slicePath did you use? Did you set navItemsContinuous to true? Can you give me a sample code?

ansari007 commented 7 years ago

Hey there's the code i'm using: wheel = new wheelnav("wheelDiv");

wheel.slicePathFunction = slicePath().DonutSlice; wheel.initWheel(["init","sas","dsadas","ad","dsd"]); wheel.navItems[0].sliceAngle =210; wheel.navItems[1].sliceAngle =45; wheel.navItems[2].sliceAngle =45; wheel.navItems[3].sliceAngle =30; wheel.navItems[4].sliceAngle =30; wheel.navItemsContinuous = true;

wheel.createWheel();

result: errorrender

if the value is lower than 180 it's working fine.

Thanks.

softwaretailoring commented 7 years ago

This bug affected Donut, OuterStroke, Pie, Tutorial, Wheel, YinYang slicePaths. I fixed them now.