adrai / flowchart.js

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

Yes direction left #182

Closed g3blv closed 4 years ago

g3blv commented 4 years ago

I have this code

st=>start: Start
op1=>operation: Check if item exists
cond1=>condition: Item exists?
op2=>operation: Set ID
op3=>operation: Create item and set ID
e=>end

st->op1->cond1
cond1(yes, left)->op2->e
cond1(no, right)->op3->e

I've created this Fiddle -> http://jsfiddle.net/vecyrh5u The Fiddle is using: http://cdnjs.cloudflare.com/ajax/libs/raphael/2.2.0/raphael-min.js http://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.2/jquery.min.js http://flowchart.js.org/flowchart-latest.js

For cond1 I would the like to make the Yes alternative to point left. Is that possible?

adrai commented 4 years ago

not possible with the current algorithm... https://github.com/adrai/flowchart.js/issues/15#issuecomment-37029886