diff --git a/src/lib/components/EventNetwork.svelte b/src/lib/components/EventNetwork.svelte index ac2c6dd..c02e4c3 100644 --- a/src/lib/components/EventNetwork.svelte +++ b/src/lib/components/EventNetwork.svelte @@ -12,6 +12,16 @@ const nodeRadius = 20; const dragRadius = 45; const linkDistance = 120; + interface NetworkNode { + id: string; + event?: NDKEvent; + index?: number; + isContainer: boolean; + title: string; + content: string; + author: string; + type: "Index" | "Content"; + } function getEventColor(eventId: string): string { const num = parseInt(eventId.slice(0, 4), 16);