adrai / flowchart.js

Draws simple SVG flow chart diagrams from textual representation of the diagram
http://flowchart.js.org/
MIT License
8.54k stars 1.21k forks source link

Error drawn chart #192

Open WilliamStone opened 4 years ago

WilliamStone commented 4 years ago

Hi, It seems the following chart is error drawn:

a=>operation: a
b=>operation: b
c=>condition: yes or no
d=>operation: d
e=>operation: e
f=>operation: f

a->b(right)->c
c(yes, right)->e
c(no, top)->d  // top not recognized; it seems that only 1 direction instruction of 2 branches is valid
e(top)->f        // top line is drawn through operation box

The result chart is: image

adrai commented 4 years ago

The algorithm always tries to go to the bottom right