Socket
Socket
Sign inDemoInstall

cytoscape-cose-bilkent

Package Overview
Dependencies
Maintainers
5
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cytoscape-cose-bilkent - npm Package Compare versions

Comparing version 1.6.2 to 1.6.4

2

package.json
{
"name": "cytoscape-cose-bilkent",
"version": "1.6.2",
"version": "1.6.4",
"description": "The CoSE layout for Cytoscape.js by Bilkent",

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

@@ -61,2 +61,4 @@ cytoscape-cose-bilkent

padding: 10,
// Padding for compounds
paddingCompound: 15,
// Whether to enable incremental mode

@@ -63,0 +65,0 @@ randomize: true,

@@ -47,2 +47,4 @@ 'use strict';

padding: 10,
// Padding for compounds
paddingCompound: 15,
// Whether to enable incremental mode

@@ -113,2 +115,4 @@ randomize: true,

CoSEConstants.MAX_ITERATIONS = FDLayoutConstants.MAX_ITERATIONS = options.numIter;
if (options.paddingCompound != null)
CoSEConstants.DEFAULT_GRAPH_MARGIN = FDLayoutConstants.DEFAULT_GRAPH_MARGIN = LayoutConstants.DEFAULT_GRAPH_MARGIN = options.paddingCompound;
if (options.gravityRange != null)

@@ -115,0 +119,0 @@ CoSEConstants.DEFAULT_GRAVITY_RANGE_FACTOR = FDLayoutConstants.DEFAULT_GRAVITY_RANGE_FACTOR = options.gravityRange;

@@ -29,19 +29,5 @@ function LayoutConstants() {

*/
LayoutConstants.DEFAULT_GRAPH_MARGIN = 10;
LayoutConstants.DEFAULT_GRAPH_MARGIN = 15;
/*
* The height of the label of a compound. We assume the label of a compound
* node is placed at the bottom with a dynamic width same as the compound
* itself.
*/
LayoutConstants.LABEL_HEIGHT = 20;
/*
* Additional margins that we maintain as safety buffer for node-node
* overlaps. Compound node labels as well as graph margins are handled
* separately!
*/
LayoutConstants.COMPOUND_NODE_MARGIN = 5;
/*
* Default dimension of a non-compound node.

@@ -48,0 +34,0 @@ */

@@ -277,7 +277,4 @@ var LGraphObject = require('./LGraphObject');

this.setWidth(childGraph.getRight() - childGraph.getLeft() +
2 * LayoutConstants.COMPOUND_NODE_MARGIN);
this.setHeight(childGraph.getBottom() - childGraph.getTop() +
2 * LayoutConstants.COMPOUND_NODE_MARGIN +
LayoutConstants.LABEL_HEIGHT);
this.setWidth(childGraph.getRight() - childGraph.getLeft());
this.setHeight(childGraph.getBottom() - childGraph.getTop());
}

@@ -284,0 +281,0 @@ };

Sorry, the diff of this file is too big to display

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