From c1ed467b2649bf2c99fea762efcc6684893da6d9 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Thu, 29 Jul 2021 09:25:18 +0200 Subject: buffer NAME --- pages/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pages/index.tsx') 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)]) -- cgit v1.2.3