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

TD, LR and links are all ignored and graph is completely restructured by adding an arrow #6066

Open
Grunthos opened this issue Nov 18, 2024 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@Grunthos
Copy link

Grunthos commented Nov 18, 2024

Description

The title covers the problem, the examples below illustrate it:

Steps to reproduce

Simple layers:

flowchart TB

    %% Top layer
    subgraph Top[The World]
        direction LR
        Top1 ~~~ Top2 ~~~ Top3
        Top1
        Top2
        Top3
    end

    %% Second layer
    subgraph Middle
        direction LR
        Mid1
        Mid2
        Mid1  ~~~ Mid2
    end

    %% Third layer
    subgraph Bottom
        direction LR
        Bot1
    end

    Top ~~~ Middle ~~~ Bottom
flowchart TB

    %% Top layer
    subgraph Top[The World]
        direction LR
        Top1 ~~~ Top2 ~~~ Top3
        Top1
        Top2
        Top3
    end

    %% Second layer
    subgraph Middle
        direction LR
        Mid1
        Mid2
        Mid1  ~~~ Mid2
    end

    %% Third layer
    subgraph Bottom
        direction LR
        Bot1
    end

    Top ~~~ Middle ~~~ Bottom
Loading

Now just add a single arrow (last line):

flowchart TB

    %% Top layer
    subgraph Top[The World]
        direction LR
        Top1 ~~~ Top2 ~~~ Top3
        Top1
        Top2
        Top3
    end

    %% Second layer
    subgraph Middle
        direction LR
        Mid1
        Mid2
        Mid1  ~~~ Mid2
    end

    %% Third layer
    subgraph Bottom
        direction LR
        Bot1
    end

    Top ~~~ Middle ~~~ Bottom
    Top1 --> Mid1
flowchart TB

    %% Top layer
    subgraph Top[The World]
        direction LR
        Top1 ~~~ Top2 ~~~ Top3
        Top1
        Top2
        Top3
    end

    %% Second layer
    subgraph Middle
        direction LR
        Mid1
        Mid2
        Mid1  ~~~ Mid2
    end

    %% Third layer
    subgraph Bottom
        direction LR
        Bot1
    end

    Top ~~~ Middle ~~~ Bottom
    Top1 --> Mid1
Loading

And the whole this becomes chaotic.

Screenshots

No response

Code Sample

See above.

Setup

  • Mermaid version: 9 to 11.4
  • Browser and Version: [Firefox]

Suggested Solutions

Allow some way to create arrows that do not change structure.

Additional Context

This seems to be a very long-term issue.

@Grunthos Grunthos added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Nov 18, 2024
@Grunthos
Copy link
Author

I am aware of this closed issue #815 which seems to relate to similar problems.

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: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant