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

dagre

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dagre - npm Package Compare versions

Comparing version 0.3.10 to 0.4.0

6

CHANGELOG.md

@@ -0,1 +1,7 @@

v0.4.0
======
* Removed bbox on outputGraph.graph(). Instead dimensions are exposed as
outputGraph.graph().width and outputGraph.graph().height.
v0.3.10

@@ -2,0 +8,0 @@ =======

3

lib/layout.js

@@ -248,3 +248,4 @@ var util = require('./util'),

});
out.graph().bbox = { width: maxX, height: maxY };
out.graph().width = maxX;
out.graph().height = maxY;

@@ -251,0 +252,0 @@ return out;

@@ -1,1 +0,1 @@

module.exports = '0.3.10';
module.exports = '0.4.0';
{
"name": "dagre",
"version": "0.3.10",
"version": "0.4.0",
"description": "Graph layout for JavaScript",

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

@@ -200,2 +200,26 @@ # dagre - Graph layout for JavaScript

### Input Graph
The input graph supplied for layout can have the following attributes:
Object | Attribute | Default | Description
------ | --------- | ------- | -----------
graph | rankDir | TB | Direction for rank nodes. Can be `TB`, `BT`, `LR`, or `RL`, where T = top, B = bottom, L = left, and R = right.
node | height | | The height of the node.
node | width | | The width of the node.
edge | minLen | 1 | The number of ranks to keep between the source and target of the edge.
### Output Graph
The output graph has the following attributes:
Object | Attribute | Description
------ | --------- | -----------
graph | height | The height of the entire graph.
graph | width | The width of the entire graph.
node | x | The x-coordinate for the center of the node.
node | y | The y-coordinate for the center of the node.
edge | points | An array of { x, y } pairs for the control points of the edge.
## Resources

@@ -202,0 +226,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