From 10d771d78a5dcb36b056adc276a4f391598370b3 Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Fri, 25 Jul 2025 22:36:22 -0400 Subject: [PATCH] added vial --- src/App.jsx | 2 ++ src/VialNode.jsx | 32 ++++++++++++++++++++++++++++++++ src/vial-svgrepo-com.svg | 17 +++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 src/VialNode.jsx create mode 100644 src/vial-svgrepo-com.svg diff --git a/src/App.jsx b/src/App.jsx index a086966..d51a5d6 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -26,6 +26,7 @@ import DefaultNode from './DefaultNode'; import { makeEdge } from './CustomEdge'; import MultiplierNode from './MultiplierNode'; import { Splitter2Node, Splitter3Node } from './Splitters'; +import VialNode from './VialNode'; // Add nodes as a node type for this script const nodeTypes = { @@ -43,6 +44,7 @@ const nodeTypes = { pid: DefaultNode, splitter2: Splitter2Node, splitter3: Splitter3Node, + vial: VialNode, }; // Defining initial nodes and edges. In the data section, we have label, but also parameters specific to the node. diff --git a/src/VialNode.jsx b/src/VialNode.jsx new file mode 100644 index 0000000..9a389de --- /dev/null +++ b/src/VialNode.jsx @@ -0,0 +1,32 @@ +import React from 'react'; +import { Handle } from '@xyflow/react'; +import vialIcon from './vial-svgrepo-com.svg'; + + +export default function VialNode({ data }) { + return ( +
+ Vial +
+ {data.label}

Not implemented yet +
+ + + +
+ ); +} diff --git a/src/vial-svgrepo-com.svg b/src/vial-svgrepo-com.svg new file mode 100644 index 0000000..945de88 --- /dev/null +++ b/src/vial-svgrepo-com.svg @@ -0,0 +1,17 @@ + + + + + + + + + \ No newline at end of file