Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i2ui

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i2ui - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

9

lib/units/emphasizer.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc