adrai / adrai/flowchart.js

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

Abierto
#173 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
8.7k
Forks
1.2k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.