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

Lightweight/zeroweight links #3471

Open
reregaga opened this issue Sep 16, 2022 · 0 comments
Open

Lightweight/zeroweight links #3471

reregaga opened this issue Sep 16, 2022 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request

Comments

@reregaga
Copy link

reregaga commented Sep 16, 2022

Is your feature request related to a problem? Please describe.
Lightweight/zeroweight links that do not affect the position of the nodes. The nodes in the mermaid line up according to some kind of gravity, and I would like to have zeroweight links that simply show the connection of two nodes without changing position of nodes.

Example:

flowchart LR
A --> B --> C
C --- A

What I get:
01
What I want:
02
Here I would like to see the link C --- A as zeroweight link.

Describe the solution you'd like
I'm assuming this will require extension of syntax for marking link as lightweight, for example:

flowchart LR
A --> B --> C
C +++ A

Describe alternatives you've considered
I don't know about alternatives.
I think this request relates to requests about explicit set ranking/hierarchy for nodes: #418, #1312, #2098.

Additional context
Inspiration: green and orange lines in this org-chart https://gojs.net/latest/samples/orgChartExtras.html

P.S. Would like to see this feature also for mindmap mode #3410
Possible syntax:

mindmap
  A <1>
    B
      C <2>

<1> +++ <2>
@reregaga reregaga added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Sep 16, 2022
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