Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "assetviz", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A graph visualization of the assets and their relations in your web app", | ||
@@ -24,2 +24,3 @@ "main": "index.js", | ||
"assetgraph": "=1.3.2", | ||
"colors": "*", | ||
"optimist": "*" | ||
@@ -26,0 +27,0 @@ }, |
@@ -22,3 +22,8 @@ /*global d3, assetgraph*/ | ||
var svg = d3.select('.graph'), | ||
var graph = d3.select('.graph') | ||
.attr('pointer-events', 'all') | ||
.call(d3.behavior.zoom().on('zoom', function () { | ||
graph.attr("transform", "translate(" + d3.event.translate + ")" + " scale(" + d3.event.scale + ")"); | ||
})) | ||
.append('g'), | ||
force = d3.layout.force() | ||
@@ -28,3 +33,3 @@ .nodes(d3.values(assetgraph.assets)) | ||
.size([window.innerWidth, window.innerHeight]) // Some browsers have trouble reading dimensions of svg elements | ||
.gravity(.05) | ||
.gravity(0.05) | ||
.charge(function (d) { | ||
@@ -46,3 +51,3 @@ var charge = -200; | ||
var edges = svg.append('g') | ||
var edges = graph.append('g') | ||
.attr('class', 'relations') | ||
@@ -55,3 +60,3 @@ .selectAll('path') | ||
var edgeLabels = svg.append('g') | ||
var edgeLabels = graph.append('g') | ||
.attr('class', 'relationLabels') | ||
@@ -70,3 +75,3 @@ .selectAll('text') | ||
var nodes = svg.append('g') | ||
var nodes = graph.append('g') | ||
.attr('class', 'assets') | ||
@@ -73,0 +78,0 @@ .selectAll('g') |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
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
139455
633
3
4
+ Addedcolors@*
+ Addedcolors@1.4.0(transitive)