Open JacquiManzi opened 10 years ago
Yes, hover
only works with an word cloud on canvas. You don't need that callback if you are using HTML I think.
You are free to either fix it or update the documentation (if I didn't add it). Thanks.
I updated the documentation and will look into a fix when I get the chance, thanks for the reply!
Merged in #29.
I am tempted to close this as WONTFIX but let's leave it open for now.
Thank you for your pull request BTW!
I am getting a Uncaught TypeError: Cannot read property 'NaN' of undefined when using the hover callback.
Digging into the code I see this:
In my particular case,
var canvas = evt.target;
is not an HTML5 canvas element and does not have a.width
or.height
property. This does work if I place my word cloud in an HTML5 canvas, however.