adrai / adrai/flowchart.js

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

Aperta
#173 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
8.7k
Fork
1.2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

```

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

```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.