fj_core/
presentation.rs

1//! Presentation data for the object graph
2//!
3//! See [`Presentation`].
4
5use std::collections::BTreeMap;
6
7use fj_interop::Color;
8
9use crate::{objects::Region, storage::Handle};
10
11/// Presentation data for the object graph
12///
13/// Assigns attributes relating to the presentation of objects (currently just a
14/// color) to those objects (currently only to regions).
15///
16/// This data is made available through [`Layers`].
17///
18/// [`Layers`]: crate::layers::Layers
19#[derive(Default)]
20pub struct Presentation {
21    /// Color assigned to regions
22    ///
23    /// Having a color is optional, so map does not necessarily contain
24    /// assignments for all existing regions.
25    pub color: BTreeMap<Handle<Region>, Color>,
26}