adrai / adrai/flowchart.js

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

Offen
#173 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
8.7k
Forks
1.2k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.