mirror of
https://github.com/openziti/zrok.git
synced 2025-06-26 04:31:30 +02:00
constrain max zoom for view fitting
This commit is contained in:
parent
17a1455d52
commit
055167b644
@ -21,7 +21,7 @@ const Network = () => {
|
|||||||
let g = buildGraph(resp.data)
|
let g = buildGraph(resp.data)
|
||||||
setNodes(getLayout(g))
|
setNodes(getLayout(g))
|
||||||
setEdges(g.edges)
|
setEdges(g.edges)
|
||||||
reactFlow.fitView()
|
reactFlow.fitView({maxZoom: 1})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user