Skip to content

Commit 6c652d5

Browse files
Updated demo
1 parent f8423a8 commit 6c652d5

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

demo/build_web.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/egui-gizmo-demo.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/egui-gizmo-demo_bg.wasm

-11 MB
Binary file not shown.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<title>egui-gizmo demo</title><style>body,canvas,html{margin:0;padding:0;width:100%;height:100%;overflow:hidden;position:absolute;background:black;z-index:0}</style><link as=fetch crossorigin href=./egui-gizmo-demo_bg.wasm integrity=sha384-0IsFCjRufCuGXGz07Y9s5KPkzzJ4lc9eStTf1slrcfK6T6qJV2o-APa6DgyIymyy rel=preload type=application/wasm><link crossorigin href=./egui-gizmo-demo.js integrity=sha384-AMlWz6FdyRln6WA_6U03u7Y2DAcOIc0eyT-OJ0UAQSSK7olp-CRXAUEivD4rH425 rel=modulepreload></head><body oncontextmenu="return false;"><script type=module>import a,*as b from"./egui-gizmo-demo.js";a(`./egui-gizmo-demo_bg.wasm`);window.wasmBindings=b</script></body></html>
1+
<title>egui-gizmo demo</title><style>body,canvas,html{margin:0;padding:0;width:100%;height:100%;overflow:hidden;position:absolute;background:black;z-index:0}</style><link as=fetch crossorigin href=./egui-gizmo-demo_bg.wasm integrity=sha384-gv6VcHXKqcxVYZYIqXT7UvGlz4KIJW8XYb86PzGWDF_ReerXp3F4xWbLBnPfx9Qm rel=preload type=application/wasm><link crossorigin href=./egui-gizmo-demo.js integrity=sha384-GrLsch8RCrPYLRQ6BZugJpDQ5UTLwUKl2HmRbaV2V-Eu7UTw9tr7DVUPpyPgePTU rel=modulepreload></head><body oncontextmenu="return false;"><script type=module>import a,*as b from"./egui-gizmo-demo.js";a(`./egui-gizmo-demo_bg.wasm`);window.wasmBindings=b</script></body></html>

scripts/build_demo_web.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
set -eu
4+
script_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
5+
6+
WASM_PATH="docs/egui-gizmo-demo_bg.wasm"
7+
8+
pushd "$script_path/../demo"
9+
trunk build --config Trunk.toml --release
10+
popd
11+
12+
wasm-opt "$WASM_PATH" -O2 --fast-math -o "$WASM_PATH"

0 commit comments

Comments
 (0)