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

How to center a node #484

Open
huy-lv opened this issue Dec 4, 2023 · 1 comment
Open

How to center a node #484

huy-lv opened this issue Dec 4, 2023 · 1 comment

Comments

@huy-lv
Copy link

huy-lv commented Dec 4, 2023

I need to center a node in a tree by some function like:

<Tree 
    centerNode={null or node id}
/>

or
tree.centerNode(nodeId)

What version of react-d3-tree are you using?

^3.6.1

@Fray117
Copy link

Fray117 commented Dec 27, 2023

I'm pretty sure you should read about "dimensions"

try look into the demo

image

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