jasondavies / d3-cloud

Create word clouds in JavaScript.
https://www.jasondavies.com/wordcloud/
Other
3.82k stars 1.07k forks source link

Not possible to have anonymous function for padding #125

Closed tomas-lumi closed 6 years ago

tomas-lumi commented 7 years ago

We are using version 4.8.0 of d3 and 1.2.4 of d3-cloud. If we use an anonymous function for the padding the words start to overlap. If we use an integer the word no not overlap, this seems to be a bug. The documentation says that you can use an accessor function for the padding.

jasondavies commented 7 years ago

Can you provide an example? Seems to work fine for me.