bkrem / react-d3-tree

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

[bug] the transform doesn't has the method of "interrupt" #451

Open xinrunxie opened 1 year ago

xinrunxie commented 1 year ago

Thank you for taking the time to report an issue with react-d3-tree!

Feel free to delete any questions that do not apply.

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

[Replace with your answer] a bug, see the picture image

The reason is the incorrect use of the transform method

image

the source in d3-zoom

image

What is the actual behavior/output?

[Replace with your answer if relevant] the bug make the function is useless.

What is the behavior/output you expect?

[Replace with your answer if relevant]

You should use the same functions as the API documentation, or create a new object to avoid misjudgments

Can you consistently reproduce the issue/create a reproduction case (e.g. on https://codesandbox.io)?

[Replace with your answer if relevant]

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

[Replace with your answer]

If react-d3-tree crashed with a traceback, please paste the full traceback below.

[Replace with your traceback]