Expand description
Generic WASM Renderer for DemoEngine Implementations
Per specification SIMULAR-DEMO-002: This renderer is engine-agnostic.
Any DemoEngine implementation can be rendered through this interface.
§Architecture
WASM bindings cannot use generic types directly with wasm-bindgen. This module provides:
WasmRunner<E>- internal runner that wraps anyDemoEngine- JSON serialization for cross-boundary state transfer
- Common operations (step, pause, reset, get state)
Concrete WASM exports (e.g., WasmOrbitDemo) wrap WasmRunner internally.
Structs§
- Criterion
Result Json - JSON-serializable criterion result.
- Wasm
Runner - Generic WASM runner that wraps any
DemoEngine. - Wasm
State - JSON-serializable state for cross-boundary transfer.