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};
23#[cfg(any(debug_assertions, test))]
24use euv_automation::{AiAppHooks, AiJsonValue, AiSchemaProtocol};
25#[cfg(target_arch = "wasm32")]
26use std::cell::{RefCell, RefMut};
27use std::{cell::Cell, f32::consts::PI, rc::Rc};
28#[cfg(not(target_arch = "wasm32"))]
29use std::{
30    fs,
31    io::{Error, Read, Write},
32    net::{SocketAddr, TcpListener},
33    path::{Path, PathBuf},
34    thread::spawn,
35};
36use {
37    euv::*,
38    euv_automation::DevAutomationBridge,
39    euv_ui::*,
40    lombok_macros::{Data, Getter},
41};
42#[cfg(target_arch = "wasm32")]
43use {
44    js_sys::Function,
45    wasm_bindgen::{JsCast, JsValue, closure::Closure, prelude::wasm_bindgen},
46    web_sys::{
47        Document, DomRect, Event, HtmlCanvasElement, KeyboardEvent, WheelEvent, Window, window,
48    },
49};