Results 22 comments of mdaines

More example sentences would be nice, but I'd like the user to be able to ask for more.

@broofa I plan to look at this in the next few days.

Emscripten can produce a WebAssembly binary for Viz.js using just the `-s WASM=1` flag, but this doesn't fit with the way the main `Viz()` function is called currently, since the...

@amilajack I was able to get it to work, but the API for Viz.js needs to change to support asynchronous loading and indicating the location of the binary. Maybe something...

@amilajack @magjac I've opened #113 to discuss the possible changes.

I was thinking it looks something like this: - Add a target to build a WebAssembly binary. - Implement a wrapper like ModuleWrapper or WorkerWrapper so that `Viz` instances can...

Simply adding `-s WASM=1` worked for me. However, I'm using Emscripten 1.37.36.

My mistake. This only works for the lite version right now. I'm seeing a similar error for the full version. I've pushed a branch with the WASM setting enabled: https://github.com/mdaines/viz.js/compare/wasm...

@amilajack I just pushed a change to both the master and wasm branches. Both targets should work now. make graphviz-lite build-lite/module.js make expat graphviz build/module.js

Currently no. This was originally to avoid having to pass a JavaScript array or object to a compiled C function, but it should be possible to do this using Emscripten's...