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

Inserting a condition increases "line-length" between all nodes #173

Open jankokert opened 5 years ago

jankokert commented 5 years ago

1.) Create a flowchart and specify the "line-length" to a very small number, say "5" 2.) Add a few nodes. Then, the line length will be very short as expected 3.) Add a condition node to the flow (lines are commented out in the code below) 4.) Now, the distance between all nodes (="line-length") has increased by a fixed amount.

<flowchartjs EPE>
  st=>start: Start|past:>http://www.google.com[blank]
  e=>end: End|future:>http://www.google.com
  node1=>subroutine: Node 1|past
  node2=>subroutine: Node 2|past
  node3=>subroutine: Node 1|past
  node4=>subroutine: Node 2|past
  cond=>condition: Condition

  node1->node2->node3
  // node3->cond
  // cond(yes)->node4  
</flowchartjs>