d3-flame-graph
Advanced tools
Comparing version 2.0.6 to 2.0.7
{ | ||
"name": "d3-flame-graph", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "A d3.js library to produce flame graphs.", | ||
@@ -5,0 +5,0 @@ "main": "dist/d3-flamegraph.js", |
@@ -36,3 +36,7 @@ import { select } from 'd3-selection' | ||
var getValue = function (d) { | ||
return d.v || d.value | ||
if ('v' in d) { | ||
return d.v | ||
} else { | ||
return d.value | ||
} | ||
} | ||
@@ -49,3 +53,7 @@ | ||
var getDelta = function (d) { | ||
return d.data.d || d.data.delta | ||
if ('d' in d.data) { | ||
return d.data.v | ||
} else { | ||
return d.data.delta | ||
} | ||
} | ||
@@ -564,4 +572,3 @@ | ||
// This line is invalid - root is a d3 node, while getValue() expects data item. Will address in next patch. | ||
totalValue = getValue(root) | ||
totalValue = root.value | ||
@@ -568,0 +575,0 @@ selection = s.datum(root) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
9386