euv-ui 0.51.0

Cross-platform UI component library and 17-scheme design system for the euv framework with pixel-consistent rendering across Web, Android, iOS, iPadOS, macOS, Windows, and Linux.
Documentation
/// Operating presentation mode for `EuvViewport3D`.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum EuvViewport3DMode {
    /// Clean unobstructed game viewport with screen/pointer + keyboard controls and ONLY a single fullscreen toggle button.
    #[default]
    Game,
    /// Blender Studio viewport adding an optional collapsible Scene/Materials/Camera/Live-Link inspector rail.
    Studio,
}

/// Active inspector tab displayed inside the collapsible `EuvViewport3D` Studio rail.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum EuvViewport3DInspectorTab {
    /// Scene hierarchy, Blender Collections, and geometry counters.
    #[default]
    Scene,
    /// Principled BSDF material list and quick PBR parameter controls.
    Materials,
    /// Camera orbit/FOV telemetry and studio preset angles.
    Camera,
    /// Blender Live-Link HTTP/SSE daemon connection status and toggle.
    LiveLink,
}

/// Interactive camera navigation gesture mode for `EuvViewport3D`.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum EuvViewport3DNavigationMode {
    /// Drag rotates camera around `target` (`yaw`, `pitch`).
    #[default]
    Orbit,
    /// Drag translates camera and `target` along the view plane.
    Pan,
    /// Keyboard + drag free-fly camera movement.
    Fly,
}

/// Connection lifecycle state reported in the `EuvViewport3D` Live-Link inspector hook.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
pub enum EuvViewport3DLiveLinkStatus {
    /// Not connected to a `euv blender live-sync` daemon.
    #[default]
    Disconnected,
    /// Establishing SSE stream to `/blender/events`.
    Connecting,
    /// Connected and listening for `blender.delta` / `blender.asset` events.
    Connected,
    /// Actively applying incoming delta or binary `.glb` asset updates.
    Syncing,
    /// Last Live-Link sync attempt encountered an error.
    Error,
}