flowchart.js icon indicating copy to clipboard operation
flowchart.js copied to clipboard

Flowchart start to the right

Open Stwissel opened this issue 11 years ago • 5 comments

Tried this one on the web site:

     st=>start: Start:>http://www.google.com[blank]
     e=>end:>http://www.google.com
     op1=>operation: My Operation
     sub1=>subroutine: My Subroutine
     cond=>condition: Is it fun?:>http://www.google.com
     io=>inputoutput: catch something...

     st(right)->op1(right)->cond
     cond(yes, right)->sub1(right)->op1
     cond(no)->io(right)->e

Start to op1 draws downwards, expected to draw to the right

Stwissel avatar Jul 21 '14 04:07 Stwissel

Direction configurations only works for conditions...

adrai avatar Jul 21 '14 06:07 adrai

Actually operation works too. For fun post the code on the site. Short of start right works.

Stwissel avatar Jul 21 '14 10:07 Stwissel

ok... try with new version... and if the chart is cuttend on top... try to set y via options...

adrai avatar Jul 21 '14 11:07 adrai

Works (almost) nicely now. I tried in the webUI: st=>start: Start:>http://www.google.com[blank] e=>end:>http://www.google.com op1=>operation: My Operation sub1=>subroutine: My Subroutine cond=>condition: Yes or No?:>http://www.google.com io=>inputoutput: catch something...

st(right)->op1(right)->cond cond(yes,right)->io(right)->e cond(no)->sub1(left)->op1

The only catch: the arrow from the sub1 routine goes up and into opt1 from the top where it should be from the bottom.

Stwissel avatar Jul 23 '14 02:07 Stwissel

i know... the arrow from sub1 does not know that he can dock on bottom... the algorithm only docks on top and if possible on left...

adrai avatar Jul 23 '14 14:07 adrai