Comparing version 0.3.10 to 0.4.0
@@ -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 @@ ======= |
@@ -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 @@ |
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
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
76701
1836
280