From 476cfb1aa569b42e7bab6cbfd5e548c9e85ee07c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 5 Mar 2026 22:49:20 +0200 Subject: task 363: animate flamegraph data refresh transitions --- internal/tui/flamegraph/animation.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/tui/flamegraph/animation.go') diff --git a/internal/tui/flamegraph/animation.go b/internal/tui/flamegraph/animation.go index 900231d..de3635d 100644 --- a/internal/tui/flamegraph/animation.go +++ b/internal/tui/flamegraph/animation.go @@ -117,6 +117,11 @@ func (a AnimationState) CurrentFrames() []tuiFrame { return frames } +// Settled reports whether all active springs are at rest. +func (a AnimationState) Settled() bool { + return a.settled +} + func isSpringSettled(s frameSpring) bool { return math.Abs(s.currentW-s.targetW) < springEpsilon && math.Abs(s.currentCol-s.targetCol) < springEpsilon && -- cgit v1.2.3