adrai / adrai/flowchart.js

Issue unable to disable vertical alignment after changing arrow position.

Aberta
#167 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
8.7k
Forks
1.2k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Hi, I'm running into a problem when I'm reversing the arrows on an operation and afterwards try to attempt to disable vertical alignment.

My code is as follows:

56335(align-next=no)=>condition: 1 (56335) ⧉|decision:>#heading-56335
56336=>condition: 2 (56336) ⧉|decision:>#heading-56336
56337(align-next=no)=>operation: 3 (56337) ⧉|operation:>#heading-56337
56339=>operation: 5 (56339) ⧉|end:>#heading-56339
56340=>condition: 6 (56340) ⧉|decision:>#heading-56340
56338=>operation: 4 (56338) ⧉|end:>#heading-56338
56342=>operation: 7 (56342) ⧉|end:>#heading-56342
56341=>operation: 8 (56341) ⧉|end:>#heading-56341

56335(yes)->56336
56335(no)->56337
56336(yes)->56339
56336(no)->56340
56337(right)->56338
56340(yes)->56342
56340(no)->56341

It displays as follows:

![image](https://user-images.githubusercontent.com/37108312/51333803-cb44dc80-1a7e-11e9-8628-565be4b473f5.png)

As you can see, the arrow between block 3 and 4 is still vertically aligned, despite being disabled. Has anyone found a workaround for this problem? I believe the cause is because block 3 is an operation, not a condition or end. Any ideas?

Thanks for any help!

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.