dot_ix_model 0.10.0

Model for the `dot_ix` diagramming application.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::common::TagId;

/// The purpose of CSS classes' styles -- element regular styles, or when a tag
/// is interacted with.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
pub enum StyleFor<'tag> {
    /// The element in its regular state.
    #[default]
    Regular,
    /// The element when a tag it is part of is focused.
    TagFocus(&'tag TagId),
}