(id: string)
| 27 | })) |
| 28 | |
| 29 | function createNode(id: string): DAGNode { |
| 30 | return { |
| 31 | id, |
| 32 | block: { |
| 33 | id, |
| 34 | position: { x: 0, y: 0 }, |
| 35 | enabled: true, |
| 36 | metadata: { id: 'function', name: id }, |
| 37 | config: { params: {} }, |
| 38 | inputs: {}, |
| 39 | outputs: {}, |
| 40 | }, |
| 41 | incomingEdges: new Set(), |
| 42 | outgoingEdges: new Map(), |
| 43 | metadata: {}, |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | function createState(): BlockStateController { |
| 48 | return { |