style: reformated VisProg.tsx and VisProgTypes.tsx to be compliant with code standards

ref: N25B-114
This commit is contained in:
JGerla
2025-10-09 16:38:52 +02:00
parent f6fcd20462
commit 40af530fd5
2 changed files with 17 additions and 19 deletions

View File

@@ -6,8 +6,6 @@ import VisProgUI from "./visualProgrammingUI/VisProgUI.tsx";
//you can still use css parts from App.css, but also overwrite them
function VisProgPage() {
return (
<>
<VisProgUI />

View File

@@ -1,25 +1,25 @@
import {
type Edge,
type Node,
type OnNodesChange,
type OnEdgesChange,
type OnConnect,
type OnReconnect,
type Edge,
type Node,
type OnNodesChange,
type OnEdgesChange,
type OnConnect,
type OnReconnect,
} from '@xyflow/react';
export type AppNode = Node;
export type FlowState = {
nodes: Node[];
edges: Edge[];
edgeReconnectSuccessful: boolean;
onNodesChange: OnNodesChange;
onEdgesChange: OnEdgesChange;
onConnect: OnConnect;
onReconnect: OnReconnect;
onReconnectStart: () => void;
onReconnectEnd: (_: unknown, edge: { id: string }) => void;
setNodes: (nodes: AppNode[]) => void;
setEdges: (edges: Edge[]) => void;
nodes: Node[];
edges: Edge[];
edgeReconnectSuccessful: boolean;
onNodesChange: OnNodesChange;
onEdgesChange: OnEdgesChange;
onConnect: OnConnect;
onReconnect: OnReconnect;
onReconnectStart: () => void;
onReconnectEnd: (_: unknown, edge: { id: string }) => void;
setNodes: (nodes: AppNode[]) => void;
setEdges: (edges: Edge[]) => void;
};