arcs icon indicating copy to clipboard operation
arcs copied to clipboard

wasm-demo not working?

Open NOP0 opened this issue 4 years ago • 5 comments

Should this be working now? I'm just getting a black square.

image

NOP0 avatar Jan 01 '20 19:01 NOP0

Well technically the library is able to start render things to a canvas (see the example program's output below).

rendered

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...

Screenshot from 2020-01-02 20-36-40

Michael-F-Bryan avatar Jan 02 '20 12:01 Michael-F-Bryan

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:

NOP0 avatar Feb 02 '20 19:02 NOP0

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.

Michael-F-Bryan avatar Feb 03 '20 04:02 Michael-F-Bryan

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

sbmess2014 avatar Feb 06 '20 22:02 sbmess2014

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.

greglearns avatar Feb 28 '20 15:02 greglearns