Magnus Jacobsson

Results 79 comments of Magnus Jacobsson

Sorry for the delay and thanks for the suggestion. I agree that that would be useful.

@asteiner-psh Not exactly what you suggested, but I've added a fullscreen (within the browser window) mode for the graph. You can try it at http://magjac.com/test/graphviz-visual-editor/. ![image](https://github.com/magjac/graphviz-visual-editor/assets/6350376/78969ec4-d972-4c85-b9a3-8631e05da11c)

I seems to me that the problem is in Graphviz itself. See https://gitlab.com/graphviz/graphviz/-/issues/2331 and https://gitlab.com/graphviz/graphviz/-/merge_requests/3016. Your second example is not valid DOT source and gives `syntax error in line 16...

Some debugging shows that the error exists already in [hpcc-js/wasm](https://github.com/hpcc-systems/hpcc-js-wasm) and is `index out of bounds`: ![image](https://github.com/magjac/d3-graphviz/assets/6350376/ddfe00d3-6703-4317-bbfc-21fae8980333) This error probably comes from Graphviz itself from an assertion in [`lib/cgraph/list.h`](https://gitlab.com/search?search=%22index+out+of+bounds%22&nav_source=navbar&project_id=4207231&group_id=1996273&search_code=true&repository_ref=main).

Thanks for the suggestion. I've created a PR if you want to have a look at it: https://github.com/magjac/d3-graphviz/pull/331.

Sorry for the delay. I will look into updating the on-line examples. In the meantime, you have plenty of examples using version 5 at https://github.com/magjac/d3-graphviz/tree/master/examples.

It turns out that http://bl.ocks.org/ that the examples link to is no longer operational, but just redirects to https://gist.github.com/. I will have to port the examples some other JS playground.

The online examples have now been ported to https://blocks.roadtolarissa.com/magjac and updated to use version [5.6.0](https://github.com/magjac/d3-graphviz/blob/master/CHANGELOG.md#560--2024-08-18).

Thanks for pointing that out. The reason seems be what is described in https://github.com/orgs/community/discussions/137924. I might try to revive it using the method suggested. OTOH, I haven't used it since...