Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
test(rendering): use the indexed cluster lookup in the idle-cursor auto zoom test
Richie McIlroy5aa476a8fb91
diff --git a/crates/rendering/src/zoom_spring.rs b/crates/rendering/src/zoom_spring.rsindex 57a93c2e8..897014084 100644--- a/crates/rendering/src/zoom_spring.rs+++ b/crates/rendering/src/zoom_spring.rs@@ -1871,7 +1871,7 @@ mod tests {};for ordered in [false, true] {let clusters = build_clusters(&cursor, ordered, 2.0, 10.0, 2.0, None);- assert_eq!(cluster_center_at_time(&clusters, 2000.0), Some((0.1, 0.1)));+ assert_eq!(ClusterCenters::new(clusters).center_at(2000.0), Some((0.1, 0.1)));}}