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 //you can still use css parts from App.css, but also overwrite them
function VisProgPage() { function VisProgPage() {
return ( return (
<> <>
<VisProgUI /> <VisProgUI />

View File

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