d3-flame-graph
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "d3-flame-graph", | ||
"version": "0.4.2", | ||
"homepage": "https://github.com/spiermar/d3-flame-graph", | ||
@@ -9,3 +8,6 @@ "authors": [ | ||
"description": "A d3.js library to produce flame graphs.", | ||
"main": "src/d3.flame.js", | ||
"main": [ | ||
"src/d3.flameGraph.js", | ||
"src/d3.flameGraph.css" | ||
], | ||
"keywords": [ | ||
@@ -30,7 +32,4 @@ "flame", | ||
"d3-tip": "~0.7.1", | ||
"lodash": "~3.10.1" | ||
}, | ||
"resolutions": { | ||
"d3": "4.8.0" | ||
"lodash": "~4.17.4" | ||
} | ||
} |
{ | ||
"name": "d3-flame-graph", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A d3.js library to produce flame graphs.", | ||
@@ -31,18 +31,20 @@ "main": "src/d3.flame.js", | ||
"devDependencies": { | ||
"browser-sync": "^2.9.10", | ||
"browserify": "^11.2.0", | ||
"del": "^2.0.2", | ||
"gulp": "^3.9.0", | ||
"gulp-concat": "^2.6.0", | ||
"gulp-jshint": "^1.11.2", | ||
"gulp-minify-css": "^1.2.1", | ||
"gulp-notify": "^2.2.0", | ||
"browser-sync": "^2.18.13", | ||
"browserify": "^14.4.0", | ||
"del": "^3.0.0", | ||
"gulp": "^3.9.1", | ||
"gulp-concat": "^2.6.1", | ||
"gulp-jshint": "^2.0.4", | ||
"gulp-minify-css": "^1.2.4", | ||
"gulp-notify": "^3.0.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-uglify": "^1.4.1", | ||
"jshint-stylish": "^2.0.1", | ||
"mocha": "^2.3.3" | ||
"gulp-uglify": "^3.0.0", | ||
"jshint": "^2.9.5", | ||
"jshint-stylish": "^2.2.1", | ||
"mocha": "^3.5.0" | ||
}, | ||
"dependencies": { | ||
"d3": "^3.5.6" | ||
"d3": "^4.10.0", | ||
"graceful-fs": "^4.1.11" | ||
} | ||
} |
@@ -39,3 +39,4 @@ # d3-flame-graph | ||
$ cd your-project | ||
$ bower install --save | ||
$ bower init | ||
$ bower install d3-flame-graph --save | ||
``` | ||
@@ -42,0 +43,0 @@ |
@@ -67,4 +67,7 @@ (function() { | ||
if (name) { | ||
name = name.replace(/.*`/, ""); // drop module name if present | ||
name = name.replace(/\(.*/, ""); // drop extra info | ||
var nameArr = name.split('`'); | ||
if (nameArr.length > 1) { | ||
name = nameArr[nameArr.length -1]; // drop module name if present | ||
} | ||
name = name.split('(')[0]; // drop extra info | ||
vector = generateHash(name); | ||
@@ -182,4 +185,2 @@ } | ||
return d3.ascending(a.data.name, b.data.name); | ||
} else { | ||
return 0; | ||
} | ||
@@ -196,3 +197,4 @@ } | ||
root.sort(doSort); | ||
if (sort) | ||
root.sort(doSort); | ||
root.sum(function(d) { | ||
@@ -221,4 +223,3 @@ if (d.fade) { | ||
.ease(transitionEase) | ||
.attr("transform", function(d) { return "translate(" + x(d.x0) + "," | ||
+ (reversed ? y(d.depth) : (h - y(d.depth) - c)) + ")"; }); | ||
.attr("transform", function(d) { return "translate(" + x(d.x0) + "," + (reversed ? y(d.depth) : (h - y(d.depth) - c)) + ")"; }); | ||
@@ -232,4 +233,3 @@ g.select("rect").transition() | ||
.append("svg:g") | ||
.attr("transform", function(d) { return "translate(" + x(d.x0) + "," | ||
+ (reversed ? y(d.depth) : (h - y(d.depth) - c)) + ")"; }); | ||
.attr("transform", function(d) { return "translate(" + x(d.x0) + "," + (reversed ? y(d.depth) : (h - y(d.depth) - c)) + ")"; }); | ||
@@ -298,3 +298,3 @@ node.append("svg:rect").attr("width", width); | ||
} | ||
merge(node.children, sample.children) | ||
merge(node.children, sample.children); | ||
} | ||
@@ -360,3 +360,3 @@ } else { | ||
} | ||
tooltip = true; | ||
tooltip = !!_; | ||
return chart; | ||
@@ -443,3 +443,3 @@ }; | ||
update(); | ||
} | ||
}; | ||
@@ -446,0 +446,0 @@ chart.color = function(_) { |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11145491
18
4525
200
0
2
13
+ Addedgraceful-fs@^4.1.11
+ Addedcommander@2.20.3(transitive)
+ Addedd3@4.13.0(transitive)
+ Addedd3-array@1.2.1(transitive)
+ Addedd3-axis@1.0.8(transitive)
+ Addedd3-brush@1.0.4(transitive)
+ Addedd3-chord@1.0.4(transitive)
+ Addedd3-collection@1.0.4(transitive)
+ Addedd3-color@1.0.3(transitive)
+ Addedd3-dispatch@1.0.3(transitive)
+ Addedd3-drag@1.2.1(transitive)
+ Addedd3-dsv@1.0.8(transitive)
+ Addedd3-ease@1.0.3(transitive)
+ Addedd3-force@1.1.0(transitive)
+ Addedd3-format@1.2.2(transitive)
+ Addedd3-geo@1.9.1(transitive)
+ Addedd3-hierarchy@1.1.5(transitive)
+ Addedd3-interpolate@1.1.6(transitive)
+ Addedd3-path@1.0.5(transitive)
+ Addedd3-polygon@1.0.3(transitive)
+ Addedd3-quadtree@1.0.3(transitive)
+ Addedd3-queue@3.0.7(transitive)
+ Addedd3-random@1.1.0(transitive)
+ Addedd3-request@1.0.6(transitive)
+ Addedd3-scale@1.0.7(transitive)
+ Addedd3-selection@1.3.0(transitive)
+ Addedd3-shape@1.2.0(transitive)
+ Addedd3-time@1.0.8(transitive)
+ Addedd3-time-format@2.1.1(transitive)
+ Addedd3-timer@1.0.7(transitive)
+ Addedd3-transition@1.1.1(transitive)
+ Addedd3-voronoi@1.1.2(transitive)
+ Addedd3-zoom@1.7.1(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedrw@1.3.3(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedxmlhttprequest@1.8.0(transitive)
- Removedd3@3.5.17(transitive)
Updatedd3@^4.10.0