From e9d4921d4f4c51ad40cf3ae412b8de9dd328b0b0 Mon Sep 17 00:00:00 2001 From: KristofferStrube Date: Fri, 18 Oct 2024 01:35:53 +0200 Subject: [PATCH] Only align graph for 2 seconds. --- .../Pages/FollowingGraph.razor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/KristofferStrube.Blazor.GraphEditor.WasmExample/Pages/FollowingGraph.razor b/samples/KristofferStrube.Blazor.GraphEditor.WasmExample/Pages/FollowingGraph.razor index 1b3a1b7..c6aa83b 100644 --- a/samples/KristofferStrube.Blazor.GraphEditor.WasmExample/Pages/FollowingGraph.razor +++ b/samples/KristofferStrube.Blazor.GraphEditor.WasmExample/Pages/FollowingGraph.razor @@ -9,7 +9,7 @@

Following Graph

- The following shows a following graph for @@kristofferstrube@@hachyderm.io
+ The following shows a following graph from Mastodon for the user @@kristofferstrube@@hachyderm.io
@if (selectedUser is null) { @@ -76,7 +76,7 @@ { await GraphEditor.ForceDirectedLayout(); double unixTimeSeconds = DateTimeOffset.Now.ToUnixTimeMilliseconds() / 1000.0; - if (unixTimeSeconds - startUnixTimeSeconds < 7) + if (unixTimeSeconds - startUnixTimeSeconds < 2) { GraphEditor.SVGEditor.FitViewportToAllShapes(delta: Math.Min((unixTimeSeconds - prevUnixTimeSeconds) * 2, 1), padding: 100); prevUnixTimeSeconds = unixTimeSeconds;