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

In Flowchart, direction of subgraph links should affect positioning more than inter-graph node links #6046

Open
tribbloid opened this issue Nov 10, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@tribbloid
Copy link

Description

here is a flowchart with only subgraph links:

flowchart TD
    subgraph input
        x
        y
    end

    subgraph eq
        subgraph "before"
            def(("÷"))
            tup(("▚"))
        end

        tup o--o def

        subgraph "after"
            direction TB
            dx(("÷"))
            dy(("÷"))
            ta(("▚"))
            tb(("▚"))
            ta -->|a1| dx
            ta -->|a2| dy
            tb ---|b1| dx
            tb ---|b2| dy
        end
    end

    subgraph "output"
        a
        b
    end

    input ~~~ eq
    eq ~~~ output
Loading

here is a similar one with both:

flowchart TD
    subgraph input
        x
        y
    end

    subgraph eq
        subgraph "before"
            def(("÷"))
            tup(("▚"))
        end

        tup o--o def

        subgraph "after"
            direction TB
            dx(("÷"))
            dy(("÷"))
            ta(("▚"))
            tb(("▚"))
            ta -->|a1| dx
            ta -->|a2| dy
            tb ---|b1| dx
            tb ---|b2| dy
        end
    end

    subgraph "output"
        a
        b
    end

    input ~~~ eq
    eq ~~~ output
    
    x --- tup
    y --- tup
    x --o dx
    y --o dy
    a --> def
    b --- def
    a --o ta
    b --o tb
Loading

as you can see, the positioning/layout is completely discarded.

Steps to reproduce

just use the above 2 code snippets in the browser

Screenshots

No response

Code Sample

No response

Setup

  • Mermaid version: unknown
  • Browser and Version: [Chrome, Edge, Firefox] Chrome Version 130.0.6723.116 (Official Build) (64-bit)

Suggested Solutions

No response

Additional Context

No response

@tribbloid tribbloid added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Nov 10, 2024
@tribbloid tribbloid changed the title In Flowchart, direction of subgraph links should affect positioning more than node links In Flowchart, direction of subgraph links should affect positioning more than inter-graph node links Nov 10, 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: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant