ui: Suppress/Unsuppress on datums and partitions, greyed in the browser (#291)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo
This commit is contained in:
jyvikoandClaude Opus 5.5 authored and Irakli Kourtis committed 2026-10-15 10:17:28 -04:00
1 parent 5189554a6a
commit 84f42f6f8a
5 files changed
+71 -7

No files matched your search

+3 -1
View File
@@ -973,7 +973,9 @@ pub fn datums(
) -> Aabb3 {
let mut d = Draw { scene, bounds: Aabb3::EMPTY, color: colors.datum, width: OUTLINE_WIDTH, on_top: false };
let diagonal = if bounds.is_empty() { 1.0 } else { bounds.diagonal().max(1e-9) };
for (name, datum) in model.datums().iter().filter(|(n, _)| shown(n) || highlight == Some(n.as_str())) {
// A suppressed datum is out of the model: drawn only while selected in the browser.
let drawn = |n: &String| (shown(n) && !model.datum_suppressed(n)) || highlight == Some(n.as_str());
for (name, datum) in model.datums().iter().filter(|(n, _)| drawn(n)) {
let picked = highlight == Some(name.as_str());
let color = if picked { colors.highlight } else { colors.datum };
let outline = if picked { HIGHLIGHT_WIDTH } else { OUTLINE_WIDTH };