Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chroma-js fails to generate colors from a predefined scale #898

Open
eevleevs opened this issue Oct 23, 2024 · 0 comments
Open

chroma-js fails to generate colors from a predefined scale #898

eevleevs opened this issue Oct 23, 2024 · 0 comments

Comments

@eevleevs
Copy link

Since 3.1.1, the following fails in both browser and Deno:

import chroma from 'https://esm.sh/[email protected]'
chroma.scale('Set3').colors(5)

Uncaught TypeError: Cannot read properties of undefined (reading 'slice')
at p (https://esm.sh/v135/[email protected]/denonext/src/utils/unpack.js:2:207)
at Object.test (https://esm.sh/v135/[email protected]/denonext/src/io/rgb.js:2:1254)
at new B (https://esm.sh/v135/[email protected]/denonext/src/generator/scale.js:2:416)
at H (https://esm.sh/v135/[email protected]/denonext/src/generator/scale.js:2:702)
at l (https://esm.sh/v135/[email protected]/denonext/src/generator/scale.js:2:1886)
at https://esm.sh/v135/[email protected]/denonext/src/generator/scale.js:2:3291
at Array.map ()
at Function.l.colors (https://esm.sh/v135/[email protected]/denonext/src/generator/scale.js:2:3284)
at :1:43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant