-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link offsets? #333
Comments
@tomkcook thanks for reaching out. I'd recommend looking into the If it's useful here's how the module does the drawing by default: force-graph/src/canvas-force-graph.js Lines 240 to 249 in a25a47e
You should only need to invoke two Canvas commands: |
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: