Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about usage without Webassembly and some other questions #230

Closed
aglasencnik opened this issue Jan 19, 2024 · 1 comment
Closed

Comments

@aglasencnik
Copy link

aglasencnik commented Jan 19, 2024

Hi, I have a couple of questions, someone might know the answer to...
Basically the first question is: Do I need to use webassembly to run this library? Because it says it is a webassembly build... And I want to execute the code in c# with the Jint library. Basically, could I run the library as in a normal browser...
Second: In the viz-standalone.js there are a lot of "random" characters... what is that?
Third: Do I need to include your license if I want to create my own library for c# out of your library? I would include your "compiled" source code in my library...
Thanks

@mdaines
Copy link
Owner

mdaines commented Jan 19, 2024

First question: I'm not entirely sure, but based on a quick look, Jint doesn't appear to support WebAssembly. Therefore, this library won't work in that environment. At some point, it has to call WebAssembly.instantiate().

Second question: the WebAssembly binary produced by Emscripten is encoded as base64 and bundled with the Viz.js JavaScript wrapper. This allows the library to be distributed as a single file.

Third question: my view is that if you distribute software that includes Viz.js, you need to include a copy of the license. You would also be distributing "object code" of Graphviz and Expat, so you should check on the licenses for those projects as well.

Maybe this isn't an option, and obviously I don't know the details of your project, but I would consider using Graphviz as a library rather than bundling this project. You might be able to get help with using it from C# on the Graphviz forum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants