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

getAlpha() class method is missing #89

Closed
c0bra opened this issue Nov 30, 2018 · 2 comments
Closed

getAlpha() class method is missing #89

c0bra opened this issue Nov 30, 2018 · 2 comments
Labels

Comments

@c0bra
Copy link

c0bra commented Nov 30, 2018

^ title says it all

@mikaello
Copy link
Collaborator

mikaello commented Mar 2, 2019

It seems as you can just refer to alpha as a directly from the TinyColor-object, from the tests:

const hexSetter = new TinyColor('rgba(255, 0, 0, 1)');

// Alpha should start as 1
expect(hexSetter.a).toBe(1);

hexSetter.setAlpha(0.5);
// setAlpha should change alpha value
expect(hexSetter.a).toBe(0.5);

Anyways, for backwards compatibility I guess it would be nice to have getAlpha(), so either it should be added, or getAlpha() should be removed from the documentation.

@scttcper
Copy link
Owner

scttcper commented Mar 3, 2019

🎉 This issue has been resolved in version 2.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

No branches or pull requests

3 participants