started work on list styling

This commit is contained in:
Iaphetes 2024-12-22 14:19:21 +01:00
parent 0c7bc1c2b1
commit 2eb111ebeb
3 changed files with 25 additions and 1 deletions

View file

@ -53,3 +53,18 @@ function handleShortcut(event) {
}
}
document.addEventListener("keydown", handleShortcut);
// Random tree
// const N = 300;
// const gData = {
// nodes: [...Array(N).keys()].map(i => ({ id: i })),
// links: [...Array(N).keys()]
// .filter(id => id)
// .map(id => ({
// source: id,
// target: Math.round(Math.random() * (id-1))
// }))
// };
// const Graph = new ForceGraph(
// (document.getElementById('graph'))
// .linkDirectionalParticles(2)
// .graphData(gData);