xilem/crates/xilem_html
Raph Levien 1fd1ce7885 Add wasm DOM implementation for xilem.
I'm doing all the work in a single commit so it's easier to rebase.

Below is a list of the individual changes I did

 - Squash prev commits
 - Remove top-level action handler (use Adapt instead).
 - Type events in the same way as elements (could also do attributes the
   same)
 - Allow users to avoid compiling the typed html/attributes/events
 - Use more specific types for mouse events from web_sys
 - change "click" from PointerEvent to MouseEvent (PointerEvent caused a
   panic on `dyn_into().unwrap()`)
2023-06-25 19:42:02 +01:00
..
src Add wasm DOM implementation for xilem. 2023-06-25 19:42:02 +01:00
web_examples Add wasm DOM implementation for xilem. 2023-06-25 19:42:02 +01:00
.gitignore Add wasm DOM implementation for xilem. 2023-06-25 19:42:02 +01:00
Cargo.toml Add wasm DOM implementation for xilem. 2023-06-25 19:42:02 +01:00
README.md Add wasm DOM implementation for xilem. 2023-06-25 19:42:02 +01:00

README.md

Xilemsvg prototype

This is a proof of concept showing how to use xilem_core to render interactive vector graphics into SVG DOM nodes, running in a browser. A next step would be to factor it into a library so that applications can depend on it, but at the moment the test scene is baked in.

The easiest way to run it is to use Trunk. Run trunk serve, then navigate the browser to the link provided (usually http://localhost:8080).