Skip to content

Dragging nodes causes links to lose curve and become straight — curves should be preserved #613

@Gor-Madoyan

Description

@Gor-Madoyan

Description

When using curved edges in ngx-graph (e.g., curveBundle.beta(0.85)), the edges render beautifully on initial layout. However, once a user drags a node, all connected links lose their curvature and become straight lines. This breaks the visual flow and UX of graphs relying on curves.

### Steps to Reproduce

  1. Render a graph with [curve]="curveBundle.beta(0.85)"
  2. Observe that edges are nicely curved
  3. Drag any node
  4. Observe that connected links become straight lines immediately after

### Expected Behavior

Edges should retain their curvature even after node dragging.
If the user has specified a custom curve using [curve] or <ngx-graph-custom-curve>, the library should honor it post-drag.

### Actual Behavior

Dragging causes edges to lose their curve — likely because the library switches to manual layout and defaults to linear interpolation.

How can I fix this ?

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions