Comparing version
@@ -42,7 +42,9 @@ /** | ||
* @param {number} idx Index of current color | ||
* @param {string[]} [colorList=partyParrotColors] Array of values, defaulting to Parrot | ||
* @return {string} Semicolon-separated cyclical value string | ||
*/ | ||
export const generateRamp = (color, idx, colorList = partyParrotColors) => | ||
[...colorList.slice(idx), ...colorList.slice(0, idx + 1)].join('; '); | ||
export const generateRamp = (color, idx) => | ||
[ | ||
...partyParrotColors.slice(idx), | ||
...partyParrotColors.slice(0, idx + 1) | ||
].join('; '); | ||
@@ -49,0 +51,0 @@ /** |
{ | ||
"name": "d3-party", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "lol.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
107
1.9%4506
-2.15%