swimlane / ngx-graph

Graph visualization library for angular
https://swimlane.github.io/ngx-graph
MIT License
929 stars 284 forks source link

Can we do resegmentation of the Link between the Nodes? #343

Open nehasingh931126 opened 4 years ago

nehasingh931126 commented 4 years ago

Adding the Functionality of Resegmentation of the Links. The Links within the Node Should have one point from where it can be resegmented at any angle. Attaching the Screenshot for the Same

Screenshots image

ngx-graph version "@swimlane/ngx-graph": "^7.1.1",

Additional context https://rat17sri.github.io/ngx-graph-angular/

marjan-georgiev commented 3 years ago

This is possible. It will require modifying the graph layout and passing it as a custom layout. You can add new points to each edge in here:

https://github.com/swimlane/ngx-graph/blob/master/projects/swimlane/ngx-graph/src/lib/graph/layouts/dagre.ts#L80-L90