Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flowchart: Option to add Non Forcing Edges #5534

Open
shekharsom opened this issue May 22, 2024 · 0 comments
Open

Flowchart: Option to add Non Forcing Edges #5534

shekharsom opened this issue May 22, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@shekharsom
Copy link

Proposal

Mermaid should add an option to add non forcing edges. Currently, all edges are used to finally render the chart. I suggest adding a new type of edge that is not affecting the layout.

Current Syntax:

a-->|Title| b

Proposed syntax:
a-x->|Title| c

How to Implement:

There can be two approaches:

  1. Use main edges first to define the final layout and then place other edges without affecting the layout
  2. Use some kind of weightage to allow the tension on the edge. We could use a different syntax then:

a-40->|Title| b
a-10->|Title| c

Example

image

Here, the step c is not important to the flow and hence shouldn't affect the overall flow. If we could make the edges to c irrelevant, it will not affect the layout and redirect the layout easily.

Screenshots

No response

@shekharsom shekharsom added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant