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

Is there a variable that indicates whether the spreader is on or off? #52

Closed basicavisual closed 7 years ago

basicavisual commented 7 years ago

Is there a variable that indicates whether the spreader is on or off? preferably that throws a boolean. The way currentClick indicates the number in the array that is currently selected.

softwaretailoring commented 7 years ago

There is no such variable, but you can check it in this way:

if (yourwheel.currentPercent === yourwheel.maxPercent) {
    // it's open
}
else {
   // it's closed
}
basicavisual commented 7 years ago

Thank you. You are awesome. I applied it and uploaded a repo with examples included. Find it here.

You can close the issue I left it open just for you to receive the notice.

softwaretailoring commented 7 years ago

You're welcome. Thanks for the link of your repo!