From 18f78ff786411f640bb22dd52d917501fad53b04 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Thu, 14 Aug 2025 16:03:16 -0400 Subject: [PATCH] Remove slots from layoutTypes --- src/types/layoutTypes.ts | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/types/layoutTypes.ts b/src/types/layoutTypes.ts index 541874bb9..a4e2ee36e 100644 --- a/src/types/layoutTypes.ts +++ b/src/types/layoutTypes.ts @@ -28,7 +28,6 @@ export interface Bounds { // ID types for type safety export type NodeId = string -export type SlotId = string export type ConnectionId = string // Layout data structures @@ -42,18 +41,12 @@ export interface NodeLayout { bounds: Bounds } -export interface SlotLayout { - id: SlotId - nodeId: NodeId - position: Point // Relative to node - type: 'input' | 'output' - index: number -} - export interface ConnectionLayout { id: ConnectionId - sourceSlot: SlotId - targetSlot: SlotId + sourceNodeId: NodeId + sourceSlotIndex: number + targetNodeId: NodeId + targetSlotIndex: number // Control points for curved connections controlPoints?: Point[] }