| gio | 5f2f100 | 2025-03-20 18:38:48 +0400 | [diff] [blame] | 1 | import { Handle, Position } from "@xyflow/react"; |
| 2 | import { ReactElement } from "react"; |
| 3 | import { v4 as uuidv4 } from "uuid"; |
| 4 | |
| 5 | export class PortOut { |
| 6 | public readonly id: string; |
| 7 | // private name: string; |
| 8 | // private value: number; |
| 9 | |
| 10 | constructor() { |
| 11 | this.id = uuidv4(); |
| 12 | // this.name = ""; |
| 13 | // this.value = 0; |
| 14 | } |
| 15 | |
| 16 | public handle(): ReactElement { |
| 17 | return ( |
| 18 | <Handle |
| 19 | id={this.id} |
| 20 | type={"source"} |
| 21 | position={Position.Top} |
| 22 | /> |
| 23 | ) |
| 24 | } |
| 25 | } |
| 26 | |