manthanabc / TextToFA

Converts Text/ Regex to Finite Automata
https://manthanabc.github.io/TextToFA/
3 stars 1 forks source link

Improve rendering for nodes which form small loops #5

Open manthanabc opened 2 weeks ago

manthanabc commented 2 weeks ago

In the state.js file in draw function is where you would find an if statement where if the connection is being made to a node which also has an transition to the current node we mannualy set the "curvature" and direction, change the curvature for it to look good and not too clustered at all distances