adrai / flowchart.js

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

Overlapping lines #30

Open grigribou opened 10 years ago

grigribou commented 10 years ago

Hi,

Nice job!! ;)

I'm trying to do a flowchart with 2 conditions but I can't place box where i need:

I obtain: imagen 1

My code: st=>start: Start|past e=>end: End op1=>operation: op1 text center|past op2=>operation: op2|current cond1=>condition: cond1|approved cond2=>condition: cond2|approved sub1=>subroutine: sub1|future

st(right)->op1(right)->cond1 cond1(no)->op2 cond2(no)->op2 cond1(yes, right)->cond2 cond2(yes, right)->sub1 op2(right)->sub1(right)->e

And I'd like to have this position:

imagen 2

is it possible to do it?

More over I'd like to center some text inside a box, is it possible too?

Thanks, Best regards,

adrai commented 10 years ago

sorry... the actual algorithm can't do this :-(

robertleeplummerjr commented 4 years ago

https://github.com/adrai/flowchart.js/pull/191 may fix this