Closed magland closed 2 years ago
Is it just me, or are the saved timepoints not rendering on this link?
Oh that's because they were out-of-range for some reason. Try this:
Sorry, forgot I had this pending to review. Off to a meeting now.
I think you can merge this if you like, but if you want to hold off for a little bit I can get you a PR to fix issue #142 first. Could probably have it by tomorrow morning--up to you if you want to get this out the door first.
I'll merge now. #142 I think is worthy of its own PR
Addresses #138
135 and #140 are merged into this PR
Add to annotations window a section for time interval annotations. Those are like timepoint annotations, except you have a
[number, number]
interval rather than a single number timepoint.Similar behavior as timepoint annotations. Click, shift+click to select a time interval, then click "ADD TIME INTERVAL" to add that annotation. Internally it is stored with all the annotations as type "time-interval".
When saving annotations, it saves both timepoint and time-interval annotations in one big list.
TimeScrollView shows both timepoint and time interval annotations in the TSVAnnotationLayer.
Clicking on a time interval annotation selects that interval, and moves to the center of the interval if not already visible. Had to add some more actions and modify the reducer for recording selection in order to accomplish that. Everything has its correspondence with focusTime <-> focusTimeInterval.