Comparing version 0.0.3 to 0.0.4
@@ -8,2 +8,3 @@ "use strict"; | ||
} | ||
// todo: test from == to, fromRate == toRate | ||
// returns rated value | ||
@@ -30,6 +31,6 @@ Emphasizer.number = function (fromValue, toValue, fromRate, toRate, rate) { | ||
var to = new jolor_1.Color(toValue); | ||
var r = Emphasizer.number(from.rgbObject.r, to.rgbObject.r, fromRate, toRate, rate); | ||
var g = Emphasizer.number(from.rgbObject.g, to.rgbObject.g, fromRate, toRate, rate); | ||
var b = Emphasizer.number(from.rgbObject.b, to.rgbObject.b, fromRate, toRate, rate); | ||
var a = Emphasizer.number(from.opacity, to.opacity, fromRate, toRate, rate); | ||
var r = Math.round(Emphasizer.number(from.rgbObject.r, to.rgbObject.r, fromRate, toRate, rate)); | ||
var g = Math.round(Emphasizer.number(from.rgbObject.g, to.rgbObject.g, fromRate, toRate, rate)); | ||
var b = Math.round(Emphasizer.number(from.rgbObject.b, to.rgbObject.b, fromRate, toRate, rate)); | ||
var a = Math.round(Emphasizer.number(from.opacity, to.opacity, fromRate, toRate, rate)); | ||
return jolor_1.toHex(r, g, b, a) || fromValue; | ||
@@ -36,0 +37,0 @@ }; |
{ | ||
"name": "i2ui", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.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
10486
216