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

Is there a way to create invisible connections between nodes to help with orientation of unconnected nodes? #3192

Closed
jsolbrig opened this issue Jul 1, 2022 · 6 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Other Not an enhancement or a bug

Comments

@jsolbrig
Copy link

jsolbrig commented Jul 1, 2022

I'd like to add a legend to a flowchart that I've been putting together. I'd prefer if there were no connections between the nodes in the legend.

What I have now

flowchart LR
  subgraph Legend
    direction LR
    stor1[("Storage1")]
    stor2[("Storage2")]
    other["Other Thingy"]
  end
flowchart LR
  subgraph Legend
    direction LR
    stor1[("Storage1")]
    stor2[("Storage2")]
    other["Other Thingy"]
  end
Loading

What I want

flowchart LR
  subgraph Legend
    direction LR
    stor1[("Storage1")]
    stor2[("Storage2")]
    other["Other Thingy"]
    stor1-->|invisible|stor2-->|invisible|other
  end
flowchart LR
  subgraph Legend
    direction LR
    stor1[("Storage1")]
    stor2[("Storage2")]
    other["Other Thingy"]
    stor1-->|invisible|stor2-->|invisible|other
  end
Loading
@jsolbrig jsolbrig added the Type: Other Not an enhancement or a bug label Jul 1, 2022
@github-actions github-actions bot added the Status: Triage Needs to be verified, categorized, etc label Jul 1, 2022
@jpl-jengelke
Copy link

This is apparently a known issue in Mermaid. See this ticket for some workarounds: #815 .

Unfortunately, the ordering ticket has been closed without a fix.

@knsv
Copy link
Collaborator

knsv commented Aug 20, 2022

I like the idea with the invisible links! We should do that.

@knsv
Copy link
Collaborator

knsv commented Aug 20, 2022

@jpl-jengelke Reopened #815, not a simple one to fix though. This issue can help. though.

@flywire
Copy link
Contributor

flywire commented Jan 12, 2023

@knsv this is a duplicate of (ie newer than) #2805. Would you mind looking at #2805 (comment)?

@fkohrt
Copy link
Contributor

fkohrt commented Aug 24, 2023

This issue has been resolved by #4113 and can be closed.

@Yokozuna59
Copy link
Member

@fkohrt Thanks!

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: Other Not an enhancement or a bug
Projects
None yet
Development

No branches or pull requests

6 participants