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

@palett/util-fluo

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@palett/util-fluo - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

18

dist/index.cjs.js

@@ -33,3 +33,3 @@ 'use strict';

const scale = (x, min, lever, base, ceil) => comparer.min((comparer.max(x, min) - min) * lever + base, ceil);
const dyeBlender = function (x) {
const projectDye = function (x) {
var _ref;

@@ -52,3 +52,3 @@

const BlendDye = (valueLeap, colorLeap) => dyeBlender.bind({
const Projector = (valueLeap, colorLeap) => projectDye.bind({
min: valueLeap.min,

@@ -114,3 +114,3 @@ lever: leverage(colorLeap.dif, valueLeap.dif),

function prepDye(valueBound, positivePreset, negativePreset) {
function Dyer(valueBound, positivePreset, negativePreset) {
const {

@@ -145,7 +145,7 @@ colorant,

} else {
const xdye = BlendDye({
const xdye = Projector({
dif: max,
min: 0
}, x.leap);
const ydye = BlendDye({
const ydye = Projector({
dif: 0 - min,

@@ -181,3 +181,3 @@ min: min

const valueBound = bound.call(NL, items);
const dye = prepDye.call({
const dye = Dyer.call({
colorant

@@ -204,3 +204,3 @@ }, valueBound, positivePreset, negativePreset);

const valueBound = bound.call(NL, values);
const dye = prepDye.call({
const dye = Dyer.call({
colorant,

@@ -239,4 +239,5 @@ zipper

exports.BlendDye = BlendDye;
exports.BlendDye = Projector;
exports.NL = NL;
exports.Projector = Projector;
exports.dyemap = dyemap;

@@ -248,3 +249,4 @@ exports.dyezip = dyezip;

exports.leverage = leverage;
exports.parseHsl = parseHsl;
exports.presetToFlat = presetToFlat;
exports.presetToLeap = presetToLeap;

@@ -29,3 +29,3 @@ import { STRICT } from '@typen/enum-check-levels';

const scale = (x, min$1, lever, base, ceil) => min((max(x, min$1) - min$1) * lever + base, ceil);
const dyeBlender = function (x) {
const projectDye = function (x) {
var _ref;

@@ -48,3 +48,3 @@

const BlendDye = (valueLeap, colorLeap) => dyeBlender.bind({
const Projector = (valueLeap, colorLeap) => projectDye.bind({
min: valueLeap.min,

@@ -110,3 +110,3 @@ lever: leverage(colorLeap.dif, valueLeap.dif),

function prepDye(valueBound, positivePreset, negativePreset) {
function Dyer(valueBound, positivePreset, negativePreset) {
const {

@@ -141,7 +141,7 @@ colorant,

} else {
const xdye = BlendDye({
const xdye = Projector({
dif: max,
min: 0
}, x.leap);
const ydye = BlendDye({
const ydye = Projector({
dif: 0 - min,

@@ -177,3 +177,3 @@ min: min

const valueBound = bound$1.call(NL, items);
const dye = prepDye.call({
const dye = Dyer.call({
colorant

@@ -200,3 +200,3 @@ }, valueBound, positivePreset, negativePreset);

const valueBound = bound$1.call(NL, values);
const dye = prepDye.call({
const dye = Dyer.call({
colorant,

@@ -235,2 +235,2 @@ zipper: zipper$1

export { BlendDye, NL, dyemap, dyezip, fluo, fluo as fluoZip, hslToDye, leverage, presetToFlat, presetToLeap };
export { Projector as BlendDye, NL, Projector, dyemap, dyezip, fluo, fluo as fluoZip, hslToDye, leverage, parseHsl, presetToFlat, presetToLeap };
{
"name": "@palett/util-fluo",
"version": "0.2.0",
"version": "0.2.1",
"description": "A colorant to string",

@@ -18,8 +18,8 @@ "main": "dist/index.cjs.js",

"dependencies": {
"@aryth/bound-vector": "^0.1.12",
"@aryth/comparer": "^0.1.12",
"@palett/convert": "^0.2.0",
"@palett/dye": "^0.2.0",
"@typen/enum-check-levels": "^0.1.3",
"@typen/num-strict": "^0.1.3",
"@aryth/bound-vector": "^0.2.2",
"@aryth/comparer": "^0.2.2",
"@palett/convert": "^0.2.1",
"@palett/dye": "^0.2.1",
"@typen/enum-check-levels": "^0.1.4",
"@typen/num-strict": "^0.1.4",
"@vect/vector-mapper": "^0.2.4",

@@ -46,3 +46,3 @@ "@vect/vector-zipper": "^0.2.4"

"homepage": "https://github.com/hoyeungw/palett/util-fluo#readme",
"gitHead": "acea3e999df4d67303b6d04c7b713849a943b74c"
"gitHead": "17c93b083ff7a1a795b1ff9fe4df42a894669d22"
}
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