Skip to content
Draft
Show file tree
Hide file tree
Changes from 19 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,27 @@ table PanelBlueprint (

// --- Optional ---

/// Current state of the panels.
/// Current state of the panel.
state: rerun.blueprint.components.PanelState ("attr.rerun.component_optional", nullable, order: 1000);

// TODO(jleibs): Add a float to track how expanded the panel is.
}

/// Time panel specific state.
table TimePanelBlueprint (
"attr.rerun.scope": "blueprint",
"attr.rust.derive": "Default"
) {
// --- Required ---

// --- Optional ---

/// Current state of the panel.
state: rerun.blueprint.components.PanelState ("attr.rerun.component_optional", nullable, order: 1000);

/// What timeline the panel is on.
timeline: rerun.blueprint.components.TimelineName ("attr.rerun.component_optional", nullable, order: 2000);

/// What time the time cursor should be on.
time: rerun.blueprint.components.TimeCell ("attr.rerun.component_optional", nullable, order: 2100);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for self: I wonder if we should somehow mark its "staticness" here? 🤔

}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace rerun.blueprint.components;

// ---

/// A reference to a time.
struct TimeCell (
"attr.arrow.transparent",
"attr.rerun.scope": "blueprint",
"attr.python.aliases": "long",
"attr.rust.derive": "Copy, PartialEq, Eq, PartialOrd, Ord",
"attr.rust.repr": "transparent",
"attr.rust.tuple_struct"
) {
time: rerun.datatypes.TimeInt (order: 100);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be a bit confusing. We already hav e a struct TimeCell that has the TimeType in it as well.

I feel like this should either have a TimeType, or simply be called TimeInt (it's quite often we have a datatype and a component of the same name)

}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crates/store/re_types/src/blueprint/archetypes/mod.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

242 changes: 242 additions & 0 deletions crates/store/re_types/src/blueprint/archetypes/time_panel_blueprint.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crates/store/re_types/src/blueprint/components/mod.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading