euv-core 0.47.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// CSS-compatible deterministic layout length unit.
#[derive(Clone, Copy, Debug, Default, PartialEq)]
pub enum Length {
    /// Automatic size determined by content or parent constraints.
    #[default]
    Auto,
    /// Device-independent logical pixels.
    Px(f32),
    /// Percentage of the parent container's dimension in `[0.0, 100.0]`.
    Percent(f32),
    /// Fraction of remaining free space for grid tracks (`fr`).
    Fraction(f32),
    /// Percentage of the root viewport width (`vw`).
    ViewportWidth(f32),
    /// Percentage of the root viewport height (`vh`).
    ViewportHeight(f32),
}