color.js icon indicating copy to clipboard operation
color.js copied to clipboard

parseCoord in https://colorjs.io/dist/color.esm.js references Color. instead of Color$1.

Open UweOhse opened this issue 4 years ago • 0 comments

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

UweOhse avatar Jan 24 '22 15:01 UweOhse