@@ -63,7 +63,7 @@ export type MockMotionData = {
63
63
function generateRandomMotionAudioData ( ) : MockMotionData [ ] {
64
64
const now = new Date ( ) ;
65
65
const endTime = now . getTime ( ) / 1000 ;
66
- const startTime = endTime - 24 * 60 * 60 ; // 24 hours ago
66
+ const startTime = endTime - 0.25 * 60 * 60 ; // 24 hours ago
67
67
const interval = 30 ; // 30 seconds
68
68
69
69
const data = [ ] ;
@@ -75,14 +75,17 @@ function generateRandomMotionAudioData(): MockMotionData[] {
75
75
const endTimestamp = startTimestamp + interval ;
76
76
const motionValue = Math . floor ( Math . random ( ) * 101 ) ; // Random number between 0 and 100
77
77
const audioValue = Math . random ( ) * - 100 ; // Random negative value between -100 and 0
78
+ const foo = new Date ( startTimestamp * 1000 ) ;
78
79
data . push ( {
79
80
start_time : startTimestamp ,
80
81
end_time : endTimestamp ,
81
82
motionValue,
82
83
audioValue,
84
+ foo,
83
85
} ) ;
84
86
}
85
87
88
+ console . log ( data ) ;
86
89
return data ;
87
90
}
88
91
@@ -295,7 +298,7 @@ function UIPlayground() {
295
298
handlebarTime = { handlebarTime } // set the time of the handlebar
296
299
setHandlebarTime = { setHandlebarTime } // expose handler to set the handlebar time
297
300
onHandlebarDraggingChange = { handleDraggingChange } // function for state of handlebar dragging
298
- showMinimap // show / hide the minimap
301
+ // show / hide the minimap
299
302
minimapStartTime = { minimapStartTime } // start time of the minimap - the earlier time (eg 1:00pm)
300
303
minimapEndTime = { minimapEndTime } // end of the minimap - the later time (eg 3:00pm)
301
304
events = { mockEvents } // events, including new has_been_reviewed and severity properties
@@ -314,7 +317,7 @@ function UIPlayground() {
314
317
handlebarTime = { handlebarTime } // set the time of the handlebar
315
318
setHandlebarTime = { setHandlebarTime } // expose handler to set the handlebar time
316
319
onHandlebarDraggingChange = { handleDraggingChange } // function for state of handlebar dragging
317
- showMinimap // show / hide the minimap
320
+ // show / hide the minimap
318
321
minimapStartTime = { minimapStartTime } // start time of the minimap - the earlier time (eg 1:00pm)
319
322
minimapEndTime = { minimapEndTime } // end of the minimap - the later time (eg 3:00pm)
320
323
events = { mockEvents } // events, including new has_been_reviewed and severity properties
0 commit comments