jQuery.awesomeCloud.plugin
jQuery.awesomeCloud.plugin copied to clipboard
Incomplete render
Hi,
Excellent work! Thank you for your contribution!
I'm using it and found that for my list of 10 words, it only renders 7 or 8. I played with all the variables/options your have documented, but I can't make it show the 10 of them.
What is happening?
cheers cesar
Unfortunately, the rendering algorithm isn't perfect - it's a strictly linear system that places each word in whatever order was chosen. If there's no room for a word, it'll get discarded.
I don't currently have a fix for this, but if you can comment here with your word list, I'll see if I can make the rendering a bit more intelligent.
Great work indeed.
I'm also getting the discarded words, when the combination of the size of the font and the length of the tag is too large. As my cloud is 800x600 it often only happens when the word is trying to be displayed vertically, so maybe one small tweak could be to try both vertical and horizontal before deciding a word can't be displayed. As it is, I've set rotationRatio to 0 so it's always horizontal.
It might also be possible to truncate words that don't fit I guess, though this might be annoying, it might be preferable to your largest, most significant tags not being displayed.
Anyway, my 2c, thanks for your excellent work!