I have posted a minor update of DistributionBuilder on GitHub. It implements some cosmetic improvement to the DistributionBuilder, and prevents a potential bug in more complicated use cases of the library. If you had downloaded the library, I invite you to update your current version. If you were using the link to the library, the code has been automatically updated, and you can still use the library as you used to!
Detailed changelog:
- The width of the distribution builder is now automatically adjusted
using CSS
flexbox. - The argument
resizeofDistributionBuilder.render()will be deprecated in future versions. For compatibility reasons, using theresizeargument does not raise an error, but it no longer affects the behavior of the distribution builder. - Changed the HTML structure: the
<div class="cell"></div>now includes an inner<div class="ball"></div>. The appearance of the "balls" in the distribution builder can now be changed more easily. - The method
getDistribution()now returns a copy of the current allocation. This is to avoid accidental side-effects.