euv-docs 0.52.0

Cross-platform documentation viewer and static site generator powered by euv and euv-ui.
Documentation
use super::*;

#[cfg(target_arch = "wasm32")]
thread_local! {
    pub(crate) static WEB_DOCS_RUNTIME: RefCell<Option<(App, DocsViewerState)>> =
        const { RefCell::new(None) };
    pub(crate) static WEB_DOCS_SYNCING_FROM_HISTORY: Cell<bool> = const { Cell::new(false) };
    pub(crate) static WEB_DOCS_LISTENERS_ATTACHED: Cell<bool> = const { Cell::new(false) };
    pub(crate) static WEB_DOCS_NEEDS_FRAME: Cell<bool> = const { Cell::new(false) };
    pub(crate) static WEB_DOCS_PENDING_MOVE: Cell<Option<(u32, bool, f32, f32, f32)>> =
        const { Cell::new(None) };
    pub(crate) static WEB_DOCS_PENDING_SCROLL: Cell<Option<(f32, f32, f32, f32)>> =
        const { Cell::new(None) };
    pub(crate) static WEB_DOCS_PENDING_RESIZE: Cell<Option<(u32, u32, f32)>> =
        const { Cell::new(None) };
    /// Accumulated wall-clock seconds across consecutive active browser rAF ticks in the docs viewer.
    pub(crate) static WEB_DOCS_RAF_ACCUM_SECS: Cell<f64> = const { Cell::new(0.0) };
    /// Accumulated active browser rAF frame count in the docs viewer.
    pub(crate) static WEB_DOCS_RAF_ACCUM_FRAMES: Cell<u32> = const { Cell::new(0) };
}