New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphology-layout-forceatlas2

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphology-layout-forceatlas2 - npm Package Compare versions

Comparing version 0.10.1 to 0.11.0-rc1

2

package.json
{
"name": "graphology-layout-forceatlas2",
"version": "0.10.1",
"version": "0.11.0-rc1",
"description": "ForceAtlas 2 layout algorithm for graphology.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -813,2 +813,3 @@ /**

var data = event.data;
var iterations = data.iterations;

@@ -820,3 +821,3 @@ NODES = new Float32Array(data.nodes);

// Running the iteration
iterate(data.settings, NODES, EDGES);
for (var i = 0; i < iterations; i++) iterate(data.settings, NODES, EDGES);

@@ -823,0 +824,0 @@ // Sending result to supervisor

@@ -10,3 +10,5 @@ import Graph, {Attributes} from 'graphology-types';

graph: Graph,
params?: ForceAtlas2LayoutParameters<NodeAttributes, EdgeAttributes>
params?: ForceAtlas2LayoutParameters<NodeAttributes, EdgeAttributes> & {
backgroundIterations: number;
}
);

@@ -13,0 +15,0 @@

@@ -50,2 +50,3 @@ /**

this.settings = settings;
this.backgroundIterations = params.backgroundIterations || 1;
this.getEdgeWeight = getEdgeWeight;

@@ -132,3 +133,4 @@ this.matrices = null;

settings: this.settings,
nodes: matrices.nodes.buffer
nodes: matrices.nodes.buffer,
iterations: this.backgroundIterations
};

@@ -135,0 +137,0 @@

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