Skip to content

Commit

Permalink
hotfix for colorschemes
Browse files Browse the repository at this point in the history
  • Loading branch information
bmschmidt committed Jun 20, 2024
1 parent 0d4d81f commit 40e3c58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aesthetics/ColorAesthetic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ const d3Interpolators = [
for (const interpolator of d3Interpolators) {
const name = interpolator.replace('interpolate', '').toLowerCase();
const v = d3Chromatic[interpolator];
color_palettes[name] = materialize_color_interpolator(v);
const materialized = materialize_color_interpolator(v);
color_palettes[name] = materialized;
color_palettes[name.toLowerCase()] = materialized;
if (name === 'rainbow') {
// Deterministic random shuffle orders
const shuffle = shuffler(randomLcg(1));
Expand Down

0 comments on commit 40e3c58

Please sign in to comment.