@palett/util-fluo
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -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" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15087
405
0
+ Added@aryth/bound-vector@0.2.14(transitive)
+ Added@aryth/comparer@0.2.14(transitive)
+ Added@aryth/util-bound@0.2.14(transitive)
+ Added@ject/oneself@0.0.6(transitive)
+ Added@spare/regex-charset@0.13.16(transitive)
+ Added@spare/string-value@0.8.16(transitive)
+ Added@typen/literal@0.1.19(transitive)
- Removed@aryth/bound-vector@0.1.14(transitive)
- Removed@aryth/comparer@0.1.14(transitive)
- Removed@aryth/util-bound@0.1.14(transitive)
Updated@aryth/bound-vector@^0.2.2
Updated@aryth/comparer@^0.2.2
Updated@palett/convert@^0.2.1
Updated@palett/dye@^0.2.1
Updated@typen/num-strict@^0.1.4