cosmograph-org / cosmos

GPU-accelerated force graph layout and rendering
Other
790 stars 52 forks source link

Bezier curved lines #74

Closed Stukova closed 11 months ago

Stukova commented 12 months ago

This PR adds parametric conical curved lines to a Cosmos.

The curvature and shape of the lines can be configured through config parameters:

  1. curvedLinks: Turns off/on the between straight and curved lines.
  2. curvedLinkSegments: Specifies the number of segments in the curved line.
  3. curvedLinkWeight: Affects the shape of the curved line.
  4. curvedLinkControlPointDistance: Specifies the distance between control points in the curved line.