Skip to content

v0.8.0

Choose a tag to compare

@mthh mthh released this 25 Mar 17:57
· 8 commits to main since this release
  • New: Add 'Observable10' categorical palette from d3-scale-chromatic (fixes #9).

  • New: Add functionality to add custom palette, with addPalette, to the package (fixes #8).
    Note that it allows to handle custom palettes in the same way as the built-in ones, including calling getSequentialColors and getAsymmetricDivergingColors on them, but for the latter to work on all cases (balanced, unbalanced, with central classe or not, etc.), one must have added at least 2 variations of the targeted diverging palettes, one with a central class (and at least a total of 5 colors) and one without (and at least a total of 4 colors).

  • Fix tsconfig.json so it doesn't output unnecessary files in dist folder.

  • Opt for a more compact representation of palettes (fixes #10). The minified dicopal file is now about 150 kB instead of 200 kB.