Skip to main content

Crate euv_example

Crate euv_example 

Source
Expand description

euv-example

Cross-platform native showcase application built with euv and euv-ui, demonstrating fine-grained reactivity, multi-mode rendering, window settings, 17 design schemes, virtualized lists, and overlays.

Structs§

ChartsSignals
Lazily initialized signals powering the /charts ECharts Studio page.
DataSignals
Lazily initialized signals powering the /data virtualized list page.
DemoOpenWorld3DScene
Interactive AAA 3D open-world city scene with PBR shading, BVH ray tracing, model importing, and runtime settings.
DemoPhysicsScene
Full-featured 2D arcade arena scene powered by GameWorld, PhysicsWorld2D, Camera2D, ParticleSystem, TileMap, ActionMap, and AudioBus.
DynamicSignals
Lazily initialized signals powering the /dynamic OTA & WASM showcase page.
Engine3dSignals
Lazily initialized signals powering the /game3d PBR + BVH ray-tracing page.
FormsSignals
Lazily initialized signals powering the /forms showcase page.
LabSignals
Lazily initialized signals powering the /lab UI & Edge Lab page.
LazyWaterScene
Zero-boot-cost lazy GameScene wrapper deferring GyroLiquidGameScene allocation until /water is visited.
MarkdownSignals
Lazily initialized signals powering the /markdown Markdown & Code Studio page.
MediaSampleBundle
Decoded Media Studio sample assets assembled off the UI critical path and committed atomically.
MediaSignals
Lazily initialized signals powering the /media Media Studio page.
OverlaysSignals
Lazily initialized signals powering the /overlays showcase page.
ReactiveSignals
Lazily initialized signals powering the /reactive showcase page.
RenderWindowSignals
Lazily initialized signals powering the /render and /window showcase pages.
ShowcaseGlobalBanner
App-wide reactive global state store registered via #[store] and observed with watch!(global ...).
ShowcasePage
Typed Component + Lifecycle page wrapper enforcing PageRetention::Freeze for every showcase route.
ShowcasePulseEvent
Cross-component custom event emitted via #[event] / emit! and received via on! across showcase pages.
ShowcaseRouteSpec
Single source of truth describing one showcase route: path, navigation copy, sidebar section, quick-launch badge, and page builder.
ShowcaseState
Reactive application state powering the cross-platform showcase with minimal boot signals and lazy route-scoped signal groups.
StressCaseResult
Measured performance telemetry for a single interactive UI stress benchmark scenario.
StressSignals
Lazily initialized signals powering the /stress Stress Lab page.
WasmRegistryEntry
Pre-built .wasm OTA registry entry (url, bytes, etag, fault) generated off the UI critical path.
WasmSampleBundle
Collection of pre-built .wasm OTA registry payloads generated off the UI critical path.
WaterSignals
Lazily initialized signals powering the /water gyroscope liquid physics studio page.

Constants§

FLAG_AI_QUERY
Dev-only CLI flag executing a single AI Schema v1 JSON request against the headless showcase.
FLAG_AI_SCHEMA
Dev-only CLI flag printing the live AI Schema v1 runtime & layout snapshot JSON.
FLAG_CAPTURE_DIR
Command-line flag capturing raw RGBA screenshots of all showcase routes into the following directory.
FLAG_HARDWARE
Command-line flag selecting the hardware GPU pipeline.
FLAG_HEADLESS
Command-line flag enabling deterministic headless execution.
FLAG_HYBRID
Command-line flag selecting the hybrid compositor pipeline.
FLAG_INTERACTIVE
Command-line flag keeping the native window open in an interactive event loop.
FLAG_SOFTWARE
Command-line flag selecting the software rasterizer.
ROUTE_AUTOMATION
Route path for the dedicated AI Bridge & E2E automation inspection page.
ROUTE_CHARTS
Route path for the interactive Apache ECharts 20-series vector showcase page.
ROUTE_CONTROLS
Route path for the dedicated Buttons & Navigation controls page.
ROUTE_DATA
Route path for the virtualized list and table showcase page.
ROUTE_DISPLAY
Route path for the dedicated Cards, Badges & Content Display page.
ROUTE_DYNAMIC
Route path for the component-level and page-level dynamic OTA updates showcase page.
ROUTE_DYNAMIC_PANEL
Route path for the embedded page-level dynamic update preview slot.
ROUTE_FORMS
Route path for the interactive forms showcase page.
ROUTE_GAME
Route path for the embedded game engine & HUD showcase page.
ROUTE_GAME_3D
Route path for the AAA 3D open-world PBR & ray-tracing engine showcase page.
ROUTE_LAB
Route path for the Architecture & Cases composition recipes page.
ROUTE_MARKDOWN
Route path for the Eva-themed CodeBlock and complete GitHub-Flavored Markdown showcase page.
ROUTE_MEDIA
Route path for the full cross-platform media studio (Image, SVG, GIF, LIVE, Video, Audio, PDF, HTML).
ROUTE_MERMAID
Route path for the dedicated 11-family Mermaid diagram studio page.
ROUTE_OVERLAYS
Route path for the modal, toast, and alert overlay showcase page.
ROUTE_OVERVIEW
Route path for the overview dashboard page.
ROUTE_PROMO_LIVE
Runtime-injected dynamic route path created on demand without recompiling.
ROUTE_REACTIVE
Route path for the fine-grained reactivity demo page.
ROUTE_RENDER
Route path for the multi-mode rendering and vector canvas page.
ROUTE_STRESS
Route path for the interactive UI stress & performance lab page.
ROUTE_SYSTEM
Route path for the dedicated System Events, Lifecycle & Input diagnostics page.
ROUTE_THEMES
Route path for the 17-scheme live theme gallery page.
ROUTE_WATER
Route path for the real-time gyroscope liquid water physics studio page.
ROUTE_WINDOW
Route path for the native window and platform inspector page.
SHOWCASE_BRAND
Application brand title displayed in the shell chrome.
SHOWCASE_WINDOW_HEIGHT
Default logical window height in pixels.
SHOWCASE_WINDOW_TITLE
Default window title for the native showcase binary.
SHOWCASE_WINDOW_WIDTH
Default logical window width in pixels.
SLOT_METRICS_WIDGET
Component slot identifier for the independent live-updatable metrics widget.
SLOT_PROMO_BANNER
Component slot identifier for the live-updatable promotional banner.
SLOT_WASM_WIDGET
Scoped partial slot identifier for the live downloaded .wasm native widget.
STRESS_ID_CJK_ATLAS
Scenario identifier for the Unicode + CJK glyph rasterization and RGBA8 atlas packing benchmark.
STRESS_ID_DRAWER_ANIM
Scenario identifier for the 30-frame shadowed drawer & modal animation trace benchmark.
STRESS_ID_GAME_2D_3D
Scenario identifier for the 2D physics (256 bodies) + 3D BVH ray-tracing benchmark.
STRESS_ID_HIDPI_SHADOW
Scenario identifier for the HiDPI 3x/4x Gaussian shadow and SDF rasterizer benchmark.
STRESS_ID_LAYOUT_2000
Scenario identifier for the 2,000-node Flex/Grid complex layout benchmark.
STRESS_ID_MACRO_MOUNT
Scenario identifier for the declarative view! macro tree mount/unmount benchmark.
STRESS_ID_REACTIVE_1000
Scenario identifier for the 1,000-component bulk reactive signal/memo benchmark.
STRESS_ID_TOUCH_HITTEST
Scenario identifier for the 240Hz multi-touch pan and 1,000-node hit-test benchmark.
STRESS_ID_VLIST_100K
Scenario identifier for the 100,000-row virtualized list scroll benchmark.
STRESS_ID_WASM_HOTSWAP
Scenario identifier for the dynamic .wasm verification, hot-swap, and rollback benchmark.
TITLE_WASM_PARTIAL_V1
Display title for the downloaded partial WASM v1 widget fixture.
URL_WASM_BAD_ABI
CDN URL serving a .wasm with mismatched ABI version.
URL_WASM_CORRUPTED
CDN URL serving corrupted non-WASM magic header bytes.
URL_WASM_FUEL_BOMB
CDN URL serving an infinite-loop .wasm terminated by fuel metering.
URL_WASM_GLOBAL_V1
CDN URL for healthy global full-app .wasm bundle v1.
URL_WASM_GLOBAL_V2
CDN URL for healthy global full-app .wasm bundle v2.
URL_WASM_HTTP_500
CDN URL simulating persistent HTTP 500 server error.
URL_WASM_MISSING_EXPORT
CDN URL serving a .wasm missing euv_render export.
URL_WASM_OVERSIZED
CDN URL serving an oversized binary exceeding sandbox limit.
URL_WASM_PARTIAL_V1
CDN URL for healthy partial .wasm module v1.
URL_WASM_PARTIAL_V2
CDN URL for healthy partial .wasm module v2.
URL_WASM_TAMPERED
CDN URL serving checksum-tampered .wasm bytes.
URL_WASM_TIMEOUT_RETRY
CDN URL simulating first-attempt timeout followed by automatic retry success.
URL_WASM_TRAP
CDN URL serving a trapping unreachable .wasm.
WASM_SHOWCASE_SIGNING_KEY
Shared verification key used to sign showcase dynamic .wasm bundles.

Functions§

capture_showcase_screenshots
Renders all showcase routes, responsive viewports, dark mode, scroll positions, and overlays to raw RGBA files using native system fonts.
create_showcase_app
Builds an App and reactive ShowcaseState configured for either native OS or headless mode.
create_showcase_app_default
Builds an App and reactive ShowcaseState using the default max-performance configuration (RenderMode::Auto).
create_showcase_app_for_platform
Builds an App and reactive ShowcaseState reporting a specific host PlatformKind (for native mobile hosts).
create_showcase_app_with_viewport
Builds an App and reactive ShowcaseState configured with explicit initial logical viewport dimensions and DPR scale.
default_showcase_render_config
Builds the default highest-performance RenderConfig for mode (hardware-first, dirty rects enabled, uncapped refresh).
default_stress_results
Returns the default list of 10 interactive UI stress benchmark scenarios in IDLE state.
execute_stress_batch
Executes a slice of stress scenario identifiers sequentially and updates live summary telemetry.
execute_stress_case
Executes a single interactive stress scenario by scenario_id and updates state signals immediately.
mount_active_route
Mounts the showcase page corresponding to the active route in state.
mount_automation_page
Mounts the dedicated AI Bridge & E2E Automation inspection studio page.
mount_charts_page
Mounts the lazily hydrated ECharts Studio (/charts) showcase page demonstrating all 20 Apache ECharts series types.
mount_controls_page
Mounts the dedicated Buttons & Navigation page in a full-width responsive grid.
mount_data_page
Mounts the Data Display page featuring EuvStatGrid, 100k EuvVirtualList, EuvDataTable, fullscreen EuvTable, EuvTree, and EuvProgress.
mount_display_page
Mounts the dedicated Cards, Badges & Content Display page in a full-width responsive grid.
mount_dynamic_page
Mounts the interactive component-level and page-level dynamic OTA updates showcase page.
mount_forms_page
Mounts the full-width responsive Forms & Input Controls showcase covering text fields, validation, toggles, sliders, full-width dropdowns, OTP, tags, and pickers.
mount_game3d_page
Mounts the 3D Open-World RT Engine studio with a wide BVH viewport beside the graphics quality, lighting, and live model-import inspector rail.
mount_game_page
Mounts the 2D physics & sprite engine studio with a wide arena viewport beside the simulation and arcade-control rail.
mount_lab_page
Mounts the clean Architecture & Cases page featuring the persistent Architecture navigation case study plus compact real-world composition recipes.
mount_markdown_page
Mounts the dedicated Markdown & Code Studio page showcasing GFM prose, alerts, math, footnotes, no-ellipsis fullscreen tables, and Eva Bold EuvCodeBlock with interactive EuvCodeBlockSizeMode switching.
mount_media_page
Mounts the complete cross-platform Media Studio page demonstrating Image, SVG, GIF, LIVE Photo, Video, Audio, PDF, and native HTML5 in a fluid responsive grid.
mount_mermaid_page
Mounts the dedicated 11-family Mermaid Diagram Studio page with category tabs, full-width inline 2D-scrollable vector diagram + fullscreen zoom, and a live side-by-side source preview rail.
mount_overlays_page
Mounts the Overlays, Modals & Toasts page with lazily mounted portals, gesture drawers/sheets, anchored menus, feedback banners, and a global Command Palette launcher.
mount_overview_page
Mounts the executive Overview landing page with euv.png brand hero, live runtime KPI strip, categorized quick-launch cards, and framework highlights.
mount_reactive_page
Mounts the dedicated Reactivity & Single-Word Macros lab page.
mount_render_page
Mounts the Rendering & GPU Effects studio page with strictly widget-scoped controls.
mount_showcase_root
Mounts the fully reactive showcase application shell with lazy PageRetention::Freeze routing and cross-component events.
mount_stress_page
Mounts the declarative Interactive UI Stress & Performance Lab page (/stress).
mount_system_page
Mounts the dedicated System Events, Lifecycle & Input Diagnostics page.
mount_themes_page
Mounts the Design System studio: scheme selector + live preview rail beside the semantic palette, radius, control-height, typography and spacing scales.
mount_water_page
Mounts the real-time Gyroscope Liquid Water Studio page with an adaptive interactive liquid vessel, 6-DOF use_device_motion() synchronization, edge-to-edge fullscreen portal, and SI physics inspector rail.
mount_window_page
Mounts the Window, Viewport & Hardware Info page with responsive grids and OS service controls.
run_headless_smoke
Runs a complete headless smoke render of the showcase and returns frame telemetry.