Remove slots from layoutTypes

This commit is contained in:
Benjamin Lu
2025-08-14 16:03:16 -04:00
parent 236fecb549
commit 18f78ff786

View File

@@ -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[]
}