You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing an online Graphviz dot editor and I'm using old version of viz.js. I made a common module adding define wrapper around distribution code and I embedded it in WebWorker with use of require() as described in its guideline.
Now I'm trying to upgrade to newer version but I have problems to use it in the same way. I'm receiving errors from initializing my module depending on viz.js. As far I understand (from generated code) there is support for WebWorker environment and require.js also. I'm not sure if it is supporting both together. If yes please give me an advice how to do that.
The text was updated successfully, but these errors were encountered:
The wrapper code for Viz.js used to reference the window object, so it couldn't directly be used in a Web Worker. I've changed this in the most recent version. Have a look at the gh-pages branch for an example: https://github.com/mdaines/viz.js/tree/gh-pages
I'm developing an online Graphviz dot editor and I'm using old version of
viz.js
. I made a common module adding define wrapper around distribution code and I embedded it in WebWorker with use ofrequire()
as described in its guideline.Now I'm trying to upgrade to newer version but I have problems to use it in the same way. I'm receiving errors from initializing my module depending on
viz.js
. As far I understand (from generated code) there is support for WebWorker environment andrequire.js
also. I'm not sure if it is supporting both together. If yes please give me an advice how to do that.The text was updated successfully, but these errors were encountered: