@fishawack/lab-d3
Advanced tools
Comparing version 2.5.0 to 2.5.1
{ | ||
"name": "@fishawack/lab-d3", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "Abstract layer built on top of d3", | ||
@@ -5,0 +5,0 @@ "vars": { |
@@ -233,2 +233,5 @@ ## Background | ||
### 2.5.1 | ||
* Fixed bug in Brush where it wouldn't parse date on first call | ||
### 2.5.0 | ||
@@ -235,0 +238,0 @@ * Brush no longer formats date on callback |
@@ -103,3 +103,3 @@ "use strict"; | ||
if (d3.select(currentEvent.target).classed("overlay")) { | ||
var dx = local.scale.x(att.parseDate(data[0].value[1])) - local.scale.x(att.parseDate(data[0].value[0])), | ||
var dx = local.scale.x(data[0].value[1]) - local.scale.x(data[0].value[0]), | ||
cx = d3.mouse(node[0])[0], | ||
@@ -141,3 +141,4 @@ x0 = cx - dx / 2, | ||
if (data[0].value[0]) { | ||
range.push(local.scale.x(att.parseDate(data[0].value[0]))); | ||
data[0].value[0] = att.parseDate(data[0].value[0]); | ||
range.push(local.scale.x(data[0].value[0])); | ||
} else { | ||
@@ -148,3 +149,4 @@ range.push(0); | ||
if (data[0].value[1]) { | ||
range.push(local.scale.x(att.parseDate(data[0].value[1]))); | ||
data[0].value[1] = att.parseDate(data[0].value[1]); | ||
range.push(local.scale.x(data[0].value[1])); | ||
} else { | ||
@@ -151,0 +153,0 @@ range.push(local.width); |
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
560443
5418
550