-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Visible History to time series space views #4179
Conversation
I don't really get why we would have a toggle for "Visual History". Shouldn't we just pre-fill the options that correspond to the default behavior for all the views? Then we can just make it editable for the views / data that support it. For instance if we can't support visual history, we would just set the range to 0, 0 and have it not be editable. The time series plots would default to -♾️,+♾️ Fwiw, I think renaming this to something like "Included time range" or "visible time range" would make it more clear but I won't die on that hill. |
… to use this instead of the ad hoc state in the timeseries space view.
Two motivations I can think of:
|
I like the reordering of controls. I'm not sure about merging the concepts of "infinite" with "absolute". "First + 10s" feels less useful than "t = 63s" (assuming the timelines first logged data would be at 53s, which could be accidental). |
- keep plot bounds from changing while the time cursor is dragged - correct min time computation - don't draw the time cursor out of the plot area
# Conflicts: # crates/re_arrow_store/tests/correctness.rs
let positions = build_some_positions2d(3); | ||
let colors = build_some_colors(3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@teh-cmc I think this doesn't respect your prescription of using only stuff from re_log_types::example_components
or re_types_core
, but it's done all over the place in this file already 🤷🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mistakes were made in the past, let's not repeat them 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Played around with it a bit and it works great!
Please remove the use of positions and colors from the store tests before merging.
@@ -309,13 +321,13 @@ fn blueprint_ui( | |||
// TODO(emilk): show the values of this specific instance (e.g. point in the point cloud)! | |||
} else { | |||
// splat - the whole entity | |||
let space_view_class_name = *space_view.class_name(); | |||
let space_view_class = *space_view.class_name(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why rename here? The previous one was better imo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I went back and forth with these and this one clear got forgotten.
Edit: actually no, space_view_class
was used everywhere in this file before, I just made this one consistent. This naming choice (which also wasn't my preferred) wins by 42 to 15 throughout the codebase, so best keep it that way for now imo.
What
Add support for Visible History to Timeseries space views
DataStore::entity_min_time()
to maintain the consistent "beginning of x axis" behaviour.Changes the way the Visible History feature is organised:
Closes Allow to set a sliding window for time series plots (aka support the Visible History feature) #2547
Follow-up TODO (before 0.11)
log_time
) #4210Known limitations
EntityProperty
is not ideal for entities in timeseries space view (2xRelative(0)
)TODO
Export-1699438955049.mp4
Checklist