Skip to content

Commit 18f78ff

Browse files
committed
Remove slots from layoutTypes
1 parent 236fecb commit 18f78ff

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

src/types/layoutTypes.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export interface Bounds {
2828

2929
// ID types for type safety
3030
export type NodeId = string
31-
export type SlotId = string
3231
export type ConnectionId = string
3332

3433
// Layout data structures
@@ -42,18 +41,12 @@ export interface NodeLayout {
4241
bounds: Bounds
4342
}
4443

45-
export interface SlotLayout {
46-
id: SlotId
47-
nodeId: NodeId
48-
position: Point // Relative to node
49-
type: 'input' | 'output'
50-
index: number
51-
}
52-
5344
export interface ConnectionLayout {
5445
id: ConnectionId
55-
sourceSlot: SlotId
56-
targetSlot: SlotId
46+
sourceNodeId: NodeId
47+
sourceSlotIndex: number
48+
targetNodeId: NodeId
49+
targetSlotIndex: number
5750
// Control points for curved connections
5851
controlPoints?: Point[]
5952
}

0 commit comments

Comments
 (0)