Skip to main content

Crate draw_wasm

Crate draw_wasm 

Source
Expand description

WASM bindings for the draw renderer.

Exposes a DrawEngine that holds document state, viewport, selection, and renderer — callable from JavaScript via wasm-bindgen.

Complex types cross the boundary as JSON strings to keep the interface simple.

Structs§

DrawEngine
The main WASM-facing engine. Holds all state needed for rendering and interaction: document, renderer, viewport, selection, and undo history.