magjac / d3-graphviz

Graphviz DOT rendering and animated transitions using D3
BSD 3-Clause "New" or "Revised" License
1.68k stars 103 forks source link

Is there anyway to prevent the use of external resources? #222

Closed Fexyler closed 2 years ago

Fexyler commented 2 years ago

Hey There,

I wonder that how can I prevent d3-graphviz to not use external resources like some javascript and wasm files from the CDNs. Is there anyway to use these stuff without sending a request to external IPs? Do you guys know how can I put them to my build? In the below you can see that requests I am talking about.

graphviz-problem
magjac commented 2 years ago

Have look at the examples, e.g. https://github.com/magjac/d3-graphviz/blob/master/examples/basic.html.

Fexyler commented 2 years ago

Okay I find out how to do it, thank you Magnus!

magjac commented 2 years ago

If you want to bundle it into your build there are probably many alternatives. I'm a newbie in that area, but I've bundled it myself in https://github.com/magjac/graphviz-visual-editor which is a React project, if you want to look at that.