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 doublet 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.
Prior to this PR, width
tol
erance was expected to be of typeint
and within the range of[1, 100]
or "one to one hundred percent." Now,tol
is expected to be adoublet
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.