Skip to content

Commit

Permalink
Tree view's focus random button now behaves the same as normal ST sea…
Browse files Browse the repository at this point in the history
…rch (parameters of zoomToNodeById where tweaked).
  • Loading branch information
Nyckoka committed Jul 3, 2023
1 parent 9a2f095 commit de562a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export function useGraph(projectId: string, datasetId: string, treeViewId: strin
canvasRef,
loadingGraph,
selectedCluster,
focusRandom: () => graphRef.current?.zoomToNodeById(clusters[selectedCluster].nodes[Math.floor(Math.random() * clusters[selectedCluster].nodes.length)].st),
focusRandom: () => graphRef.current?.zoomToNodeById(clusters[selectedCluster].nodes[Math.floor(Math.random() * clusters[selectedCluster].nodes.length)].st, 1000, 15, false),
setSelectedCluster: (i: number) => {

const cluster = clusters[i]
Expand Down

0 comments on commit de562a4

Please sign in to comment.