You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have an existing diagram that I'm trying to port to force-graph. This is a feature that we've hacked into a different display system and would like to see here.
Describe the solution you'd like
It would be nice to be able to specify an offset for the end of a link. JSON might look something like this:
I'd recommend looking into the linkCanvasObject method. This will allow you to specify a custom way to draw the links using canvas operations. That way you can add your own logic that offsets the lines and/or do any other transformations as needed.
If it's useful here's how the module does the drawing by default:
Is your feature request related to a problem? Please describe.
I have an existing diagram that I'm trying to port to force-graph. This is a feature that we've hacked into a different display system and would like to see here.
Describe the solution you'd like
It would be nice to be able to specify an offset for the end of a link. JSON might look something like this:
The
offsets
,offsets.source
andoffsets.target
keys should be optional, with defaults of zero offset.This is useful when you have a custom shape for a node with a particular connection point, which may vary from link to link.
Describe alternatives you've considered
Difficult to see an alternative.
The text was updated successfully, but these errors were encountered: