Skip to content

Latest commit

 

History

History
79 lines (55 loc) · 1.33 KB

CHANGELOG.md

File metadata and controls

79 lines (55 loc) · 1.33 KB

v0.3.2

  • Made cp-data a runtime dependency. It was incorrectly specified as a dev dependency, which could case result in the error cannot find module cp-data.

v0.3.1

  • Added support for rank constraints.

v0.3.0

Backwards incompatible changes:

  • Dagre now takes a dagre.Digraph or dagre.Graph as input for layout. See README.md for details.
  • util is no longer exported from dagre.

Backwards compatible changes:

  • Dagre can now perform layout for undirected graphs (dagre.Graph).

v0.2.0

This release removes the export of Graph from the graphlib library. If you use Graph, please get it directly from graphlib.

v0.1.2

With this release you can use node ids instead of references in edges. Where you used to do this:

var nodes = [
    {width: w1, height: h1},
    {width: w2, height: h2}
];

var edges = [
    { source: nodes[0], target: nodes[1] }
];

dagre.layout()
     .nodes(nodes)
     .edges(edges)
     .run();

You can instead do this:

var nodes = [
    {id: "n1", width: w1, height: h1},
    {id: "n2", width: w2, height: h2}
];

var edges = [
    { sourceId: "n1", targetId: "n2" }
];

dagre.layout()
     .nodes(nodes)
     .edges(edges)
     .run();

Use whichever is more convenient for your needs.

v0.1.1

  • Initial CHANGELOG entry