Chuyển tới nội dung chính

TimeMachine

An interactive time navigation component for viewing historical traffic data.

📋 Overview

PropertyValue
Filesrc/components/TimeMachine.tsx
TypeReact Functional Component
AuthorUIP Team
Version1.0.0

🎯 Purpose

  • Navigate to historical timestamps
  • Playback traffic over time
  • Compare different time periods
  • Quick jump to common times

🚀 Usage

import { TimeMachine } from '@/components/TimeMachine';

function Dashboard() {
return (
<TimeMachine
currentTime={selectedTime}
onChange={handleTimeChange}
onPlayback={handlePlayback}
/>
);
}

📦 Props

PropTypeRequiredDefaultDescription
currentTimeDateYes-Selected time
onChange(time: Date) => voidYes-Time change handler
onPlayback(playing: boolean) => voidNo-Playback handler
minTimeDateNo7 days agoEarliest time
maxTimeDateNoNowLatest time
stepnumberNo300Step in seconds

🎛️ Controls

ControlFunction
Date PickerSelect specific date
Time SliderFine-tune time
Play/PausePlayback control
SpeedPlayback speed
PresetsQuick jumps

See the complete components reference for all available components.