Skip to content

Commit 446a8b6

Browse files
committed
Get graphviz working again
1 parent 327e42d commit 446a8b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ <h1>Visualize a recursive function</h1>
108108

109109
</div>
110110
<!-- GraphViz WASM -->
111-
<script src="https://cdn.jsdelivr.net/npm/@hpcc-js/wasm/dist/index.min.js"></script>
111+
<script src="https://cdn.jsdelivr.net/npm/@hpcc-js/wasm/dist/graphviz.umd.js"></script>
112112
<!-- Python WASM -->
113113
<script src="https://cdn.jsdelivr.net/pyodide/v0.19.0/full/pyodide.js"></script>
114114
<!-- Form functionality-->
@@ -145,7 +145,7 @@ <h1>Visualize a recursive function</h1>
145145
const functionCall = document.getElementById('function-call-input').value;
146146
const dotGraph = pyodide.runPython(`visualize('''${functionDef}''', '''${functionCall}''')`);
147147
document.getElementById("visualize-status").innerHTML = "Rendering call graph...";
148-
hpccWasm.graphvizSync().then(graphviz => {
148+
hpccWasm.Graphviz.load().then(graphviz => {
149149
const div = document.getElementById("placeholder");
150150
div.innerHTML = graphviz.layout(dotGraph, "svg", "dot");
151151
new RecursiveTreeViz(div.querySelector('svg')).draw()

0 commit comments

Comments
 (0)