@neuprint/heatmap
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -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; |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18732
386