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

Image as Spreader Background ? #57

Closed DylanCa closed 7 years ago

DylanCa commented 7 years ago

Hi,

I was wondering if I can put a custom image as the Spreader, and if I can modify it later using JS ? I know I can put an icon instead of the SpreaderTitle, but I need an image there actually.

Thank you !

softwaretailoring commented 7 years ago

You can find a sample for this in index.html of this repo.

DylanCa commented 7 years ago

Awesome ! And about dynamically modifying the spreaderTitle image ? I assume I have to reassign the wheel.spreaderInTitle / .spreaderOutTitle, but I can't find a way to "refresh" the wheel in order to display the new image .. Got an Idea ?

EDIT : Nevermind, managed to do it :) thank you once again !

elvis7449 commented 7 years ago

Mind telling what you did? :p

softwaretailoring commented 7 years ago

wheel.spreader.inTitle.src = "icon.png";