remove graphviz
This commit is contained in:
parent
a9fa6f14fb
commit
5f8da04cd8
5 changed files with 96 additions and 55 deletions
|
|
@ -1,12 +1,9 @@
|
|||
import { run, parse } from 'hs2js';
|
||||
import { renderGraph } from './graph.mjs';
|
||||
import { initStrudel, reify, late, samples, stack } from '@strudel/web';
|
||||
initStrudel({
|
||||
prebake: () => samples('github:tidalcycles/dirt-samples'),
|
||||
});
|
||||
|
||||
const graphContainer = document.getElementById('graph');
|
||||
|
||||
const textarea = document.getElementById('code');
|
||||
if (window.location.hash) {
|
||||
textarea.value = atob(window.location.hash.slice(1));
|
||||
|
|
@ -60,12 +57,6 @@ async function update() {
|
|||
}
|
||||
console.log('parsed tree');
|
||||
console.log(tree.rootNode.toString());
|
||||
try {
|
||||
renderGraph(tree, graphContainer);
|
||||
} catch (err) {
|
||||
console.warn('could not render graph');
|
||||
console.error(err);
|
||||
}
|
||||
try {
|
||||
let patterns = {};
|
||||
window.p = (name, pattern) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue