@rc-component/color-picker
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -86,3 +86,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
var hsb = colorValue.toHsb(); | ||
hsb.a = Math.round(alpha * 100) / 100; | ||
hsb.a = Math.round(alpha) / 100; | ||
return new Color(hsb); | ||
@@ -89,0 +89,0 @@ }; |
@@ -23,3 +23,3 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; | ||
var getValue = function getValue(c) { | ||
return type === 'hue' ? c.getHue() : c.getAlpha(); | ||
return type === 'hue' ? c.getHue() : c.getAlpha() * 100; | ||
}; | ||
@@ -26,0 +26,0 @@ var onDragChange = useEvent(function (offsetValue) { |
@@ -94,3 +94,3 @@ "use strict"; | ||
var hsb = colorValue.toHsb(); | ||
hsb.a = Math.round(alpha * 100) / 100; | ||
hsb.a = Math.round(alpha) / 100; | ||
return new _color.Color(hsb); | ||
@@ -97,0 +97,0 @@ }; |
@@ -31,3 +31,3 @@ "use strict"; | ||
var getValue = function getValue(c) { | ||
return type === 'hue' ? c.getHue() : c.getAlpha(); | ||
return type === 'hue' ? c.getHue() : c.getAlpha() * 100; | ||
}; | ||
@@ -34,0 +34,0 @@ var onDragChange = (0, _rcUtil.useEvent)(function (offsetValue) { |
{ | ||
"name": "@rc-component/color-picker", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "React Color Picker", | ||
@@ -5,0 +5,0 @@ "keywords": [ |