Skip to content

2.4.3

Latest

Choose a tag to compare

@gampleman gampleman released this 16 Jun 08:35
· 17 commits to master since this release

This patch releases fixes several bugs:

  • Interpolation.float from to t will now return exactly to when t = 1. Before, the value returned could be affected by numerical instability in floating point numbers (more likely with very large or very small numbers). This should have very little practical impact on any visualizations out there, but it does make our fuzz tests not flakey, so it's a good development improvement.

  • Hierarchy.tidy will now distribute space between siblings better in some situations:
    tree-comparison

    This was a bug where one of the branches in the original algorithm was unreachable due to an off by one error. This may have some impact on trees layed out with Hierarchy.tidy, so please check them after upgrading. Thanks to @hinneburg for reporting this issue.

  • Interpolations using Interpolation.hcl or Interpolation.hclLong will no longer loose their Chroma component when interpolating grey values. For example, interpolating Interpolation.hcl (Color.rgb255 255 0 0) (Color.rgb 128 128 128) (red to gray) would before lead to:

    Screenshot 2026-06-16 at 09 23 32

    but now renders as

    Screenshot 2026-06-16 at 09 23 51

    However it is worth noting that white and black in HCL color spaces have undefined values (represented as NaN) for both hue and chroma. This can lead to unexpected results interpolating those colors. This page explains the problem well.

  • Minor typos in the documentation were fixed. Thanks @happyraul.

We also did some housekeeping:

  • We've completely rewritten elm-example-publisher and upgraded all of its dependencies. This will speed up our documentation website builds and allow us to maintain that part of our documentation for the future.
  • Most of our own dev dependencies have been upgraded.
  • We've bumped the supported version range of elm-geometry.