adrai / adrai/flowchart.js

Issue unable to disable vertical alignment after changing arrow position.

未關閉
#167 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
8.7k
分支
1.2k
PR 合併指標
30 天內沒有已合併 PR

描述

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!

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。