tomshanley / d3-sankey-circular

A fork of the d3-sankey library to allow circular links.
MIT License
89 stars 41 forks source link

added function export addCircularPathData #48

Closed KQLYYY closed 3 years ago

KQLYYY commented 3 years ago

This pull request adds the ability to use addCircularPathData functions outside of the main package.

For example, this function can be used outside the main package in the case when we use the integration of react and d3, then we use addCircularPathDataon the graph to recalculate the coordinates of circular links after changing the coordinates of the source or target node.