Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

assetviz

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assetviz - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

3

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc