Skip to content

Non rounded, horizontally aligned is it possible? #6

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

Open
azurda opened this issue Aug 21, 2021 · 1 comment
Open

Non rounded, horizontally aligned is it possible? #6

azurda opened this issue Aug 21, 2021 · 1 comment

Comments

@azurda
Copy link

azurda commented Aug 21, 2021

image

I am trying to achieve something like this with this component, is it possible? WHen adding lots of elements I end up with overlapping nodes (crossing each other) because of straight lines

@ldd
Copy link
Owner

ldd commented Aug 21, 2021

I think it may be possible, by overriding how links are drawn.
Here's an example:
https://github.com/ldd/react-tech-tree/blob/master/example/src/trees/superhero/linkHelper.js

If you have an online example, let me know. I can try to take a quick look.

Just to understand your issue a little bit better, you want the links to appear as straight lines, right?

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