From d893476d1bd82f02fec37af5be90de29c5d8a967 Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Thu, 30 Oct 2025 17:22:23 +0100 Subject: [PATCH] better looking connection editor --- src/App/App.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/App/App.tsx b/src/App/App.tsx index 66a2d05..c5286e1 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -464,9 +464,10 @@ function ConnEditor(ast: Statechart, plant: Plant, plantConns: Conns, setPl const scInputs = <>{ast.inputEvents.map(e => )}; return <> {/* Plant UI events can go to SC or to Plant */} - {plant.uiEvents.map(e =>
- + {plant.uiEvents.map(e =>
+ setPlantConns(conns => ({...conns, [`sc.${e}`]: domEvent.target.value.split('.') as [string,string]}))}> @@ -487,9 +489,10 @@ function ConnEditor(ast: Statechart, plant: Plant, plantConns: Conns, setPl
)} {/* Plant output events can go to Statechart */} - {[...plant.outputEvents.map(e =>
- + {[...plant.outputEvents.map(e =>
+