Skip to content
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

can we use different marker other than arrow? #44

Closed
gdswapnil11 opened this issue Jul 3, 2019 · 1 comment
Closed

can we use different marker other than arrow? #44

gdswapnil11 opened this issue Jul 3, 2019 · 1 comment

Comments

@gdswapnil11
Copy link

hey @vasturiano can you tell me how can i use different marker icon instead of arrow.

@vasturiano
Copy link
Owner

vasturiano commented Jul 8, 2019

@gdswapnil11 you can implement your own custom marker paint function using .linkCanvasObject(). Possibly setting .linkCanvasObjectMode(() => 'after') if you'd like to keep the current line.

If you're curious as to the current implementation of the arrow paint, it's here: https://github.com/vasturiano/force-graph/blob/master/src/canvas-force-graph.js#L264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants