1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

docs and example

This commit is contained in:
Stanislav
2022-07-30 20:11:46 +03:00
parent d0bcdfc226
commit 6e0140104d
4 changed files with 242 additions and 18 deletions

View File

@@ -133,7 +133,11 @@
console.debug("wasm loaded. starting app…");
// This call installs a bunch of callbacks and then returns:
wasm_bindgen.start("the_canvas_id");
const handle = wasm_bindgen.start("the_canvas_id");
// call `handle.stop_web()` to stop
// uncomment to quick result
// setTimeout(() => {handle.stop_web(); handle.free())}, 2000)
console.debug("app started.");
document.getElementById("center_text").remove();