Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    innerop
    @innerop
    Or they can do this: If using Chrome, the command line switch is --allow-file-access-from-files
    Not sure the flag would work in case of WASM but the underlying issue is XHR which is used to load WASM
    So it should work ...
    Magnus Jacobsson
    @magjac

    @innerop See above from Gordon:

    I do find launching chrome with the --disable-web-security helps in a lot of similar scenarios (only for debugging) and removes the need for a web server 90% of the time...
    If any of the web browsers supported a flag for similar behavior with web workers / wasm loading it would simplify the dev flow for sure...

    Hmm. Maybe not relevant...
    innerop
    @innerop
    Yeah the Chrome team came up with the file specific flag to solve the same problem but with much more narrowly defined security hole
    Imagine using disable-security fog for an offline app then using same browser instance on the web (bad)
    fog = flag
    Magnus Jacobsson
    @magjac
    @GordonSmith It seems easy enough to clone https://gitlab.com/graphviz/graphviz and build from HEAD which would eliminate the need for an official tag. Or do you not want to do that because of non-traceability?
    Gordon Smith
    @GordonSmith
    Correct the main reason to build from the tag is one of tractability - it would be easy enough to swap out the tag for a commit hash in the install script, but an official tag would be preferable...
    innerop
    @innerop
    I just realized @GordonSmith those Chrome flags work only for XHR but not for the Fetch API which is what I believe Emacripten generates in the JS to load the WASM.
    innerop
    @innerop
    I don’t know if you guys can answer this but if there is a glitch in a C++ app that makes it crash under some conditions, what happens when it’s ported you WASM? How does the browser handle its termination? I assume there is a global exception handler somewhere?
    Gordon Smith
    @GordonSmith
    Correct - but its not allways an exact match i.e. the c++ might work, but the wasm might crash (typically with memory allocation issues).
    innerop
    @innerop
    Yeah. Makes sense. They should really sort out dynamic memory growth so it is straight forward and default behavior.
    Gordon Smith
    @GordonSmith
    In wasm it is now a option (without the same overhead as ASM.js) and I have enabled FWIW
    Magnus Jacobsson
    @magjac
    @GordonSmith @innerop I recently joined the Graphviz team to help out. We've just created a new forum which I invite you to join: https://graphviz.discourse.group/. It's still daringly empty, but we hope people will join and contribute.
    innerop
    @innerop
    @magjac awesome! Thanks
    Gordon Smith
    @GordonSmith
    Your forums look very similar to the ObservableHQ ones - what library are they based on?
    Gordon Smith
    @GordonSmith
    (The clue was in the URL!)
    ozymandias89
    @ozymandias89
    hi everyone! I have few experience with d3-graphviz for angular 8 (https://www.npmjs.com/package/d3-graphviz).
    ozymandias89
    @ozymandias89
    I have one question... if i render dot in this way "d3graphviz.graphviz('#app-graph').renderDot('digraph G { "Welcome" -> "To" "To" -> "Web" "To" -> "GraphViz!"}');" and the i want udate dot with completely different dot return an error. What is the best practice too refresh dot data with the same instance of render object?
    Magnus Jacobsson
    @magjac
    Matthew Richardson
    @mrichar1
    Hi - I've just started playing with d3-graphviz and am really liking this library. I have some questions about transitions if anyone can help? I'm using transitions as in the demo linked just above. I want a long delay on the transition (like 10-20 seconds) so that the viewer has time to read everything. However I can't figure out how to not have a long delay before the first digraph is presented. I was also wondering if there is an easy way to stop/start transitions with e.g. a pause/play button?
    Magnus Jacobsson
    @magjac_gitlab
    I think I can help you, but I recommend you to ask this question at https://forum.graphviz.org/c/d3-graphviz/9 and provide an executable example that I can work with
    Matthew Richardson
    @mrichar1
    Thanks - have created a post there!
    bond001
    @bond001
    is there a way to have mat-icon and some text inside d3-graphviz node?