Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@neuprint/heatmap

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neuprint/heatmap - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

5

lib/index.js

@@ -87,3 +87,4 @@ "use strict";

onMouseOver = this.onMouseOver,
onMouseOut = this.onMouseOut; // remove any previously rendered items
onMouseOut = this.onMouseOut,
maxColor = this.maxColor; // remove any previously rendered items

@@ -107,3 +108,3 @@ var existingSVGs = target.getElementsByTagName('svg');

}, 0);
var colorScale = d3.scaleLog().range(["white", DEFAULT_MAX_COLOR]).domain([1, maxValue]);
var colorScale = d3.scaleLog().range(["white", maxColor]).domain([1, maxValue]);
var columns = this.xLabels;

@@ -110,0 +111,0 @@ var rows = this.yLabels;

2

package.json
{
"name": "@neuprint/heatmap",
"version": "0.2.0",
"version": "0.2.1",
"description": "Produces an SVG heat map when provided with a data grid.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -88,3 +88,3 @@ import * as d3 from "d3";

render(target) {
const { onClick, onMouseOver, onMouseOut } = this;
const { onClick, onMouseOver, onMouseOut, maxColor } = this;
// remove any previously rendered items

@@ -107,3 +107,3 @@ const existingSVGs = target.getElementsByTagName('svg');

.scaleLog()
.range(["white", DEFAULT_MAX_COLOR])
.range(["white", maxColor])
.domain([1, maxValue]);

@@ -110,0 +110,0 @@

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