constrain max zoom for view fitting

This commit is contained in:
Michael Quigley 2022-10-04 12:40:41 -04:00
parent 17a1455d52
commit 055167b644
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -21,7 +21,7 @@ const Network = () => {
let g = buildGraph(resp.data)
setNodes(getLayout(g))
setEdges(g.edges)
reactFlow.fitView()
reactFlow.fitView({maxZoom: 1})
}
});
})