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

refactor: change tolerance from int -> float #59

Merged
merged 1 commit into from
May 29, 2020

Conversation

ericdeansanchez
Copy link
Contributor

Prior to this PR, width tolerance was expected to be of type int
and within the range of [1, 100] or "one to one hundred percent."
Now, tol is expected to be a float in the range [0.01, 1.0] which
also represents "one to one hundred percent."

We have done this for consistency purposes, i.e. imgix-core-js uses
floating point values. Since imgix-core-js was impl'd first, we defer
to this tried/tested interface. This way, this feature is standard
and consistent kit-wide.

@ericdeansanchez ericdeansanchez merged commit db593b4 into master May 29, 2020
@ericdeansanchez ericdeansanchez deleted the float-tolerance branch May 29, 2020 20:43
@ericdeansanchez ericdeansanchez changed the title refactor: change tolerance from int -> float fix: change tolerance from int -> float Jun 5, 2020
@ericdeansanchez ericdeansanchez changed the title fix: change tolerance from int -> float refactor: change tolerance from int -> float Jun 5, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants