Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove slots from layoutTypes
  • Loading branch information
benceruleanlu committed Aug 14, 2025
commit 18f78ff786411f640bb22dd52d917501fad53b04
15 changes: 4 additions & 11 deletions src/types/layoutTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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[]
}
Expand Down