bkrem/react-d3-tree

How to center a node

huy-lv opened this issue · 1 comments

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

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

try look into the demo

image