From 9401c02800fe26d01bac32ab225fcf01ddedd14e Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Thu, 16 Oct 2025 17:21:29 +0200 Subject: [PATCH] small changes --- src/App/App.tsx | 1 - src/VisualEditor/DiamondSVG.tsx | 6 ++++++ src/VisualEditor/RectHelpers.tsx | 3 --- src/VisualEditor/RountangleSVG.tsx | 5 +++++ src/statecharts/runtime_types.ts | 13 ------------- 5 files changed, 11 insertions(+), 17 deletions(-) diff --git a/src/App/App.tsx b/src/App/App.tsx index 301ca65..c84b1a0 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -30,7 +30,6 @@ export function App() { function onInit() { const config = initialize(ast); - console.log('runtime: ', rt); setRT([{inputEvent: null, simtime: 0, ...config}]); setRTIdx(0); setTime({kind: "paused", simtime: 0}); diff --git a/src/VisualEditor/DiamondSVG.tsx b/src/VisualEditor/DiamondSVG.tsx index f33eeac..108f4dd 100644 --- a/src/VisualEditor/DiamondSVG.tsx +++ b/src/VisualEditor/DiamondSVG.tsx @@ -33,5 +33,11 @@ export function DiamondSVG(props: { diamond: Diamond; selected: string[]; highli + + {props.diamond.uid} + ; } diff --git a/src/VisualEditor/RectHelpers.tsx b/src/VisualEditor/RectHelpers.tsx index 846dab7..7395184 100644 --- a/src/VisualEditor/RectHelpers.tsx +++ b/src/VisualEditor/RectHelpers.tsx @@ -73,8 +73,5 @@ export function RectHelper(props: { uid: string, size: Vec2D, selected: string[] r={CORNER_HELPER_RADIUS} data-uid={props.uid} data-parts="bottom left" /> - {props.uid} ; } \ No newline at end of file diff --git a/src/VisualEditor/RountangleSVG.tsx b/src/VisualEditor/RountangleSVG.tsx index f45ad2c..409e7cb 100644 --- a/src/VisualEditor/RountangleSVG.tsx +++ b/src/VisualEditor/RountangleSVG.tsx @@ -34,5 +34,10 @@ export function RountangleSVG(props: { rountangle: Rountangle; selected: string[ + + {props.rountangle.uid} + ; } diff --git a/src/statecharts/runtime_types.ts b/src/statecharts/runtime_types.ts index f589282..c720953 100644 --- a/src/statecharts/runtime_types.ts +++ b/src/statecharts/runtime_types.ts @@ -57,7 +57,6 @@ export class Environment { ]))); } } - console.log(this.scopes); return new Environment(this.scopes.with(-1, new Map([ ...this.scopes[this.scopes.length-1].entries(), [key, value], @@ -94,18 +93,6 @@ export class Environment { } } -// console.log('env...'); -// let env = new Environment(); -// env = env.set("a", 1); -// env = env.set("b", 2); -// env = env.pushScope(); -// console.log(env.get("a")); // 1 -// env = env.newVar("a", 99); -// console.log(env.get("a")); // 99 -// env = env.popScope(); -// console.log(env.get("a")); // 1 -// console.log('end env...'); - export type RT_Statechart = { mode: Mode; environment: Environment;