Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
429 views
in Technique[技术] by (71.8m points)

d3.js - How to fix `react-d3-tree` in place?

For some reason the default behaviour in this package is to allow users to move the trees around as they please.

How do you disable grabability?

I'd also accept an answer which suggests a different tree-graph package that looks nice and doesn't allow users to drag it around the screen.

The package is hosted at:

https://github.com/bkrem/react-d3-tree

And here is an example in CodeSandBox:

https://codesandbox.io/s/yq86mj80zx?file=/src/index.js


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...