color-octree
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -206,3 +206,3 @@ 'use strict'; | ||
return _objectSpread({}, best, { | ||
d: minDist | ||
d: minDist ** 0.5 | ||
}); | ||
@@ -209,0 +209,0 @@ }; |
@@ -202,3 +202,3 @@ function _defineProperty(obj, key, value) { | ||
return _objectSpread({}, best, { | ||
d: minDist | ||
d: minDist ** 0.5 | ||
}); | ||
@@ -205,0 +205,0 @@ }; |
@@ -208,3 +208,3 @@ (function (global, factory) { | ||
return _objectSpread({}, best, { | ||
d: minDist | ||
d: minDist ** 0.5 | ||
}); | ||
@@ -211,0 +211,0 @@ }; |
@@ -122,3 +122,3 @@ export const parseHex = hex => | ||
}); | ||
return { ...best, d: minDist }; | ||
return { ...best, d: minDist ** 0.5 }; | ||
}; |
{ | ||
"name": "color-octree", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Get closest hex color", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21525