graphviz-react icon indicating copy to clipboard operation
graphviz-react copied to clipboard

Transitions and Webworker

Open un0btanium opened this issue 4 years ago • 4 comments

Are smooth transitions possible with this? Or are these d3-graphviz v3 features?

Furthermore, I am receiving warnings in my react app and not quite sure what they mean or how to fix them. I assume this also causes a noticeable freeze in my application when a graph is being generated.

viz.js:60779 Invalid asm.js: Undefined global variable```

un0btanium avatar Apr 22 '21 15:04 un0btanium

Smooth transitions have been available in d3-graphviz since the first release.

I think you can safely ignore that error message. It comes from viz.js and I've never seen any problem because of them. Freezes will occur if you're not using the web worker version of d3-graphviz. I'm not sure which version graphviz-react uses.

magjac avatar Apr 22 '21 17:04 magjac

Hm, which one would be the web worker version of d3-graphviz. How would I find out?

un0btanium avatar Apr 22 '21 19:04 un0btanium

It's documented here, but I don't know how this is handled in graphviz-react. You have to look in the source code or wait for @DomParfitt to answer.

magjac avatar Apr 23 '21 07:04 magjac

To be honest I'm actually not sure about this myself. We don't set any extra script tags so my gut feeling is that it may not currently be working. I'll have a look and see how easy it would be to add this in.

DomParfitt avatar Apr 23 '21 10:04 DomParfitt