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 摘要。