mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
config redirect
This commit is contained in:
22
node_modules/d3-interpolate/src/value.js
generated
vendored
Normal file
22
node_modules/d3-interpolate/src/value.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import {color} from "d3-color";
|
||||
import rgb from "./rgb.js";
|
||||
import {genericArray} from "./array.js";
|
||||
import date from "./date.js";
|
||||
import number from "./number.js";
|
||||
import object from "./object.js";
|
||||
import string from "./string.js";
|
||||
import constant from "./constant.js";
|
||||
import numberArray, {isNumberArray} from "./numberArray.js";
|
||||
|
||||
export default function(a, b) {
|
||||
var t = typeof b, c;
|
||||
return b == null || t === "boolean" ? constant(b)
|
||||
: (t === "number" ? number
|
||||
: t === "string" ? ((c = color(b)) ? (b = c, rgb) : string)
|
||||
: b instanceof color ? rgb
|
||||
: b instanceof Date ? date
|
||||
: isNumberArray(b) ? numberArray
|
||||
: Array.isArray(b) ? genericArray
|
||||
: typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object
|
||||
: number)(a, b);
|
||||
}
|
||||
Reference in New Issue
Block a user