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
Identity transformation #65
Comments
Feel free to PR :) |
Hi, I forked the project and made a stab at the changes (fork) but I've two failing tests... lines 118 and 120 in test/basic.js. assert.deepStrictEqual(convert.ansi16.ansi16(103), 103); But I'm afraid my javascript isn't yet up to diagnosing why. Would you have a little time to take a look (no rush!). I wouldn't be comfortable doing a PR without the tests. Thanks, |
Feel free to open a PR and I can take a look, even if the tests are failing :) |
PR #66 created (failing tests commented out for now). I'll close this issue and we can continue on the PR? |
Nah we'll leave this open until it's done :) |
's been a while, anything I can do to progress this? |
Hi,
I started using your library to convert from an undefined source to hsv. Without thinking I ended up coding a colorConvert.hsv.hsv conversion, which obviously doesn't exist. Would it be possible/reasonable to add a a no-op or identity transformation (ie output = input) when source and destination during the route construction?
At the moment I've trapped it an dealt with it specially, but it would be really nice not to have to have different code in the transformation path :)
Thoughts?
The text was updated successfully, but these errors were encountered: