arcs
arcs copied to clipboard
wasm-demo not working?
Should this be working now? I'm just getting a black square.
Well technically the library is able to start render things to a canvas (see the example program's output below).
At the moment, the wasm-demo
is meant to draw a dot wherever you click, but for whatever reason it'll add the item to the World
but I think the conversion between screen units and drawing units are off and it's actually drawing the dot outside the visible area...
At the moment, the wasm-demo is meant to draw a dot wherever you click,
This works for me now, and the example program is also working. Ok to close by me. :+1:
It looks like the demo published to GitHub Pages uses the wrong import paths. I'll see if I can fix it up after work, then it should be okay to close this issue.
In firefox on a mac I am getting an error in the console that the mime type is wrong.
Loading module from “https://michael-f-bryan.github.io/arcs/demo/pkg/arcs_demo.js” was blocked because of a disallowed MIME type (“text/html”). index.html
Loading failed for the module with source “https://michael-f-bryan.github.io/arcs/demo/pkg/arcs_demo.js”. index.html:22:1
https://michael-f-bryan.github.io/arcs/demo/index.html is returning a 404, and so the page renders blank.
By the way, very cool article about ramer douglas peucker.