local graph zoom fix

This commit is contained in:
Utsob Roy 2023-02-01 15:05:39 +06:00
parent ce494682cf
commit 24d7bdce5b

View File

@ -93,9 +93,11 @@
.onNodeClick(node => {
window.location = node.url;
});
if (delay != null) {
setTimeout(() => {
Graph.zoomToFit(5, 75);
}, delay);
}
return Graph;
}
@ -117,7 +119,7 @@
Graph._destructor();
Graph = null;
}
renderGraph(filterToDepth(JSON.parse(JSON.stringify(window.graphData))), "link-graph", 330, 330, 1);
renderGraph(filterToDepth(JSON.parse(JSON.stringify(window.graphData))), "link-graph", 330, 330, null);
})
window.fullGraph = null;