We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3533aba commit a1f9e94Copy full SHA for a1f9e94
app/containers/Inspect.jsx
@@ -13,10 +13,10 @@ const Inspect = () => {
13
.onChange(orientation => graph && graph.dagMode(orientation));
14
15
// graph config
16
- const NODE_REL_SIZE = 1;
+ const NODE_REL_SIZE = 3;
17
const graph = ForceGraph3D()
18
.dagMode('td')
19
- .dagLevelDistance(200)
+ .dagLevelDistance(50)
20
.backgroundColor('#101020')
21
.linkColor(() => 'rgba(255,255,255,0.2)')
22
.nodeRelSize(NODE_REL_SIZE)
@@ -98,7 +98,12 @@ const Inspect = () => {
98
});
99
100
graph(document.getElementById('graph'))
101
- .graphData({ nodes, links });
+ .graphData({ nodes, links })
102
+ .onNodeDragEnd(node => {
103
+ node.fx = node.x;
104
+ node.fy = node.y;
105
+ node.fz = node.z;
106
+ });
107
108
}, []);
109
0 commit comments