bkrem / react-d3-tree

:deciduous_tree: React component to create interactive D3 tree graphs
https://bkrem.github.io/react-d3-tree
MIT License
1.08k stars 270 forks source link

Disable Drag #364

Closed gouldie closed 1 year ago

gouldie commented 3 years ago

Are you reporting a bug, or opening a feature request?

Feature request

What is the actual behavior/output?

Unable to disable dragging since 2.0.4

We're currently trying to upgrade react-d3-tree in a project, but we'd like to be able to disable dragging of the tree. This was possible prior to v2.0.4 as setting zoomable to false also disabled the drag, but as far as I can tell since v2.0.4 there is no way to do this.

What is the behavior/output you expect?

I'd like to be able to disable dragging of the tree

csilvamarq commented 2 years ago

same problem here, zoomable only disabled mouse wheel

DanielLuu commented 2 years ago

Any updates on this?

jheaff1 commented 2 years ago

I too would like to be able to disable drag to just show a static tree

msmfa commented 2 years ago

Any plans to restore this feature? @bkrem Or any workarounds?

bkrem commented 1 year ago

Shipped as https://github.com/bkrem/react-d3-tree/releases/tag/v3.5.0 🚢

I realise this was wanted so apologies for the wait. If I had realised this was as simple as it apparently was to restore it wouldn't have taken until now!

Thank you again @gouldie for resolving this with a simple solution 💯

jorgegarba commented 9 months ago

I'm arriving a little bit late, does anybody know about the following bug? I think it is related to the issue or at least is similar

https://stackoverflow.com/questions/77272006/react-d3-tree-zoom-and-drag-not-working-on-next-js-13

zdychacek commented 9 months ago

Same here, using Next 14. Zooming and dragging not working. Any chance to be fixed?

smsidki commented 6 months ago

Same here, using Next 14. Zooming and dragging not working. Any chance to be fixed?

it works if rendered on client side https://stackoverflow.com/a/78373583/6908415