slint/examples/graphicstest
Simon Hausmann 992f990fa8 Allow for fitting paths into a given bounding rectangle
... by applying a transformation. This allows designing a path in some
other path design tool and then make it fit using bindings.
2020-07-13 15:41:11 +02:00
..
src Allow for fitting paths into a given bounding rectangle 2020-07-13 15:41:11 +02:00
.gitignore Ignore some generated files 2020-05-11 08:59:39 +02:00
Cargo.toml Rename corelib to sixtyfps_corelib 2020-06-09 13:27:18 +02:00
index.html Fix wasm build 2020-05-07 15:07:29 +02:00
logo.png Start with image rendering 2020-05-05 18:20:21 +02:00
README Add README that explains how to try the wasm build 2020-05-07 15:07:29 +02:00

To try the WASM build, use these steps:

cargo build --target wasm32-unknown-unknown --bin graphicstest
cd examples/graphicstest
mkdir -p generated
wasm-bindgen ../../target/wasm32-unknown-unknown/debug/graphicstest.wasm --out-dir generated --no-modules
cp index.html generated/

Then serve for example with

cd generated/
python -m SimpleHTTPServer

and go to

http://localhost:8000/index.html