Expose remaining blueprint view types in the Rust SDK#12767
Open
FredrikNoren wants to merge 1 commit into
Open
Expose remaining blueprint view types in the Rust SDK#12767FredrikNoren wants to merge 1 commit into
FredrikNoren wants to merge 1 commit into
Conversation
Adds `BarChartView`, `DataframeView`, `StateTimelineView`, `TensorView`, and `TextLogView` to `re_sdk::blueprint`, matching the views already available in the Python SDK. Each follows the existing minimal builder pattern (origin/contents/visible/defaults/overrides) and gets a `ContainerLike` conversion so they can be used inside layout containers. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Hi! Thanks for opening this pull request.
Because this is your first time contributing to this repository, make sure you've read our Contributor Guide and Code of Conduct.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Python SDK exposes 11 blueprint view types, but the Rust SDK in
re_sdk::blueprintonly exposes 6 of them. This adds the missing ones:BarChartViewDataframeViewStateTimelineViewTensorViewTextLogViewEach follows the existing minimal builder pattern used by
Spatial2DView,TimeSeriesView, etc. —with_origin/with_contents/with_visible/with_defaults/with_override(s)— and gets aFrom<…> for ContainerLikeimpl so they can be placed insideVertical/Horizontal/Grid/Tabs.The original motivation was that
TextLogViewwas unreachable from a downstream Rust crate building a blueprint — the others have the same gap.View-specific property setters (e.g.
TextLogcolumns/rows/format_options,Dataframequery options,TimeSeriesaxes, etc.) are not exposed in the Rust SDK for any view yet — that's a separate, larger gap.Test plan
cargo clippy -p re_sdkpasses clean🤖 Generated with Claude Code