Closed johnsoncze closed 5 years ago
Hi, thanks for reporting! Maybe the value between minSize
and maxSize
would be even better. Could you make a PR?
What about something like defaultSize
prop that will be used in this case. Or what about don't set size when min
and max
are same? I will make a PR, but before that I want to discuss it :) Thanks
I wouldn't add a new prop for such edge case. Setting it to max is alright, but I think max + min / 2
would be a reasonable compromise :)
Hi,
when tags contains only tags with same count, calculation of tag size contains division by zero https://github.com/madox2/react-tagcloud/blob/master/lib/tag-cloud.js#L37
Would be nice to return maxSize when min and max are same.