1
2
3
4
5
6
7
8
9
10
11
12
use re_types::components::ViewCoordinates;
use re_viewer_context::{MaybeMutRef, UiLayout, ViewerContext};

pub fn edit_or_view_view_coordinates(
    _ctx: &ViewerContext<'_>,
    ui: &mut egui::Ui,
    value: &mut MaybeMutRef<'_, ViewCoordinates>,
) -> egui::Response {
    // TODO(#6743): Don't allow editing view coordinates for now.
    // Its overrides are likely not always correctly queried.
    UiLayout::List.data_label(ui, value.as_ref().describe())
}