File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments