From f2a5b858adbdef618b6997cda83b0ad74e9cf209 Mon Sep 17 00:00:00 2001 From: David Mosbach Date: Tue, 30 May 2023 22:30:52 +0200 Subject: [PATCH] fixed curvature of edges between old and new state --- editor.html | 11 ++++++++--- editor.js | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/editor.html b/editor.html index 977cc37..c35d5ba 100644 --- a/editor.html +++ b/editor.html @@ -72,8 +72,8 @@

Hello

- - + + X @@ -87,10 +87,15 @@

Hello

+ + + + X +
- +
diff --git a/editor.js b/editor.js index b331546..c60133c 100644 --- a/editor.js +++ b/editor.js @@ -299,7 +299,7 @@ function addState() { var nodeId = stateIdCounter ++; var x = newStateCoords.x; var y = newStateCoords.y; - state = {id: nodeId, x: x, y: y, name: 'state_' + nodeId, fx: x, fy: y, val: 5}; + state = {id: 'state_' + nodeId, x: x, y: y, name: 'state_' + nodeId, fx: x, fy: y, val: 5}; workflow.states.push(state); updateGraph(); select(state);