blob: 0e7307d97fb9dcfbed401f8f5d59433f3cd03934 [file] [log] [blame]
gio5f2f1002025-03-20 18:38:48 +04001import { Handle, Position } from "@xyflow/react";
2import { ReactElement } from "react";
3import { v4 as uuidv4 } from "uuid";
4
5export class PortOut {
giod0026612025-05-08 13:00:36 +00006 public readonly id: string;
7 // private name: string;
8 // private value: number;
gio5f2f1002025-03-20 18:38:48 +04009
giod0026612025-05-08 13:00:36 +000010 constructor() {
11 this.id = uuidv4();
12 // this.name = "";
13 // this.value = 0;
14 }
gio5f2f1002025-03-20 18:38:48 +040015
giod0026612025-05-08 13:00:36 +000016 public handle(): ReactElement {
17 return <Handle id={this.id} type={"source"} position={Position.Top} />;
18 }
gio5f2f1002025-03-20 18:38:48 +040019}