Skip to content

Commit

Permalink
Updated demo
Browse files Browse the repository at this point in the history
  • Loading branch information
urholaukkarinen committed Jan 21, 2024
1 parent f8423a8 commit 6c652d5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
1 change: 0 additions & 1 deletion demo/build_web.sh

This file was deleted.

2 changes: 1 addition & 1 deletion docs/egui-gizmo-demo.js

Large diffs are not rendered by default.

Binary file modified docs/egui-gizmo-demo_bg.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -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>
<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>
12 changes: 12 additions & 0 deletions scripts/build_demo_web.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -eu
script_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )

WASM_PATH="docs/egui-gizmo-demo_bg.wasm"

pushd "$script_path/../demo"
trunk build --config Trunk.toml --release
popd

wasm-opt "$WASM_PATH" -O2 --fast-math -o "$WASM_PATH"

0 comments on commit 6c652d5

Please sign in to comment.