Browse Source

Update src/lib/components/EventNetwork.svelte

Co-authored-by: Michael J <37635304+buttercat1791@users.noreply.github.com>
master
limina1 1 year ago committed by GitHub
parent
commit
cc2380bc17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/lib/components/EventNetwork.svelte

2
src/lib/components/EventNetwork.svelte

@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
return `hsl(${hue}, ${saturation}%, ${lightness}%)`;
}
function generateGraph(events: NDKEvent[]) {
function generateGraph(events: NDKEvent[]): [object[], object[]] {
const nodes = [];
const links = [];
const nodeMap = new Map();

Loading…
Cancel
Save