-
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
Allow SpaceViews to customize the behavior for how default visualizers are chosen #5050
Conversation
a44e34e
to
bff6e98
Compare
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.
perfect! love it when a plan works out as well as this!
// Because SeriesLine is our fallback visualizer, also include any entities for which | ||
// SeriesLine is applicable, even if not indicated. | ||
if let Some(applicable) = ctx | ||
.applicable_entities_per_visualizer | ||
.get(&SeriesLineSystem::identifier()) | ||
{ | ||
indicated_entities.0.extend(applicable.iter().cloned()); | ||
} |
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.
ah great catch! At first I thought a different mechanism needs to do this, but I think that's spot on!
// If there were no other visualizers, but the SeriesLineSystem is available, use it. | ||
if visualizers.is_empty() && available_visualizers.contains(&SeriesLineSystem::identifier()) | ||
{ | ||
visualizers.insert(0, SeriesLineSystem::identifier()); | ||
} |
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.
unfortunate that we can't just call into the base for the rest (don't see how either). But otherwise perfect, just as planned!
bff6e98
to
49e3cd9
Compare
…ad (#5042) ### What Also fixes missing serialization of `StrokeWidth` & `MarkerSize` ![image](https://github.com/rerun-io/rerun/assets/1220815/44a118d4-5dc7-4c6d-a79b-29f83ac7eb77) blocked by a few things: * [x] text labels should go on SeriesLine/SeriesPlot #5043 * [x] SeriesPoint doesn't have a `MarkerSize` component yet #5057 * [x] Need to fix heuristic for only having Scalar -> Line #5050 --------- Co-authored-by: Clement Rey <[email protected]>
What
We don't want to use Scalar as the indicator for LineSeries or PointSeries or else we would get both any time a user logs a Scalar. Instead we now delegate this choice to the space-view.
Additionally, entities are now always included in the query-results if they are visualizable, even if they aren't indicated. Without this there is no way to access the query-result in order to override its visualizers if necessary.
Checklist
main
build: app.rerun.ionightly
build: app.rerun.io