Skip to content

fix: convert tol to float#75

Merged
ericdeansanchez merged 1 commit into
masterfrom
float-tolerance
May 29, 2020
Merged

fix: convert tol to float#75
ericdeansanchez merged 1 commit into
masterfrom
float-tolerance

Conversation

@ericdeansanchez
Copy link
Copy Markdown
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 963637a into master May 29, 2020
@ericdeansanchez ericdeansanchez deleted the float-tolerance branch May 29, 2020 17:49
@ericdeansanchez ericdeansanchez changed the title refactor: convert tol to float fix: convert tol to 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.

2 participants