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;
10mod stress;
11
12#[cfg(test)]
13#[path = "../tests/mod.rs"]
14mod tests;
15
16pub use {app::*, pages::*, state::*, stress::*};
17
18#[cfg(debug_assertions)]
19use euv_automation::AI_SCHEMA_PROTOCOL_VERSION;
20#[cfg(test)]
21use euv_automation::{
22    AiAction, AiAnomalyKind, AiLayoutAnomaly, AiRuntimeSnapshot, AiSchemaRequest, AiSchemaResponse,
23};
24#[cfg(any(debug_assertions, test))]
25use euv_automation::{AiAppHooks, AiJsonValue, AiSchemaProtocol};
26#[cfg(target_arch = "wasm32")]
27use std::cell::{RefCell, RefMut};
28use std::{cell::Cell, f32::consts::PI, rc::Rc};
29#[cfg(not(target_arch = "wasm32"))]
30use std::{
31    fs,
32    io::{Error, Read, Write},
33    net::{SocketAddr, TcpListener},
34    path::{Path, PathBuf},
35    thread::spawn,
36    time::Instant,
37};
38use {
39    euv::*,
40    euv_automation::DevAutomationBridge,
41    euv_ui::*,
42    lombok_macros::{Data, Getter},
43};
44#[cfg(target_arch = "wasm32")]
45use {
46    js_sys::{Function, Reflect},
47    wasm_bindgen::{JsCast, JsValue, closure::Closure, prelude::wasm_bindgen},
48    web_sys::{
49        Document, DomRect, Element, Event, HtmlCanvasElement, HtmlElement, KeyboardEvent,
50        Performance, WheelEvent, Window, window,
51    },
52};