(options: EdgeFactoryOptions)
| 39 | * ``` |
| 40 | */ |
| 41 | export function createEdge(options: EdgeFactoryOptions): any { |
| 42 | return { |
| 43 | id: options.id ?? generateEdgeId(options.source, options.target), |
| 44 | source: options.source, |
| 45 | target: options.target, |
| 46 | sourceHandle: options.sourceHandle, |
| 47 | targetHandle: options.targetHandle, |
| 48 | type: options.type ?? 'default', |
| 49 | data: options.data, |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Creates multiple edges from a connection specification. |
no test coverage detected