Timeline improvements (#16429)

* virtualize event segments

* use virtual segments in event review timeline

* add segmentkey to props

* virtualize motion segments

* use virtual segments in motion review timeline

* update draggable element hook to use only math

* timeline zooming hook

* add zooming to event review timeline

* update playground

* zoomable timeline on recording view

* consolidate divs in summary timeline

* only calculate motion data for visible motion segments

* use swr loading state

* fix motion only

* keep handlebar centered when zooming

* zoom animations

* clean up

* ensure motion only checks both halves of segment

* prevent handlebar jump when using motion only mode
This commit is contained in:
Josh Hawkins authored and GitHub committed 2025-02-09 14:13:32 -07:00
1 parent 1f89844c67
commit cc2dbdcb44
17 files changed
+1157 -515

No files matched your search

+9
View File
@@ -60,3 +60,12 @@ export type MotionData = {
export const REVIEW_PADDING = 4;
export type ReviewDetailPaneType = "overview" | "details";
export type ConsolidatedSegmentData = {
startTime: number;
endTime: number;
severity: ReviewSeverity | "empty";
reviewed: boolean;
};
export type TimelineZoomDirection = "in" | "out" | null;