New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

binguru

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binguru - npm Package Compare versions

Comparing version 1.0.0-alpha.7.0 to 1.0.0-alpha.8.0

dist/index.amd.mjs

13

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc