color.js
color.js copied to clipboard
parseCoord in https://colorjs.io/dist/color.esm.js references Color. instead of Color$1.
Hello,
i took https://colorjs.io/dist/color.esm.js (as instructed on https://colorjs.io/get/ ), and ran into a problem:
function parseCoord(coord) {
if (coord.indexOf(".") > 0) {
// Reduce a coordinate of a certain color space until the color is in gamut
let [spaceId, coordName] = coord.split(".");
let space = Color.space(spaceId);
that Color.space should be Color$1.space, me thinks. The same problem exists in the color.js (without .esm).
Thank you for the project, this is going to help a lot.
Regards, Uwe