zverok / magic_cloud

Simple pretty word cloud for Ruby
MIT License
85 stars 27 forks source link

FIX FloatDomainError (NaN) error #22

Closed rafeequl closed 1 month ago

rafeequl commented 3 months ago

This adjusted version checks if smin equals smax and, if so, returns a function that assigns every word the minimum font size, effectively skipping the scaling process and avoiding the division by zero error.

it is related to #21

zverok commented 1 month ago

Thank you!

zverok commented 1 month ago

Released as 0.0.5