Skip to content

dagre-d3 updated for compatibility with D3 version 4.

License

Notifications You must be signed in to change notification settings

mmoscher/dagre-d3v4-webpack

 
 

Repository files navigation

This fork is just dagre-d3v4 with fixed require-calls to play nicely along with webpack

dagre-d3 - A D3-based renderer for dagre

Dagre is a JavaScript library that makes it easy to lay out directed graphs on the client-side. The dagre-d3 library acts as a front-end to dagre, providing actual rendering using D3.

This repository is a work-in-progress effort to update dagre-d3 to support D3 version 4.

Chris Pettitt's original, unmaintained dagre-d3 repository can be found here, as can the original wiki.

API Changes from dagre-d3 version 0.4.x to version 0.5.0

  1. Edge path line interpolation now reflects the D3v4 curve API. Replace:

    g.setEdge("A", "B", { lineInterpolate: "basis" });
    g.setEdge("A", "C", { lineInterpolate: "basis" });

    with e.g.:

    g.setEdge("A", "B", { curve: d3.curveBasis });
    g.setEdge("A", "C", { curve: d3.curveCardinal.tension(0.6) });

    The default curve is d3.curveLinear.

License

dagre-d3 is licensed under the terms of the MIT License. See the LICENSE file for details.

About

dagre-d3 updated for compatibility with D3 version 4.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.7%
  • Shell 2.7%
  • CSS 0.6%