Skip to main content

euv_example/
lib.rs

1//! euv-example
2//!
3//! Cross-platform native showcase application built with euv and euv-ui,
4//! demonstrating fine-grained reactivity, multi-mode rendering, window settings,
5//! 17 design schemes, virtualized lists, and overlays.
6
7mod app;
8mod pages;
9mod state;
10
11#[cfg(test)]
12#[path = "../tests/mod.rs"]
13mod tests;
14
15pub use {app::*, pages::*, state::*};
16
17#[cfg(debug_assertions)]
18use euv_automation::AI_SCHEMA_PROTOCOL_VERSION;
19#[cfg(test)]
20use euv_automation::{
21    AiAction, AiAnomalyKind, AiLayoutAnomaly, AiRuntimeSnapshot, AiSchemaRequest, AiSchemaResponse,
22    UiAnomalyAuditConfig, UiAnomalyAuditor, UiAnomalyReport, UiAnomalySeverity,
23};
24#[cfg(any(debug_assertions, test))]
25use euv_automation::{AiAppHooks, AiSchemaProtocol, Value};
26#[cfg(target_arch = "wasm32")]
27use std::cell::RefMut;
28use std::{
29    cell::{Cell, RefCell},
30    f32::consts::PI,
31    rc::Rc,
32};
33#[cfg(not(target_arch = "wasm32"))]
34use std::{
35    fs,
36    io::{Error, Read, Write},
37    net::{SocketAddr, TcpListener},
38    path::{Path, PathBuf},
39    thread::spawn,
40    time::Instant,
41};
42use {
43    euv::{PointerEvent, *},
44    euv_automation::DevAutomationBridge,
45    euv_ui::*,
46    lombok_macros::{Data, Getter},
47};
48#[cfg(target_arch = "wasm32")]
49use {
50    js_sys::{Function, Object, Reflect},
51    wasm_bindgen::{JsCast, JsValue, closure::Closure, prelude::wasm_bindgen},
52    web_sys::{
53        Document, DomRect, Element, Event, EventTarget, HtmlCanvasElement, HtmlElement,
54        KeyboardEvent, MediaQueryList, Performance, WheelEvent, Window, window,
55    },
56};