diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-29 09:25:18 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-29 09:25:18 +0200 |
commit | c1ed467b2649bf2c99fea762efcc6684893da6d9 (patch) | |
tree | 57c08b7280742245fab561aad8711f45e43a1cf2 /pages/index.tsx | |
parent | bf109b6dc016eb386fe86cbde9578734bcb6c99d (diff) |
buffer NAME
Diffstat (limited to 'pages/index.tsx')
-rw-r--r-- | pages/index.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pages/index.tsx b/pages/index.tsx index 69885e7..c4cc011 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -342,7 +342,9 @@ export const Graph = function (props: GraphProps) { // zoomToFit off a little bit setTimeout(() => { const fg = threeDim ? graph3dRef.current : graph2dRef.current - fg?.zoomToFit(0, numbereWithinRange(20, 200, windowWidth / 8)) + fg?.zoomToFit(1000, numbereWithinRange(20, 200, windowWidth / 8), (node: NodeObject) => + scopedNodeIds.some((n) => n === node.id), + ) }, 1) }, [JSON.stringify(scopedNodeIds)]) |