首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在flowchart.js中将并行任务的右侧任务排列起来?

如何在flowchart.js中将并行任务的右侧任务排列起来?
EN

Stack Overflow用户
提问于 2018-06-13 09:04:25
回答 1查看 741关注 0票数 1

我在flowchart.js github 问题上发布了这篇文章,以获得更多的关注。

下面发布的图片是由flowchart.js实际生成的。

实际图像

我正在使用相当多的并行任务,我注意到它们并不是排在一起的。

如我所料

右手边元素垂直对齐。

详细信息

我之所以使用这些IO或子例程,是因为它们进一步详细说明了在各个进程中发生了什么。

我是否正确地使用了并行任务?有没有办法使右边的并行任务对齐?

我编写的生成实际图像的代码

代码语言:javascript
复制
        st=>start
        e=>end
        vendor_submit=>parallel: Vendor Submit Files
        files=>inputoutput: 1 Excel per quotation
        1 PDF per quotation
        1 Excel as summary
        identify_type=>operation: PSS1 identify ASP/3PP/RES 
        check_completeness=>parallel: PSS1 check for completeness
        data_submitted=>inputoutput: quote no.
        quote value
        project
        enter_quotation_data=>parallel: PSS1 enter quotation data
        and assign PSS2
        notify_vendor=>subroutine: email notification to vendor
        breakdown_persite=>parallel: PSS2 breakdown per site
        breakdown_data_submitted=>inputoutput: Quotation Excel
        Quotation PDF
        Summary Excel

        st->vendor_submit
        vendor_submit(path1, right)->files
        vendor_submit(path2, bottom)->identify_type
        identify_type->check_completeness
        check_completeness(path1, right)->data_submitted
        check_completeness(path2, bottom)->enter_quotation_data
        enter_quotation_data(path1, right)->notify_vendor
        enter_quotation_data(path2, bottom)->breakdown_persite
        breakdown_persite(path1, right)->breakdown_data_submitted
        breakdown_persite(path2, bottom)->e
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-06-19 06:04:18

如果您看到下面的拉请求

https://github.com/adrai/flowchart.js/issues/115

你需要的是align-next=no。下面是更新的图形代码

代码语言:javascript
复制
st=>start
e=>end
vendor_submit(align-next=no)=>parallel: Vendor Submit Files
files=>inputoutput: 1 Excel per quotation
1 PDF per quotation
1 Excel as summary
identify_type=>operation: PSS1 identify ASP/3PP/RES 
check_completeness(align-next=no)=>parallel: PSS1 check for completeness
data_submitted=>inputoutput: quote no.
quote value
project
enter_quotation_data(align-next=no)=>parallel: PSS1 enter quotation data
and assign PSS2
notify_vendor=>subroutine: email notification to vendor
breakdown_persite(align-next=no)=>parallel: PSS2 breakdown per site
breakdown_data_submitted=>inputoutput: Quotation Excel
Quotation PDF
Summary Excel

st->vendor_submit
vendor_submit(path1, right)->files
vendor_submit(path2, bottom)->identify_type
identify_type->check_completeness
check_completeness(path1, right)->data_submitted
check_completeness(path2, bottom)->enter_quotation_data
enter_quotation_data(path1, right)->notify_vendor
enter_quotation_data(path2, bottom)->breakdown_persite
breakdown_persite(path1, right)->breakdown_data_submitted
breakdown_persite(path2, bottom)->e

下面是相同的输出

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50833229

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档