From 34921906b44c40557e3e4e14dbe5b498b8e78fcc Mon Sep 17 00:00:00 2001 From: limina1 Date: Tue, 17 Dec 2024 00:44:51 -0500 Subject: [PATCH] add NetworkNode interface --- src/lib/components/EventNetwork.svelte | 10 ++++++++++ 1 file changed, 10 insertions(+) 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);