@flourish/colors
Advanced tools
Comparing version 6.1.1 to 6.1.2
{ | ||
"name": "@flourish/colors", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "Adds color settings", | ||
@@ -5,0 +5,0 @@ "main": "colors.js", |
@@ -0,1 +1,4 @@ | ||
# 6.1.2 | ||
* Set categorical color scales for all non-numeric typed domains | ||
# 6.1.1 | ||
@@ -5,3 +8,3 @@ * Fix custom binning issue | ||
# 6.1.0 | ||
* Add tags to settings | ||
* Add tags to settings [BREAKING: only compatible with typed templates] | ||
@@ -62,2 +65,2 @@ # 6.0.0 | ||
# 0.9.0 | ||
* First published version | ||
* First published version |
@@ -17,3 +17,3 @@ import { DEFAULTS, DEFAULT_FALLBACK_VALUE } from "./defaults"; | ||
var updateColorScale = function(values) { | ||
if (typeof values[0] === "string") colorFunction = getCategoricalFunction(state, values); | ||
if (typeof values[0] != "number") colorFunction = getCategoricalFunction(state, values); | ||
else if (state.numeric_type === "sequential") colorFunction = getSequentialFunction(state, values); | ||
@@ -20,0 +20,0 @@ else if (state.numeric_type === "diverging") colorFunction = getDivergingFunction(state, values); |
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
130161