Timothy Guan-tin Chien
Timothy Guan-tin Chien
Sorry for the delay, Firefox bug filed https://bugzilla.mozilla.org/show_bug.cgi?id=952909
Maybe your canvas is too big so the resulting pixel size of word to draw need to be big? Maybe your `weightFactor` is set too big? I don't have a...
I don't know how meteor renders canvases on server (maybe w/ a headless WebKit/Chromium?), but I would imagine this issue is still valid.
I am not following ... are you looking at creating a cloud according to the shape drawn by CSS? That would be non-trivial because JavaScript don't have enough layout information...
Ah, that's completely the other way around. What you want is very easy to do by drawing the cloud in a `` and set some style to `div > span`....
Pass a DOM Element object into `elements` argument here: https://github.com/timdream/wordcloud2.js/blob/master/API.md#usage If any of the elements is not a ``, the code will attempt to draw text by appending `` as...
Sorry about the late reply. I agree this feature, but I don't think each of the item should be represented as arrays anymore. How about let's do a little refactor...
Don't think I will be able to work on this anytime soon. I think you are capable of working on this and you should. Thanks for helping out!
The code block in https://timdream.org/wordcloud2.js/#love provides the exact example.
Yes, all the numbers are arbitrarily. It's possible to deduce these scaling factors beforehand definitely by arranging the canvas first without drawing it, but significant work needs to be done...