euv-core 0.48.3

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
use super::*;

thread_local! {
    /// Reusable no-op rejection callback attached to browser Fullscreen API Promises so denied gestures never emit unhandled rejections.
    pub(crate) static WEB_PROMISE_NOOP_REJECT: Closure<dyn FnMut(JsValue)> =
        Closure::wrap(Box::new(|_: JsValue| {}) as Box<dyn FnMut(JsValue)>);
    /// Thread-local browser sensor state bridging `devicemotion` and `deviceorientation` into `WebPlatform::poll_events`.
    pub(crate) static WEB_DEVICE_MOTION_STATE: RefCell<WebDeviceMotionState> =
        RefCell::new(WebDeviceMotionState {
            listeners_attached: false,
            has_motion_event: false,
            orient_gravity_dev: None,
            last_yaw_rad: 0.0,
            filtered_gravity_dev: None,
            gravity_sign: -1.0,
            has_pending_sample: false,
            pending_sample: DeviceMotionSample::upright(),
        });
}