Comparing version 1.0.0-alpha.7.0 to 1.0.0-alpha.8.0
{ | ||
"name": "binguru", | ||
"version": "1.0.0-alpha.7.0", | ||
"version": "1.0.0-alpha.8.0", | ||
"description": "BinGuru is a Javascript package with an API to several established data binning / data classification methods, often used for visualizing data on choropleth maps. It also includes an implementation of a new, consensus binning method, 'Resiliency'.", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"main": "dist/index.mjs", | ||
"exports": { | ||
".": "./dist/index.mjs", | ||
"./cjs": "./dist/index.cjs", | ||
"./es": "./dist/index.mjs", | ||
"./amd": "./dist/index.amd.mjs", | ||
"./umd": "./dist/index.umd.mjs" | ||
}, | ||
"type": "module", | ||
"scripts": { | ||
@@ -8,0 +15,0 @@ "test": "echo \"Error: no test specified\" && exit 1", |
@@ -26,3 +26,3 @@ /*********************************************************** | ||
export const GEOMETRIC_INTERVAL = "geometricInterval"; | ||
export const LOGRITHMIC_INTERVAL = "logarithmicInterval"; | ||
export const LOGARITHMIC_INTERVAL = "logarithmicInterval"; | ||
export const UNCLASSED = "unclassed"; | ||
@@ -563,3 +563,3 @@ export const UNIQUE = "unique"; | ||
*/ | ||
logarithmicInterval(logBase:number|string='auto'): object { | ||
logarithmicInterval(logBase:number|string='auto') { | ||
let context = this; | ||
@@ -980,5 +980,5 @@ let binBreaks: number[] = []; | ||
case LOGRITHMIC_INTERVAL: | ||
case LOGARITHMIC_INTERVAL: | ||
binObj = context.logarithmicInterval(); | ||
binObjs[LOGRITHMIC_INTERVAL] = JSON.parse(JSON.stringify(binObj)); | ||
binObjs[LOGARITHMIC_INTERVAL] = JSON.parse(JSON.stringify(binObj)); | ||
break; | ||
@@ -1295,3 +1295,3 @@ | ||
"tooltip": { "content": "data" } | ||
}, | ||
} as any, | ||
"transform": [{ | ||
@@ -1387,2 +1387,26 @@ "filter": "datum.binSize != 0" | ||
if(binningMethodName == UNCLASSED){ | ||
delete vlSpec["layer"][0]["encoding"]["color"]; | ||
vlSpec["layer"][0]["mark"]["color"] = { | ||
"x1": 0, | ||
"y1": 0, | ||
"x2": 1, | ||
"y2": 0, | ||
"gradient": "linear", | ||
"stops": [ | ||
{"offset": 0, "color": "#440154"}, | ||
{"offset": 0.1, "color": "#48186a"}, | ||
{"offset": 0.2, "color": "#472d7b"}, | ||
{"offset": 0.3, "color": "#424086"}, | ||
{"offset": 0.4, "color": "#3b528b"}, | ||
{"offset": 0.5, "color": "#33638d"}, | ||
{"offset": 0.6, "color": "#2c728e"}, | ||
{"offset": 0.7, "color": "#26828e"}, | ||
{"offset": 0.8, "color": "#21918c"}, | ||
{"offset": 0.9, "color": "#21a784"}, | ||
{"offset": 1, "color": "#29b872"} | ||
] | ||
} | ||
} | ||
return vlSpec; | ||
@@ -1389,0 +1413,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
286739
6099
Yes
1